/* ============================================================
   CAFÉ · KONDITOREI · HOTEL WEINBERGER — Stadtbergen/Augsburg
   Palette: Kakaobraun, Creme, warmes Gold, gedecktes Salbeigrün
   (echoes "mitten im Grünen"). Fotos: echte Bestandsfotos,
   aus den Alt-Seiten gerettet und aufbereitet.
   ============================================================ */
:root {
  --ink:         #241812;
  --ink-2:       #3A2A1E;
  --ink-3:       #6F5F52;
  --paper:       #FBF5EB;
  --paper-2:     #F2E7D4;
  --line:        #E3D3B8;
  --gold:        #B8863E;
  --gold-dk:     #8F6528;
  --sage:        #6B7A55;
  --sage-dk:     #52603F;
  --white:       #FFFFFF;

  --display: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --t-xs: .75rem; --t-sm: .875rem; --t-base: 1rem; --t-lg: 1.125rem;
  --t-xl: 1.375rem; --t-2xl: 1.75rem; --t-3xl: 2.5rem; --t-4xl: clamp(2.2rem, 6vw, 4.2rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px;
  --s8: 32px; --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px;

  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-full: 999px;

  --sh-sm: 0 1px 2px rgba(36,24,18,.08), 0 2px 8px rgba(36,24,18,.06);
  --sh-md: 0 6px 20px rgba(36,24,18,.14);
  --sh-lg: 0 22px 55px rgba(36,24,18,.26);

  --ease: cubic-bezier(.22,.61,.36,1);
  --bar-h: 74px;
}

:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-base); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(760px, 92vw); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.eyebrow { font-size: var(--t-xs); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dk); margin: 0 0 var(--s4); display: block; }
.eyebrow.center { text-align: center; }

/* ============================================================ Buttons */
.btn {
  --bg: var(--gold-dk); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 15px 30px; border: 1px solid var(--bg); border-radius: var(--r-full);
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: var(--t-sm); font-weight: 700; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); background: #74501e; }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--sage { --bg: var(--sage); --fg: #fff; border-color: var(--sage); }
.btn--sage:hover { background: var(--sage-dk); border-color: var(--sage-dk); }

/* ============================================================ Header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.hdr__in { display: flex; align-items: center; gap: var(--s8); width: min(1200px, 92vw); margin-inline: auto; }
.hdr.is-stuck { background: rgba(251,245,235,.95); backdrop-filter: blur(14px) saturate(1.2); box-shadow: var(--sh-sm); }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: #fff; line-height: 1.1; }
.logo img { width: 34px; height: 34px; border-radius: 50%; }
.logo b { font-family: var(--display); font-size: 1.4rem; font-weight: 400; letter-spacing: .02em; }
.hdr.is-stuck .logo { color: var(--ink); }

.nav { display: flex; gap: var(--s8); align-items: center; }
.nav a { font-size: var(--t-sm); font-weight: 500; text-decoration: none; letter-spacing: .04em; position: relative; padding: 6px 0; color: inherit; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .3s var(--ease); }
.nav a:hover::after { right: 0; }
.hdr:not(.is-stuck) .nav { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hdr.is-stuck .nav { color: var(--ink); }

.burger { display: none; width: 44px; height: 44px; margin-left: var(--s2); border: 0; background: transparent; color: inherit; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 22px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================ Hero (Split, gerahmtes Foto statt Full-Bleed — Quellfoto nur 561px breit) */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; isolation: isolate; background: var(--ink); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(65% 55% at 15% 20%, rgba(184,134,62,.16), transparent 60%),
    radial-gradient(50% 45% at 90% 85%, rgba(107,122,85,.18), transparent 60%);
}
.hero__in { padding: calc(var(--bar-h) + var(--s12)) 0 var(--s16); color: #fff; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s16); align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(8px); border-radius: 999px; padding: 7px 16px 7px 12px; font-size: .875rem; font-weight: 500; margin-bottom: var(--s6); flex-wrap: wrap; }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #6FCF7A; flex: none; }
.hero__badge.is-closed .dot { background: var(--gold); }
.hero__badge b { color: var(--gold); font-weight: 700; margin-left: 4px; }
.hero h1 { font-size: var(--t-4xl); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; margin: 0 0 var(--s6); text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.2rem); max-width: 48ch; color: rgba(255,255,255,.86); margin-bottom: var(--s8); text-shadow: 0 1px 16px rgba(0,0,0,.4); font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero__frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 561/415; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); border-radius: var(--r-lg); }
.hero__tag { position: absolute; left: var(--s4); bottom: var(--s4); background: rgba(36,24,18,.82); backdrop-filter: blur(6px); color: var(--paper); padding: 10px 16px; border-radius: var(--r-md); font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; }
.hero__tag b { color: var(--gold); display: block; font-family: var(--display); font-size: var(--t-lg); text-transform: none; letter-spacing: 0; }

