@font-face { font-family: Montserrat; src: url(fonts/montserrat.woff) format("woff"); font-weight: 100 900; font-display: swap; }
@view-transition { navigation: auto; }
@property --r { syntax: '<length>'; inherits: false; initial-value: 0px; } /* Radius der Farbe: Nur eine angemeldete Größe lässt sich sanft animieren. */
/* Rein und zurück sind Spiegelbilder: Erst geht die alte Seite, dann kommt die neue, zwei Textseiten liegen nie übereinander.
   Die beiden Kurven sind die exakt geteilte Kurve --gleiten über 800 ms. Die Kopfzeile bleibt stehen. */
::view-transition { background: var(--stein) url(img/marmor.webp) top center / 1054px; }
:root:has(.recht)::view-transition-old(root) { animation: var(--weg) both nach-links; }
:root:has(.recht)::view-transition-new(root) { animation: var(--her) both von-rechts; }
:root:not(:has(.recht))::view-transition-old(root) { animation: var(--weg) both nach-rechts; }
:root:not(:has(.recht))::view-transition-new(root) { animation: var(--her) both von-links; }
::view-transition-new(leiste):only-child { animation: var(--her) both von-rechts; }
::view-transition-old(leiste):only-child { animation: var(--weg) both nach-rechts; }
@keyframes nach-links { to { opacity: 0; transform: translateX(-40px); } }
@keyframes von-rechts { from { opacity: 0; transform: translateX(40px); } }
@keyframes nach-rechts { to { opacity: 0; transform: translateX(40px); } }
@keyframes von-links { from { opacity: 0; transform: translateX(-40px); } }
.kopf { view-transition-name: kopf; }
.leiste { view-transition-name: leiste; }

:root {
  color-scheme: light; /* Die Seite hat nur eine helle Gestaltung, auch wenn das Handy im Dunkelmodus läuft. */
  --tinte: #1d1a15;
  --stein: #f5f0e6;
  --flaeche: #fffdf8;
  --gold: #bc9744;
  --gold-text: #755614;
  --gold-logo: #a9812f;
  --fehler: #9b3a26;
  --linie: #c9bfae;
  --rand: clamp(20px, 3vw, 40px);
  --schrift: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --raus: cubic-bezier(.23, 1, .32, 1);
  --gleiten: cubic-bezier(.65, 0, .2, 1);
  --weg: 180ms cubic-bezier(.732, 0, .845, .5);
  --her: 260ms cubic-bezier(.13, .472, .234, 1) 160ms;
  --marke: 150px;
  --gross: 460px;
  --docke-x: calc(var(--rand) + var(--marke) * .186);
  --docke-y: calc(11px + env(safe-area-inset-top, 0px));
  --docke-s: .2168; /* Buchstabenbreite im Kopf geteilt durch --gross */
}

* { box-sizing: border-box; }
/* Die Seite läuft nur senkrecht: Nichts darf seitlich herausragen und kein Wischen sie seitlich verschieben. Zoomen mit zwei Fingern bleibt möglich. */
html { overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y pinch-zoom; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  overscroll-behavior-x: none;
  color: var(--tinte);
  background: var(--stein) url(img/marmor.webp) top center / 1054px;
  font: 400 16px/1.5 var(--schrift);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
a { color: inherit; }
input, textarea { caret-color: var(--gold-logo); }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
::selection { background: var(--gold); color: var(--tinte); }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.am-stueck { white-space: nowrap; }
.platzhalter { background: none; color: inherit; }
.sprung { position: absolute; left: -999px; top: 8px; z-index: 40; padding: 10px 16px; background: var(--tinte); color: var(--stein); }
.sprung:focus { left: 8px; }

/* Kopf: Das Logo ist immer groß gezeichnet und wird im Kopf nur verkleinert. So bleibt es scharf, und die Bewegung läuft ohne Script im Browser. */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: flex-end; gap: 24px;
  min-height: 76px; padding: calc(8px + env(safe-area-inset-top, 0px)) var(--rand) 8px;
}
.kopf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--stein) url(img/marmor.webp) top center / 1054px; transition: opacity 300ms ease; }
.oben .kopf::before { opacity: 0; }
/* Die Box umfasst nur die Buchstaben. Der Schriftzug ragt sichtbar aus ihr heraus, zählt aber nicht zur Seitenbreite. */
.marke {
  position: absolute; left: 0; top: 0; display: block; width: var(--gross);
  transform-origin: 0 0; will-change: transform;
  transform: translate(var(--docke-x), var(--docke-y)) scale(var(--docke-s));
  transition: transform 850ms cubic-bezier(.65, 0, .2, 1);
}
.oben .marke { transform: translate(var(--gx, 0), var(--gy, 0)); }
.marke svg { width: 100%; height: auto; overflow: visible; }
.lg { fill: #a9812f; }
.li, .lw { fill: var(--tinte); }
.lw { transition: opacity 350ms ease 450ms; }
.oben .lw { opacity: 0; transition: opacity 200ms ease; }
.einstieg .marke svg { animation: laden 1.5s var(--raus) 150ms both; }

.haupt { display: flex; align-items: center; gap: 32px; }
.neben { font: 400 15px var(--schrift); text-decoration: none; text-underline-offset: 6px; }
.neben:hover { text-decoration: underline; }
.kopf-knopf { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; background: var(--gold); color: var(--tinte); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--raus); }

