/*
 * Bäckerei Hondt — Büchen
 * Aesthetic: Editorial Vintage, modern interpretiert.
 * Sahne-Hintergrund, Pumpernickel-Tinte, Krusten-Rotbraun als Akzent.
 * Display: Fraunces (Variable Serif). Body: Inter (Variable Sans).
 * Motive: Magazin-Layout, lange Lead-Strecke, asymmetrische Karten.
 */

:root {
  --paper:    #fbf6ee;
  --paper-d:  #f1e9d8;
  --paper-w:  #f6efe0;
  --ink:      #2d1f12;
  --ink-s:    #5a4738;
  --accent:   #b85c3c;
  --accent-d: #964828;
  --gold:     #d8a14a;
  --muted:    #9a8a78;
  --line:     #e2d6c1;

  --font-display: 'Fraunces', 'Source Serif Pro', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --container:    1200px;
  --radius:       2px;
}

/* — Typografie — */
body {
  font-feature-settings: "ss01", "cv11", "kern";
  background: var(--paper);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 60, "wght" 500, "SOFT" 30;
}
h1 { font-weight: 500; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent-d);
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

/* — Masthead — */
.masthead {
  border-bottom: 1px solid var(--line);
}
.masthead .brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  font-variation-settings: "opsz" 24, "wght" 500, "SOFT" 0;
  letter-spacing: -0.01em;
}

/* — Hero: ein einzelnes grosses Statement — */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--pad-x) clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.hero .kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--accent);
  font-variation-settings: "opsz" 14, "wght" 400;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-variation-settings: "opsz" 144, "wght" 500, "SOFT" 50;
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
  color: var(--accent-d);
}
.hero .lead {
  max-width: 44rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-s);
  margin-top: 0.5rem;
}
.hero .hero-foot {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero .hero-foot dt {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.hero .hero-foot dd {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-variation-settings: "opsz" 24, "wght" 500;
  color: var(--ink);
}

/* — Lange Lead-Strecke / Story — */
.story {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--pad-x);
}
.story h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 2rem;
  font-variation-settings: "opsz" 72, "wght" 500, "SOFT" 60;
  max-width: 16ch;
}
.story p {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.75;
  color: var(--ink-s);
  margin-bottom: 1.4rem;
}
.story p strong { color: var(--ink); font-weight: 500; }
.story p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  padding-right: 0.6rem;
  padding-top: 0.3rem;
  color: var(--accent-d);
  font-variation-settings: "opsz" 144, "wght" 500, "SOFT" 30;
}

/* — Sortiment: Reihen mit asymmetrischen Karten — */
.sortiment {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--pad-x);
}
.sortiment .section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
}
.sortiment .section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-variation-settings: "opsz" 60, "wght" 500;
}
.sortiment .section-head .small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.sortiment .row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.sortiment .item { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.sortiment .item:nth-child(1) { grid-column: span 5; }
.sortiment .item:nth-child(2) { grid-column: span 4; }
.sortiment .item:nth-child(3) { grid-column: span 3; }
.sortiment .row:nth-child(even) .item:nth-child(1) { grid-column: span 4; }
.sortiment .row:nth-child(even) .item:nth-child(2) { grid-column: span 3; }
.sortiment .row:nth-child(even) .item:nth-child(3) { grid-column: span 5; }
.sortiment .item h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  margin-bottom: 0.5rem;
  font-variation-settings: "opsz" 48, "wght" 500;
}
.sortiment .item h3 .num {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-bottom: 0.3rem;
}
.sortiment .item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-s);
}
@media (max-width: 900px) {
  .sortiment .row { grid-template-columns: 1fr; }
  .sortiment .item, .sortiment .row:nth-child(even) .item { grid-column: span 1 !important; }
}

/* — Standorte-Grid — */
.locations {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x);
}
.locations h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  font-variation-settings: "opsz" 72, "wght" 500;
}
.locations .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.locations .loc {
  background: var(--paper-w);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.locations .loc:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.locations .loc h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  font-variation-settings: "opsz" 36, "wght" 500;
}
.locations .loc .badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-d);
  margin-bottom: 0.6rem;
}
.locations .loc dl { margin-top: 1rem; }
.locations .loc dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.locations .loc dd {
  font-size: 0.95rem;
  color: var(--ink-s);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.locations .loc dd a:hover { color: var(--accent-d); }

/* — Kontakt-Anker (am Seitenende, mit Karte) — */
.contact-anchor {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x);
  border-top: 1px solid var(--line);
}
.contact-anchor .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-anchor .wrap { grid-template-columns: 1fr; gap: 1.8rem; }
}
.contact-anchor h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 72, "wght" 500, "SOFT" 60;
}
.contact-anchor h2 em { font-style: italic; color: var(--accent-d); font-variation-settings: "opsz" 72, "wght" 400, "SOFT" 80; }
.contact-anchor p {
  font-size: 1.05rem;
  color: var(--ink-s);
  line-height: 1.65;
  max-width: 32rem;
}
.contact-anchor dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}
.contact-anchor dt {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  align-self: baseline;
}
.contact-anchor dd {
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
}
.contact-anchor dd a:hover { color: var(--accent-d); }
.contact-anchor .more {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-d);
  border-bottom: 1px solid var(--accent);
  padding: 0.4rem 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.contact-anchor .more:hover { color: var(--ink); border-color: var(--ink); }

/* — Kontakt-Seite — */
.contact-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-row { grid-template-columns: 1fr; gap: 2rem; }
}
.contact-info dl { display: grid; gap: 0.4rem; }
.contact-info dt {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.contact-info dd {
  font-size: 1.05rem;
  color: var(--ink-s);
  margin-bottom: 1.25rem;
}
.contact-info dd a:hover { color: var(--accent-d); }

/* — Karte (Google Maps Two-Click, DSGVO) — */
.map-consent {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--paper-w);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.map-consent > .consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 28rem;
}
.map-consent .consent p {
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-s);
  margin: 0;
  font-variation-settings: "opsz" 18, "wght" 400;
}
.map-consent .consent p a { color: var(--accent-d); border-bottom: 1px solid var(--accent); }
.map-consent button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.map-consent button:hover { background: var(--accent); border-color: var(--accent); }
.map-consent iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* — Footer-Mention — */
.tradition-note {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--pad-x);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--muted);
  text-align: center;
  font-variation-settings: "opsz" 18, "wght" 400;
}

/* — Masthead Mobile-Override gegen 320px Overflow — */
@media (max-width: 480px) {
  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1rem var(--pad-x);
  }
  .masthead nav { gap: 1.1rem; font-size: 0.95rem; flex-wrap: wrap; }
}

/* — Tap-Targets — */
.masthead nav a {
  padding: 0.6rem 0;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.footer nav a,
.footer a,
.demo-banner a,
.footer strong + br + a {
  padding: 0.45rem 0;
  display: inline-block;
  min-height: 40px;
  line-height: 1.6;
}
.contact-info dd a,
.hero a,
.locations .loc a {
  padding: 0.3rem 0;
  display: inline-block;
  min-height: 40px;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .footer nav a,
  .footer a,
  .demo-banner a {
    padding: 0.6rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* — Reduced motion — */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}
