/* Schriften lokal eingebunden (statt Google Fonts), SIL Open Font License.
   Nur latin und latin-ext (fuer Ungarisch: ő, ű). Variable Schriften:
   eine Datei deckt den ganzen Gewichtsbereich ab. */

/* Fraunces italic, latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  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;
}

/* Fraunces italic, latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fraunces-italic-latin.woff2') format('woff2');
  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;
}

/* Fraunces normal, latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/fraunces-normal-latin-ext.woff2') format('woff2');
  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;
}

/* Fraunces normal, latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/fraunces-normal-latin.woff2') format('woff2');
  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;
}

/* Karla normal, latin-ext */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/karla-normal-latin-ext.woff2') format('woff2');
  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;
}

/* Karla normal, latin */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/karla-normal-latin.woff2') format('woff2');
  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;
}

:root {
  --white:    #ffffff;
  --bg:       #F5F1E8;
  --ink:      #3A3F35;
  --ink-mid:  #4f544a;
  --ink-soft: #6b6f63;
  --rule:     #e2ddcd;
  --bg-lt:    #FBF8F0;   /* helleres Beige fuer hinterlegte Textbalken */
  /* Salbei-Abstufung fuer die Themenkacheln: von oben nach unten heller.
     Auch der dunkelste Ton haelt mit --ink-mid noch 5,7:1 Kontrast. */
  --sage-1:   #D8E0CC;
  --sage-2:   #E1E7D7;
  --sage-3:   #EAEEE2;
  --sage-4:   #F2F5ED;
  --teal:     #8A9C77;   /* dekorative Flaechen und Linien */
  --teal-dk:  #6f8060;
  /* Textgruen: #8A9C77 erreicht auf Weiss nur 2,96:1 und ist als Schriftfarbe
     zu hell. Gleicher Farbton, dunkler – 5,4:1 auf Weiss wie auch mit Weiss. */
  --teal-text: #5f6f52;
  --teal-text-dk: #4e5c43;
  --sage:     #9CAF88;
  --sage-lt:  #A8B79B;
  --gold:     #b5903a;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans:  'Karla', 'Helvetica Neue', sans-serif;

  /* Breitenkonzept: das Inhaltsband waechst bis --max-w und bleibt dann stehen */
  --max-w:   1400px;
  --gutter:  clamp(1.25rem, 5vw, 5.25rem);
  --measure: 68ch;
  --nav-h:   68px;   /* Startwert, wird von main.js auf die echte Hoehe gesetzt */

  /* Eckenradien: grosse Flaechen runder, kleine Bedienelemente dezenter */
  --radius:    10px;
  --radius-sm:  6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;   /* iOS skaliert sonst beim Drehen nach */
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 100%;                    /* respektiert die Schriftgroesse des Nutzers */
  scroll-padding-top: var(--nav-h);   /* Ankersprung landet nicht unter der Navigation */
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  /* bis 1400px unveraendert 16px; erst jenseits des Deckels waechst der Text,
     damit grosse Monitore auf Betrachtungsabstand lesbar bleiben */
  font-size: clamp(1rem, 1rem + (100vw - 1400px) * 0.0055, 1.125rem);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;   /* iOS: ohne Adressleiste gerechnet */
}

/* ── SPRUNGMARKE ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ── TASTATURFOKUS ── */
:focus-visible {
  outline: 2px solid var(--teal-text);
  outline-offset: 3px;
}

/* ── NAV ── */
nav {
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding-block: 1rem;
  /* Balken bleibt vollbreit, sein Inhalt fluchtet auf das gedeckelte Band */
  padding-inline: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter)));
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.nav-brand {
  display: block;
  text-decoration: none;
  line-height: 1.3;
  flex-shrink: 0;
}

.nav-brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-brand-role {
  display: block;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-mid);
  margin-top: 0.2rem;
}

.nav-brand:hover .nav-brand-name { color: var(--teal-dk); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

nav ul a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color 0.2s;
  white-space: nowrap;   /* Menuepunkte duerfen nie umbrechen */
}

nav ul a:hover,
nav ul a.active { color: var(--teal-text); }

.nav-cta {
  background: var(--teal-text) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.3rem !important;
  letter-spacing: 0.08em !important;
  border-radius: var(--radius-sm);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--teal-text-dk) !important; }
.nav-cta.active { background: var(--teal-text-dk) !important; }

/* Sprachumschalter DE | HU */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--rule);
}
.nav-lang-current { color: var(--teal-text); font-weight: 600; }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
  min-width: 44px;
  min-height: 44px;
}

