/* ==========================================================
   Hugos Backstube – Gestaltung
   Farben: Referenzbild · Aufbau & Anmutung: angelehnt an qissa.co.uk
   Schriften lokal eingebunden (keine Verbindung zu Google)
   ========================================================== */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --anthrazit: #2B2A28;
  --anthrazit-tief: #1F1E1C;
  --graphit: #5B5B5B;
  --graphit-dunkel: #383634;
  --gold: #E1B96E;
  --gold-dunkel: #B88A3B;
  --champagner: #D6BC84;
  --creme: #F2EBDA;
  --text: #DDD8CC;
  --text-leise: #A9A397;
  --linie: rgba(225, 185, 110, .22);
  --glas: rgba(255, 250, 240, .035);

  --gold-metall: linear-gradient(115deg, #B8893A 0%, #E9C77F 28%, #F6E2AE 46%, #D7A957 66%, #B8893A 100%);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;

  --breite: 1180px;
  --kopf-hoehe: 92px;
  --rund: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #34322F 0%, var(--anthrazit) 45%, var(--anthrazit-tief) 100%) fixed;
  color: var(--text); font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--creme); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Goldstaub-Hintergrund (Canvas aus main.js) */
/* Goldstaub liegt IMMER hinter allen Inhalten und Bildern (nur auf dem dunklen Seitengrund sichtbar).
   Höhe = größter Bildschirm (lvh), damit das Ein-/Ausblenden der Adressleiste beim Wischen nichts verschiebt. */
#goldstaub { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; }
main, .fuss { position: relative; z-index: 2; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--creme); line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.01em; }
h1 { font-size: clamp(3rem, 7vw, 5.4rem); }
/* Lange deutsche Wörter (z. B. „Datenschutzerklärung“) dürfen auf schmalen Bildschirmen umbrechen */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.7rem; font-weight: 400; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold); }
p { margin: 0 0 1.1em; max-width: 66ch; }

