/* Kanzleiseite Ramona Kersebaum. Warmes Papierweiß, Marine, ein Hauch Burgund,
   Serifen in den Überschriften, Systemschriften im Text: keine externen Schriften,
   keine Skripte von Dritten. Handy zuerst, ab 900 px zwei- und dreispaltig. */

:root {
  --hintergrund: #F4EFE6;
  --flaeche: #FFFFFF;
  --tinte: #0E1620;
  --gedeckt: #5C6573;
  --linie: #D9D2C2;
  --marine: #1B2A41;
  --marine-tief: #0C1626;
  --marine-hell: #E7ECF3;
  --burgund: #7A2E2E;
  --burgund-hell: #F3E6E1;
  --serif: Georgia, "Times New Roman", "Liberation Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 3px;
  --schatten: 0 1px 0 rgba(14, 22, 32, .04), 0 10px 30px -14px rgba(14, 22, 32, .16);
  --schatten-gross: 0 8px 40px -12px rgba(14, 22, 32, .32);
  --breite: 1180px;
  --rand: 16px;
  --abstand: clamp(3rem, 7vw, 5.5rem);
}
@media (min-width: 720px) { :root { --rand: 28px; } }
@media (min-width: 1100px) { :root { --rand: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--tinte);
  font: 1.05rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--marine); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
  color: var(--tinte);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
figure { margin: 0; }
.innen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.schmal { max-width: 760px; }
.klein { font-size: .92rem; }
.gedeckt { color: var(--gedeckt); }
.sprung { position: absolute; left: -9999px; top: 1rem; background: var(--marine); color: #fff; padding: .5rem 1rem; z-index: 1000; }
.sprung:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--burgund); outline-offset: 3px; }

/* Vorzeile über Überschriften */
.vorzeile {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--burgund); margin: 0 0 1rem;
}
.vorzeile::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .7; }
.einleitung { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--gedeckt); max-width: 62ch; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--marine); color: #fff; text-decoration: none;
  font: 500 1rem/1.2 var(--sans); letter-spacing: .01em;
  padding: .95rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--marine);
  cursor: pointer; transition: background .12s ease, transform .12s ease, border-color .12s ease;
}
.knopf:hover { background: var(--marine-tief); border-color: var(--marine-tief); transform: translateY(-1px); }
.knopf-zweit { background: transparent; color: var(--marine); }
.knopf-zweit:hover { background: var(--marine-hell); border-color: var(--marine); }
.knopf-hell { background: #fff; color: var(--marine); border-color: #fff; }
.knopf-hell:hover { background: var(--burgund-hell); border-color: var(--burgund-hell); }
.knopf-rahmen-hell { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.knopf-rahmen-hell:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.knopf-klein { padding: .6rem 1.1rem; font-size: .95rem; }
.knopf:disabled { opacity: .6; cursor: default; transform: none; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 239, 230, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--linie);
  transition: box-shadow .2s ease;
}
.kopf-schatten { box-shadow: 0 8px 28px -20px rgba(14, 22, 32, .45); }
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; position: relative; }
.logo { display: block; flex: none; }
.logo img { height: 60px; width: auto; }
.navi ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.7rem; }
.navi a {
  text-decoration: none; color: var(--tinte); font-weight: 500; font-size: 1rem;
  padding: .3rem 0; border-bottom: 2px solid transparent; transition: border-color .12s ease;
}
.navi a:hover, .navi a[aria-current="page"] { border-bottom-color: var(--burgund); }
.navi-telefon { display: none; }
.kopf-rechts { display: flex; align-items: center; gap: 1.1rem; }
.telefon { text-decoration: none; font-weight: 600; color: var(--marine); white-space: nowrap; }
.menue-knopf { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; position: relative; cursor: pointer; color: var(--tinte); }
.menue-knopf span { position: absolute; left: 10px; top: 21px; width: 24px; height: 2px; background: currentColor; border-radius: 1px; transition: background .2s ease; }
.menue-knopf span::before, .menue-knopf span::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--tinte); border-radius: 1px;
  transition: transform .2s ease;
}
.menue-knopf span::before { top: -8px; }
.menue-knopf span::after { top: 8px; }
.menue-offen .menue-knopf span { background: transparent; }
.menue-offen .menue-knopf span::before { transform: translateY(8px) rotate(45deg); }
.menue-offen .menue-knopf span::after { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 1099px) { .telefon { display: none; } .navi ul { gap: 1.3rem; } }
@media (max-width: 899px) {
  .kopf-zeile { min-height: 66px; }
  .logo img { height: 48px; }
  .navi {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--hintergrund); border-bottom: 1px solid var(--linie);
    padding: .5rem var(--rand) 1.5rem; box-shadow: 0 24px 40px -24px rgba(14, 22, 32, .4);
  }
  .menue-offen .navi { display: block; }
  .navi ul { flex-direction: column; gap: 0; }
  .navi a { display: block; padding: .85rem 0; font-family: var(--serif); font-size: 1.35rem; border-bottom: 1px solid var(--linie); }
  .navi a[aria-current="page"] { border-bottom-color: var(--linie); color: var(--burgund); }
  .navi-telefon { display: block; }
  .navi-telefon a { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--marine); border-bottom: 0; padding-top: 1.1rem; }
  .menue-knopf { display: inline-block; }
}
@media (max-width: 559px) { .kopf-knopf { display: none; } }