/* ── CONTENT WRAPPER: gedeckelt und zentriert, innen linksbuendig ── */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── SECTIONS ── */
section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--rule);
}

section:last-of-type { border-bottom: none; }

.section-intro {
  text-align: left;
  max-width: var(--measure);
  margin: 0 0 3rem;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-text);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}

/* Kurven so gewaehlt, dass die Maximalgroesse bei ca. 1400px erreicht ist */
h1 { font-size: clamp(1.9rem, 1.35rem + 1.6vw, 2.8rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }

p {
  color: var(--ink-mid);
  margin-bottom: 1rem;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}
p:last-child { margin-bottom: 0; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ── HERO TEXT (for pages without slider) ── */
.page-hero {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.page-hero h1 { margin-bottom: 0.8rem; }
.page-hero p { max-width: var(--measure); margin: 0; }

/* Variante mit hinterlegter Kachel statt Trennlinie */
.page-hero--card {
  padding: 3rem 0;
  border-bottom: none;
}

.hero-card {
  background: var(--sage-4);
  padding: 2.8rem 3rem;
  border-radius: var(--radius);
}

/* Die Kachel traegt schon Luft nach unten – der Abstand zum Folgeabschnitt
   darf deshalb kleiner ausfallen als nach einem Kopf mit Trennlinie */
.page-hero--card + section { padding-top: 3rem; }

/* Variante als durchgehendes Farbband: der Hintergrund laeuft ueber die volle
   Fensterbreite, der Text bleibt im Inhaltsraster */
.page-hero--band {
  background: var(--sage-4);
  padding: 4rem 0 3.5rem;
  border-bottom: none;
}

.page-hero--band .hero-card {
  background: none;
  padding: 0;
  border-radius: 0;
}

.page-hero--band + section { padding-top: 3.5rem; }

/* ── TWO COLUMNS ── */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 4rem;
  align-items: start;
}

.two-col-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 4rem;
  align-items: start;
}

/* Zeilenlaenge in der Textspalte begrenzen – die Nebenspalte bleibt am Rand */
.two-col > div > p,
.two-col-wide > div > p,
.two-col > div > ul,
.two-col-wide > div > ul { max-width: var(--measure); }

.faq-list,
.contact-form { max-width: var(--measure); }

/* Blocksatz nur im Fließtext – in schmalen Kaesten reisst er Loecher */
.side-box p,
.side-box li,
.notice,
.notice p,
.crisis-box p,
.faq-answer-inner,
.contact-detail-value { text-align: left; }

/* ── CTA BUTTON ── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 2rem;
  background: var(--teal-text);
  color: var(--white);
  transition: background 0.2s;
  border-radius: var(--radius-sm);
}
.btn:hover { background: var(--teal-text-dk); }

.btn-outline {
  background: none;
  border: 1px solid var(--teal-text);
  color: var(--teal-text);
}
.btn-outline:hover { background: var(--teal-text); color: var(--white); }

/* ── SPECIALIZATION GRID ── */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 4rem;
  margin-top: 3rem;
}

/* Zweispaltige Variante (Startseite). Als Klasse statt Inline-Style, damit die
   Media Queries weiter unten sie ueberhaupt ueberschreiben koennen. */
.spec-grid-2 { grid-template-columns: repeat(2, 1fr); }

.spec-item {
  text-align: left;
}

.spec-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.spec-item h3 {
  font-size: 1rem;
  font-family: var(--font-serif);
  margin-bottom: 0.6rem;
}

.spec-item p {
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ── BLOCKQUOTE ── */
blockquote {
  text-align: left;
  max-width: 68ch;
  margin: 0;
}

blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

blockquote cite {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-style: normal;
}

/* ── SIDEBAR BOX ── */
.side-box {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 2rem;
  border-radius: var(--radius);
}

.side-box h3 {
  font-size: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--ink-mid);
}

.side-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.side-list li {
  font-size: 0.92rem;
  color: var(--ink-mid);
  padding-left: 1rem;
  position: relative;
}

.side-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--teal-text);
}

/* ── FLIESSTEXT-LISTE (ohne Kasten) ── */
.flow-heading {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.flow-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: var(--measure);
  margin: 0 0 1.8rem;
}

.flow-list li {
  color: var(--ink-mid);
  padding-left: 1.3rem;
  position: relative;
  text-align: left;
}

.flow-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--teal-text);
}

.flow-list strong { color: var(--ink); font-weight: 600; }