/* ============================================================ Trust */
.trust { background: var(--ink); color: var(--paper); padding: var(--s6) 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); text-align: center; }
.trust__item b { display: block; font-family: var(--display); font-size: var(--t-lg); font-weight: 400; color: var(--gold); margin-bottom: 2px; }
.trust__item span { font-size: var(--t-xs); letter-spacing: .04em; color: rgba(251,245,235,.72); }

/* ============================================================ Abschnitte */
.sec { padding: var(--s24) 0; position: relative; }
.sec--paper { background: var(--paper-2); }
.sec--dark { background: var(--ink); color: var(--paper); }
.sec__head { max-width: 62ch; margin-bottom: var(--s12); }
.sec__head.center { margin-inline: auto; text-align: center; }
.sec h2 { font-size: var(--t-3xl); margin-bottom: var(--s3); }
.sec__sub { color: var(--ink-3); font-size: var(--t-lg); margin: 0; font-weight: 300; }
.sec--dark .sec__sub { color: rgba(251,245,235,.7); }

/* ============================================================ Story (Text + Fotoraster) */
.story { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s16); align-items: center; }
.story--rev { grid-template-columns: .95fr 1.05fr; }
.story--rev .story__text { order: 2; }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.story__grid img { border-radius: var(--r-md); box-shadow: var(--sh-md); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.story__grid a:nth-child(1) img, .story__grid a:nth-child(4) img { aspect-ratio: 4/3; }
.story__quote { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.5rem); font-style: italic; line-height: 1.4; color: var(--ink); margin: 0 0 var(--s6); }
.story p { color: var(--ink-2); font-weight: 300; }
.sec--dark .story__quote { color: var(--paper); }
.sec--dark .story p { color: rgba(251,245,235,.82); }
.sec--dark .eyebrow { color: var(--gold); }

/* ============================================================ Standort */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s16); }
.hours { list-style: none; padding: 0; margin: 0 0 var(--s8); }
.hours li { display: flex; justify-content: space-between; gap: var(--s4); padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--t-base); }
.hours li.is-today { font-weight: 700; color: var(--ink); }
.hours span:first-child { color: var(--ink-3); }
.hours li.is-today span:first-child { color: var(--gold-dk); }
.hours b { font-weight: 500; text-align: right; }

.cinfo { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.cinfo li { display: flex; gap: var(--s3); align-items: flex-start; }
.cinfo svg { width: 19px; height: 19px; color: var(--gold-dk); flex: none; margin-top: 3px; }
.cinfo a { text-decoration: none; border-bottom: 1px solid var(--line); }
.cinfo a:hover { border-color: var(--gold-dk); }
.cinfo small { display: block; color: var(--ink-3); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; }

.map-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); position: relative; aspect-ratio: 4/3; background: var(--ink); }
.map-card img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.map-card__cta { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: var(--s8); background: linear-gradient(180deg, rgba(36,24,18,.15), rgba(36,24,18,.75)); }
.map-card__cta b { font-family: var(--display); font-size: var(--t-xl); display: block; margin-bottom: var(--s2); }