/* Bühne oben auf der Startseite */
.buehne { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.buehne::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 96% -10%, rgba(122, 46, 46, .08), transparent 60%),
    radial-gradient(760px 520px at -6% 110%, rgba(27, 42, 65, .08), transparent 60%);
}
.buehne-raster { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.buehne h1 { max-width: 16ch; }
.buehne-knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.2rem; }
.buehne-bild { position: relative; margin-left: auto; width: min(100%, 460px); }
.buehne-bild img {
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%;
  border-radius: var(--radius); box-shadow: var(--schatten-gross); filter: saturate(.96);
}
.buehne-bild::before {
  content: ""; position: absolute; right: -16px; bottom: -16px; width: 70%; height: 70%;
  border: 1px solid var(--burgund); opacity: .35; border-radius: var(--radius);
}
.buehne-bild figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(12, 22, 38, .85); color: #fff; padding: .55rem .9rem; font-size: .88rem; border-radius: var(--radius);
}
.fakten {
  list-style: none; margin: 0; padding: 1.4rem 0 0; border-top: 1px solid var(--linie);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem;
}
.fakten strong { display: block; font: 500 1.2rem/1.25 var(--serif); }
.fakten span { font-size: .9rem; color: var(--gedeckt); }
@media (max-width: 899px) {
  .buehne-raster { grid-template-columns: 1fr; gap: 2.5rem; }
  .buehne-bild { margin-left: 0; width: 100%; }
  .buehne-bild img { aspect-ratio: 3 / 2; object-position: 50% 22%; }
}
@media (max-width: 559px) { .fakten { gap: .9rem 1rem; } .fakten strong { font-size: 1.1rem; } }