/* ── HERVORGEHOBENE SCHLUSSAUSSAGE ── */
.statement,
.two-col-wide > div > p.statement {
  font-family: var(--font-serif);
  color: var(--ink);
  text-align: left;
  -webkit-hyphens: manual;   /* sonst greift in Safari weiter das auto von oben */
  hyphens: manual;
  background: var(--bg-lt);
  max-width: calc(var(--measure) + 3.2rem);
  margin: 2.2rem 0 0;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
}

/* Gruen hinterlegte Variante – gleicher Ton wie die Box „Auf einen Blick" */
.statement--sage,
.two-col-wide > div > p.statement--sage { background: var(--sage-2); }

/* ── STARTSEITE ── */
.home-hero { display: block; }

.home-hero .intro-claim { margin-bottom: 2rem; }

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.home-more { margin-top: 2rem; }

.home-note {
  max-width: var(--measure);
  margin: 2.5rem auto 0;
  text-align: center;
  -webkit-hyphens: manual;   /* sonst greift in Safari weiter das auto von oben */
  hyphens: manual;
  color: var(--ink-mid);
}

.topic-tiles.topic-tiles--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* ── THEMENKACHELN ── */
.topic-tiles-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.7rem;
  margin-bottom: 1.2rem;
}

.topic-tiles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Wechsel zwischen Salbei und Beige gibt der Spalte Rhythmus,
   beide Toene bleiben bewusst sehr zurueckhaltend */
.topic-tile {
  background: var(--sage-4);
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
}

.topic-tile:nth-child(1) { background: var(--sage-1); }
.topic-tile:nth-child(2) { background: var(--sage-2); }
.topic-tile:nth-child(3) { background: var(--sage-3); }
.topic-tile:nth-child(4) { background: var(--sage-4); }

.topic-tile h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.topic-tile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.topic-tile li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-mid);
  text-align: left;
  padding-left: 1rem;
  position: relative;
}

.topic-tile li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--teal-text);
}

/* Salbeigruene Variante der Infobox */
.side-box--sage {
  background: var(--sage-2);
  border-color: #CFDAC0;
}

.side-box--sage .side-box-h3,
.side-box--sage h3 { border-bottom-color: #CFDAC0; }

.side-box li strong { color: var(--ink); font-weight: 600; }

/* Bild in der Nebenspalte – laeuft auf voller Spaltenbreite mit dem Text mit */
.aside-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1.6rem;
  border-radius: var(--radius);
}

/* ── FAQ ── */
.faq-list { margin-top: 1rem; }

.faq-item { border-bottom: 1px solid var(--rule); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.4rem 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--teal-text); }

.faq-icon {
  font-size: 1.1rem;
  color: var(--teal-text);
  flex-shrink: 0;
  transition: transform 0.3s;
  font-family: var(--font-sans);
  font-weight: 300;
}

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 0 1.4rem; font-size: 0.93rem; color: var(--ink-mid); max-width: 65ch; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Mehrere Absaetze in einer Antwort: linksbuendig wie der uebrige Kastentext */
.faq-answer-inner p { text-align: left; margin-bottom: 0.9rem; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

/* ── CONTACT ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }

/* Zwei Felder nebeneinander, auf schmalen Schirmen untereinander */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.2rem;
}

.req { color: var(--teal-text); }

.field-hint {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.6rem 0 1rem;
}

.form-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  min-width: 1.05rem;
  margin-top: 0.28rem;
  accent-color: var(--teal-text);
}

.form-check-label {
  font-size: 0.85rem;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink-mid);
}

.form-check-label a { color: var(--ink-mid); text-decoration: underline; text-underline-offset: 3px; }
.form-check-label a:hover { color: var(--teal-text); }

.form-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.btn-submit {
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

/* Bestaetigung nach dem Absenden */
.form-success {
  background: var(--sage-2);
  padding: 2rem 2.2rem;
  max-width: var(--measure);
  border-radius: var(--radius);
}

.form-success[hidden] { display: none; }

/* Der Fokus wandert per Skript hierher; der Rahmen waere nur optisches Rauschen */
.form-success:focus { outline: none; }

.form-success h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.form-success p {
  text-align: left;
  color: var(--ink-mid);
  margin-bottom: 0.8rem;
}

.form-success p:last-child { margin-bottom: 0; }

/* Fehlermeldung, falls der Versand scheitert */
.form-error {
  color: #8a2c22;
  background: #f6e4e0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
}

.form-error[hidden] { display: none; }

.form-error a { color: inherit; }

/* Honeypot-Feld gegen Spam: aus dem sichtbaren Bereich geschoben */
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  font-weight: 600;
}

