/* =====================================================================
   Handke — One-Page-Overrides (nur sabine_neu.html)
   Wird NACH handke.css geladen und überschreibt gezielt.
   ===================================================================== */

/* ---- Palette an die Acryltafel angeglichen (Hellgrau/Dunkelgrau/Gold) ---- */
:root {
  --bg: #d5d6d7;          /* Tafel-Hellgrau (#D1D3D4–#D9DADB) */
  --bg-alt: #cccdce;      /* Wechsel-Abschnitte, etwas dunkler */
  --bg-elev: #c6c7c9;     /* Karten / Boxen */
  --ink: #4d4d4f;         /* Haupttext Dunkelgrau (Tafel #58585A, leicht dunkler f. Lesbarkeit) */
  --ink-soft: #747577;    /* Sekundärgrau (Tafel #757679 / #797A7C) */
  --gold: #bda35b;        /* Tafel-Gold (HANDKE-Wortmarke) */
  --gold-deep: #8c7434;   /* tiefer, für Text-Akzente/Lesbarkeit */
  --line: rgba(0, 0, 0, 0.16);
  --line-soft: rgba(0, 0, 0, 0.09);
  --header-h: 100px;      /* beide Logos gestapelt (wie Visitenkarte), ohne Text */
}

/* ---- Header beim Scrollen konstant: keine Verkleinerung, kein Farbwechsel ---- */
.site-header,
.site-header.scrolled {
  background: var(--bg);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line-soft);
  box-shadow: none;
}
.site-header.scrolled .brand-group .brand-block img { height: 30px; }
.site-header.scrolled .brand-group .brand-block:nth-child(2) img { height: 26px; }

/* ---- Header: beide Logos untereinander, je mit Text (wie Visitenkarte) ---- */
.brand-group { flex-direction: column; align-items: center; gap: .5rem; }
.brand-group .divider { display: none; }
.brand-group .brand-block { display: flex; flex-direction: column; align-items: center; gap: .12rem; line-height: 1; text-align: center; }
.brand-group .brand-block img { height: 30px; width: auto; transition: height .3s; }
.brand-group .brand-block:nth-child(2) img { height: 26px; }         /* VS-Monogramm etwas kleiner */
.site-header.scrolled .brand-group .brand-block img { height: 26px; }
.site-header.scrolled .brand-group .brand-block:nth-child(2) img { height: 22px; }
.brand-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: .72rem; letter-spacing: .05em; color: var(--ink-soft); white-space: nowrap; }

/* ---- Hinweisbanner ganz oben im festen Kopf ----
   Der Kopf waechst um die Bannerhoehe. Die Werte hier sind nur Rueckfallwerte
   (gemessen: 129px Desktop, 160px Handy) — handke-onepage.js misst die echte
   Hoehe und setzt --header-h passend, weil der Bannertext je nach Breite
   unterschiedlich oft umbricht. Banner raus = alles wieder wie vorher. */
html:has(.topbar) { --header-h: 129px; }

.topbar {
  background: var(--gold-deep);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1.4rem;
  margin: -0.9rem 0 0.9rem;      /* buendig an die Oberkante des Kopfes */
}
.topbar p {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: #fff;
}
@media (max-width: 720px) {
  html:has(.topbar) { --header-h: 160px; }
  .topbar { padding: 0.5rem 1rem; }
  .topbar p { font-size: 0.72rem; }
}

