/* VENY – Basis: Bausteine und Komponenten.
   Farben, Schriften und Layout setzt /css/site.css über die Variablen. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-text); font-size: var(--text-size, 1.0625rem); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--fg); color: var(--bg); padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons und Links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .85rem 1.5rem; border: 0; border-radius: 0; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 500; line-height: 1.2; cursor: pointer; transition: background-color .2s, color .2s; }
.btn:hover { background: var(--fg-strong); }
.btn--light { background: var(--bg); color: var(--fg); }
.btn--light:hover { background: var(--tint); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.link { text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: .15rem; font-weight: 500; }
.link:hover { border-bottom-width: 2px; }

/* ---------- Kopf ---------- */
.site { position: relative; z-index: 30; display: flex; align-items: center; gap: 2rem; }
.brand { text-decoration: none; display: inline-flex; align-items: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.main-nav a { text-decoration: none; }
.main-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .4em; text-decoration-thickness: 1px; }
.main-nav a { white-space: nowrap; }
.menu-toggle { display: none; }

/* Handy-Menü bis 1024 px: sechs Menüpunkte passen darunter nicht in eine Zeile */
@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: .6rem; margin-left: auto; min-height: 2.75rem; padding: .5rem .25rem; background: none; border: 0; cursor: pointer; }
  .menu-toggle__bars { position: relative; width: 22px; height: 12px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
  .menu-open .menu-toggle__bars { border-color: transparent; }
  .menu-open .menu-toggle__bars::before, .menu-open .menu-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
  .menu-open .menu-toggle__bars::after { transform: rotate(-45deg); }
  .main-nav { display: none; }
  .menu-open .main-nav { display: block; position: fixed; inset: 0; z-index: -1; background: var(--bg); color: var(--fg); padding: 6.5rem var(--pad-x) 2rem; overflow-y: auto; }
  .menu-open .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .menu-open .main-nav li { width: 100%; border-bottom: 1px solid var(--line); }
  .menu-open .main-nav a { display: block; padding: 1rem 0; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; }
  .menu-open .main-nav__cta { border-bottom: 0 !important; padding-top: 1.5rem; }
  .menu-open .main-nav .nav-cta { display: inline-flex; font-family: var(--font-text); font-size: 1rem; padding: .9rem 1.5rem; background: var(--fg); color: var(--bg); }
  .menu-open .site, .menu-open .site.site--over { color: var(--fg); }
  .menu-open body { overflow: hidden; }
}

/* ---------- WhatsApp ---------- */
.wa { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .8rem 1.1rem; text-decoration: none; font-weight: 500; box-shadow: 0 6px 24px rgba(30, 30, 30, .22); }
.wa svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
@media (max-width: 600px) { .wa span { display: none; } .wa { right: 1rem; bottom: 1rem; } }