input, textarea, select {
  /* Ohne appearance:none legt iOS eigene Rundungen, Verlaeufe und Schatten
     ueber die Felder; 1rem (16px) verhindert das Hineinzoomen beim Antippen */
  -webkit-appearance: none;
  appearance: none;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  border-radius: var(--radius-sm);
}

/* Das Auswahlfeld braucht nach appearance:none einen eigenen Pfeil */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235f6f52' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.7rem;
  padding-right: 2.6rem;
}

/* Ankreuzfeld: iOS zeichnet es sonst als eigenes rundes Element */
.form-check input[type="checkbox"] {
  -webkit-appearance: auto;
  appearance: auto;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal-text); }
textarea { min-height: 140px; resize: vertical; }

.contact-detail { margin-bottom: 1.8rem; }
.contact-detail-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-text);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.contact-detail-value { font-size: 0.95rem; color: var(--ink-mid); }
.contact-detail-value a { color: var(--ink-mid); text-decoration: underline; text-underline-offset: 3px; }
.contact-detail-value a:hover { color: var(--teal-text); }

/* ── PORTRAIT PLACEHOLDER ── */
.portrait {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(150deg, #d8d0c5, #c4bcaf);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── APPROACH ── */
.approach-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.approach-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--rule);
  line-height: 1;
}
.approach-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.approach-content p { font-size: 0.92rem; }

/* ── NOTICE BOX ── */
.notice {
  border-left: 3px solid var(--teal);
  padding: 1rem 1.2rem;
  background: var(--bg);
  font-size: 0.88rem;
  color: var(--ink-mid);
  margin-top: 1.5rem;
}

/* ── CRISIS BOX ── */
.crisis-box {
  background: var(--sage-2);
  border: none;
  padding: 1.6rem 1.8rem;
  margin-top: 1.5rem;
  border-radius: var(--radius);
}
.crisis-box h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 1rem;
}
.crisis-box p { font-size: 0.88rem; margin-bottom: 0.4rem; }

.crisis-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* Breite Variante am Seitenende: Text auf Lesebreite, Nummern in Spalten */
.crisis-box--wide {
  margin-top: 0;
  padding: 2.2rem 2.4rem;
}

.crisis-box--wide > p { max-width: var(--measure); }

.crisis-box--wide .crisis-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0.7rem 3rem;
  margin-top: 1.6rem;
}

.crisis-list li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-mid);
  text-align: left;
}

.crisis-list strong { color: var(--ink); font-weight: 600; }
.crisis-list a { color: var(--teal-text); text-decoration: none; }
.crisis-list a:hover { text-decoration: underline; }

/* ── RECHTSTEXTE ALS OVERLAY ── */
.legal-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(58,63,53,0.55);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.legal-overlay.open { display: flex; }

.legal-modal {
  background: var(--white);
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;   /* weiches Scrollen auf iOS */
  padding: 2.6rem 2.8rem;
  border-radius: var(--radius);
  position: relative;
}

.legal-modal h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  padding-right: 2.5rem;
}

.legal-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: left;
  margin-bottom: 2rem;
}

.legal-modal h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 1.8rem 0 0.6rem;
}

.legal-modal p {
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: left;
  -webkit-hyphens: manual;
  hyphens: manual;
  margin-bottom: 0.8rem;
}

.legal-modal a { color: var(--teal-text); text-decoration: underline; text-underline-offset: 3px; }
.legal-modal a:hover { color: var(--teal-text-dk); }

/* Noch zu ergaenzende Angaben bleiben unuebersehbar */
.legal-todo {
  background: #FBF1D8;
  box-shadow: 0 0 0 2px #FBF1D8;
  color: #6b5514;
  border-radius: 2px;
}

.legal-note {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem !important;
  color: var(--ink-soft);
}

.legal-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--white);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--ink-soft);
  line-height: 1;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
}

.legal-modal-close:hover { color: var(--ink); }

@media (max-width: 560px) {
  .legal-overlay { padding: 0.8rem; }
  .legal-modal { padding: 2rem 1.4rem; max-height: 90vh; }
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: #b0b4aa;
  padding-block: 4rem 2rem;
  padding-inline: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter)));
  font-size: 0.85rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

/* Beide Spalten sind gleich aufgebaut – Serifentitel, Text, Linkzeile –
   damit sie optisch dasselbe Gewicht bekommen */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem 5rem;
  align-items: start;
  text-align: left;
}

.footer-name,
.footer-col h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
  margin-bottom: 1.1rem;
}