/* Abschnitte */
.abschnitt { padding: var(--abstand) 0; }
.abschnitt-weiss { background: var(--flaeche); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.abschnitt-marine { background: var(--marine); color: #fff; position: relative; overflow: hidden; }
.abschnitt-marine::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background:
    radial-gradient(520px 260px at 90% -10%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(420px 240px at 8% 110%, rgba(255, 255, 255, .3), transparent 60%);
}
.abschnitt-marine > * { position: relative; }
.abschnitt-marine h2, .abschnitt-marine h3 { color: #fff; }
.abschnitt-marine p { color: #C9D2E2; }
.abschnitt-marine .vorzeile { color: rgba(255, 255, 255, .7); }
.abschnitt-marine .einleitung { color: #C9D2E2; }
.abschnitt-knapp { padding-top: clamp(1rem, 3vw, 2rem); }
.abschnitt-kopf { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.abschnitt-kopf h2 { margin-bottom: .4em; }
.abschnitt-kopf p:last-child { margin-bottom: 0; }
.seitenkopf { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.seitenkopf h1 { max-width: 22ch; }
.seitenkopf .einleitung:last-child { margin-bottom: 0; }

/* Kacheln mit Bild */
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.kachel {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kachel:hover { transform: translateY(-3px); box-shadow: 0 2px 0 rgba(14, 22, 32, .04), 0 22px 44px -22px rgba(14, 22, 32, .3); border-color: rgba(27, 42, 65, .25); }
.kachel img { aspect-ratio: 3 / 2; object-fit: cover; }
.kachel img.fokus-oben { object-position: 50% 30%; }
.kachel-text { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.kachel h3 { margin-bottom: .5rem; }
.kachel p { color: var(--gedeckt); flex: 1; margin-bottom: 1.2rem; }
.weiter { font-weight: 600; color: var(--marine); text-decoration: none; }
.weiter::after { content: " →"; }
.kachel:hover .weiter { text-decoration: underline; }
@media (max-width: 899px) { .kacheln { grid-template-columns: 1fr; } .kachel img { aspect-ratio: 2 / 1; } }

/* Dreierreihen: Vorteile, Schritte */
.dreier { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.vorteil { border-top: 2px solid var(--burgund); padding-top: 1.1rem; }
.vorteil h3 { font-size: 1.25rem; }
.vorteil p { color: var(--gedeckt); margin: 0; }
.schritt-nr { font: 500 3rem/1 var(--serif); color: var(--burgund); margin-bottom: .6rem; }
.ablauf h3 { font-size: 1.25rem; }
.ablauf p { color: var(--gedeckt); margin: 0; }
.hinweis {
  border-left: 3px solid var(--burgund); background: var(--burgund-hell);
  padding: 1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 2.2rem; max-width: 820px;
}
.hinweis p { margin: 0; }
.hinweis p + p { margin-top: .6rem; }
@media (max-width: 899px) { .dreier { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Zweispaltig: Text und Bild */
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.zweispaltig.text-breit { grid-template-columns: 1.15fr .85fr; }
.zweispaltig.oben { align-items: start; }
.bildrahmen img { border-radius: var(--radius); box-shadow: var(--schatten-gross); aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.96); }
.bildrahmen.hoch img { aspect-ratio: 3 / 4; object-position: 50% 15%; }
.breitbild { margin-top: clamp(1rem, 3vw, 2rem); }
.breitbild img { aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); box-shadow: var(--schatten-gross); }
@media (max-width: 899px) {
  .zweispaltig, .zweispaltig.text-breit { grid-template-columns: 1fr; }
  .bildrahmen { order: -1; }
  .bildrahmen.hoch img { aspect-ratio: 4 / 3; object-position: 50% 20%; }
  .breitbild img { aspect-ratio: 16 / 9; }
}

/* Listen mit Haken, Karten mit Listen */
.haken { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.haken li { position: relative; padding-left: 1.9rem; margin: .5rem 0; }
.haken li::before {
  content: ""; position: absolute; left: .15rem; top: .5em; width: .9rem; height: .45rem;
  border-left: 2px solid var(--burgund); border-bottom: 2px solid var(--burgund); transform: rotate(-45deg);
}
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.karten-zwei { grid-template-columns: repeat(2, 1fr); }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1.6rem 1.5rem; }
.karte h3 { font-size: 1.2rem; margin-bottom: .8rem; }
.karte p:last-child, .karte .haken { margin-bottom: 0; }
.karte .haken li { margin: .4rem 0; font-size: .98rem; }
.karte .vorzeile { margin-bottom: .5rem; }
@media (max-width: 899px) { .karten, .karten-zwei { grid-template-columns: 1fr; } }

/* Sprungmarken unter einer Seitenüberschrift */
.sprungmarken { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.sprungmarken a {
  display: inline-block; padding: .5rem 1rem; border: 1px solid var(--linie); border-radius: 999px;
  text-decoration: none; background: var(--flaeche); font-size: .95rem;
}
.sprungmarken a:hover { border-color: var(--marine); }

/* Häufige Fragen */
.fragen { max-width: 820px; }
.frage { border-top: 1px solid var(--linie); }
.frage:last-child { border-bottom: 1px solid var(--linie); }
.frage summary { list-style: none; cursor: pointer; padding: 1.1rem 2.6rem 1.1rem 0; position: relative; font: 500 1.2rem/1.3 var(--serif); }
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font: 300 1.7rem/1 var(--sans); color: var(--burgund); }
.frage[open] summary::after { content: "–"; }
.frage .antwort { padding: 0 0 1.3rem; color: var(--gedeckt); max-width: 70ch; }
.frage .antwort p:last-child { margin: 0; }

/* Formular */
.formular {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: clamp(1.25rem, 3vw, 2.25rem); position: relative;
}
.fortschritt {
  display: flex; gap: 1.5rem; list-style: none; margin: 0 0 1.6rem; padding: 0 0 1rem; border-bottom: 1px solid var(--linie);
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gedeckt);
}
.fortschritt .aktiv { color: var(--marine); font-weight: 700; }
.fortschritt .erledigt { color: var(--burgund); }
.formular:not(.mit-js) .fortschritt, .formular:not(.mit-js) [data-weiter], .formular:not(.mit-js) [data-zurueck] { display: none; }
.formular:not(.mit-js) .schritt + .schritt { border-top: 1px solid var(--linie); padding-top: 1.5rem; margin-top: .5rem; }
.feld { margin: 0 0 1.35rem; }
.feld > label, .feld legend { display: block; font-weight: 600; margin-bottom: .45rem; padding: 0; }
.pflicht { color: var(--burgund); }
.hilfe { font-size: .9rem; color: var(--gedeckt); margin: 0 0 .55rem; }
.feld input[type="text"], .feld input[type="email"], .feld input[type="tel"], .feld input[type="date"], .feld select, .feld textarea {
  width: 100%; font: inherit; color: var(--tinte); padding: .85rem 1rem;
  border: 1px solid var(--linie); border-radius: var(--radius); background: #fff;
}
.feld select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--gedeckt) 50%), linear-gradient(135deg, var(--gedeckt) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.feld textarea { resize: vertical; min-height: 9rem; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--marine); outline-offset: 0; border-color: var(--marine); }
fieldset { border: 0; padding: 0; margin: 0 0 1.35rem; min-width: 0; }
.wahl { display: flex; flex-wrap: wrap; gap: .6rem; }
.wahl label { position: relative; cursor: pointer; margin: 0; font-weight: 500; }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; left: .6rem; top: 50%; margin: 0; }
.wahl span { display: inline-block; padding: .7rem 1.15rem; border: 1px solid var(--linie); border-radius: 999px; background: #fff; transition: background .12s ease, border-color .12s ease, color .12s ease; }
.wahl span:hover { border-color: var(--marine); }
.wahl input:checked + span { background: var(--marine); border-color: var(--marine); color: #fff; }
.wahl input:focus-visible + span { outline: 2px solid var(--burgund); outline-offset: 2px; }
.wahl-block { flex-direction: column; gap: .5rem; }
.wahl-block label { display: block; }
.wahl-block span { display: block; border-radius: var(--radius); }
.feld-fehler input, .feld-fehler select, .feld-fehler textarea, .feld-fehler .wahl span { border-color: var(--burgund); }
.fehltext { color: var(--burgund); font-size: .92rem; margin: .4rem 0 0; }
.fehlerkasten { border-left: 3px solid var(--burgund); background: var(--burgund-hell); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5rem; }
.fehlerkasten p:last-child { margin: 0; }
.zustimmung { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.zustimmung input { flex: none; margin: .3rem 0 0; width: 1.15rem; height: 1.15rem; accent-color: var(--marine); }
.formular-knoepfe { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--linie); }
.formular-knoepfe [data-zurueck] { margin-right: auto; }
.formular-knoepfe [data-weiter], .formular-knoepfe [data-senden] { margin-left: auto; }
.honig { position: absolute; left: -9999px; top: 0; }
.kontakt-raster { display: grid; grid-template-columns: 1.4fr .9fr; gap: 2.5rem; align-items: start; }
.kontakt-kasten { background: var(--marine); color: #fff; padding: 2rem; border-radius: var(--radius); position: sticky; top: 100px; }
.kontakt-kasten h3 { color: #fff; }
.kontakt-kasten p { color: #C9D2E2; }
.kontakt-kasten a { color: #fff; }
.kontakt-kasten .gross { font: 500 1.35rem/1.3 var(--serif); color: #fff; }
@media (max-width: 899px) { .kontakt-raster { grid-template-columns: 1fr; } .kontakt-kasten { position: static; } }

/* Fuß */
.fuss { background: var(--marine-tief); color: #C9D2E2; padding: 3rem 0 1.6rem; }
.fuss a { color: #fff; }
.fuss-raster { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.fuss-name { font: 500 1.25rem/1.3 var(--serif); color: #fff; margin-bottom: .6rem; }
.fuss h4 { color: #fff; font: 600 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .7rem; }
.fuss ul + h4 { margin-top: 1.4rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin: .35rem 0; }
.fuss-unten { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.2rem; padding-top: 1.2rem; font-size: .86rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; }
@media (max-width: 899px) { .fuss-raster { grid-template-columns: 1fr; gap: 1.6rem; } }

/* Rechtstexte */
.rechtstext { max-width: 760px; }
.rechtstext h2 { font-size: 1.5rem; margin-top: 2rem; }
.rechtstext h3 { font-size: 1.15rem; margin-top: 1.4rem; }
.rechtstext ul { padding-left: 1.2em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kachel, .knopf, .kopf, .navi a, .wahl span { transition: none; }
}
@media print {
  .kopf, .fuss, .buehne-knoepfe, .formular-knoepfe, .sprung, .knoepfe { display: none !important; }
  body { background: #fff; }
  .abschnitt, .buehne, .seitenkopf { padding: 1rem 0; }
}
