/* Bridge: new homepage design system + multi-page layouts */

body.page-home,
body.page-gallery,
body.page-about,
body.page-process,
body.page-contact,
body.page-piece,
body.page-legal {
  max-width: none;
  margin: 0;
  box-shadow: none;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
}

/* Subpages: solid header (not overlaid on hero) */
.site-header.is-solid {
  position: sticky;
  top: 0;
  background: rgba(241, 236, 226, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header .language-switcher {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .18em;
}

.site-header .language-switcher button {
  min-width: 24px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .45;
}

.site-header .language-switcher button.active,
.site-header .language-switcher button:hover {
  border-color: currentColor;
  opacity: 1;
}

.site-header .language-switcher i {
  font-style: normal;
  opacity: .35;
  margin: 0 4px;
}

.site-header .brand,
.site-footer .brand {
  width: auto;
  height: auto;
  margin: 0;
}

.site-footer {
  display: block;
  min-height: 0;
  padding: 26px 0;
  background: var(--cream);
  color: var(--tan);
}

.menu-toggle {
  display: none;
  padding: 6px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  margin: 6px 0;
  background: var(--ink);
}

/* pages.css uses full-bleed images; keep that for page sections only */
.page-gallery img,
.page-about img,
.page-process img,
.page-contact img,
.page-piece img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-gallery .logo,
.page-about .logo,
.page-process .logo,
.page-contact .logo,
.page-piece .logo,
.page-legal .logo,
.page-home .logo {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.footer-in .logo {
  height: 30px;
}

/* Outline button used inside page CTAs from pages.css */
.outline {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: .2s;
}
.outline:hover {
  background: var(--ink);
  color: var(--cream);
}
.outline.light {
  color: var(--on-dark);
}
.outline.light:hover {
  background: var(--on-dark);
  color: var(--forest);
}

.about-story > div h2,
.process-hero h1,
.process-hero h3,
.process-dark h2,
.process-dark h3,
.contact-grid aside h2,
.forest-cta h2,
.brown-cta h2 {
  color: var(--on-dark);
}

.process-hero .kicker {
  color: var(--on-dark-gold);
}

/* Align pages.css tokens with new design tokens */
:root {
  --paper: #eae3d6;
  --cream: #f1ece2;
  --ink: #201c17;
  --green: #333b2b;
  --dark: #2b3222;
  --gold: #a98b5d;
  --brown: #65462f;
  --line: #d9d1c2;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

.kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--tan, #93826a);
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px var(--gut) 100px;
}
.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 24px;
}
.legal p, .legal li {
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* Homepage section anchors for navigator */
[data-home-section] {
  scroll-margin-top: 20px;
}
.hero-rail .n,
.hero-scroll {
  cursor: pointer;
}
.hero-rail .n:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}
[data-i18n="home.discover"]::after,
[data-i18n="home.viewGallery"]::after {
  content: "→";
  margin-left: .5em;
}

@media (max-width: 960px) {
  .nav-right .language-switcher {
    display: none;
  }
  .site-header .menu-toggle {
    display: grid !important;
    position: absolute;
    top: 28px;
    right: var(--gut);
    z-index: 2;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--ink);
  }
  .site-header .menu-toggle::before {
    content: "☰";
    font: 300 24px/1 var(--sans);
  }
  .site-header .menu-toggle span {
    display: none;
  }
  .nav-right .btn-outline {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-copy {
    width: 100%;
    overflow: hidden;
  }
  .hero-title {
    max-width: 100%;
    font-size: 42px;
  }
  .hero-lead {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* ===== Lightbox + Galerie-Filter (Deutsch/Nur-DE Build) ===== */
.tile.hide { display: none; }
.lightbox { position: fixed; inset: 0; background: rgba(28,24,20,.92); display: none; align-items: center; justify-content: center; z-index: 200; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 88vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 88vw; max-height: 80vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { font-family: var(--sans, "Jost", sans-serif); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: #ece7db; }
.lightbox button { position: absolute; background: none; border: 0; color: #f1ece2; cursor: pointer; font-family: var(--serif, "Cormorant Garamond", serif); transition: opacity .2s; }
.lightbox button:hover { opacity: .6; }
.lb-close { top: 22px; right: 30px; font-size: 42px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 64px; padding: 0 26px; }
.lb-prev { left: 6px; } .lb-next { right: 6px; }
.tile { cursor: zoom-in; }
@media (max-width: 600px) { .lb-prev, .lb-next { font-size: 40px; padding: 0 10px; } }

/* ============================================================
   A11Y- & LESBARKEITS-FIXES (31.07.2026)
   ============================================================ */

/* --- 1) Kontrast: Textfarben auf hellem Grund (WCAG AA 4.5:1) ---
   Dekorative Linien/Rahmen behalten die originalen Farbtöne.       */
:root{
  --tan-text:  #6f6250;   /* war #93826a -> 3.16:1  jetzt 5.04:1 */
  --gold-text: #7d6845;   /* war #a98b5d -> 2.73:1  jetzt 4.53:1 */
}
.eyebrow,
.card .meta,
.band-quote cite,
.footer-in,
.hero-rail{ color: var(--tan-text); }

.eyebrow.gold,
.about-process .process-row article>b,
.about-hero .kicker,
.philosophy article .kicker{ color: var(--gold-text); }

/* Hero-Rail-Ziffern: waren mit opacity .5 kaum lesbar */
.hero-rail .n{ opacity:.78; color: var(--tan-text); }
.hero-rail .n.on{ opacity:1; color: var(--ink); }

.footer-social svg{ stroke: var(--tan-text); }
.footer-nav a{ color: var(--tan-text); }
.footer-nav a:hover{ color: var(--ink); }

/* --- 2) SVG-Icons (ersetzen die früheren Unicode-Platzhalter) --- */
.ico{ display:block; flex:none; }
.about-story li>b{ display:flex; align-items:flex-start; padding-top:2px; color: var(--gold-text); }
.contact-grid dt{ display:flex; align-items:center; }
.coffee h2{ display:flex; align-items:center; gap:.6em; }
.coffee h2 .ico{ color: var(--gold-text); }

/* --- 3) Pfeil-Abstand in Buttons (ersetzt ideographische Leerzeichen) --- */
.ar{ margin-left:.7em; display:inline-block; }

/* --- 4) Mindest-Schriftgrößen unterhalb 1280px ---
   Die Unterseiten-Styles nutzten rem-Werte bis 0.52rem (~8px).     */
@media(max-width:1279px){
  .about-story p,
  .contact-hero p,
  .contact-grid form>p,
  .philosophy article p,
  .process-film>div:last-child p,
  .process-hero p,
  .coffee p{ font-size:13px; line-height:1.65; }

  .about-story li span,
  .contact-grid dd,
  .process-row p,
  .forest-cta p,
  .brown-cta small{ font-size:12.5px; line-height:1.55; }

  .about-story li strong,
  .contact-grid dd b,
  .contact-grid label,
  .contact-grid input,
  .contact-grid textarea,
  .contact-grid form button,
  .process-row h3,
  .process-row article>b,
  .process-dark .section-title p,
  .filters,
  .filters button{ font-size:12px; }

  .kicker{ font-size:12px; }
}

/* ---- Fix Arbeitsweise (31.07.2026): Sektionen wachsen mit Inhalt, Bilder fuellen ihre Spalte,
   statt bei fester Sektionshoehe in die Folgesektion zu ragen ---- */
@media (min-width: 1280px) {
  .process-film { height: auto; min-height: 520px; }
  .film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 78%; }
  .process-quote { position: relative; height: auto; min-height: 240px; }
  .process-quote > img { position: absolute; top: 0; right: 0; width: 50%; height: 100%; object-fit: cover; }
}
@media (min-width: 681px) and (max-width: 1279px) {
  .film img { width: 100%; height: clamp(260px, 34vw, 420px); object-fit: cover; object-position: center 78%; }
}
/* Zitat-Block: Signatur "Uli" unter das Zitat statt daneben (lief rechts in die Bildhaelfte) */
.process-quote > div { flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px clamp(24px, 5vw, 64px); }

/* ---- Panorama-Titelbilder (31.07.2026): erstes Element jeder Seite.
   Der Verlauf nach Schwarz (bzw. Weiss bei .light) ist IM Bild —
   der Text sitzt links auf der Verlaufsflaeche. ---- */
.titel-hero { position: relative; overflow: hidden; background: #14110d; }
.titel-hero > img { display: block; width: 100%; height: auto; }
.titel-hero > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: min(46%, 620px); padding-left: 6vw; color: #f1ece2; }
.titel-hero .kicker { margin: 0 0 8px; font: 500 clamp(12px, .9vw, 13px) var(--sans, "Jost", sans-serif); letter-spacing: .28em; text-transform: uppercase; color: #cbb98f; }
.titel-hero h1 { margin: 0; font-size: clamp(1.9rem, 4.6vw, 4.4rem); line-height: 1.04; text-transform: uppercase; color: inherit; }
.titel-hero h2, .titel-hero h3, .titel-hero strong, .titel-hero p { color: inherit; }
.titel-hero i { display: block; width: 34px; height: 1px; margin: 12px 0 14px; background: var(--gold, #a98b5d); }
.titel-hero h2, .titel-hero h3 { margin: 0 0 10px; font: italic 600 clamp(1.05rem, 1.7vw, 1.6rem)/1.35 var(--serif, "Cormorant Garamond", serif); }
.titel-hero p { margin: 0; font: italic clamp(.85rem, 1.15vw, 1.08rem)/1.6 var(--serif, "Cormorant Garamond", serif); opacity: .94; }
.titel-hero strong { margin-top: 14px; font: italic clamp(1.2rem, 1.8vw, 1.9rem) var(--serif, serif); }
.titel-hero .cta { margin-top: 20px; padding-bottom: 4px; font: 500 12px var(--sans, "Jost", sans-serif); letter-spacing: .22em; text-transform: uppercase; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; transition: opacity .2s; }
.titel-hero .cta:hover { opacity: .65; }
.titel-hero.light > div { color: var(--ink, #201c17); }
.titel-hero.light .kicker { color: #7d6845; }
.titel-hero.light p { opacity: 1; color: #4a4136; }
@media (max-width: 680px) {
  .titel-hero > img { height: clamp(190px, 58vw, 260px); object-fit: cover; object-position: 70% center; }
  .titel-hero > div { position: static; width: auto; padding: 26px 22px 30px; background: #17140f; }
  .titel-hero.light > div { background: var(--cream, #f1ece2); }
}
/* Ueber-Uli-Sektion einspaltig (Werte-Liste rechts wurde per Kuenstler-Feedback entfernt) */
.about-story, .page-about .about-story { grid-template-columns: 1fr; }
.page-about .about-story { min-height: 0; }
/* Weg zum Werk / Schnitzprozess: alle 5 Schritte auf allen Breiten zeigen
   (pages.css blendete mobil Schritt 3 und im Tablet-Bereich Schritt 4+5 aus) */
@media (max-width: 1279px) {
  .process-row article:nth-child(3),
  .process-row article:nth-child(n+4) { display: block; }
}

/* Test-Runde 01.08.: Kaffee-Sektion Bild-Ueberlauf bei Desktop + Mindestschriftgroessen */
@media (min-width: 1280px) {
  .page-contact .coffee { height: auto; min-height: 340px; }
  .coffee > img { width: 100%; height: 100%; object-fit: cover; }
}
.cards .meta { font-size: 12px; }

/* ---- Preise (02.08.2026): Lightbox-Werkdaten + Auftragsarbeiten-Sektion ---- */
.lightbox figure img { max-height: 62vh; }
.lightbox .lb-meta { margin: 4px 0 0; font: 400 11px var(--sans, "Jost", sans-serif); letter-spacing: .18em; text-transform: uppercase; color: #b7ad9c; }
.lightbox .lb-cta { margin-top: 14px; padding-bottom: 3px; font: 500 12px var(--sans, "Jost", sans-serif); letter-spacing: .2em; text-transform: uppercase; color: #f1ece2; text-decoration: none; border-bottom: 1px solid currentColor; transition: opacity .2s; }
.lightbox .lb-cta:hover { opacity: .65; }

.pricing { padding: clamp(40px, 5vw, 80px) 6vw; color: var(--cream, #f1ece2); background: var(--green, #333b2b); }
.pricing-in { max-width: 1240px; margin-inline: auto; }
.pricing h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.5rem); text-transform: uppercase; color: inherit; }
.pricing-in > i { display: block; width: 34px; height: 1px; margin: 14px 0 18px; background: var(--gold, #a98b5d); }
.pricing-lead { margin: 0 0 28px; max-width: 640px; font: italic clamp(.9rem, 1.1vw, 1.05rem)/1.6 var(--serif, serif); opacity: .92; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
.price-grid > div { padding: 20px 18px 18px; border: 1px solid rgba(241, 236, 226, .28); }
.price-grid b { display: block; margin-bottom: 6px; font: 500 12px var(--sans, sans-serif); letter-spacing: .2em; text-transform: uppercase; color: #cbb98f; }
.price-grid span { display: block; margin-bottom: 14px; font: italic .85rem var(--serif, serif); opacity: .8; }
.price-grid strong { font: 600 1.35rem var(--serif, serif); }
.pricing-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; font: .85rem/1.5 var(--serif, serif); }
.pricing-steps b { display: block; margin-bottom: 4px; font: 500 12px var(--sans, sans-serif); letter-spacing: .18em; color: var(--gold, #a98b5d); }
.pricing-note { margin: 0; font-size: 12px; opacity: .65; }
@media (max-width: 680px) {
  .price-grid, .pricing-steps { grid-template-columns: 1fr 1fr; }
}

/* ---- Text-Runde 02.08. (Teil 2): Layout-Anpassungen ---- */
/* Index-Band ohne Zitat: Werkstattbild bekommt den frei gewordenen Platz */
.band { grid-template-columns: 1.35fr 1fr; }
@media (max-width: 680px) { .band { grid-template-columns: 1fr; } }
/* Arbeitsprozess: Innenabstand, damit die Bilderreihe nicht an die Kante des gruenen Bereichs stoesst */
@media (min-width: 1280px) {
  .page-process .process-dark .section-title,
  .page-process .process-dark .process-row { padding-inline: 48px; }
}
/* Kontakt: zwei Adressen nebeneinander */
.addr-row { display: flex; gap: 36px; flex-wrap: wrap; }

/* ---- Filterleiste (02.08.): lange Kategorienamen umbrechen als Chip-Zeilen statt Scroll/Umbruch im Button ---- */
.filters { height: auto; min-height: 40px; padding-top: 10px; padding-bottom: 10px; }
.filters > div { flex-wrap: wrap; row-gap: 10px; }
.filters button { white-space: nowrap; text-align: left; }
.page-gallery .filters { height: auto; min-height: 72px; padding-top: 16px; padding-bottom: 16px; }
@media (max-width: 680px) { .filters { overflow: visible; } }
.masonry-empty { margin: 0; padding: 48px 4.2vw 64px; background: var(--cream, #f1ece2); font: italic 1rem var(--serif, serif); color: #6f6250; }
/* Arbeitsweise-Titelbild: Motiv sitzt rechts (schwarzer Verlauf links) -> mobil auf das Motiv ausrichten */
@media (max-width: 680px) { .page-process .titel-hero > img { object-position: 92% center; } }

/* ---- Update 09.08.2026 ---- */
/* Werkname in der Detailansicht ausblenden (Holzart/Groesse/Preis bleiben) */
.lightbox figcaption { display: none; }

/* Galerie als echtes Masonry: jede Skulptur vollstaendig sichtbar, kein Beschnitt */
.masonry { display: block; columns: 3; column-gap: 8px; }
.masonry .tile { display: block; break-inside: avoid; margin: 0 0 8px; width: 100%; }
.masonry .tile img { width: 100%; height: auto; object-fit: contain; }
.masonry .tile.hide { display: none; }
@media (max-width: 680px) { .masonry { columns: 2; column-gap: 6px; } .masonry .tile { margin-bottom: 6px; } }
@media (min-width: 1280px) { .page-gallery .masonry { columns: 4; width: 1240px; margin-inline: auto; padding: 0 0 96px; } }