.footer-lead {
  color: #b0b4aa;
  text-align: left;
  margin-bottom: 1.4rem;
  max-width: 46ch;
  -webkit-hyphens: manual;   /* sonst greift in Safari weiter das auto von oben */
  hyphens: manual;
}

/* Namenszeile mit Berufsbezeichnung: der Name traegt, die Bezeichnung ordnet
   sich leiser darunter ein; die Linie trennt Identitaet von Kontaktdaten */
.footer-person {
  color: #e4e8dc;
  font-weight: 600;
  text-align: left;
  max-width: 44ch;
  margin-bottom: 0;
  -webkit-hyphens: manual;
  hyphens: manual;
}

.footer-person span {
  display: block;
  margin-top: 0.35rem;
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #b0b4aa;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 44ch;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.9rem;
  align-items: start;
  line-height: 1.6;
}

.footer-icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.28rem;
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer a { color: #cfd3c8; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--white); text-decoration: underline; }

/* Impressum und Datenschutz stehen in der Fusszeile, durch einen groesseren
   Abstand und Unterstreichung von der Seitennavigation abgesetzt */
.footer-legal {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-legal:first-of-type { margin-left: 1rem; }

.footer-bottom {
  border-top: 1px solid #4a4f45;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

/* ── CRISIS FAB & OVERLAY ── */
.crisis-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}
.crisis-fab:hover { background: var(--teal-dk); transform: translateY(-2px); }

/* Ueber dem dunklen Footer dreht sich die Farbe um, sonst verschwindet
   der Knopf im Hintergrund (Klasse wird von main.js gesetzt) */
.crisis-fab--on-dark {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.crisis-fab--on-dark:hover { background: var(--sage-1); color: var(--ink); }

.crisis-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(58,63,53,0.55);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.crisis-overlay.open { display: flex; }

.crisis-modal {
  background: var(--white);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.2rem;
  border-radius: var(--radius);
  position: relative;
}
.crisis-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}
.crisis-modal > p {
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}
.crisis-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--ink-soft);
  line-height: 1;
}
/* Jede Gruppe als Kachel, von dunkel nach hell abgestuft – derselbe Verlauf
   wie bei „Womit Sie zu mir kommen koennen" */
.crisis-group {
  padding: 1.2rem 1.4rem 0.6rem;
  border-radius: var(--radius);
  margin-top: 0.8rem;
}
.crisis-group:nth-of-type(1) { background: var(--sage-1); }
.crisis-group:nth-of-type(2) { background: var(--sage-2); }
.crisis-group:nth-of-type(3) { background: var(--sage-3); }

.crisis-group-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

/* Notrufe 112 / 144 als grosse Anrufknoepfe in der ersten Kachel */
.crisis-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0.5rem 0 0.6rem;
}
.crisis-quick-btn {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s;
}
.crisis-quick-btn:hover { background: var(--sage-4); }
.crisis-quick-num {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--teal-text-dk);
}
.crisis-quick-label { font-size: 0.95rem; font-weight: 600; }

/* Links wer und wann, rechts die Nummer – die Liste laesst sich so von oben
   nach unten ueberfliegen */
.crisis-list { list-style: none; margin: 0; padding: 0; }
.crisis-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1.2rem;
  padding: 0.65rem 0;
}
.crisis-row + .crisis-row { border-top: 1px solid rgba(58,63,53,0.14); }
.crisis-row-name { display: block; font-size: 0.93rem; font-weight: 600; color: var(--ink); }
.crisis-row-meta { display: block; font-size: 0.83rem; color: var(--ink-mid); margin-top: 0.15rem; }
.crisis-row-tel {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--teal-text-dk);
  text-decoration: none;
  white-space: nowrap;
}
.crisis-row-tel:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */

/* Kleine Notebooks: Navigation entzerren, bevor sie gedraengt wirkt.
   Der Namensblock braucht 448px, die Menueleiste 634px – unter ca. 1200px
   passen beide nicht mehr nebeneinander. */
@media (max-width: 1350px) {
  nav { gap: 1.5rem; }
  nav ul { gap: 1.4rem; }
  .nav-brand-role { font-size: 0.78rem; }
  .nav-brand-name { font-size: 1.25rem; }
}