/* ---------- Infofenster ---------- */
.info-btn { display: inline-flex; align-items: center; gap: .6rem; margin-top: .5rem; padding: .35rem 0; background: none; border: 0; border-bottom: 1px solid var(--accent); cursor: pointer; text-align: left; font-weight: 500; }
.info-btn::before { content: "i"; display: inline-grid; place-items: center; flex: none; width: 1.35rem; height: 1.35rem; border: 1px solid currentColor; font-size: .8rem; font-style: italic; font-family: Georgia, serif; }
.info-btn:hover { border-bottom-width: 2px; }
dialog.info { width: min(40rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-top: 3px solid var(--accent); border-radius: 0; background: var(--bg); color: var(--fg); box-shadow: 0 24px 60px rgba(20, 20, 20, .3); }
dialog.info::backdrop { background: rgba(25, 25, 25, .55); }
.info__inner { padding: clamp(1.5rem, 4vw, 2.75rem); }
.info__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.12; margin-bottom: 1.25rem; }
.info__close { margin-top: 1.75rem; min-height: 2.75rem; padding: .6rem 1.25rem; background: var(--fg); color: var(--bg); border: 0; cursor: pointer; font-weight: 500; }
@media (max-width: 600px) { dialog.info { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); max-width: 54rem; }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary { position: relative; list-style: none; cursor: pointer; padding: 1.25rem 3rem 1.25rem 0; font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.3; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after { content: ""; position: absolute; right: .5rem; top: 50%; width: 16px; border-top: 1.5px solid var(--accent); }
.faq__item summary::after { transform: rotate(90deg); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__item p { padding: 0 3rem 1.5rem 0; max-width: 44rem; }

/* ---------- Preise ---------- */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 4rem); margin: 2rem 0; }
.prices table { width: 100%; border-collapse: collapse; align-self: start; }
.prices thead th { text-align: left; font-weight: 500; font-size: .95rem; padding: 0 0 .6rem; border-bottom: 1px solid var(--line-strong); }
.prices thead th:last-child, .prices td { text-align: right; }
.prices tbody th { text-align: left; font-weight: 400; padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--line); }
.prices td { padding: .7rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
@media (max-width: 700px) { .prices { grid-template-columns: minmax(0, 1fr); } .prices table + table thead { display: none; } }
.price-big { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); line-height: 1; margin-bottom: 1.25rem; }
.price-big span { display: block; font-family: var(--font-text); font-size: 1rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.steps__item { counter-increment: step; border-top: 1px solid var(--line-strong); padding-top: 1rem; }
.steps__item::before { content: counter(step); display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--accent-text); margin-bottom: 1rem; }
.steps__item h3 { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; margin-bottom: .6rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Haarzyklus ---------- */
.hc-wrap { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; margin: 2.5rem 0 0; }
.hc-side__title { font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.2; margin: 0 0 1.5rem; }
.hc-side .note { margin-top: 1.5rem; }
@media (max-width: 1000px) { .hc-wrap { grid-template-columns: minmax(0, 1fr); } }
.hc { margin: 0; max-width: 46rem; background: var(--hc-bg); border: 1px solid var(--line); }
.hc__svg { width: 100%; height: auto; }
.hc__l1 { fill: var(--skin-1); } .hc__l2 { fill: var(--skin-2); } .hc__l3 { fill: var(--skin-3); }
.hc__surface { stroke: var(--fg); stroke-width: 1.2; }
.hc__rule { stroke: var(--fg); stroke-opacity: .22; }
.hc__follicle { fill: none; stroke: var(--fg); stroke-width: 1.4; }
.hc__follicle--fade { stroke-dasharray: 3 4; stroke-opacity: .45; }
.hc__hair { stroke: #3B2A1E; stroke-linecap: round; }
.hc__root { fill: #3B2A1E; }
.hc__papilla { fill: #C9A27A; }
.hc__beam { stroke: var(--beam); stroke-width: 2.5; }
.hc__burst line { stroke: var(--beam); stroke-width: 1.6; }
.hc__small { font-family: var(--font-text); font-size: 15px; fill: var(--muted); }
.hc__name { font-family: var(--font-display); font-size: 22px; fill: var(--fg); }
.hc__caption { border-top: 1px solid var(--line); padding: .9rem 1.25rem; font-size: .95rem; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .hc .hc__beam { stroke-dasharray: 470; stroke-dashoffset: 470; }
  .hc .hc__burst { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); }
  .hc.is-visible .hc__beam { animation: hc-beam 1.5s cubic-bezier(.6, 0, .2, 1) forwards; }
  .hc.is-visible .hc__burst { animation: hc-burst .7s 1.45s ease-out forwards; }
}
@keyframes hc-beam { to { stroke-dashoffset: 0; } }
@keyframes hc-burst { to { opacity: 1; transform: scale(1); } }
.phases { margin: 0; padding-left: 1.25rem; max-width: 40rem; }
.phases li { margin-bottom: .6rem; padding-left: .25rem; }
.phases strong { font-weight: 600; }

/* ---------- Hinweise ---------- */
.note { font-size: .95rem; color: var(--muted); max-width: 46rem; }
.sec__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }
.sec__actions .info-btn { margin-top: 0; }

/* ---------- Anfrageformular ---------- */
.inquiry { max-width: 40rem; }
.inquiry__title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 1.5rem; }
.inquiry__summary { border-left: 3px solid var(--error); padding: .75rem 1rem; background: var(--error-bg); color: var(--fg); }
.field { margin: 0 0 1.4rem; padding: 0; border: 0; }
.field > label, .field legend { display: block; font-weight: 500; margin-bottom: .45rem; padding: 0; }
.field .req, .field .opt { font-weight: 400; font-size: .85rem; color: var(--muted); margin-left: .35rem; }
.field input:not([type="radio"]), .field select, .field textarea { display: block; width: 100%; min-height: 3rem; padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--field-bg); }
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--fg); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field--choice label { display: flex; align-items: center; gap: .7rem; min-height: 2.75rem; cursor: pointer; }
.field--choice input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--fg); }
.field__error { color: var(--error); font-size: .95rem; margin: .45rem 0 0; }
.field__hint { font-size: .9rem; color: var(--muted); margin: .45rem 0 0; }
.inquiry__privacy { font-size: .9rem; color: var(--muted); margin: 1.5rem 0; }
.inquiry__nojs { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--line-strong); }
.inquiry__output { margin-top: 2.5rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line-strong); border-top: 3px solid var(--accent); background: var(--field-bg); }
.inquiry__output h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .75rem; }
.inquiry__output textarea { display: block; width: 100%; margin: 1rem 0 1.25rem; padding: .85rem; border: 1px solid var(--line); background: var(--bg); font-size: .95rem; line-height: 1.5; resize: vertical; }
.inquiry__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.inquiry__status { margin-top: 1rem; font-size: .95rem; }

