/*
Theme Name: EmEtz Neo
Template: emetz
Description: Neugestaltung der Website emetz.de (2026). Child-Theme von "emetz": Logik (Meta, Weiterleitungen, Menüdaten) bleibt im Parent, hier nur Darstellung. Leitmotiv Schwärzung. Schrift Archivo lokal, kein externes CDN. Rückbau: Parent-Theme "emetz" aktivieren, Ordner emetz-neo löschen.
Version: 1.0.2
Text Domain: emetz-neo
*/

/* ---------- Schrift (lokal) ---------- */
@font-face {
	font-family: "Archivo";
	src: url("fonts/archivo-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Archivo";
	src: url("fonts/archivo-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
	--ink: #0E2433;        /* Tinte: Text, Schwärzungsbalken, Footer */
	--blue: #0093C8;       /* EmEtz-Blau aus Logo/Footer – Flächen, große Schrift */
	--blue-text: #00739E;  /* dasselbe Blau, dunkel genug für Fließtext-Links (≥ 4,5:1) */
	--ice: #E4F2F9;        /* helle Fläche */
	--slate: #55656F;      /* Nebentext */
	--line: #CFDCE3;
	--paper: #FFFFFF;

	--step--1: 0.889rem;
	--step-0: 1.125rem;
	--step-1: 1.35rem;
	--step-2: 1.62rem;
	--step-3: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem);
	--step-4: clamp(2.5rem, 1.1rem + 4.8vw, 4.7rem);

	--wide: 118%;
	--gutter: clamp(1.1rem, 4vw, 2.75rem);
	--measure: 68ch;
	--radius: 0.4rem;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
	margin: 0;
	font-family: "Archivo", system-ui, sans-serif;
	font-size: var(--step-0);
	line-height: 1.62;
	color: var(--ink);
	background: var(--paper);
	font-kerning: normal;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-text); text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(100%, 78rem); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--ink); color: #fff; border-radius: var(--radius); }
.skip:focus { top: 1rem; }