/* Tablet: Nebenspalte unter den Text, statt ihn auf 400px zu quetschen */
@media (max-width: 1024px) {
  .two-col, .two-col-wide { grid-template-columns: 1fr; gap: 3rem; }
  .two-col > div:last-child,
  .two-col-wide > div:last-child { max-width: 420px; }
  .spec-grid, .spec-grid-2 { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }

  /* Praxisbild und Kurzuebersicht eroeffnen die Seite, sobald die Spalten
     untereinander stehen – sonst haengt das Bild am Seitenende */
  .services-grid > div:last-child {
    order: -1;
    max-width: none;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
  .aside-photo { margin-bottom: 0; }

  /* Die Themenkacheln nutzen unter der Textspalte die volle Breite,
     statt als schmale Saeule mit viel Leerraum daneben zu stehen */
  .two-col-wide > div.topic-col { max-width: none; }
  .topic-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* Menueleiste passt nicht mehr neben den Namensblock: Hamburger uebernimmt */
/* Knapp ueber dem Hamburger-Umbruch: Abstaende enger, damit der Sprachumschalter Platz hat */
@media (max-width: 1260px) and (min-width: 1151px) {
  nav { gap: 1rem; }
  nav ul { gap: 1.05rem; }
  .nav-lang { margin-left: -0.3rem; }
}

@media (max-width: 1150px) {
  nav ul { display: none; }
  nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 1rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--rule);
    gap: 0;
    z-index: 99;
  }
  nav ul.open li a {
    display: block;
    padding: 0.75rem 0;   /* Tippflaeche auf ca. 44px */
  }
  nav ul.open .nav-cta { display: block; padding: 0.75rem 1.3rem !important; }
  nav ul.open .nav-lang { padding-top: 0.5rem; }
  nav ul.open .nav-lang a { display: inline-block; }
  .hamburger { display: block; }
  nav { align-items: center; }
}