/* ============================================================ Pitch-Banner */
.pitch { position: fixed; inset: auto 0 0 0; z-index: 95; background: var(--ink); color: var(--paper); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: var(--s3); font-size: var(--t-xs); text-align: center; box-shadow: 0 -6px 24px rgba(36,24,18,.22); border-top: 1px solid rgba(251,245,235,.14); }
.pitch b { color: var(--gold); }

/* ============================================================ Footer */
.ft { background: var(--ink); color: rgba(251,245,235,.6); padding: var(--s16) 0 calc(var(--s8) + 56px); font-size: var(--t-sm); }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s12); margin-bottom: var(--s12); }
.ft h4 { color: var(--paper); font-family: var(--sans); font-size: var(--t-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 var(--s4); }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.ft a { text-decoration: none; }
.ft a:hover { color: var(--gold); }
.ft__logo { font-family: var(--display); font-size: 1.6rem; color: var(--paper); font-weight: 400; margin-bottom: var(--s2); }
.ft__btm { border-top: 1px solid rgba(251,245,235,.12); padding-top: var(--s6); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: var(--t-xs); }

/* ============================================================ Einblenden */
.rise { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } }

/* ============================================================ Rechtstexte */
.legal-hdr { padding: var(--s6) 0; border-bottom: 1px solid var(--line); background: var(--ink); }
.legal-hdr .wrap { display: flex; align-items: center; justify-content: space-between; }
.legal-back { font-size: var(--t-sm); font-weight: 600; color: rgba(251,245,235,.7); text-decoration: none; }
.legal-back:hover { color: #fff; }
.legal { padding: var(--s16) 0 var(--s24); }
.legal h1 { font-size: var(--t-3xl); margin-bottom: var(--s8); }
.legal h2 { font-size: var(--t-xl); margin: var(--s12) 0 var(--s3); color: var(--ink-2); }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); }
.legal a { color: var(--gold-dk); text-decoration: underline; text-underline-offset: 2px; }
.legal .legal__note { font-size: var(--t-sm); font-style: italic; color: var(--ink-3); background: var(--paper-2); border-radius: var(--r-md); padding: var(--s4); margin-top: var(--s12); }

/* ============================================================ Responsiv */
@media (max-width: 980px) {
  :root { --s24: 68px; --s20: 56px; --s16: 44px; }
  .story, .story--rev { grid-template-columns: 1fr; gap: var(--s8); }
  .story--rev .story__text { order: 0; }
  .hero__in { grid-template-columns: 1fr; gap: var(--s8); }
  .hero__frame { max-width: 480px; margin-inline: auto; order: -1; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s4); }
  .contact { grid-template-columns: 1fr; gap: var(--s12); }
  .ft__grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .burger { display: flex; }
  #nav {
    position: fixed; inset: calc(var(--bar-h) + env(safe-area-inset-top)) 0 auto 0; z-index: 89;
    flex-direction: column; gap: 0; margin: 0;
    padding: var(--s2) var(--s6) calc(var(--s6) + env(safe-area-inset-bottom));
    background: rgba(251,245,235,.98); backdrop-filter: blur(16px);
    box-shadow: var(--sh-lg); border-top: 1px solid var(--line);
    color: var(--ink);
    transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .25s var(--ease), opacity .2s var(--ease), visibility 0s linear .25s;
  }
  #nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform .25s var(--ease), opacity .2s var(--ease), visibility 0s; }
  #nav a { font-size: var(--t-lg); padding: 15px 2px; border-bottom: 1px solid var(--line); }
  #nav a::after { display: none; }
}
@media (max-width: 640px) {
  :root { --t-3xl: 1.9rem; --bar-h: 64px; }
  body { padding-bottom: 54px; }
  .logo b { font-size: 1.05rem; }
  .hdr__in > .btn { padding: 12px 16px; font-size: 11px; }
  .hero { min-height: 92svh; }
  .hero__cta .btn { flex: 1; }
  .ft__grid { grid-template-columns: 1fr; gap: var(--s8); }
  .cinfo a, .ft ul a { display: inline-block; padding: 8px 0; }
  .pitch { font-size: 11px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .trust__grid { grid-template-columns: 1fr 1fr; }
}