/* ---------- Kontaktseite ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__details h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1.25rem; }
.contact__details address { font-size: 1.15rem; line-height: 1.55; margin-bottom: .75rem; }
.contact__details dl { margin: 2rem 0 1.5rem; border-top: 1px solid var(--line-strong); }
.contact__details dt { font-size: .9rem; color: var(--muted); padding-top: .9rem; }
.contact__details dd { margin: 0; padding: .15rem 0 .9rem; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 46rem; }
.legal h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; margin-bottom: 2rem; }
.legal h2 { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; margin: 2.25rem 0 .75rem; }
.draft { border-left: 3px solid var(--accent); background: var(--tint); padding: .85rem 1.1rem; font-size: .95rem; margin-bottom: 2.5rem; }
.todo { display: block; margin-top: .4rem; padding: .5rem .8rem; background: var(--todo-bg); font-size: .9rem; }
span.todo { display: inline-block; }

/* ---------- 404 ---------- */
.notfound h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; margin-bottom: 1.5rem; }
.notfound ul { padding-left: 1.25rem; }
.notfound li { margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.info .draft { margin: 1.25rem 0 0; }

/* ---------- Karte (Kontakt) ---------- */
.map { position: relative; height: clamp(26rem, 58vh, 36rem); overflow: hidden; background: var(--tint); }
.map__canvas { position: absolute; inset: 0; z-index: 0; }
.map__canvas:focus { outline: none; }
.map:not(.is-live) .map__canvas { display: none; }
.map.is-live .map__placeholder { display: none; }
/* Platzhalter vor dem Laden: feines Punktraster, rein dekorativ */
.map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; padding: 1.5rem;
  background: radial-gradient(rgba(43, 54, 68, .14) 1px, transparent 1.6px) 0 0 / 22px 22px, var(--tint); }