@media (max-width: 800px) {
  .spec-grid, .spec-grid-2 { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-card { padding: 2.2rem 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* untereinander trennt eine Linie die Identitaet von den Kontaktdaten */
  .footer-person { padding-bottom: 1.8rem; border-bottom: 1px solid #4a4f45; }
  .footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 2.2rem; }
  .footer-legal:first-of-type { margin-left: 0; }
}

/* Erst auf dem Handy wird der Namensblock auf zwei Zeilen gekuerzt */
@media (max-width: 700px) {
  .nav-brand-role { display: none; }
  .nav-brand-name { font-size: 1.15rem; }
}

@media (max-width: 560px) {
  .spec-grid, .spec-grid-2 { grid-template-columns: 1fr; }
  /* Zu wenig Zeichen pro Zeile fuer Blocksatz – er reisst sonst Loecher.
     Ohne Blocksatz braucht es auch die automatische Silbentrennung nicht mehr;
     sie erzeugt auf schmalen Schirmen sonst Trennstrich um Trennstrich */
  p, blockquote p {
    text-align: left;
    -webkit-hyphens: manual;
    hyphens: manual;
  }
  section { padding: 3rem 0; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .side-box { padding: 1.5rem; }
  .crisis-box--wide { padding: 1.5rem; }
  .crisis-row { flex-direction: column; }
  .crisis-quick-btn { flex-direction: column; gap: 0.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .home-hero-actions { flex-direction: column; align-items: stretch; }
  .home-hero-actions .btn { text-align: center; }
  .form-success { padding: 1.5rem 1.4rem; }

  /* Die Farbflaechen behalten auf jedem Geraet dieselbe Form: mit Seitenabstand
     und abgerundet – kein randbuendiger Sonderfall mehr auf dem Handy */
  .page-hero--card { padding: 1.5rem 0 1.5rem; }
  .page-hero--band { padding: 2.2rem 0 2rem; }
  .hero-card { padding: 1.7rem 1.4rem; }
  .topic-tiles { display: flex; flex-direction: column; }
  .topic-tiles.topic-tiles--grid { display: grid; grid-template-columns: 1fr; }

  /* Auf dem Handy wieder untereinander */
  .services-grid > div:last-child { display: block; }
  .aside-photo { margin-bottom: 1.6rem; }
  .two-col-wide > div > p.statement {
    max-width: none;
    padding: 1.3rem 1.4rem;
  }
  .topic-tile { padding: 1.2rem 1.3rem; }
}

/* ── ÜBER MICH ── */
.page-about .two-col { align-items: stretch; }

/* Einstiegstext steht in der Textspalte des Rasters, die Foto-Karte in der
   Nebenspalte – beide beginnen dadurch auf derselben Hoehe. */
.about-intro {
  max-width: var(--measure);
  margin-bottom: 4.5rem;      /* Abstand zum Werdegang darunter */
}

/* Begruessung traegt die Seite (das frueher hier stehende "Über mich"
   ist entfallen) – bewusst grosszuegig, Obergrenze bei ca. 1400px */
.about-greeting {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

/* Vorspann: kleiner als die Begruessung, merklich groesser als Fliesstext.
   text-align setzt den globalen Blocksatz zurueck – in einem so kurzen
   Absatz reisst er sonst Loecher in die Zeilen. */
.about-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-mid);
  text-align: left;
  margin-bottom: 1rem;
}

/* Zweiter Vorspannabsatz: gleiche Anmutung, etwas leiser */
.about-lead-sub {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 0.92rem + 0.3vw, 1.12rem);
  line-height: 1.7;
  color: var(--ink-mid);
  text-align: left;
  margin-bottom: 0;
}

/* Schlusssatz ohne Flaeche: die Betonung traegt allein die Schrift –
   dieselbe Serifenschrift wie darueber, nur groesser und aufrecht */
.about-closing {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.05rem + 1vw, 2rem);
  line-height: 1.5;
  color: var(--teal-text-dk);  /* dunkelstes Gruen der Palette: gehoert klar
                                  zur Seite, traegt aber mehr Gewicht als der
                                  Ton von Buttons und Links */
  text-align: left;
  text-wrap: balance;          /* gleichmaessig gefuellte Zeilen */
  margin: 4.5rem 0 0;          /* Abstand zum Absatz darueber */
}

@media (max-width: 560px) {
  .about-intro { margin-bottom: 3rem; }
  .about-closing { margin-top: 3rem; }
}

/* Foto + Werdegang als eine Karte, die beim Scrollen mitläuft */
.about-card {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.about-card img,
.about-card .side-box {
  display: block;
  width: 100%;
}

.about-card img {
  border: 1px solid var(--rule);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Box sitzt fugenlos als Sockel unter dem Foto */
.about-card .side-box {
  border-top: none;
  padding: 1.6rem 1.8rem 1.8rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Ab Tablet steht die Karte im Fluss statt zu kleben */
@media (max-width: 1024px) {
  .page-about .about-aside { max-width: 420px; }
  .about-card { position: static; }
}

/* Auf Tabletbreite stehen Foto und Kurzuebersicht nebeneinander und nutzen
   die Breite, statt als schmale Saeule mit viel Leerraum daneben zu haengen */
@media (max-width: 1024px) and (min-width: 601px) {
  .page-about .two-col > div.about-aside { max-width: none; }
  .about-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.6rem;
    align-items: start;
  }
  .about-card img { border-bottom: 1px solid var(--rule); border-radius: var(--radius); }
  .about-card .side-box { border-top: 1px solid var(--rule); border-radius: var(--radius); }
}

@media (max-width: 560px) {
  .page-about .about-aside { max-width: 340px; }
}

/* ── STATISCHES SEITENBILD ── */
.page-image {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}

.page-image img {
  display: block;
  width: 100%;
  height: 42vh;
  min-height: 280px;
  max-height: 460px;
  object-fit: cover;
}

@media (max-width: 800px) {
  .page-image img { height: 44vw; min-height: 200px; }
}

/* Hochformat: das Bild wird ganz gezeigt statt in das Breitband geschnitten */
.page-image--portrait {
  border-bottom: none;
  padding: 1.25rem var(--gutter) 1.75rem;
}

.page-image--portrait img {
  width: auto;
  height: auto;
  max-width: min(100%, 460px);
  min-height: 0;
  max-height: 72vh;
  margin-inline: auto;
  object-fit: contain;
  border: none;
}

@media (max-width: 800px) {
  .page-image--portrait { padding: 1rem var(--gutter) 1.5rem; }
  .page-image--portrait img { max-width: min(100%, 360px); max-height: 60vh; }
}

/* Einspaltiger Textblock (ersetzt bildbegleitete Spalten) */
.text-block { max-width: 68ch; }
.text-block p { max-width: 68ch; }

.intro-claim {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 1.8rem;
}

/* Startseite: der Leitsatz traegt die Seite */
h1.intro-claim {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 0;
}

/* Hinweis unter den Themenkacheln – zentriert, in der Anmutung der Zwischentitel */
.spec-note {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
  max-width: 62ch;
  margin: 3.5rem auto 0;
}

/* ── BEWEGUNG REDUZIEREN ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .faq-answer { transition: none; }
}

/* ── DRUCK ── */
@media print {
  nav,
  .crisis-fab,
  .crisis-overlay,
  .skip-link,
  .contact-form,
  .footer-links,
  .btn,
  .page-image { display: none !important; }

  @page { margin: 15mm; }

  html { font-size: 11pt; }

  body {
    background: #fff;
    color: #000;
    font-weight: 400;
  }

  .wrap {
    max-width: none;
    padding-inline: 0;
  }

  section,
  .page-hero {
    padding: 1.2rem 0;
    border-bottom: none;
  }

  h1, h2, h3, p, li,
  .contact-detail-value,
  .section-label,
  .contact-detail-label,
  .crisis-box h4,
  .side-box h3 { color: #000; }

  .side-box,
  .notice,
  .crisis-box {
    background: none;
    border: 1pt solid #999;
  }

  /* Alle Antworten aufklappen, damit nichts fehlt */
  .faq-answer {
    max-height: none !important;
    overflow: visible !important;
  }
  .faq-icon { display: none; }

  .two-col, .two-col-wide { display: block; }
  .about-card { position: relative; }

  .side-box,
  .crisis-row,
  .approach-item,
  .faq-item,
  .spec-item { break-inside: avoid; page-break-inside: avoid; }

  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }

  footer {
    background: none;
    color: #000;
    border-top: 1pt solid #999;
    padding-inline: 0;
  }
  .footer-name { color: #000; }

  /* Keine URL-Ausgabe hinter Links: E-Mail und Telefon stehen auf der
     Kontaktseite bereits als Klartext im Linktext selbst. */
  a { text-decoration: none; color: #000; }
}

/* ── FAKTENLISTE (Infobox "Auf einen Blick") ── */
.fact-list dt {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-text);
  margin-bottom: 0.25rem;
}

.fact-list dd {
  font-size: 0.92rem;
  color: var(--ink-mid);
  margin-bottom: 1.1rem;
}

.fact-list dd:last-child { margin-bottom: 0; }

/* ── KARTENAUSSCHNITT ── */
/* ── DIREKTKONTAKT-KACHELN ── */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 4rem;
}

.contact-tile {
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1.5rem 1.6rem;
  transition: background 0.2s, border-color 0.2s;
  border-radius: var(--radius);
}

.contact-tile:hover,
.contact-tile:focus-visible {
  background: var(--sage-4);
  border-color: var(--sage);
}

.contact-tile-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.8rem;
  fill: none;
  stroke: var(--teal-text);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-tile-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.contact-tile-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
  /* lange E-Mail-Adressen brechen um, statt aus der Kachel zu laufen;
     word-break greift auch in aelteren Safari-Versionen */
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .contact-strip { grid-template-columns: 1fr; gap: 0.9rem; margin-bottom: 3rem; }
  .contact-tile { padding: 1.2rem 1.3rem; }
}

/* Karte als eigenes Band: Plan links, Adresse und Routenlinks rechts */
.map-section { background: var(--bg); }

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: start;
  margin-top: 1.8rem;
}

.map-info .contact-detail-value { margin-top: 0.4rem; }
.map-info .map-links { margin-top: 1.2rem; line-height: 1.9; }

.map-intro { max-width: var(--measure); margin-top: 0.8rem; }
.map-tiles { margin-top: 2rem; }
/* Weisse Kacheln mit feinem Rand – wie die Kontaktkacheln oben auf der Seite */
.map-tiles .topic-tile:nth-child(n) {
  background: var(--white);
  border: 1px solid var(--rule);
}
.topic-tile p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-mid);
  text-align: left;
  -webkit-hyphens: manual;
  hyphens: manual;
}

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

.map-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  /* aspect-ratio kennt Safari erst ab iOS 15 */
  border: 1px solid var(--rule);
  background: var(--bg);
  overflow: hidden;
  border-radius: var(--radius);
}

@supports not (aspect-ratio: 16 / 10) {
  .map-frame { height: 0; padding-top: 62.5%; }
}

/* Platzhalter, bis die Karte per Klick geladen wird */
.map-consent {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--sage-4);
}

.map-consent p {
  max-width: 32rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-mid);
  text-align: center;
  margin: 0;
}

.map-consent .btn { cursor: pointer; font-family: var(--font-sans); }

.map-frame iframe {
  position: absolute;
  /* inset einzeln geschrieben – aeltere Safari-Versionen kennen die Kurzform nicht */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-links {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.7rem;
  text-align: left;
}

.map-links a {
  color: var(--teal-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.map-links a:hover { color: var(--teal-text-dk); }

.contact-detail-value a[href*="maps"] {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.contact-detail-value a[href*="maps"]:hover { border-bottom-color: var(--teal-text); }

@media (max-width: 560px) {
  .map-frame { aspect-ratio: 4 / 3; }
}

@media print {
  .map-block { display: none; }
}