.ueberzeile {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}
.ueberzeile::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.zentriert .ueberzeile::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.zentriert { text-align: center; }
.zentriert p { margin-left: auto; margin-right: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Knöpfe (Pillenform, Gold) ---------- */
.knopf {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--creme); background: rgba(31,30,28,.35); border: 1px solid rgba(242,235,218,.28);
  padding: 15px 28px; border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: border-color .3s, color .3s, background .3s, box-shadow .3s, transform .3s;
}
.knopf:hover { border-color: var(--gold); color: var(--gold); }
.knopf.gold {
  color: #2A2316; background: var(--gold-metall); background-size: 200% 100%; border-color: transparent;
  box-shadow: 0 6px 26px rgba(225,185,110,.28);
}
.knopf.gold:hover { color: #2A2316; background-position: 100% 0; box-shadow: 0 8px 34px rgba(225,185,110,.45); transform: translateY(-1px); }
.knopf.klein { padding: 11px 20px; font-size: .74rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 14px; }
.zentriert .knopfreihe { justify-content: center; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--kopf-hoehe);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(16px, 4vw, 48px); transition: background .4s, height .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.kopf.ist-gescrollt { background: rgba(31,30,28,.88); backdrop-filter: blur(10px); border-bottom-color: var(--linie); --kopf-hoehe: 74px; height: 74px; }
.kopf .menue-knopf {
  justify-self: start; display: inline-flex; align-items: center; gap: 14px;
  background: none; border: 0; cursor: pointer; color: var(--creme); padding: 10px 0;
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.menue-knopf .striche { width: 30px; display: grid; gap: 6px; }
.menue-knopf .striche i { display: block; height: 1.5px; background: var(--gold); transition: transform .35s, width .35s, opacity .35s; }
.menue-knopf .striche i:nth-child(2) { width: 70%; }
.menue-knopf .striche i:nth-child(3) { width: 45%; }
.menue-knopf:hover .striche i { width: 100%; }
.kopf .schriftzug img { height: 58px; width: auto; transition: height .4s; }
.kopf.ist-gescrollt .schriftzug img { height: 46px; }
.kopf .rechts { justify-self: end; display: flex; gap: 10px; }

/* Vollbild-Menü */
.menue {
  position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: 1.1fr 1fr;
  background: rgba(24,23,21,.97); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s;
}
body.menue-offen .menue { opacity: 1; visibility: visible; }
.menue .liste { display: flex; flex-direction: column; justify-content: center; padding: 120px clamp(24px, 7vw, 110px) 60px; gap: 6px; }
.menue .liste a {
  display: flex; align-items: baseline; gap: 22px; text-decoration: none; color: var(--creme);
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.15;
  transform: translateY(14px); opacity: 0; transition: color .3s, transform .5s, opacity .5s;
}
body.menue-offen .menue .liste a { transform: none; opacity: 1; }
.menue .liste a span { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--gold); min-width: 2ch; }
.menue .liste a:hover, .menue .liste a[aria-current="page"] { color: var(--gold); }
.menue .liste a[aria-current="page"] { font-style: italic; }
.menue .seite { border-left: 1px solid var(--linie); padding: 140px clamp(24px, 5vw, 80px) 60px; display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.menue .seite h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.menue .seite p { margin: 0; color: var(--text); }
.menue .seite a { color: var(--creme); text-decoration: none; }
.menue .seite a:hover { color: var(--gold); }
.menue .seite a.knopf.gold, .menue .seite a.knopf.gold:hover { color: #2A2316; }
.menue .klein { display: flex; gap: 22px; font-size: .9rem; }
.menue .klein a { color: var(--text-leise); }
.menue-schliessen {
  position: absolute; top: 24px; left: clamp(16px, 4vw, 48px); z-index: 2;
  display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; cursor: pointer; color: var(--creme);
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; padding: 10px 0;
}
.menue-schliessen b { font-weight: 300; font-size: 2rem; line-height: 1; color: var(--gold); }

/* ---------- Seitenkopf der Unterseiten ---------- */
.seitenkopf {
  position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--kopf-hoehe) + 40px) clamp(16px, 4vw, 48px) 120px; overflow: hidden; isolation: isolate;
}
.seitenkopf .hintergrund { position: absolute; inset: -6%; z-index: -2; background: center / cover no-repeat; animation: schwenk 26s ease-in-out infinite alternate; }
.seitenkopf::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(24,23,21,.72) 0%, rgba(31,30,28,.55) 40%, rgba(43,42,40,.92) 88%, var(--anthrazit) 100%); }
.seitenkopf .innen { max-width: 900px; }
.seitenkopf h1 { margin-bottom: .3em; }
.seitenkopf .unterzeile { font-size: 1.12rem; color: var(--text); max-width: 56ch; margin: 0 auto; }
.scroll-hinweis { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px;
  font-size: .7rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--text-leise); }