/* ---- Karte: statisches Bild statt Google-Einbettung (Datenschutz) ---- */
.karte { margin: 2.5rem 0 0; }
.karte picture,
.karte img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.karte-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}
.karte-fuss .btn { margin: 0; }
.karte-quelle { font-size: 0.74rem; color: var(--ink-soft); }
@media (max-width: 560px) {
  .karte-fuss { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---- H1 der Startseite: sieht aus wie die uebrigen Abschnitts-Ueberschriften,
       ist aber semantisch die Hauptueberschrift (fuer Suchmaschinen wichtig) ---- */
.section-head h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.section-head h1 em {
  font-style: italic;
  color: var(--gold-deep);
}
.hero-lead {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

/* ---- Freigestellte Kachel: Grau des jeweils anderen Abschnitts hinterlegen ---- */
.gallery-grid .piece.tile-bg .piece-img { background: var(--bg); }

/* ---- Terminanfrage-Formular ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.4rem;
}
.form-grid .span2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; }
.field label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(189, 163, 91, 0.18);
}
.field input:invalid:not(:placeholder-shown) { border-color: #b3261e; }
/* Honigtopf gegen Spam-Bots: für Menschen unsichtbar, für Bots verlockend */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}
.form-note a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.form-status {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  display: none;
}
.form-status.ok { display: block; background: #e7efe4; border: 1px solid #b9d4b0; color: #2e5c26; }
.form-status.err { display: block; background: #f7e7e6; border: 1px solid #e0b6b3; color: #8c2f28; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---- Bild-Vergrößerung per Klick ---- */
.gallery-grid .piece .piece-img { cursor: zoom-in; }
.gallery-grid .piece .piece-img:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background: rgba(28, 28, 28, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.lightbox figcaption {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.3rem;
  color: #f2f2f0;
  margin-top: 1.1rem;
  text-align: center;
}
.lightbox figcaption .lb-sub {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-top: 0.35rem;
}
.lightbox .lb-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox .lb-close:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
body.lb-open { overflow: hidden; }
@media (max-width: 560px) {
  .lightbox { padding: 1.2rem; }
  .lightbox img { max-height: 72vh; }
  .lightbox figcaption { font-size: 1.1rem; }
}

/* ---- Galerie mit nur 3 Bildern: gleiche Kachelbreite wie im 4er-Raster,
       aber mittig statt mit Lücke rechts ---- */
.gallery-grid.g3 {
  grid-template-columns: repeat(3, calc((100% - 3 * 1.1rem) / 4));
  justify-content: center;
}

/* ---- Kollektions-Galerie: Bilder im Originalverhältnis (kein Quadrat-Crop) ---- */
.gallery-grid { align-items: start; }
.gallery-grid .piece .piece-img { aspect-ratio: auto; }
.gallery-grid .piece .piece-img img { height: auto; object-fit: fill; }

/* ---- Ganze Seite auf volle Breite: Container weiter ---- */
.container { max-width: 1720px; padding: 0 3rem; }
@media (max-width: 920px) { .container { padding: 0 1.4rem; } }

/* ---- Philosophie: volle Breite, 3 Spalten (Bild | Text | Video) ---- */
.philo3 {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.75fr;
  gap: 3rem; align-items: center;
  max-width: 1720px; margin: 0 auto; padding: 0 3rem;
}
.philo-img { margin: 0; overflow: hidden; }
.philo-img img { width: 100%; height: auto; display: block; }
.philo-text p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.philo-video .frame { aspect-ratio: 9/16; max-width: 300px; margin: 0 auto; }
.philo-video .frame::before { display: none; }
.philo-video video { width: 100%; height: 100%; object-fit: cover; background: #000; display: block; }
.philo-video .video-cap { text-align: center; }
@media (max-width: 920px) {
  .philo3 { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.4rem; max-width: 560px; }
}

/* Anker-Offset unter dem festen Header */
section[id], .subsection { scroll-margin-top: calc(var(--header-h) + 1.2rem); }

/* Abschnitte etwas kompakter */
section { padding: 4.4rem 0; }

/* ---- Galerien kompakter: 4 pro Reihe, kleinere Bilder ---- */
.gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.piece .piece-img { border-color: var(--line-soft); }
.piece h3 { font-size: 1.08rem; margin-top: .7rem; line-height: 1.25; }
.piece .p-sub { font-size: .64rem; letter-spacing: .16em; margin-top: .15rem; }

/* ---- Unter-Abschnitte (Perlen/Opal/Silber, Trauringe/Antragsringe) ---- */
.subsection + .subsection { margin-top: 3.6rem; }
.subhead { text-align: center; max-width: 660px; margin: 0 auto 2.2rem; }
.subhead .eyebrow { margin-bottom: .5rem; }
.subhead h3 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.1; }
.subhead p { color: var(--ink-soft); font-size: 1rem; margin-top: .5rem; }

/* ---- Intro-/Philosophie-/Video-Bilder etwas kleiner ---- */
.unikat { gap: 3.6rem; align-items: center; }
.unikat-fig { max-width: 460px; }
.split { gap: 3.2rem; }
.split .split-img { max-width: 460px; }
.video-block { max-width: 340px; }

/* ---- Responsive Galerie ---- */
@media (max-width: 920px) {
  .gallery-grid,
  .gallery-grid.g3 { grid-template-columns: repeat(3, 1fr); }
  .unikat-fig, .split .split-img { max-width: none; }
}
@media (max-width: 560px) {
  .gallery-grid,
  .gallery-grid.g3 { grid-template-columns: repeat(2, 1fr); }
}