/* Start */
.start { display: grid; justify-items: center; gap: 18px; padding: 20px var(--rand) 0; text-align: center; }
.logo-platz { display: none; width: var(--gross); aspect-ratio: 662 / 276; }
.js .logo-platz { display: block; }
/* Motto und Termin nehmen die Schrift des Logos auf. Der Rand gleicht das Laufmaß der letzten Buchstaben aus. */
.motto { margin-right: -.18em; font: 400 42px/1.32 var(--schrift); letter-spacing: .18em; text-transform: uppercase; }
.unterzeile { font: 400 18px/1.55 var(--schrift); max-width: 38em; }
.start-bild { position: relative; margin: 32px 0 0; height: 400px; overflow: hidden; background: center 60% / cover; } /* Bis das Bild da ist, steht sein unscharfes Vorschaubild schon an seinem Platz. */
.start-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.motto, .unterzeile { animation: heben 800ms var(--raus) 500ms backwards; }
.unterzeile { animation-delay: 620ms; }

/* Termin */
.termin { display: grid; gap: 14px; padding: 32px var(--rand) 0; }
:is(.termin, .leistungen, .gebiet, .ueber, .kontakt) h2 { display: flex; white-space: nowrap; align-items: center; justify-content: center; gap: 18px; padding-block: 6px; font: 500 17px/1.3 var(--schrift); letter-spacing: .3em; text-transform: uppercase; }
:is(.termin, .leistungen, .gebiet, .ueber, .kontakt) h2::before, :is(.termin, .leistungen, .gebiet, .ueber, .kontakt) h2::after { content: ""; flex: none; width: 40px; height: 2px; background: var(--gold); }
.wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wahl a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 80px; padding: 0 28px;
  background: var(--tinte); color: var(--stein);
  font-size: 20px; font-weight: 500; text-decoration: none;
  transition: transform 160ms var(--raus);
}
.wahl svg { flex: none; transition: transform 200ms var(--raus); }
.speichern-text { margin-top: -6px; font-size: 14px; text-align: center; }
.speichern {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; background: var(--gold); color: var(--tinte);
  font-size: 17px; font-weight: 600; text-decoration: none;
  transition: transform 160ms var(--raus);
}
/* Kontakt speichern: Der Pfeil zeichnet sich zum Haken um, gleichzeitig löst sich ein feiner Ring vom Knopf. */
.kopf-knopf, .speichern[download] { position: relative; }
.pf { transition: opacity 300ms ease; }
.haken { opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 600ms var(--gleiten), opacity 300ms ease; }
.gespeichert .pf { opacity: 0; }
.gespeichert .haken { opacity: 1; stroke-dashoffset: 0; transition-delay: 200ms; }
:is(.kopf-knopf, .speichern[download])::after { content: ""; position: absolute; inset: 0; outline: 1.5px solid var(--gold); opacity: 0; pointer-events: none; }
.gespeichert::after { animation: ring 1300ms var(--raus); }
@keyframes ring { from { opacity: 1; outline-offset: 0; } to { opacity: 0; outline-offset: 14px; } }
.kopf-knopf:active, .wahl a:active, .speichern:active, .senden:active, .leiste a:active, .weg:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .wahl a:hover svg { transform: translateX(5px); } }