.scroll-hinweis::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: tropfen 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes tropfen { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes schwenk { from { transform: scale(1.02) translate3d(-1.5%, -1%, 0); } to { transform: scale(1.1) translate3d(1.5%, 1%, 0); } }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(72px, 10vw, 130px) clamp(16px, 4vw, 48px); position: relative; }
.abschnitt .innen { max-width: var(--breite); margin: 0 auto; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.einleitung { font-size: 1.15rem; color: var(--text); }
.zitat { border-left: 1px solid var(--gold); padding: 4px 0 4px 22px; margin: 28px 0 0; }
.zitat p { font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.45; color: var(--creme); margin: 0 0 8px; }
.zitat cite { font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

.bildrahmen { position: relative; border-radius: var(--rund); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.bildrahmen img { width: 100%; height: 100%; object-fit: cover; }
.bildrahmen::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(225,185,110,.45); border-radius: calc(var(--rund) - 6px); pointer-events: none; }

.karte {
  background: var(--glas); border: 1px solid var(--linie); border-radius: var(--rund);
  backdrop-filter: blur(4px);
}

/* Goldenes Laufband */
.laufband { background: var(--gold-metall); overflow: hidden; padding: 16px 0; position: relative; z-index: 1; }
.laufband .spur { display: flex; width: max-content; animation: laufen 38s linear infinite; }
.laufband span { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: #2A2316; padding: 0 30px; white-space: nowrap; display: inline-flex; align-items: center; gap: 60px; }
.laufband span::after { content: "✦"; font-style: normal; font-size: 1rem; color: rgba(42,35,22,.7); }
@keyframes laufen { to { transform: translateX(-50%); } }

/* Bildband über volle Breite */
.bildband { position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; isolation: isolate; padding: 80px 24px; }
.bildband .hintergrund { position: absolute; inset: -8% 0; z-index: -2; background: center / cover no-repeat; will-change: transform; }
.bildband::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(24,23,21,.62); }
.bildband p { color: var(--creme); font-size: 1.15rem; }

/* Einblenden beim Scrollen */
.js .einblenden { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .einblenden.sichtbar { opacity: 1; transform: none; }

/* ---------- Fußzeile ---------- */
.fuss { border-top: 1px solid var(--linie); padding: 80px clamp(16px, 4vw, 48px) 34px; font-size: .98rem; background: rgba(24,23,21,.6); }
.fuss .innen { max-width: var(--breite); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.fuss img { height: 64px; width: auto; margin-bottom: 18px; }
.fuss h2 { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 6px 0 14px; }
.fuss p, .fuss address { font-style: normal; color: var(--text-leise); margin: 0; }
.fuss a { color: var(--text); text-decoration: none; }
.fuss a:hover { color: var(--gold); }
.fuss .rechtliches { max-width: var(--breite); margin: 54px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .85rem; color: var(--text-leise); }
.fuss .rechtliches nav { display: flex; gap: 22px; }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: 18px; }
.formular label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--champagner); margin-bottom: 8px; }
.formular input, .formular select, .formular textarea {
  width: 100%; font: inherit; color: var(--creme); color-scheme: dark;
  background: rgba(255,250,240,.04); border: 1px solid rgba(242,235,218,.18); border-radius: 12px; padding: 14px 16px;
  transition: border-color .25s, background .25s;
}
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,250,240,.07); }
.formular textarea { min-height: 150px; resize: vertical; }
.formular select option { background: var(--anthrazit); color: var(--creme); }
.feldreihe { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pflicht { color: var(--gold); }
.hinweis-klein { font-size: .88rem; color: var(--text-leise); margin: 0; }
.meldung { padding: 14px 18px; border: 1px solid var(--gold); border-radius: 12px; color: var(--creme); display: none; margin: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  :root { --kopf-hoehe: 72px; }
  .kopf .rechts .knopf:not(.gold) { display: none; }
  .kopf .schriftzug img { height: 40px; }
  .kopf.ist-gescrollt .schriftzug img { height: 36px; }
  .menue-knopf .text { display: none; }
  .menue { grid-template-columns: 1fr; overflow-y: auto; }
  .menue .liste { padding: 110px 28px 20px; }
  .menue .seite { border-left: 0; border-top: 1px solid var(--linie); padding: 30px 28px 50px; }
  .zwei-spalten, .feldreihe { grid-template-columns: minmax(0, 1fr); }
  .fuss .innen { grid-template-columns: 1fr 1fr; }
  .seitenkopf { min-height: 70vh; }
}
@media (max-width: 560px) {
  .kopf { padding: 0 14px; }
  .kopf .schriftzug img, .kopf.ist-gescrollt .schriftzug img { height: 30px; }
  .kopf .rechts .knopf.gold { padding: 9px 12px; font-size: .64rem; letter-spacing: .08em; }
  .fuss .innen { grid-template-columns: 1fr; }
  .laufband span { font-size: 1.35rem; }
  h1 { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  h2 { font-size: clamp(1.9rem, 8.5vw, 2.3rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
