/* Die Fotobox Zollernalb: Grundgerüst (ersetzt das IONOS Baukasten CSS) */
@font-face { font-family: "Cabin"; src: url("/assets/fonts/cabin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "BioRhyme"; src: url("/assets/fonts/biorhyme.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --hg: #e8e3e4;
  --hg-hell: #f3f0f0;
  --text: #141413;
  --grau: #6b6964;
  --gold: #b08a5a;
  --gold-hell: #c9b48a;
  --dunkel: #141413;
  --radius: 14px;
  --breit: 1240px;
  --schmal: 980px;
  --h1: 48px; --h2: 30px; --h3: 23px; --h4: 19px;
}
@media (max-width: 1024px) { :root { --h1: 40px; --h2: 27px; --h3: 21px; } }
@media (max-width: 767px) { :root { --h1: 31px; --h2: 24px; --h3: 20px; --h4: 18px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--hg); color: var(--text); font: 17px/1.65 "Cabin", Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: "BioRhyme", Georgia, serif; font-weight: 400; line-height: 1.45; margin: 0 0 .7em; letter-spacing: .5px; overflow-wrap: break-word; }
h1 { font-size: var(--h1); letter-spacing: 1.5px; line-height: 1.25; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
p { margin: 0 0 1em; }
.text a { text-decoration: underline; text-underline-offset: 2px; }
.text ul, .text ol { padding-left: 1.2em; margin: 0 0 1em; }
.zentriert { text-align: center; }
.rechts { text-align: right; }
.klein { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.sprung:focus { left: 8px; }

/* Raster */
.rahmen { max-width: var(--breit); margin: 0 auto; padding: 0 24px; }
.rahmen.schmal { max-width: var(--schmal); }
.sek { padding: clamp(40px, 6vw, 80px) 0; }
.sek-einstieg { padding-top: clamp(24px, 4vw, 48px); }
.raster-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.spalte > *:last-child { margin-bottom: 0; }
.raster-n { display: grid; grid-template-columns: var(--spalten); gap: clamp(24px, 3.5vw, 56px); align-items: center; }
.raster-n.raster-3, .raster-n.raster-4, .raster-n.raster-5, .raster-n.raster-6 { align-items: start; gap: 24px; }
@media (max-width: 800px) { .raster-2, .raster-n { grid-template-columns: 1fr; } }
@media (min-width: 801px) and (max-width: 1100px) { .raster-n.raster-4, .raster-n.raster-5, .raster-n.raster-6 { grid-template-columns: 1fr 1fr; } }
.bild { margin: 0 0 1em; }
.bild img { width: 100%; }
.baustein { width: 100%; overflow-x: clip; }
.baustein h1, .baustein h2, .baustein h3, .baustein h4 { font-family: "BioRhyme", Georgia, serif; font-weight: 400; }

/* Hintergrundbild Sektionen und Einstieg */
.sek-bild-hg { position: relative; color: #fff; background: #141413 var(--hg) center / cover no-repeat; isolation: isolate; }
.sek-bild-hg::before { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 19, var(--dunkel, .5)); z-index: -1; }
@media (max-width: 960px) { .sek-bild-hg { background-image: var(--hg-klein); } }
.sek-bild-hg h1, .sek-bild-hg h2, .sek-bild-hg h3 { color: #fff; }
.sek-bild-hg .text { color: #e9e5df; }
.sek-hero { min-height: min(78vh, 760px); display: flex; flex-direction: column; justify-content: center; padding: clamp(80px, 12vw, 140px) 0 clamp(100px, 12vw, 160px); clip-path: ellipse(140% 100% at 30% 0%); }
.sek-hero .rahmen { width: 100%; }
.sek-hero h1 { margin-bottom: .4em; }
.sek-hero h2 { color: #e9e5df; }
.sek-hero .text { text-align: center; max-width: 900px; margin: 0 auto; }

/* Knöpfe */
.knopf { display: inline-block; background: var(--dunkel); color: #fff; text-decoration: none; padding: 13px 26px; border-radius: 999px; border: 0; font: 600 15px/1.2 "Cabin", Arial, sans-serif; cursor: pointer; letter-spacing: .3px; transition: transform .15s, background .15s; }
.knopf:hover { transform: translateY(-1px); background: #2b2a28; }
.knopf-hell { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(20, 20, 19, .4); }
.knopf-hell:hover { background: rgba(20, 20, 19, .06); }
.knopf-zeile { text-align: center; margin: 1em 0; }
.knopf-primaer { background: #e09758; color: var(--text); border-radius: 8px; font-weight: 500; font-size: 17px; letter-spacing: .5px; padding: 12px 24px; }
.knopf-primaer:hover { background: #d4884a; }
.knopf-rahmen { background: transparent; color: #845730; box-shadow: inset 0 0 0 1px #845730; border-radius: 8px; font-weight: 500; font-size: 17px; letter-spacing: .5px; padding: 12px 24px; }
.knopf-rahmen:hover { background: rgba(132, 87, 48, .08); }
.sek-bild-hg .knopf { background: #fff; color: var(--text); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(232, 227, 228, .96); backdrop-filter: blur(6px); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.logo { width: 118px; height: auto; margin: 4px 0; }
.hauptnav ul { list-style: none; margin: 0; padding: 0; }
.hauptnav > ul { display: flex; align-items: center; gap: 6px; }
.hauptnav a, .hauptnav button { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; font: 400 16px/1.3 "Cabin", Arial, sans-serif; background: none; border: 0; cursor: pointer; }
.hauptnav a[aria-current=page] { box-shadow: inset 0 -1px 0 var(--text); }
.hauptnav .nav-cta a { padding: 11px 22px; color: #fff; background: var(--dunkel); border-radius: 999px; margin-left: 8px; }
.mit-unter { position: relative; }
.mit-unter > button::after { content: " ▾"; font-size: 11px; }
.mit-unter > ul { display: none; position: absolute; right: 0; top: 100%; min-width: 230px; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); padding: 8px; }
.mit-unter:hover > ul, .mit-unter.offen > ul, .mit-unter:focus-within > ul { display: block; }
.mit-unter > ul a { border-radius: 8px; }
.mit-unter > ul a:hover { background: var(--hg); }
.menue-knopf { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menue-knopf span:not(.sr) { display: block; width: 26px; height: 2px; background: var(--text); margin: 5px 0; }
@media (max-width: 1080px) {
  .kopf-innen { min-height: 72px; }
  .logo { width: 84px; }
  .menue-knopf { display: block; }
  .hauptnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--hg); padding: 8px 24px 24px; box-shadow: 0 12px 24px rgba(0, 0, 0, .08); max-height: calc(100vh - 72px); overflow: auto; }
  .kopf.offen .hauptnav { display: block; }
  .hauptnav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .mit-unter > ul { position: static; box-shadow: none; background: transparent; padding: 0 0 0 12px; display: block; }
  .mit-unter > button { display: none; }
  .hauptnav .nav-cta a { margin: 12px 0 0; text-align: center; }
}

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.galerie-bild { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; }
.galerie-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie-bild figcaption { padding: 10px 14px 14px; font-size: 14px; }
.galerie-bild figcaption strong { display: block; }
.galerie-bild figcaption:empty { display: none; }

/* Formular */
.sek-anfrage { background: var(--hg-hell); }
.sek-anfrage h1, .sek-anfrage h2 { text-align: left; }
.sek-anfrage .raster-2 { align-items: start; }
.formular { background: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.formular label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.formular input[type=text], .formular input[type=email], .formular input[type=tel], .formular textarea, .formular select { width: 100%; font: 15px/1.4 "Cabin", Arial, sans-serif; padding: 11px 13px; border: 1px solid #cfcac2; border-radius: 10px; background: #fff; color: var(--text); }
.formular input:focus, .formular textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.formular fieldset { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.formular legend { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.formular .wahl { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.formular .wahl input { margin-top: 3px; accent-color: var(--dunkel); }
.formular .einwilligung { font-size: 13px; }
.formular button { justify-self: start; }
.hp { position: absolute; left: -5000px; }

/* Fuß */
.fuss { background: var(--dunkel); color: #d9d4cc; padding: 56px 0 24px; font-size: 14px; }
.fuss a { color: #d9d4cc; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-raster { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .fuss-raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fuss-raster { grid-template-columns: 1fr; } }
.fuss-marke { font: 400 26px/1.2 "BioRhyme", Georgia, serif; color: #fff; }
.fuss-titel { font-weight: 600; color: #fff; margin: 0 0 8px; }
.fuss-links { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 4px; }
.fuss-unten { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; }
.fuss-unten .klein { color: #9c978f; max-width: 900px; margin: 10px auto 0; }

/* Cookie Abfrage */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2147483000; max-width: 720px; margin: 0 auto; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(0, 0, 0, .2); padding: 18px 20px; display: grid; gap: 12px; font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { text-decoration: underline; }
.cookie-knoepfe { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Bausteine auf gleicher Höhe (z. B. Bilderreihe unter einem großen Bild) */
.reihe { display: grid; grid-template-columns: var(--spalten); gap: 14px; align-items: start; margin: 0 0 1em; }
.reihe > div > *:last-child { margin-bottom: 0; }
.reihe .bild { margin: 0; }
@media (max-width: 560px) { .reihe:has(.text) { grid-template-columns: 1fr; } }