/* Kontakt */
/* Die Linie trennt die Bereiche sichtbar voneinander, der Marmor läuft darunter weiter. */
:is(.leistungen, .gebiet, .ueber, .kontakt) { display: grid; gap: 14px; margin: 64px var(--rand) 0; padding-top: 56px; border-top: 1px solid var(--linie); }
.erreichbar { justify-self: center; max-width: 66ch; margin: -6px 0 6px; font-size: 16px; text-align: center; text-wrap: balance; }
.erreichbar a { text-underline-offset: 4px; }

/* Leistungen */
/* Hier läuft alles ruhig und mit der Kurve des Logos. Die Farbe breitet sich von der getippten Stelle aus, siehe flutStart in site.js. */
.bereiche { justify-self: center; width: min(720px, 100%); background: var(--flaeche); overflow-anchor: none; }
.bereich + .bereich { border-top: 1px solid var(--linie); }
.bereich h3 { font: inherit; }
.bereich-kopf { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 84px; padding: 14px 24px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bereich-kopf b { display: block; font: 500 19px/1.3 var(--schrift); }
.bereich-kopf small { display: block; margin-top: 2px; font-size: 14px; color: #5c554a; }
.plus { flex: none; width: 18px; height: 18px; color: var(--gold-text); transition: transform 650ms var(--gleiten); }
.bereich.offen .plus { transform: rotate(135deg); }
.bereich-liste { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 650ms var(--gleiten), visibility 0s 650ms; }
.bereich.offen .bereich-liste, html:not(.js) .bereich-liste { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 650ms var(--gleiten); }
.bereich-liste > div { min-height: 0; overflow: hidden; background: var(--stein); }
.bereich-liste li { opacity: 0; transform: translateY(-14px); transition: opacity 300ms ease, transform 0s 650ms; } /* Beim Schließen blenden die Zeilen nur aus, jede zweite Bewegung würde ruckeln. */
.bereich-liste li:first-child { border-top: 0; }
.bereich.offen li, html:not(.js) .bereich-liste li { opacity: 1; transform: none; transition: opacity 400ms ease calc(var(--i) * 40ms + 100ms), transform 500ms var(--gleiten) calc(var(--i) * 40ms + 80ms); }
.flut { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: inherit; background: var(--tinte); color: var(--stein); font-style: normal; pointer-events: none; clip-path: circle(var(--r) at var(--x, 50%) var(--y, 50%)); transition: --r 650ms var(--gleiten); }
.bereich .flut small, .bereich .flut svg { color: var(--gold); }
.bereich.offen > h3 .flut, .geht .flut { --r: var(--d); }
.geht .flut { transition-duration: 350ms; }
.zeilen, .recht .zeilen { display: block; max-width: none; margin: 0; padding: 0; list-style: none; }
.recht h2 + .zeilen { margin-top: 12px; }
.zeilen li { border-top: 1px solid var(--linie); }
.zeilen a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding-block: 8px; font-weight: 500; text-decoration: none; }
.bereich-liste .zeilen a { min-height: 48px; padding: 8px 24px 8px 36px; font-size: 15px; font-weight: 400; }
.zeilen a { -webkit-tap-highlight-color: transparent; }
.bereich-liste .zeilen a { position: relative; }
.bereich-liste .zeilen span, .bereich-liste .zeilen svg { transition: transform 450ms var(--gleiten); }
.zeilen svg { flex: none; width: 21px; height: 14px; color: var(--gold-text); transition: transform 240ms var(--raus); }
.zeilen .geht span { transform: translateX(-14px); }
.zeilen .geht svg { transform: translateX(6px); }
@media (hover: hover) and (pointer: fine) { .zeilen a:hover svg { transform: translateX(5px); } .bereich:not(.offen) .bereich-kopf:hover { background: var(--stein); } }

/* Einsatzgebiet */
.staedte { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 20px; }
.staedte a { padding: 6px 2px; }
/* Die Unterstreichung ist ein Hintergrund, nur so kann sie sich nach rechts zurückziehen. */
:is(.staedte a, .mehr-staedte, .fuss nav a, .hinweis a) { background: linear-gradient(currentColor, currentColor) 100% 100% / 100% 1px no-repeat content-box; text-decoration: none; transition: background-size 240ms var(--raus); }
:is(.staedte a, .mehr-staedte, .fuss nav a, .hinweis a):is(.link-geht, .link-besucht) { background-size: 0 1px; }
:is(.staedte a, .mehr-staedte, .fuss nav a, .hinweis a).link-besucht { transition: none; }
.gebiet .staedte { gap: 2px min(16px, 3.6vw); margin-top: 8px; font-size: min(14px, 3.6vw); }
.mehr-staedte { justify-self: center; padding: 4px 8px; color: var(--gold-text); font-size: 14px; font-weight: 500; }
.gebiet-form { display: grid; gap: 12px; justify-self: center; width: min(480px, 100%); margin-top: 6px; }
.gebiet-form label { text-align: center; }
.gebiet-zeile { position: relative; display: flex; }
/* Beim Prüfen zieht eine Goldlinie unter dem Feld durch, danach kommt die Antwort. Der Rahmen klappt weich auf, damit darunter nichts springt. */
.gebiet-zeile::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 500ms var(--gleiten); }
.gebiet-zeile.pruefend::after { transform: scaleX(1); transform-origin: left; transition-duration: 650ms; }
.ant-rahmen { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms var(--gleiten); }
.ant-rahmen.rein { grid-template-rows: 1fr; transition-duration: 800ms; }
.gebiet-zeile input { flex: 1; min-width: 0; }
.gebiet-zeile button { flex: none; padding: 0 26px; border: 0; background: var(--tinte); color: var(--stein); font: 500 16px var(--schrift); cursor: pointer; transition: transform 160ms var(--raus); }
.gebiet-zeile button:active { transform: scale(.985); }
.gebiet-antwort { display: grid; gap: 12px; min-height: 0; overflow: hidden; text-align: center; text-wrap: balance; opacity: 0; transition: opacity 400ms ease; }
.rein .gebiet-antwort { opacity: 1; transition: opacity 700ms ease 150ms; }
.gebiet-antwort[hidden], .gebiet-antwort [hidden] { display: none; }
.gebiet-antwort strong { display: block; font-size: 17px; font-weight: 600; }

