/* ===========================================================
   Café Konditorei Wallner — heritage Austrian Kaffeehaus
   Warm cream/ivory · espresso brown · honey-gold accent
   =========================================================== */

:root {
  --cream:      #fbf6ec;   /* page bg */
  --cream-2:    #f5ecdc;   /* warmer surface */
  --ivory:      #fffdf8;   /* panel / card bg */
  --espresso:   #3a2417;   /* deep chocolate brown (headings/dark) */
  --cocoa:      #5a3c28;   /* secondary brown */
  --ink:        #3d2c20;   /* body text */
  --muted:      #8a7058;   /* muted brown-grey */
  --gold:       #b8893b;   /* honey/amber-gold accent */
  --gold-deep:  #9a6f2c;   /* darker gold for text-on-cream contrast */
  --gold-soft:  #e8d4a8;   /* soft honey */
  --line:       #e4d6bf;   /* hairlines on cream */
  --line-dark:  rgba(58,36,23,0.12);
  --shadow:     0 18px 50px -22px rgba(58,36,23,0.45);
  --shadow-sm:  0 8px 26px -14px rgba(58,36,23,0.38);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1160px;
  --pad: clamp(1.1rem, 4vw, 2.4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--espresso);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section { padding: clamp(3.6rem, 8vw, 6.6rem) 0; }

/* ---------- eyebrow ---------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 0.9rem;
}
.eyebrow-line { position: relative; padding-left: 2.9rem; }
.eyebrow-line::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 2.1rem; height: 1px; background: var(--gold);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--espresso);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,246,236,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(251,246,236,0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(58,36,23,0.5);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--espresso);
  letter-spacing: 0.02em;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--cocoa);
  position: relative; transition: color .2s ease;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: var(--gold); transition: width .25s ease;
}
.nav a:not(.nav-cta):hover { color: var(--espresso); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--espresso); color: var(--cream) !important;
  padding: 0.6rem 1.1rem; border-radius: 2px; font-weight: 600;
  transition: background .25s ease;
}
.nav-cta:hover { background: var(--gold-deep); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--espresso);
  transition: transform .3s ease, opacity .3s ease;
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  padding-top: clamp(2.6rem, 6vw, 4.4rem);
  background:
    radial-gradient(900px 500px at 78% 12%, rgba(184,137,59,0.14), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(620px 420px at 20% 90%, rgba(232,212,168,0.4), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.hero-copy h1 {
  font-size: clamp(2.7rem, 7vw, 4.7rem);
  margin: 0.2rem 0 1.1rem;
}
.hero-lede {
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  color: var(--cocoa);
  max-width: 33ch;
  margin: 0 0 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.hero-meta {
  font-size: 0.84rem; color: var(--muted); letter-spacing: 0.04em; margin: 0;
}

/* hero figure — framed (never full-bleed stretched) */
.hero-figure { margin: 0; }
.frame {
  position: relative;
  background: var(--ivory);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow);
}
.frame::after {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(184,137,59,0.35);
  pointer-events: none;
}
.frame img {
  width: 100%; height: auto;
  border-radius: 2px;
  display: block;
}
.hero-figure { max-width: 360px; margin-inline: auto; }
.hero-figure figcaption,
.kontakt-figure figcaption {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--muted);
  margin-top: 0.85rem; font-style: italic;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