/* ---------- Kopf ---------- */
.masthead {
	position: sticky; top: 0; z-index: 50;
	background: rgb(255 255 255 / 0.92);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.masthead__bar { display: flex; align-items: center; gap: 2rem; min-height: 5rem; }
.brand { flex: none; line-height: 0; }
.brand img { width: auto; height: 60px; }
.menu-button { display: none; }

.nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 0.25rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
	position: relative; display: block; padding: 0.6rem 0;
	color: var(--ink); text-decoration: none;
	font-size: 0.97rem; font-weight: 560; letter-spacing: 0.005em;
}
/* Schwärzungsbalken als Markierung: aktiver Bereich fest, Hover wächst von links */
.nav__link::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 0.3rem;
	background: var(--ink); transform: scaleX(0); transform-origin: left;
	transition: transform 0.25s cubic-bezier(0.6, 0, 0.2, 1);
}
.nav__link:hover::after, .nav__link.is-trail::after { transform: scaleX(1); }
.nav__link.is-trail::after { background: var(--blue); }
.nav__toggle {
	width: 1.6rem; height: 1.6rem; margin-left: 0.15rem; padding: 0;
	border: 0; background: none; cursor: pointer; color: var(--ink);
}
.nav__toggle::before {
	content: ""; display: block; width: 0.42rem; height: 0.42rem; margin: 0 auto 0.2rem;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform 0.2s;
}
.nav__toggle[aria-expanded="true"]::before { transform: rotate(-135deg); margin-bottom: -0.15rem; }
.nav__sub {
	position: absolute; top: calc(100% + 0.4rem); left: -1rem; min-width: 17rem;
	margin: 0; padding: 0.5rem; list-style: none;
	background: var(--paper); border: 1px solid var(--line); border-radius: 0.6rem;
	box-shadow: 0 1.5rem 3rem -1.5rem rgb(14 36 51 / 0.4);
	visibility: hidden; opacity: 0; transform: translateY(-0.3rem);
	transition: opacity 0.18s, transform 0.18s, visibility 0s 0.18s;
}
.nav__toggle[aria-expanded="true"] + .nav__sub {
	visibility: visible; opacity: 1; transform: none; transition: opacity 0.18s, transform 0.18s;
}
@media (hover: hover) and (min-width: 62.01rem) {
	.nav__item:hover > .nav__sub { visibility: visible; opacity: 1; transform: none; transition: opacity 0.18s, transform 0.18s; }
}
.nav__sublink { display: block; padding: 0.55rem 0.75rem; border-radius: 0.35rem; color: var(--ink); text-decoration: none; font-size: 0.97rem; }
.nav__sublink:hover { background: var(--ice); color: var(--ink); }
.nav__sublink[aria-current="page"] { background: var(--ice); font-weight: 650; }
.call {
	flex: none; padding: 0.6rem 1.05rem; border-radius: 999px;
	background: var(--ink); color: #fff; text-decoration: none;
	font-size: 0.95rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.call:hover { background: var(--blue-text); color: #fff; }

/* ---------- Startseite: Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(1rem, 3vw, 2rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero__title {
	margin: 0 0 1.75rem;
	font-size: var(--step-4); font-stretch: var(--wide); font-weight: 760;
	line-height: 1.02; letter-spacing: -0.028em;
	hyphens: manual;
}
/* Leitmotiv: Jedes Wort liegt zunächst unter einem Tintenbalken, der einmal beim Laden aufgeht */
.redact { position: relative; display: inline-block; }
.redact::after {
	content: ""; position: absolute; inset: 0.1em -0.06em 0.04em;
	background: var(--ink); transform-origin: right;
	animation: unredact 0.55s cubic-bezier(0.7, 0, 0.25, 1) forwards;
	animation-delay: calc(0.35s + var(--i) * 75ms);
}
@keyframes unredact { to { transform: scaleX(0); } }
.hero__lead { max-width: 52ch; margin: 0 0 2.25rem; font-size: var(--step-1); line-height: 1.55; color: var(--slate); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 0; }
.hero__visual { margin: 0; aspect-ratio: 4 / 5; border-radius: 0.6rem 0.6rem 0.6rem 10rem; }

/* Duoton: Graustufenbild auf Blau→Tinte, Farbe kommt aus dem Verlauf */
.duo { position: relative; overflow: hidden; background: linear-gradient(155deg, var(--blue) 0%, #0B5A80 45%, var(--ink) 100%); }
.duo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(1.08); mix-blend-mode: luminosity; }
.hero__visual img { object-position: 36% 50%; }   /* Schloss im Bild sitzt links der Mitte */

/* ---------- Schaltflächen ---------- */
.button {
	display: inline-block; padding: 0.9rem 1.4rem; border: 2px solid var(--ink); border-radius: var(--radius);
	background: var(--ink); color: #fff; text-decoration: none;
	font-weight: 620; line-height: 1.2;
}
.button:hover { background: var(--blue-text); border-color: var(--blue-text); color: #fff; }
.button--quiet { background: transparent; color: var(--ink); }
.button--quiet:hover { background: var(--ice); border-color: var(--ink); color: var(--ink); }
.button--light { background: #fff; border-color: #fff; color: var(--ink); }
.button--light:hover { background: var(--ice); border-color: var(--ice); color: var(--ink); }

/* ---------- Unterseiten: Kopfband ---------- */
.pagehead { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.pagehead__inner { position: relative; z-index: 1; padding-block: clamp(3rem, 7vw, 6rem); }
.pagehead__title {
	max-width: 17ch; margin: 0;
	font-size: var(--step-3); font-stretch: var(--wide); font-weight: 740;
	line-height: 1.05; letter-spacing: -0.022em; hyphens: auto;
}
.pagehead__visual { position: absolute; inset: 0 0 0 auto; width: min(46%, 40rem); margin: 0; }
/* Bild läuft nach links in die Tinte aus */
.pagehead__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgb(14 36 51 / 0) 55%); }

/* ---------- Inhalt ---------- */
.layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.layout--single { grid-template-columns: minmax(0, 1fr); }
.layout--single .entry { margin-inline: 0; }

.section-nav { position: sticky; top: 7rem; align-self: start; }
.section-nav ul { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.section-nav a, .section-nav span { display: block; margin-left: -2px; padding: 0.45rem 0 0.45rem 1rem; border-left: 2px solid transparent; color: var(--slate); text-decoration: none; font-size: 0.97rem; line-height: 1.35; }
.section-nav a:hover { color: var(--ink); border-left-color: var(--ink); }
.section-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; border-left: 0.3rem solid var(--blue); padding-left: calc(1rem - 0.3rem + 2px); }
.section-nav .section-nav__top { color: var(--ink); font-weight: 700; font-stretch: 110%; }

.entry { max-width: var(--measure); }
.entry > :first-child { margin-top: 0; }
.entry p { margin: 0 0 1.1em; }
.entry p:empty { display: none; }
.entry h2, .entry h3 { margin: 2.2em 0 0.6em; font-size: var(--step-2); font-stretch: 110%; font-weight: 700; line-height: 1.2; letter-spacing: -0.012em; }
.entry b, .entry strong { font-weight: 650; }
.entry ul, .entry ol { margin: 0 0 1.3em; padding: 0; }
.entry ol { padding-left: 1.4em; }
.entry ul { list-style: none; }
.entry ul > li { position: relative; padding-left: 1.5em; margin-bottom: 0.4em; }
/* Aufzählung als kleiner Schwärzungsbalken */
.entry ul > li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.8em; height: 0.3em; background: var(--blue); }
.entry img { display: inline-block; vertical-align: middle; }

/* Altes Editor-HTML (cms2day/TinyMCE) beruhigen: Inline-Größen und -Farben auf das System zurückführen */
.entry [style*="font-size"] { font-size: inherit !important; }
.entry [style*="#3366ff"] { color: var(--blue-text) !important; }
.entry [style*="#515151"] { color: var(--slate) !important; }
.entry [style*="#ffffff"] { color: transparent !important; }   /* „..“-Abstandshalter im Bestand */
.entry .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0 2.5rem; }
.entry .row:has(> .col-sm-3) { grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr); }
.entry .tiny-spacer-2 { height: 1rem; }

/* Startseite: alles an der Hero-Kante ausrichten. Die zwei Kernsätze des Bestands (zentrierter Fettdruck)
   werden zum Statement in der breiten Schrift; Logos der Mitgliedschaften als ruhige Reihe. */
.layout:has(.entry--front) { padding-top: clamp(2rem, 4vw, 3.5rem); }
.entry--front { max-width: 62rem; }
.entry--front > p:not([style*="center"]) { max-width: var(--measure); }
.entry--front [style*="center"] { text-align: left !important; }
.entry--front p[style*="center"]:not(:has(img)):not(:has([style*="#515151"])):has(strong) {
	max-width: 30ch; margin: 2.5rem 0 0;
	font-size: var(--step-3); font-stretch: var(--wide); line-height: 1.12; letter-spacing: -0.02em;
}
.entry--front p[style*="center"]:not(:has(img)):not(:has([style*="#515151"])):has(strong) strong { font-weight: 740; }
.entry--front p[style*="center"]:not(:has(img)):not(:has([style*="#515151"])):has(strong) + p:has(strong) { margin-top: 0.4em; color: var(--blue-text); }
.entry--front p:has(> [style*="#ffffff"]) { display: none; }   /* „..“-Abstandshalter: hier regelt das Layout den Abstand */
.entry--front p:has([style*="#515151"]):not(:has(img)) { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2.5rem; border-top: 1px solid var(--line); }
.entry--front p:has(img) { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 1.5rem 3rem; margin-top: 1.5rem; }
.entry--front p:has(img) img { max-height: 6.5rem; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s; }
.entry--front p:has(img) img:hover { filter: none; opacity: 1; }

/* ---------- Kontaktformular (Contact Form 7) ---------- */
.wpcf7 { max-width: 40rem; margin-top: 2rem; }
.wpcf7 label.form-title { display: block; margin-bottom: 1.15rem; font-size: 0.97rem; font-weight: 620; }
.wpcf7 .fb-label { margin: 2.2rem 0 0.9rem; font-size: var(--step-1); font-stretch: 110%; font-weight: 700; color: var(--ink); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea {
	display: block; width: 100%; margin-top: 0.4rem; padding: 0.75rem 0.9rem;
	border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper);
	font: inherit; font-weight: 400; color: var(--ink);
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px var(--ice); }
.wpcf7 .fb-desc, .wpcf7 .fb-require { font-size: var(--step--1); color: var(--slate); }
.wpcf7 .fb-require span, .wpcf7 label .fb-require { color: var(--blue-text); }
.wpcf7 input[type="submit"] {
	margin-top: 0.5rem; padding: 0.9rem 1.6rem; border: 2px solid var(--ink); border-radius: var(--radius);
	background: var(--ink); color: #fff; font: inherit; font-weight: 620; cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--blue-text); border-color: var(--blue-text); }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 0.3rem; font-size: var(--step--1); color: #B42318; }
.wpcf7 form .wpcf7-response-output { margin: 1.5rem 0 0; padding: 0.9rem 1.1rem; border-radius: var(--radius); }

/* ---------- Frage-Band ---------- */
.ask { background: var(--blue-text); color: #fff; }
.ask__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.ask__question { max-width: 24ch; margin: 0; font-size: var(--step-2); font-stretch: var(--wide); font-weight: 720; line-height: 1.15; letter-spacing: -0.015em; }
.ask__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 0; }
.ask__link { color: #fff; font-weight: 600; }
.ask__link:hover { color: var(--ice); }

/* ---------- Fuß ---------- */
.footer { background: var(--ink); color: #B9C8D1; font-size: 0.97rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem 4rem; padding-block: 3.5rem 2.5rem; }
.footer__org p { margin: 0 0 0.6rem; }
.footer__name { color: #fff; font-size: var(--step-1); font-stretch: var(--wide); font-weight: 720; }
.footer__links { display: grid; grid-template-columns: repeat(2, auto); gap: 0.55rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.footer__legal { margin: 0 auto; padding-block: 1.25rem 2rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: var(--step--1); }

/* ---------- Mobil ---------- */
@media (max-width: 62rem) {
	.masthead__bar { flex-wrap: wrap; gap: 0 1rem; min-height: 4.25rem; }
	.brand img { height: 48px; }
	.menu-button {
		display: inline-flex; align-items: center; gap: 0.55rem; margin-left: auto;
		padding: 0.55rem 0.95rem; border: 2px solid var(--ink); border-radius: 999px;
		background: none; color: var(--ink); font: inherit; font-weight: 620; cursor: pointer;
	}
	.menu-button::before { content: ""; width: 1rem; height: 0.6rem; border-block: 2px solid currentColor; }
	.menu-button[aria-expanded="true"]::before { height: 0; border-bottom: 0; transform: rotate(45deg); }
	.nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1rem; margin: 0; padding: 0.5rem 0 1.5rem; }
	.menu-open .nav { display: flex; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__item { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--line); }
	.nav__link { padding: 0.85rem 0; font-size: 1.05rem; }
	.nav__link::after { bottom: 0.45rem; }
	.nav__toggle { width: 2.75rem; height: 2.75rem; }
	.nav__sub { position: static; display: none; flex-basis: 100%; min-width: 0; margin: 0 0 0.75rem; padding: 0; border: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none; }
	.nav__toggle[aria-expanded="true"] + .nav__sub { display: block; }
	.call { align-self: flex-start; }

	.hero__grid { grid-template-columns: minmax(0, 1fr); }
	.hero__visual { aspect-ratio: 16 / 10; border-radius: 0.6rem 0.6rem 0.6rem 5rem; }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.section-nav { position: static; order: 2; padding-top: 1.5rem; border-top: 1px solid var(--line); }
	.pagehead__visual { width: 100%; opacity: 0.35; }
	.pagehead__visual::after { background: linear-gradient(90deg, var(--ink) 10%, rgb(14 36 51 / 0.2)); }
	.footer__links { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
	.redact::after { display: none; }
	*, *::before, *::after { transition-duration: 0.01ms !important; }
}