.wege { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; font: 400 18px/1.3 var(--schrift); }
.weg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 76px; padding: 10px 20px; background: var(--tinte); color: var(--stein); text-decoration: none; white-space: nowrap; transition: transform 160ms var(--raus); }
.weg-text { min-width: 0; }
.weg small { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 500; color: var(--gold); }
.weg-pfeil { transition: transform 200ms var(--raus); }
/* Je Inhaber eine Spalte: oben Anrufen, darunter WhatsApp. Der Buchstabe aus dem Logo zeigt, wer abnimmt. */
.rufe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: inherit; }
.ruf { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 12px; padding: 16px 20px 14px; }
.ruf-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--gold); }
.ruf .weg-text { display: flex; flex-direction: column; justify-content: flex-end; } /* Bricht ein Name um, bleiben die Nummern trotzdem auf einer Höhe. */
.ruf small { white-space: normal; }
.ruf-name { font-weight: 500; font-size: min(1em, 4vw); } /* Mehmedbegovic muss auch auf 320 Pixel in eine Zeile passen. */
.ruf-zeichen { width: auto; height: 30px; }
.ruf-buchstabe { display: inline-block; width: auto; height: .8em; margin-right: .04em; vertical-align: baseline; }
.wa-zeichen { width: auto; height: 24px; } /* Rechts im WhatsApp-Feld derselbe Buchstabe wie im Anruf-Feld darüber. */
.z-gold { fill: var(--gold); }
.z-hell { fill: var(--stein); }
@media (hover: hover) and (pointer: fine) { .weg:hover .weg-pfeil { transform: translateX(5px); } }
/* Eine ruhige Fläche fasst das Formular zusammen, die Felder bleiben untereinander. */
.anfrage { display: grid; gap: 18px; width: min(720px, 100% - 2 * var(--rand)); margin: 64px auto 88px; padding: 32px; background: var(--flaeche); font-size: 15px; scroll-margin-top: 88px; }
.anfrage h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.anfrage-info { margin-top: -14px; font-size: min(15px, 3.15vw); white-space: nowrap; }
.anfrage fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.anfrage legend { padding: 0; font-weight: 500; }
.art { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.art legend { margin-bottom: 6px; }
.art label { position: relative; cursor: pointer; }
.art input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.art span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; border: 1px solid var(--linie); }
.art input:checked + span { background: var(--tinte); border-color: var(--tinte); color: var(--stein); }
.art input:focus-visible + span { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.zeit { display: grid; gap: 12px; }
.zeit legend { margin-bottom: 6px; }
.paar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feld { position: relative; display: grid; gap: 5px; min-width: 0; font-weight: 500; }
.feld[hidden] { display: none; }
.feld small { font-size: 13px; font-weight: 400; color: #5c554a; }
.feld input, .feld select, .feld textarea {
  width: 100%; min-width: 0; min-height: 50px; padding: 10px 12px;
  background: #fff; border: 1px solid var(--linie); border-radius: 0;
  color: var(--tinte); font: 400 16px/1.4 var(--schrift);
  -webkit-appearance: none; appearance: none;
}
.feld select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d1a15' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.feld textarea { min-height: 96px; resize: vertical; }
/* Fokus: Der Rand wechselt ruhig zu Gold. */
.feld input, .feld select, .feld textarea, .verbund { transition: border-color 180ms ease, box-shadow 180ms ease; }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible, .verbund:focus-within { outline: 0; border-color: var(--gold-logo); box-shadow: 0 0 0 1px var(--gold-logo); }
.verbund input:focus-visible { box-shadow: none; }
.datum { position: relative; }
.datum span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-weight: 400; pointer-events: none; }
.datum.voll span { display: none; }
.datum input { padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%231d1a15' stroke-width='1.5'%3E%3Crect x='1.5' y='3' width='15' height='13.5'/%3E%3Cpath d='M1.5 7.5h15M5.5 1v4M12.5 1v4'/%3E%3C/svg%3E") no-repeat right 12px center; }
.datum input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; margin: 0; opacity: 0; cursor: pointer; }
.datum input::-webkit-date-and-time-value { text-align: left; }
.js .datum:not(.voll) input::-webkit-datetime-edit { color: transparent; }
html:not(.js) .datum span { position: static; transform: none; }
.feld input[type=file] { padding: 7px; }
.feld input::file-selector-button { min-height: 34px; margin-right: 12px; padding: 0 14px; border: 0; background: var(--stein); color: var(--tinte); font: inherit; cursor: pointer; }
/* Verbundfeld: Telefon mit Vorwahl-Knopf, E-Mail mit Anbieter-Knopf. Das Auswahlfeld des Browsers liegt unsichtbar darüber, damit das Handy seine eigene Liste öffnet. */
.verbund { display: flex; background: #fff; border: 1px solid var(--linie); }
.verbund input { flex: 1; border: 0; }
.auswahl { position: relative; flex: none; display: flex; font-size: 16px; font-weight: 400; }
.auswahl:first-child { border-right: 1px solid var(--linie); }
.auswahl:last-child { border-left: 1px solid var(--linie); }
.js .auswahl select { position: absolute; inset: 0; width: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.auswahl span { display: flex; align-items: center; padding: 0 30px 0 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d1a15' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; }
html:not(.js) .auswahl span { display: none; }
.auswahl select:focus-visible + span { outline: 2px solid var(--gold-text); outline-offset: -2px; }
/* Adresse: Die Nummer und die PLZ sind schmal, Straße und Ort bekommen den Rest. */
.adresse { display: grid; gap: 12px; }
#hausnummer::placeholder { color: var(--tinte); opacity: 1; }
.adresse legend { margin-bottom: 6px; }
.adresse-zeile { position: relative; display: grid; gap: 12px; }
.strasse-zeile { grid-template-columns: minmax(0, 1fr) 88px; }
.ort-zeile { grid-template-columns: 104px minmax(0, 1fr); }
.adress-liste { position: absolute; top: 100%; left: 0; right: 0; z-index: 6; margin: 4px 0 0; padding: 0; list-style: none; overflow: hidden; background: #fff; border: 1px solid var(--linie); box-shadow: 0 14px 30px rgb(29 26 21 / .12); }
.adress-liste[hidden] { display: none; }
.adress-liste li { display: grid; gap: 1px; padding: 9px 12px; cursor: pointer; }
.adress-liste li + li { border-top: 1px solid #efe9dd; }
.adress-liste li[aria-selected=true] { background: var(--stein); }
@media (hover: hover) and (pointer: fine) { .adress-liste li:hover { background: var(--stein); } }
.adress-liste strong { font-size: 15px; font-weight: 500; }
.adress-liste span { font-size: 13px; font-weight: 400; color: #5c554a; }
/* Fehler: Rand und Feldname werden rot, damit nichts verrutscht. Den Grund nennt die Liste unter dem Knopf, der Text am Feld ist nur für Vorleseprogramme. */
.feld { transition: color 180ms ease; }
.feld .feld-fehler { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hat-fehler { color: var(--fehler); }
.hat-fehler .verbund { color: var(--tinte); }
.hat-fehler input, .hat-fehler textarea, .hat-fehler .verbund { border-color: var(--fehler); }
.hat-fehler .verbund input { border-color: transparent; }
.mail-tipp { justify-self: start; padding: 2px 0; border: 0; background: none; color: var(--gold-text); font: 400 13px var(--schrift); text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mail-tipp[hidden] { display: none; }
.fehlerliste:empty { display: none; }
.fehlerliste { padding: 14px 16px; border-left: 3px solid var(--fehler); background: #fbf3ee; color: var(--fehler); font-size: 14px; }
.fehlerliste p { font-weight: 600; }
.fehlerliste ul { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.fehlerliste a { display: block; padding: 3px 0; text-underline-offset: 3px; }
/* Leistungen im Formular */
.karten { display: grid; gap: 10px; margin-top: 4px; counter-reset: karte; }
.karte { gap: 8px; padding: 14px; background: var(--stein); color: var(--tinte); counter-increment: karte; animation: heben 400ms var(--raus); }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.karte-titel::after { content: " " counter(karte); }
.karte-weg { min-height: 32px; margin: -4px 0; padding: 0 0 0 12px; border: 0; background: none; color: inherit; font: 400 13px var(--schrift); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.karte:only-child .karte-weg { display: none; }
.karte-plus { min-height: 48px; margin-top: 5px; border: 1px dashed var(--gold-text); background: none; color: var(--gold-text); font: 500 15px var(--schrift); cursor: pointer; }
#was-feld.hat-fehler .karten textarea:not(:placeholder-shown) { border-color: var(--linie); }
.tastatur-zu, .tastatur-weiter { display: none; font: inherit; }
@media (pointer: coarse) {
  .tastatur-zu { position: absolute; top: -8px; right: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 34px; padding: 0; border: 0; background: none; color: var(--gold-text); }
  .tastatur-weiter { position: absolute; top: -8px; right: 44px; display: flex; align-items: center; justify-content: center; width: 44px; height: 34px; padding: 0; border: 0; background: none; color: var(--gold-text); }
  .tastatur-zu[hidden], .tastatur-weiter[hidden] { display: none; }
  .karte .tastatur-zu { top: 6px; right: 36px; }
  .adress-liste li { padding: 6px 12px; }
}
/* Das Fotofeld sieht aus wie die Datumsfelder. Die Datei-Auswahl des Browsers liegt unsichtbar darüber, weil ihr Text sonst gekürzt wird. */
.fotos-feld { position: relative; display: block; }
#fotos-text { display: none; }
.js #fotos-text { display: flex; align-items: center; min-height: 50px; padding: 10px 40px 10px 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%231d1a15' stroke-width='1.5'%3E%3Crect x='1.5' y='2.5' width='15' height='13'/%3E%3Cpath d='M1.5 12.5l4.5-4.5 3.5 3.5 2.5-2.5 4.5 4.5'/%3E%3Ccircle cx='12.5' cy='6.5' r='1.2'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--linie); font-size: 16px; font-weight: 400; }
.js .fotos-feld input { position: absolute; inset: 0; height: 100%; opacity: 0; cursor: pointer; }
.fotos-feld input:focus-visible + span { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.fotos-feld input:disabled { cursor: default; }
.fotos-feld input:disabled + span { color: #5c554a; }
.fotos-hinweis { font-size: 13px; font-weight: 400; color: #5c554a; }
.fotos-hinweis:empty, .fotos-liste:empty { display: none; }
.fotos-liste { display: flex; flex-wrap: wrap; gap: 8px; margin: 3px 0 0; padding: 0; list-style: none; }
.fotos-liste li { position: relative; width: 64px; height: 64px; background: var(--stein); }
.fotos-liste img { width: 100%; height: 100%; object-fit: cover; }
.fotos-liste button { position: absolute; top: 0; right: 0; width: 28px; height: 28px; padding: 0; border: 0; background: rgb(29 26 21 / .82); color: var(--stein); font: 400 20px/1 var(--schrift); cursor: pointer; }
.falle { position: absolute; left: -9999px; }
.senden { position: relative; overflow: hidden; min-height: 60px; border: 0; background: var(--tinte); color: var(--stein); font: 600 17px var(--schrift); cursor: pointer; transition: transform 160ms var(--raus); }
.senden[disabled] { cursor: progress; }
.s-text { display: block; }
/* Dieselbe Tinte wie bei den Leistungen, hier in Gold, weil der Knopf schon dunkel ist. */
.s-flut { justify-content: center; background: var(--gold); color: var(--tinte); }
.sendet .s-flut { --r: var(--d); }
.status:empty { display: none; }
.status { font-weight: 500; }
.hinweis { font-size: 13px; color: #5c554a; }

/* Fuß und Textseiten */
.fuss { display: grid; justify-items: center; gap: 2px; padding: 24px var(--rand) calc(14px + env(safe-area-inset-bottom, 0px)); font: 400 14px/1.5 var(--schrift); text-align: center; }
/* Zwei gleich breite Spalten, damit die Mitte zwischen den Links die Seitenmitte ist. */
.fuss nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; width: min(320px, 100%); }
.fuss nav a { padding: 10px 14px; }
.fuss nav a:first-child { grid-column: 1 / -1; }
@media (min-width: 761px) { .fuss nav { grid-template-columns: repeat(5, auto); width: auto; } .fuss nav a:first-child { grid-column: auto; } }
.fuss-kontakt { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
.fuss p { font-size: min(13px, 2.72vw); white-space: nowrap; }
body:not(.seite-index) main { display: grid; gap: 16px; justify-items: start; max-width: 860px; margin: 0 auto; padding: 20px var(--rand) 64px; }
.zurueck { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 500 15px var(--schrift); text-decoration: none; }
.zurueck svg { transition: transform 200ms var(--raus); }
@media (hover: hover) and (pointer: fine) { .zurueck:hover svg { transform: translateX(-4px); } }
.recht { width: 100%; padding: 56px 64px 64px; background: var(--flaeche); font: 400 16px/1.7 var(--schrift); }
.recht h1 { font: 500 34px/1.15 var(--schrift); letter-spacing: -.005em; }
.recht .stand { margin-top: 10px; color: #5c554a; }
.recht h2 { margin-top: 48px; font: 500 20px/1.3 var(--schrift); }
.recht p, .recht ul, .recht ol { max-width: 66ch; }
.recht h3 { margin-top: 18px; font: 500 16px/1.4 var(--schrift); }
.recht h3 + p { margin-top: 4px; }
.recht h2 + p, .recht h2 + ul, .recht h2 + ol, .recht h1 + p { margin-top: 10px; }
.recht p + p, .recht ul + p { margin-top: 16px; }
.recht ul, .recht ol { display: grid; gap: 6px; margin: 0; padding-left: 20px; }
.recht .stand + h2, .recht h1 + h2 { margin-top: 40px; }
.recht h1 span { display: block; margin-top: 8px; font-size: .56em; font-weight: 400; color: var(--gold-text); }
.leistung { position: relative; }
:is(.recht, .start-bild) .ki-bild { position: absolute; top: 10px; right: 12px; margin: 0; padding: 2px 8px; font-size: 12px; line-height: 18px; color: #fff; background: rgb(0 0 0 / .5); }
.titelbild { display: block; width: calc(100% + 128px); max-width: none; height: auto; aspect-ratio: 860 / 376; margin: -56px -64px 40px; object-fit: cover; }
.recht .wahl { margin-top: 18px; }
.recht li::marker { color: var(--gold-text); }

/* Handy-Leiste */
.leiste { position: fixed; inset: auto 0 0; z-index: 15; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--tinte); }
.leiste a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; color: var(--stein); font-weight: 500; text-decoration: none; transition: transform 160ms var(--raus); }
.leiste a:last-child { background: var(--gold); color: var(--tinte); }
.leiste a:not(:last-child) + a:not(:last-child) { box-shadow: inset 1px 0 rgb(245 240 230 / .18); }
.leiste .ruf-zeichen { height: 16px; }
@media (min-width: 761px) { .leiste { display: none; } }

/* Dezente Auftritte. Ohne Script bleibt alles sichtbar. */
.js .auf { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--raus), transform 700ms var(--raus); }
.js .auf.da { opacity: 1; transform: none; }
.js.intern .auf { opacity: 1; transform: none; transition: none; } /* Beim Zurückkommen steht alles schon da, sonst bewegt es sich doppelt. */
.ruhig .bereich * { transition: none !important; }

@keyframes laden { from { clip-path: inset(-5% 100% -5% 0); } to { clip-path: inset(-5% -5% -5% 0); } }
@keyframes heben { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) { .wege { gap: 8px; } }
@media (max-width: 560px) {
  .ruf { gap: 10px; padding: 14px 14px 12px; font-size: min(16px, 4.3vw); }
  /* Auch WhatsApp steht hier untereinander: oben Zeichen und Buchstabe, darunter der Text. Nebeneinander passt es nicht. */
  .wa { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "bild zeichen" "text text"; gap: 10px; padding: 14px 14px 12px; font-size: min(16px, 4.3vw); }
  .wa .weg-bild { grid-area: bild; }
  .wa .weg-text { grid-area: text; }
  .wa-zeichen { grid-area: zeichen; justify-self: end; height: 22px; }
}

@media (max-width: 960px) {
  :root { --gross: 280px; --marke: 116px; --docke-y: calc(10px + env(safe-area-inset-top, 0px)); --docke-s: .2755; }
  html { scroll-padding-top: 72px; }
  body { font-size: 15px; background-size: 760px; }
  .kopf { min-height: 62px; }
  .neben { display: none; }
  .kopf-knopf { gap: 6px; min-height: 42px; padding: 0 12px; font-size: 14px; }
  .start { gap: 12px; padding-top: 10px; }
  .motto { font-size: min(27px, 6.9vw); }
  .unterzeile { font-size: 15px; }
  .start-bild { margin-top: 22px; height: 200px; }
  .termin { gap: 10px; padding-top: 22px; }
  :is(.termin, .leistungen, .gebiet, .ueber, .kontakt) h2 { gap: 14px; font-size: min(15px, 3.7vw); letter-spacing: .24em; }
  :is(.termin, .leistungen, .gebiet, .ueber, .kontakt) h2::before, :is(.termin, .leistungen, .gebiet, .ueber, .kontakt) h2::after { width: 28px; }
  .bereich-kopf { min-height: 76px; padding-inline: 20px; }
  .bereich-kopf b { font-size: 17px; }
  .bereich-kopf small { font-size: 13px; }
  .zeilen a { min-height: 48px; }
  .bereich-liste .zeilen a { padding: 8px 20px 8px 32px; }
  .titelbild { width: calc(100% + 40px); margin: -32px -20px 28px; }
  .recht { padding: 32px 20px 40px; font-size: 15px; }
  .recht h1 { font-size: min(34px, 6.4vw); }
  .recht h2 { margin-top: 36px; font-size: 18px; }
  .wahl { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wahl a { min-height: 58px; padding: 0 20px; font-size: 17px; }
  .speichern-text { margin-top: -4px; font-size: 13px; }
  .speichern { min-height: 54px; font-size: 16px; }
  :is(.leistungen, .gebiet, .ueber, .kontakt) { gap: 10px; margin-top: 40px; padding-top: 40px; }
  .wege { font-size: 16px; }
  .erreichbar { margin: -4px 0 8px; font-size: 15px; }
  .weg { gap: 10px; min-height: 68px; }
  .weg small { font-size: 13px; }
  .anfrage { margin: 40px auto 96px; padding: 22px 18px; }
  .anfrage h3 { font-size: 19px; }
  .senden { font-size: 16px; }
}
@media (max-width: 760px) { body:not(.seite-index) .fuss { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); } }

@media (max-width: 340px) {
  :is(.termin, .leistungen, .gebiet, .ueber, .kontakt) h2 { gap: 10px; letter-spacing: .2em; }
  :is(.termin, .leistungen, .gebiet, .ueber, .kontakt) h2::before, :is(.termin, .leistungen, .gebiet, .ueber, .kontakt) h2::after { width: 20px; }
  .anfrage-info { white-space: normal; font-size: 13px; }
  .fuss p { font-size: 12px; white-space: normal; }
  .zeit .paar { grid-template-columns: minmax(0, 1fr); }
  .weg-pfeil { display: none; }
  .kopf-knopf { gap: 5px; padding: 0 8px; font-size: 12.5px; }
  .ruf, .wa { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .auf { opacity: 1; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