.map__card { position: relative; background: #FFFFFF; color: var(--fg); padding: 1rem 1.25rem; border-top: 3px solid var(--accent); box-shadow: 0 12px 30px rgba(29, 38, 49, .18); font-size: .95rem; line-height: 1.45; text-align: left; }
.map__card::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: #FFFFFF; transform: translateX(-50%) rotate(45deg); }
.map__name { margin: 0 0 .25rem; font-family: var(--font-display); font-size: 1.15rem; }
.map address { font-style: normal; margin-bottom: .5rem; }
.map__access { max-width: 17rem; margin: 0 0 .6rem; font-size: .85rem; line-height: 1.4; color: var(--muted); }
.map__card a, .map__popup a { color: var(--fg); border-bottom: 1px solid var(--accent); text-decoration: none; font-weight: 500; }
.map__pin { display: block; width: 30px; height: 30px; background: var(--accent); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(29, 38, 49, .3); position: relative; }
.map__pin::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #FFFFFF; }
.map__pin--static { margin-top: -.25rem; }
.map__consent { max-width: 30rem; text-align: center; }
.map__consent p { margin: .9rem 0 0; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.map__consent a { color: inherit; }
/* Leaflet an das Design anpassen */
.map .leaflet-container { font-family: var(--font-text); background: var(--tint); }
.map .leaflet-tile-pane { filter: grayscale(1) sepia(.28) contrast(.82) brightness(1.06); }
.map__marker { background: none; border: 0; }
.map__marker .map__pin { margin: 4px 0 0; }
.map__popup .leaflet-popup-content-wrapper { border-radius: 0; border-top: 3px solid var(--accent); box-shadow: 0 12px 30px rgba(29, 38, 49, .18); }
.map__popup .leaflet-popup-content { margin: 1rem 1.25rem; font-size: .95rem; line-height: 1.45; color: var(--fg); }
.map__popup .leaflet-popup-content p { margin: 0 0 .25rem; }
.map__popup .leaflet-popup-tip { box-shadow: none; }
.map .leaflet-control-zoom a { border-radius: 0 !important; color: var(--fg); }
.map .leaflet-control-attribution { font-size: .75rem; }
.map .leaflet-container a { color: var(--fg); }
.map .leaflet-control-attribution a { color: var(--muted); }

/* ---------- Zonen- und Umland-Seiten ---------- */
.prices--single { grid-template-columns: minmax(0, 32rem); }
.more-links { margin-top: 1.75rem; }
.routes { display: grid; grid-template-columns: minmax(9rem, max-content) 1fr; gap: .9rem 2rem; margin: 0 0 2rem; padding: 1.25rem 0 0; border-top: 1px solid var(--line-strong); max-width: 40rem; }
.routes dt { font-weight: 500; }
.routes dd { margin: 0; }
@media (max-width: 600px) { .routes { grid-template-columns: minmax(0, 1fr); gap: .2rem; } .routes dd { margin-bottom: .8rem; } }
.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: 38rem; }
.checks li { position: relative; padding: .75rem 0 .75rem 2rem; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: .2rem; top: 1.2rem; width: .8rem; height: .45rem; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }

/* ---------- Dropdown im Hauptmenü ---------- */
.main-nav .has-sub { position: relative; display: flex; align-items: center; gap: .15rem; }
.sub-toggle { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.sub-toggle::before { content: ""; width: .42rem; height: .42rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.has-sub.is-open .sub-toggle::before { transform: translateY(1px) rotate(-135deg); }
.main-nav .sub { display: block; position: absolute; top: 100%; left: -1.25rem; z-index: 40; min-width: 15rem; margin: 0; padding: .5rem 0; list-style: none; background: var(--bg); color: var(--fg); border-top: 2px solid var(--accent); box-shadow: 0 14px 34px rgba(29, 38, 49, .16); opacity: 0; visibility: hidden; transform: translateY(.4rem); transition: opacity .18s, transform .18s, visibility .18s; }
/* unsichtbare Brücke, damit das Menü beim Hinüberfahren offen bleibt */
.main-nav .sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: .9rem; }
.main-nav .sub a { display: block; padding: .6rem 1.25rem; font-size: 1rem; white-space: nowrap; }
.main-nav .sub a:hover { background: var(--tint); text-decoration: none; }
@media (min-width: 901px) {
  .main-nav .has-sub:hover .sub, .main-nav .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 900px) {
  .main-nav .has-sub { display: block; }
  .sub-toggle { display: none; }
  .menu-open .main-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 0 .75rem; border: 0; box-shadow: none; background: none; }
  .menu-open .main-nav .sub::before { display: none; }
  .menu-open .main-nav .sub li { border-bottom: 0; }
  .menu-open .main-nav .sub a { padding: .4rem 0 .4rem 1.25rem; font-family: var(--font-text); font-size: 1.1rem; color: var(--muted); white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .main-nav .sub, .sub-toggle::before { transition: none; } }