/* strip / marquee */
.strip {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  overflow: hidden;
}
.strip-track {
  display: flex; align-items: center; gap: 1.4rem;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--cocoa);
  padding: 0.95rem 0;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.strip-track .sep { color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ===========================================================
   TRADITION / ÜBER UNS
   =========================================================== */
.tradition { background: var(--cream); }
.tradition-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: start;
}
.tradition-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.tradition-body .lead {
  font-size: 1.2rem; color: var(--espresso); font-family: var(--serif);
  font-style: italic; line-height: 1.4; margin: 0 0 1.3rem;
}
.tradition-body p { color: var(--ink); margin: 0 0 1.05rem; }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
}
.pillar {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.pillar-num {
  font-family: var(--serif); font-size: 1.5rem; color: var(--gold);
  display: block; margin-bottom: 0.5rem; letter-spacing: 0.05em;
}
.pillar h3 { font-size: 1.3rem; margin-bottom: 0.45rem; }
.pillar p { font-size: 0.95rem; color: var(--cocoa); margin: 0; }

/* ===========================================================
   GALLERY
   =========================================================== */
.gallery-section { background: var(--cream-2); }
.section-head { max-width: 620px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 0.7rem; }
.section-sub { color: var(--cocoa); margin: 0; font-size: 1rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.3rem;
}
.card {
  position: relative; margin: 0;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  outline: none;
}
.card:hover, .card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.card:focus-visible { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.card-media {
  /* contained — image is only 240px wide; center it on a warm backdrop, never stretch past native */
  background: linear-gradient(160deg, #efe2cc, #e4d2b3);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.card figcaption {
  padding: 0.85rem 1rem 1rem;
  display: flex; flex-direction: column; gap: 2px;
}
.c-title { font-family: var(--serif); font-size: 1.18rem; color: var(--espresso); }
.c-sub { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }

.gallery-foot {
  margin-top: 2rem; font-size: 0.98rem; color: var(--cocoa);
}
.gallery-foot a, .auswahl a, .tradition-body a {
  color: var(--gold-deep); font-weight: 600;
  border-bottom: 1px solid var(--gold-soft);
}
.gallery-foot a:hover { border-bottom-color: var(--gold); }

/* ===========================================================
   AUS DER KONDITOREI
   =========================================================== */
.auswahl { background: var(--cream); }
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.svc {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.6rem 1.5rem;
  transition: transform .25s ease, border-color .25s ease;
}
.svc:hover { transform: translateY(-3px); border-color: var(--gold-soft); }
.svc h3 {
  font-size: 1.3rem; margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.55rem;
}
.svc h3::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); flex: none;
}
.svc p { font-size: 0.95rem; color: var(--cocoa); margin: 0; }

.auswahl-cta { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }

/* ===========================================================
   KONTAKT
   =========================================================== */
.kontakt { background: var(--cream-2); }
.kontakt-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}
.kontakt-info h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.kontakt-lede { color: var(--cocoa); font-size: 1.05rem; margin: 0 0 1.8rem; max-width: 44ch; }
.kontakt-details { list-style: none; padding: 0; margin: 0 0 1.9rem; }
.kontakt-details li {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 1rem; padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.kontakt-details li:last-child { border-bottom: 1px solid var(--line); }
.kd-label {
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.7rem; font-weight: 600; color: var(--gold-deep);
  padding-top: 3px;
}
.kd-value { color: var(--espresso); font-size: 1rem; }
.kontakt-figure { margin: 0; max-width: 340px; margin-inline: auto; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: var(--espresso);
  color: var(--gold-soft);
  padding: clamp(2.6rem, 5vw, 3.6rem) 0 1.6rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.6rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(232,212,168,0.16);
}
.site-footer .brand-mark { color: var(--cream); font-size: 1.6rem; }
.site-footer .brand-sub { color: rgba(232,212,168,0.7); }
.footer-col .kd-label { color: var(--gold); display: block; margin-bottom: 0.6rem; }
.footer-col p { margin: 0; font-size: 0.92rem; color: rgba(255,253,248,0.82); line-height: 1.7; }
.footer-col a { color: var(--gold-soft); border-bottom: 1px solid rgba(232,212,168,0.4); }
.footer-col a:hover { color: #fff; }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding-top: 1.4rem; font-size: 0.8rem; color: rgba(232,212,168,0.6);
}

/* ===========================================================
   STICKY MOBILE CTA
   =========================================================== */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--espresso); color: var(--cream);
  text-align: center; padding: 0.95rem 1rem;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  box-shadow: 0 -8px 26px -16px rgba(0,0,0,0.6);
}
.mobile-cta:active { background: var(--gold-deep); }

/* ===========================================================
   LIGHTBOX
   =========================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(40,24,14,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 1.4rem;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-inner { margin: 0; max-width: 560px; text-align: center; }
.lb-inner img {
  max-width: 100%; max-height: 72vh; width: auto; margin-inline: auto;
  border-radius: 3px;
  border: 8px solid var(--ivory);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
}
.lb-cap { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.lb-title { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); }
.lb-note { font-size: 0.92rem; color: rgba(255,253,248,0.78); max-width: 46ch; margin-inline: auto; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,253,248,0.12);
  border: 1px solid rgba(232,212,168,0.3); color: var(--cream);
  cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(184,137,59,0.5); }
.lb-close { top: 1.1rem; right: 1.1rem; width: 44px; height: 44px; font-size: 1.7rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 1.9rem; line-height: 1; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

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

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 300px; }
  .tradition-grid { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .kontakt-figure { order: -1; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem var(--pad) 1.2rem;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility .28s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: 0.7rem; padding: 0.85rem 1.1rem; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-cta { display: block; }
  body { padding-bottom: 56px; }   /* room for sticky CTA */
  .footer-base { flex-direction: column; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lb-prev { left: 0.4rem; } .lb-next { right: 0.4rem; }
}
