/* Hunke & Bullmann – Website (Maße und Farben wie im bisherigen Theme) */
:root {
  --text: #727272;
  --link: #3B3B3B;
  --hover: #6D6D6D;
  --line: #E6E6E6;
  --field: rgba(230, 230, 230, .5);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 14.96px/1.68em var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--hover); }
a[href^="tel:"] { color: inherit; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
h1, h2, h3 { margin: 0; font-size: 18px; font-weight: 400; line-height: inherit; color: inherit; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }

/* ---------------------------------------------------------------- Kopfbild: lädt mit Kreisel, blendet dann langsam ein */
/* Kopfbild: innere Fläche im Seitenverhältnis des Bildes (1280 × 542), wie object-fit: cover zentriert –
   so liegt das SVG-Logo bei jeder Breite exakt über dem eingebauten Logo */
.hero { position: relative; overflow: hidden; aspect-ratio: 2.338; container-type: size; }
.hero-in { position: absolute; top: 50%; left: 50%; width: max(100cqw, calc(100cqh * 1280 / 542)); aspect-ratio: 1280 / 542; transform: translate(-50%, -50%); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero img.hero-logo { inset: auto; height: auto; object-fit: fill; z-index: 1; }
.js .hero::before { content: ''; position: absolute; top: 50%; left: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border: 2px solid; border-color: #666 #999 #BBB #fff; border-radius: 50%; animation: spin 1s linear infinite; transition: opacity .4s; }
/* Ken Burns, veredelt: Foto erscheint aus leichter Unschärfe, setzt sich langsam (7 s) und „atmet“ danach sehr ruhig
   (28 s je Richtung). Zoom höchstens 3 % und genau um das Logo herum – das scharfe Logo bleibt stehen. */
.js .hero-in > img:first-child { opacity: 0; filter: blur(10px); transform: scale(1.03); transition: opacity 1.8s ease, filter 2.4s ease; will-change: transform; }
.js .hero.on::before { opacity: 0; }
.js .hero.on .hero-in > img:first-child { opacity: 1; filter: none; animation: kb-settle 7s cubic-bezier(.2, .6, .2, 1) forwards, kb-breathe 28s ease-in-out 7s infinite alternate; }
@keyframes kb-settle { from { transform: scale(1.03); } to { transform: scale(1); } }
@keyframes kb-breathe { from { transform: scale(1); } to { transform: scale(1.03); } }
.hero-logo { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- Rahmen: Menü links, Inhalt rechts */
.wrap { box-sizing: content-box; max-width: 980px; margin: 0 auto; padding: min(58.8px, 5.28vw) 6% 6%;
  display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 50px; align-items: start;
  grid-template-areas: "nav main" "social main" "social foot"; }
.nav { grid-area: nav; margin-bottom: 50px; }
.content { grid-area: main; }
.foot { grid-area: foot; }
.social { grid-area: social; }
.js .content { animation: fadein 2s ease both; }
@keyframes fadein { from { opacity: 0; } }

/* ---------------------------------------------------------------- Menü */
.nav ul { margin: 0; padding: 0; list-style: none; }
.nav li { border-bottom: 1px solid var(--line); }
.nav a { position: relative; display: block; padding: 15px 0; transition: transform .15s ease-out; }
.nav a:hover { transform: translateX(3px); }
.nav .current > a, .nav .ancestor > a { font-weight: 700; }
.nav .current > a:hover, .nav .open > a:hover { transform: none; }
.nav a::after { content: ''; position: absolute; top: 50%; right: 6px; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(-45deg); opacity: .6; }
.nav .current > a::after, .nav .open > a::after { right: 5%; margin-top: -5px; transform: rotate(45deg); }
.nav li ul { display: none; }
.nav li.open > ul { display: block; animation: fadein 1s ease-out; }
.nav li li:first-child { border-top: 1px solid var(--line); }
.nav li li:last-child { border-bottom: 0; }
.nav li li a { padding: 15px 20px 15px 15px; }

.social a { display: inline-block; margin-right: 2px; color: var(--link); }
.social svg { width: 19px; height: 19px; fill: currentColor; fill-rule: evenodd; vertical-align: middle; }

/* ---------------------------------------------------------------- Fußzeile */
.foot { font-size: .9em; }
.crumbs { margin: 30px 0 0; padding: 15px 0 0; border-top: 1px solid var(--line); list-style: none; }
.crumbs li { display: inline-block; padding-right: 8px; }
.crumbs li::after { content: '/'; }
.crumbs a { padding-right: 5px; }
.foot hr { height: 1px; margin: 15px 0; border: 0; background: var(--line); }

/* ---------------------------------------------------------------- Inhaltsblöcke */
.blk { display: flow-root; }
.blk.img { text-align: center; }
.fs-11 { font-size: 11px; } .fs-14 { font-size: 14px; } .fs-16 { font-size: 16px; } .fs-18 { font-size: 18px; }
img.fl { float: left; margin: 0 20px 0 0; }
img.fr { float: right; margin: 0 0 0 20px; }
.blk iframe { max-width: 100%; }

.cols { display: flex; margin: 0 -10px; }
.cols > div { min-width: 0; padding: 0 10px; }
.cols > div:first-child { flex: 0 0 var(--split); }
.cols > div:last-child { flex: 1; }

.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap, 0) 20px; text-align: center; }
.grid figure { margin: 0; }
/* Ablauf-Grafik (Bild-Option „Als Ablauf-Grafik animieren“): Maske im Bild aufgedeckt, Teile erscheinen nacheinander */
svg.flow { display: block; width: 100%; height: auto; max-width: 1198px; margin: 0 auto; }
html:not(.js) svg.flow .fl-band { mask: none; } /* ohne JavaScript: Grafik unverändert */
html:not(.js) svg.flow :is(.fl-step, .fl-lab, .fl-head, .fl-end, .fl-glow), svg.flow.done :is(.fl-step, .fl-lab, .fl-head, .fl-end, .fl-glow) { display: none; } /* Endzustand: nur das Original-Bild */
@media (prefers-reduced-motion: no-preference) {
  .js svg.flow:not(.go):not(.done) .seg { stroke: #000; } /* Band verborgen, bis die Animation startet */
  .js svg.flow .fl-step, .js svg.flow .fl-lab, .js svg.flow .fl-head, .js svg.flow .fl-end { opacity: 0; transform-box: view-box; transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .3, 1.25); }
  .js svg.flow .fl-step { transform: scale(.6); }
  .js svg.flow .fl-lab { transform: translateX(-10px); }
  .js svg.flow .fl-head { transform: translateY(-8px); }
  .js svg.flow .fl-end { transform: translateY(10px); }
  .js svg.flow .on { opacity: 1; transform: none; }
  .js svg.flow .fl-step { transition: opacity .7s ease, transform .9s cubic-bezier(.2, .9, .25, 1.3); }
  .js svg.flow .fl-lab { transition: opacity .8s ease, transform .8s ease; }
  svg.flow .fl-glow { opacity: 0; transition: opacity .6s ease; mix-blend-mode: screen; pointer-events: none; }
  svg.flow .fl-glow.on { opacity: 1; }
}
/* Symbol-Raster (Option „Symbole mit Hover-Effekt“): Kreis hebt sich, Beschriftung mit feiner Linie */
.grid.icons img { border-radius: 50%; transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s; }
.grid.icons figcaption { position: relative; display: table; margin: 0 auto; padding-bottom: 3px; transition: color .3s; } /* eigene Zeile, aber nur so breit wie der Text */
.grid.icons figcaption::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--link); transition: left .35s, right .35s; }
.grid.icons figure:hover img { transform: translateY(-5px) scale(1.06); box-shadow: 0 10px 18px -8px rgba(70, 66, 60, .55); }
.grid.icons figure:hover figcaption { color: var(--link); }
.grid.icons figure:hover figcaption::after { left: 18%; right: 18%; }
@media (prefers-reduced-motion: no-preference) {
  .js .grid.icons figure { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 70ms); }
  .js .grid.icons.in figure { opacity: 1; transform: none; }
}

/* Galerie: großes Bild, Pfeile beim Darüberfahren, Vorschaubilder darunter */
.g-stage { position: relative; margin: 8px 8px 0; overflow: hidden; }
.g-track { display: flex; align-items: flex-start; transition: transform .3s ease; }
.g-track img { flex: 0 0 100%; width: 100%; }
/* Überblendung (mit JS): alle Bilder übereinander; das neue blendet in 1,4 s über dem alten ein und setzt sich
   dabei über 6 s aus 3 % Zoom – ruhig wie das Kopfbild. Das alte bleibt deckend darunter (kein Grauschleier). */
.fade .g-track { display: grid; transition: none; }
.fade .g-track img { grid-area: 1 / 1; opacity: 0; transform: scale(1.03); transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1), transform 6s cubic-bezier(.2, .6, .2, 1); }
.fade .g-track img.was { opacity: 1; transform: none; z-index: 1; }
.fade .g-track img.on { opacity: 1; transform: none; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .fade .g-track img { transform: none !important; transition: opacity .6s ease !important; } }
.g-prev, .g-next { position: absolute; z-index: 3; top: 50%; left: -50px; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; background: rgba(255, 255, 255, .5); opacity: 0; cursor: pointer; transition: all .3s ease-in-out; }
.g-next { left: auto; right: -50px; }
.g-prev::before, .g-next::before { content: ''; display: block; width: 12px; height: 12px; margin: 0 auto; border: solid rgba(0, 0, 0, .8); border-width: 0 2px 2px 0; transform: translateX(-2px) rotate(-45deg); }
.g-prev::before { transform: translateX(2px) rotate(135deg); }
.gallery:hover .g-prev, .g-prev:focus-visible { left: 10px; opacity: .7; }
.gallery:hover .g-next, .g-next:focus-visible { right: 10px; opacity: .7; }
.g-prev:hover, .g-next:hover { opacity: 1 !important; }
.g-thumbs { display: flex; gap: 5px; margin: -1px 8px 8px; overflow-x: auto; border: 6px solid #fff; background: #fff; scrollbar-width: none; scroll-behavior: smooth; }
.g-thumbs::-webkit-scrollbar { display: none; }
.g-thumbs button { position: relative; flex: 0 0 85px; height: 68px; padding: 0; border: 0; background: none; opacity: .35; cursor: pointer; transition: opacity .6s ease; }
.g-thumbs button::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; background: #fff; opacity: .9; transition: left .6s ease, right .6s ease; }
.g-thumbs .on::after { left: 0; right: 0; }
.g-thumbs button:hover, .g-thumbs .on { opacity: 1; }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Vorher/Nachher-Vergleich */
.compare { position: relative; overflow: hidden; line-height: 0; user-select: none; }
.compare img { display: block; width: 100%; }
.c-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.c-before img { height: 100%; object-fit: cover; }
.c-handle { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 12px rgba(51, 51, 51, .5); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 38' fill='%23fff'%3E%3Cpath d='M7 19l6-6v12zm24 0l-6-6v12z'/%3E%3C/svg%3E") center / 100%; }
.c-handle::before, .c-handle::after { content: ''; position: absolute; left: 50%; width: 3px; height: 9999px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(51, 51, 51, .5); }
.c-handle::before { bottom: calc(100% + 3px); }
.c-handle::after { top: calc(100% + 3px); }
.c-label { position: absolute; top: 50%; margin-top: -19px; padding: 0 20px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 13px; line-height: 38px; letter-spacing: .1em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .5s; }
.c-label.l { left: 10px; } .c-label.r { right: 10px; }
.compare:hover .c-label { opacity: 1; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }

/* Google-Karte: lädt erst nach Klick */
/* Karte (OpenStreetMap): Vorschaubild, „Karte laden“ unten mittig (Stecknadel bleibt frei) */
.map { max-width: 670px; background: #F2F2F2 center / cover no-repeat; }
.map-in { display: grid; place-items: end center; padding-bottom: 22px; }
.map button { display: grid; gap: 4px; padding: 12px 24px; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); color: var(--text); font: 11.5px var(--font); cursor: pointer; transition: transform .25s, box-shadow .25s; }
.map button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.map button b { color: var(--link); font-size: 14.5px; font-weight: 500; letter-spacing: .2px; } /* ruhig & edel wie die Formularbeschriftungen */
.map.loaded { background-image: none !important; }
.map.loaded .map-in { display: block; padding: 0; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-links { max-width: 670px; margin: 6px 0 0; font-size: .75em; color: #9A9A9A; }
.map-links a { color: inherit; text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .2); text-underline-offset: 2px; }
.map-links a:hover { color: var(--link); }

/* Kontaktformular */
.cform { padding-bottom: 40px; } /* Abstand zum nächsten Baustein (z. B. Karte) */
.cform .f { margin-bottom: 25px; }
.cform label { display: inline-block; padding-bottom: 6px; color: var(--link); font-size: .95em; font-weight: 500; letter-spacing: .2px; }
.cform label .req { margin-left: 7px; color: #A39C93; font-size: .72em; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
.cform input:not([type=checkbox], [type=file]), .cform textarea, .cform select { display: block; width: 92%; padding: 13px 11px; border: 0; border-bottom: 1px solid #E5E5E5; border-radius: 0; background: var(--field); color: var(--text); font: 1em var(--font); -webkit-appearance: none; appearance: none; }
.cform :focus { outline: 0; border-bottom-color: #BBB; }
/* Dateifeld: gestaltete Fläche, die echte Auswahl liegt unsichtbar darüber (Klick, Tastatur, Ziehen) */
.upl { position: relative; display: flex; align-items: center; gap: 14px; width: 92%; min-height: 56px; padding: 9px 11px; border: 1px dashed #CFCFCF; background: var(--field); transition: border-color .25s, background .25s; }
.upl input[type=file] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.upl-btn { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 9px 16px; background: var(--link); color: #fff; font-size: .9em; font-weight: 500; letter-spacing: .2px; transition: background .25s; }
.upl-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.upl-name { min-width: 0; overflow: hidden; color: #9A9A9A; font-size: .9em; text-overflow: ellipsis; white-space: nowrap; }
.upl.has .upl-name { color: var(--link); }
.cform .upl-x { position: relative; z-index: 2; margin-left: auto; padding: 4px 8px; border: 0; background: none; color: var(--text); font: 22px/1 var(--font); letter-spacing: 0; cursor: pointer; }
.cform .upl-x:hover { background: none; color: var(--link); }
.upl:hover, .upl.drag { border-color: #9A9A9A; background: rgba(225, 225, 225, .6); }
.upl:hover .upl-btn, .upl.drag .upl-btn { background: #222; }
.upl:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.upl-hint, .upl-err { display: block; margin-top: 6px; font-size: .75em; line-height: 1.4; color: #9A9A9A; }
.upl-err { color: #b53c3c; }
.upl-err[hidden] { display: none; }
@media (max-width: 600px) { .upl { width: 100%; flex-wrap: wrap; } }
.cform button { padding: 12px 17px; border: 0; border-bottom: 1px solid #E5E5E5; background: var(--field); color: var(--text); font: .8em var(--font); letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.cform button:hover { color: var(--hover); background: rgba(210, 210, 210, .5); }
/* Absende-Knopf: ruhig & edel – Anthrazit, normale Schreibweise, kein Versal-Sperrsatz */
.cform button[type=submit] { margin-top: 4px; padding: 14px 30px; border: 0; background: var(--link); color: #fff; font: 500 .95em var(--font); letter-spacing: .3px; text-transform: none; transition: background .25s, transform .25s; }
.cform button[type=submit]:hover { background: #222; color: #fff; transform: translateY(-1px); }
.cform button[type=submit]:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.msg { margin-bottom: 25px; padding: 13px 11px; background: var(--field); }
.msg.err { border-left: 3px solid #b53c3c; }
.msg.ok { border-left: 3px solid #3B3B3B; }

/* ---------------------------------------------------------------- Aktions-Hinweis & Cookie-Einwilligung */
.badge { position: fixed; left: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; background: #fff; color: #000;
  font: 700 12px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; box-shadow: 0 1px 5px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .2); transition: all .3s ease-in-out; }
.badge:hover { color: #000; }
.js .badge:not(.in) { opacity: 0; transform: translateX(-150%); }

#cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 10px 30px; padding: 10px 20px; background: #F8F8F8; border-top: 1px solid var(--line); color: var(--link); font-size: 12px; line-height: 1.5; }
#cookie[hidden] { display: none; }
#cookie div { display: flex; gap: 8px; flex-shrink: 0; }
#cookie button { padding: 6px 14px; border: 1px solid var(--link); border-radius: 3px; background: #fff; color: var(--link); font: 700 12px var(--font); cursor: pointer; }
#cookie button[data-consent=yes] { background: var(--link); color: #fff; }

.preview-note { position: fixed; top: 0; left: 50%; z-index: 99; padding: 4px 14px; transform: translateX(-50%); background: #9B5F38; color: #fff; font-size: 12px; }

/* ---------------------------------------------------------------- Kleine Bildschirme: Menü oben, volle Breite */
@media (max-width: 600px) {
  .hero { aspect-ratio: 3 / 2; }
  .wrap { display: block; padding: 0 6vw 6vw; }
  .nav { margin: 0 -6vw 10px; }
  .nav a { padding: 15px 6vw; }
  .nav a::after { right: 6vw; }
  .nav .current > a::after, .nav .open > a::after { right: 6vw; }
  .nav li li a { padding-left: 10vw; }
  .content { padding-top: 20px; }
  .social { padding-top: 20px; }
  .grid { grid-template-columns: repeat(min(var(--cols), 2), minmax(0, 1fr)); }
  img.fl, img.fr { float: none; display: block; margin: 0 auto 15px; }
  #cookie { flex-direction: column; align-items: stretch; }
}
@media (max-width: 400px) {
  .cols { display: block; margin: 0; }
  .cols > div { padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero img { opacity: 1; transform: none; filter: none; }
}
