/* =========================================================================
   NALI Coffee & Eatery — Café am Rathausplatz, Esslingen
   Shared stylesheet. Concept: the aged-copper glockenspiel clock on the Alten
   Rathaus, right above NALI's door. Crisp warm daylight whites with a designed
   value arc (near-white -> warm panel -> deep verdigris), the weathered-copper
   green of the clockwork as the anchor dark, warm signal-orange as the accent.
   Signature motif: the twin bars of the NALI logo, reused as a double-rule.
   ========================================================================= */

/* ---- Fonts (self-hosted, no network) ---------------------------------- */
@font-face{font-family:'Bricolage';src:url('fonts/brico-700.woff2') format('woff2');
  font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:'Bricolage';src:url('fonts/brico-600.woff2') format('woff2');
  font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:'Bricolage';src:url('fonts/brico-500.woff2') format('woff2');
  font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:'Hanken';src:url('fonts/hanken-400.woff2') format('woff2');
  font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Hanken';src:url('fonts/hanken-500.woff2') format('woff2');
  font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:'Hanken';src:url('fonts/hanken-700.woff2') format('woff2');
  font-weight:700;font-style:normal;font-display:swap;}

/* ---- Tokens ------------------------------------------------------------ */
:root{
  --paper:#FBFAF7;      /* crisp warm near-white ground (not beige) */
  --paper-warm:#F4EDE1; /* warmer light band — one step of the value arc */
  --paper-2:#ECE4D6;    /* recessed panel ground */
  --ink:#191614;        /* body text ~16:1 on paper */
  --muted:#5E564B;      /* secondary text 6.8:1 on paper */
  --orange:#E4670F;     /* brand accent — fills & large display */
  --flame:#A8420A;      /* accent for links/small text 5.7:1 on paper */
  --clay:#AC9C8A;       /* decorative rules/borders only, never text */
  --clay-line:#E1D9CC;  /* hairline on paper */
  --espresso:#123028;   /* verdigris-charcoal — committed dark surface */
  --espresso-2:#193A31; /* raised dark card */
  --cream:#F4EFE6;      /* text on dark 12.3:1 */
  --cream-dim:#C7D4CD;  /* secondary text on dark 9.3:1 */
  --patina:#F2A55E;     /* warm copper — links/markers on dark 7:1 */

  --font-display:'Bricolage','Hanken',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-body:'Hanken',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;

  /* fluid type scale — widened (~1.33) for a clear display-to-body arc */
  --t--1:0.82rem;                        /* fine print ~13px */
  --t-0:1.0625rem;                       /* body ~17px */
  --t-1:clamp(1.22rem,1.06rem + 0.7vw,1.55rem);
  --t-2:clamp(1.62rem,1.3rem + 1.4vw,2.4rem);
  --t-3:clamp(2.15rem,1.5rem + 2.8vw,3.6rem);
  --t-4:clamp(2.9rem,1.7rem + 5vw,5.6rem);

  /* fluid spacing */
  --sp-1:0.5rem; --sp-2:0.85rem; --sp-3:1.35rem;
  --sp-4:clamp(2rem,1.4rem + 2.5vw,3.25rem);
  --sp-section:clamp(4.75rem,3.2rem + 6vw,8rem);

  --wrap:74rem;
  --measure:60ch;
  --radius:14px;
  --radius-lg:22px;

  --z-header:100;
  --ease:cubic-bezier(.16,1,.3,1);       /* ease-out expo, no bounce */
}

/* ---- Reset / base ------------------------------------------------------ */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--font-body);font-size:var(--t-0);line-height:1.6;
  font-weight:400;font-kerning:normal;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block;}
a{color:var(--flame);text-underline-offset:.18em;text-decoration-thickness:.06em;}
a:hover{color:var(--ink);}
h1,h2,h3{font-family:var(--font-display);font-weight:700;line-height:1.15;
  margin:0;text-wrap:balance;letter-spacing:-.01em;}
h2{line-height:1.18;}
h3{font-weight:600;line-height:1.25;}
p{margin:0;}

/* ---- Utilities --------------------------------------------------------- */
.wrap{width:min(100% - 2.5rem,var(--wrap));margin-inline:auto;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0;}
.section{padding-block:var(--sp-section);padding-inline:clamp(1.1rem,3.5vw,3rem);}

/* Signature: the twin NALI bars as a divider */
.bars{display:flex;flex-direction:column;gap:5px;width:52px;}
.bars span{height:4px;border-radius:2px;background:var(--orange);}
.bars span:last-child{width:60%;}

.eyebrow{font-family:var(--font-display);font-weight:600;font-size:var(--t--1);
  letter-spacing:.14em;text-transform:uppercase;color:var(--flame);
  display:inline-flex;align-items:center;gap:.6rem;margin:0;}
.eyebrow::before{content:"";width:26px;height:3px;border-radius:2px;background:var(--orange);}

.lead{font-size:var(--t-1);line-height:1.5;color:var(--muted);max-width:52ch;}

/* ---- Buttons ----------------------------------------------------------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  font-family:var(--font-display);font-weight:600;font-size:1rem;line-height:1;
  padding:.95rem 1.5rem;border-radius:100px;border:2px solid transparent;
  min-height:48px;cursor:pointer;text-decoration:none;
  transition:transform .4s var(--ease),background-color .25s,border-color .25s,color .25s;}
.btn:focus-visible{outline:3px solid var(--ink);outline-offset:3px;}
.btn-primary{background:var(--orange);color:var(--ink);}      /* ink on orange 5.6:1 */
.btn-primary:hover{background:#F2853A;color:var(--ink);transform:translateY(-2px);}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--clay);}
.btn-ghost:hover{border-color:var(--ink);color:var(--ink);transform:translateY(-2px);}
.on-dark .btn-ghost{color:var(--cream);border-color:#3E6155;}
.on-dark .btn-ghost:hover{border-color:var(--cream);color:var(--cream);}

/* ---- Header ------------------------------------------------------------ */
.site-header{position:sticky;top:0;z-index:var(--z-header);
  background:color-mix(in srgb,var(--paper) 88%,transparent);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--clay-line);}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;
  gap:1rem;min-height:70px;}
.brand{display:inline-flex;align-items:center;gap:.7rem;color:var(--orange);
  text-decoration:none;}
.logo-mark{display:block;width:auto;}
.brand .logo-mark{height:52px;width:52px;}
.nav{display:flex;align-items:center;gap:1.6rem;}
.nav a{color:var(--ink);text-decoration:none;font-weight:500;font-size:.98rem;
  white-space:nowrap;}
.nav a:hover{color:var(--flame);}
.header-cta{display:flex;align-items:center;gap:.9rem;}
.header-cta .tel{font-family:var(--font-display);font-weight:600;color:var(--ink);
  text-decoration:none;white-space:nowrap;}
.header-cta .tel:hover{color:var(--flame);}
.nav-toggle{display:none;}

/* ---- Hero -------------------------------------------------------------- */
.hero{position:relative;padding-top:clamp(2.5rem,1.5rem + 4vw,5rem);
  padding-bottom:var(--sp-section);}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,1rem+4vw,4.5rem);
  align-items:center;}
.hero-copy h1{font-size:var(--t-4);margin:0 0 0;line-height:1.12;}
.hero-copy .lead{margin-top:1.6rem;}
.hero-actions{display:flex;flex-wrap:wrap;gap:.85rem;margin-top:1.9rem;}
.rating{display:inline-flex;align-items:center;gap:.65rem;margin-top:1.7rem;
  font-size:var(--t--1);color:var(--muted);}
.rating .stars{color:var(--orange);font-size:1.05rem;letter-spacing:.06em;}
.rating b{color:var(--ink);font-family:var(--font-display);}

.hero-figure{position:relative;}
.hero-figure img{width:100%;aspect-ratio:4/5;object-fit:cover;
  border-radius:var(--radius-lg);box-shadow:0 30px 60px -30px rgba(45,25,10,.5);}
.hero-figure figcaption{position:absolute;left:16px;bottom:16px;right:16px;
  display:flex;align-items:center;gap:.6rem;
  font-size:.86rem;color:var(--cream);
  background:#0E2620;
  padding:.6rem .9rem;border-radius:100px;}
.hero-figure figcaption .dot{width:8px;height:8px;border-radius:50%;
  background:var(--orange);flex:none;}
.hero-badge{position:absolute;top:14px;right:14px;background:var(--orange);
  color:var(--ink);font-family:var(--font-display);font-weight:700;
  width:96px;height:96px;border-radius:50%;display:grid;place-content:center;
  text-align:center;line-height:1.15;font-size:.8rem;transform:rotate(-6deg);
  box-shadow:0 12px 24px -10px rgba(18,48,40,.6);}
.hero-badge b{display:block;font-size:1.5rem;}

/* Grain / warmth overlay */
.grain::after{content:"";position:absolute;inset:0;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity:.04;mix-blend-mode:multiply;}

/* ---- Intro strip ------------------------------------------------------- */
.intro{position:relative;background:var(--paper-warm);
  border-block:1px solid var(--clay-line);}
.intro-inner{display:grid;grid-template-columns:auto 1fr;gap:clamp(1.5rem,1rem+3vw,3.5rem);
  align-items:start;}
.intro .kicker{font-family:var(--font-display);font-weight:600;font-size:var(--t-2);
  line-height:1.15;color:var(--ink);max-width:14ch;}
.intro .kicker em{font-style:normal;color:var(--flame);}
.intro .body{font-size:var(--t-1);line-height:1.55;max-width:var(--measure);color:var(--ink);}
.intro .body p + p{margin-top:1rem;}

/* ---- Section heading block -------------------------------------------- */
.head{max-width:56ch;margin-bottom:clamp(2.2rem,1.4rem+2.4vw,3.4rem);}
.head h2{font-size:var(--t-3);margin:0;}
.head p{margin-top:1.2rem;color:var(--muted);font-size:var(--t-1);line-height:1.55;}
.on-dark .head p{color:var(--cream-dim);}
.on-dark .eyebrow{color:var(--patina);}
.on-dark .eyebrow::before{background:var(--orange);}

/* ---- Hours + location (espresso section) ------------------------------- */
.dark{background:var(--espresso);color:var(--cream);position:relative;overflow:hidden;}
.dark a{color:var(--patina);}
.dark a:hover{color:var(--cream);}
.hours-grid{display:grid;grid-template-columns:1.05fr .95fr;
  gap:clamp(2rem,1rem+4vw,4.5rem);align-items:start;}
.hours{background:var(--espresso-2);border:1px solid #284C40;border-radius:var(--radius-lg);
  padding:clamp(1.9rem,1.3rem+2.4vw,3rem);}
.hours table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;}
.hours th{text-align:left;font-family:var(--font-display);font-weight:600;
  font-size:var(--t-1);padding-bottom:.9rem;color:var(--cream);}
.hours td{padding:.62rem 0;border-top:1px solid #284C40;font-size:1.02rem;}
.hours td.day{color:var(--cream-dim);}
.hours td.time{text-align:right;font-family:var(--font-display);font-weight:500;
  color:var(--cream);}
.hours tr.today td{color:#fff;}
.hours tr.today td.day{color:var(--patina);font-weight:600;}
.hours tr.today td.time::after{content:" · heute";color:var(--patina);font-family:var(--font-body);
  font-weight:400;font-size:.8em;}
.hours .note{margin-top:1.1rem;font-size:.9rem;color:var(--cream-dim);line-height:1.45;}

.locale h3{font-size:var(--t-2);margin-bottom:.4rem;}
.locale .addr{font-style:normal;font-size:var(--t-1);line-height:1.6;color:var(--cream);}
.locale .addr .muted{color:var(--cream-dim);}
.contact-list{list-style:none;margin:1.4rem 0 0;padding:0;display:grid;gap:.9rem;}
.contact-list li{display:flex;align-items:center;gap:.8rem;font-size:var(--t-1);}
.contact-list .ic{flex:none;width:38px;height:38px;border-radius:50%;
  display:grid;place-content:center;background:var(--espresso-2);border:1px solid #284C40;
  color:var(--orange);}
.contact-list a{color:var(--cream);text-decoration:none;font-family:var(--font-display);
  font-weight:500;}
.contact-list a:hover{color:var(--patina);}
.locale .actions{margin-top:1.7rem;}

/* ---- Menu / gallery — deliberately asymmetric mosaic, not a card grid --- */
.menu-grid{display:grid;grid-template-columns:repeat(3,1fr);
  grid-auto-rows:clamp(210px,24vw,320px);gap:clamp(.9rem,.5rem+1.2vw,1.4rem);}
.dish{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--paper-2);
  isolation:isolate;grid-column:span 1;}
.dish:nth-child(1),.dish:nth-child(4){grid-column:span 2;}
.dish img{width:100%;height:100%;object-fit:cover;
  transition:transform .7s var(--ease);}
.dish:hover img{transform:scale(1.045);}
.dish::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,transparent 42%,rgba(10,26,21,.86) 100%);}
.dish .cap{position:absolute;z-index:2;left:1.15rem;right:1.15rem;bottom:1.05rem;color:#fff;
  font-family:var(--font-display);font-weight:600;font-size:1.05rem;line-height:1.3;
  text-shadow:0 1px 12px rgba(10,26,21,.5);}
.menu-note{margin-top:clamp(2rem,1.2rem+2.2vw,3rem);
  display:flex;flex-wrap:wrap;align-items:center;gap:1.1rem 1.6rem;
  padding:clamp(1.6rem,1.1rem+1.8vw,2.4rem);
  border-left:4px solid var(--orange);border-radius:0 var(--radius) var(--radius) 0;
  background:var(--paper-warm);}
.menu-note p{color:var(--ink);font-size:var(--t-1);line-height:1.5;max-width:46ch;}
.menu-note .lead-in{color:var(--flame);font-family:var(--font-display);font-weight:600;}

/* ---- Räume / Atmosphäre ------------------------------------------------ */
.space-grid{display:grid;grid-template-columns:.95fr 1.05fr;
  gap:clamp(2rem,1rem+4vw,4.5rem);align-items:center;}
.space-figure img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:var(--radius-lg);
  box-shadow:0 24px 50px -28px rgba(45,25,10,.45);}
.space-copy h2{font-size:var(--t-3);margin-top:.7rem;}
.space-copy p{margin-top:1.1rem;color:var(--ink);font-size:var(--t-1);line-height:1.55;
  max-width:52ch;}
.space-copy .muted{color:var(--muted);}
.space-copy .actions{margin-top:1.8rem;display:flex;flex-wrap:wrap;gap:.85rem;}
.feature-row{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.6rem;}
.chip{font-family:var(--font-display);font-weight:600;font-size:.9rem;
  padding:.5rem .95rem;border-radius:100px;background:var(--paper-2);
  border:1px solid var(--clay-line);color:var(--ink);}

/* ---- Reserve / contact — full-bleed deep band, editorial, not a card --- */
.reserve{background:var(--espresso);color:var(--cream);position:relative;overflow:hidden;
  padding-block:var(--sp-section);padding-inline:clamp(1.1rem,3.5vw,3rem);}
.reserve .reserve-card{position:relative;
  display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,1rem+3vw,4.5rem);
  align-items:end;padding:0;background:none;border-radius:0;}
.reserve-card > *{position:relative;}
.reserve-card h2{font-size:var(--t-3);}
.reserve-card p{margin-top:1.2rem;color:var(--cream-dim);font-size:var(--t-1);
  line-height:1.55;max-width:44ch;}
.reserve-lead{font-family:var(--font-display);font-weight:600;color:var(--patina);
  font-size:var(--t-1);margin-bottom:.9rem;}
.reserve-actions{display:flex;flex-direction:column;align-items:flex-start;gap:1rem;}
.reserve-actions .btn-row{display:flex;flex-wrap:wrap;gap:.8rem;}
.reserve-actions .tel-big{font-family:var(--font-display);font-weight:700;
  font-size:clamp(2rem,1.4rem+2.6vw,3rem);color:#fff;text-decoration:none;display:block;
  text-align:left;letter-spacing:-.01em;line-height:1.05;}
.reserve-actions .tel-big:hover{color:var(--patina);}
.reserve-actions .fine{text-align:left;font-size:.9rem;color:var(--cream-dim);line-height:1.5;}

/* ---- Footer ------------------------------------------------------------ */
.site-footer{background:var(--espresso);color:var(--cream-dim);
  padding-block:clamp(3rem,2rem+3vw,4.5rem) 2rem;border-top:1px solid #284C40;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2.5rem;
  align-items:start;}
.footer-brand .logo-mark{width:104px;height:104px;}
.footer-brand p{margin-top:1rem;font-size:.95rem;line-height:1.5;max-width:34ch;}
.footer-col h3{font-family:var(--font-display);font-weight:600;color:var(--cream);
  font-size:1.08rem;letter-spacing:0;margin:0 0 1rem;}
.footer-col ul{list-style:none;margin:0;padding:0;display:grid;gap:.6rem;}
.footer-col a{color:var(--cream-dim);text-decoration:none;font-size:.98rem;}
.footer-col a:hover{color:var(--patina);}
.footer-col .hours-lite{font-variant-numeric:tabular-nums;display:grid;gap:.4rem;
  font-size:.95rem;}
.footer-col .hours-lite span{display:flex;justify-content:space-between;gap:1rem;
  color:var(--cream-dim);}
.socials{display:flex;gap:.7rem;margin-top:1.3rem;}
.socials a{width:42px;height:42px;border-radius:50%;display:grid;place-content:center;
  background:var(--espresso-2);border:1px solid #284C40;color:var(--cream);}
.socials a:hover{color:var(--espresso);background:var(--orange);border-color:var(--orange);}
.footer-base{margin-top:clamp(2rem,1.4rem+2vw,3rem);padding-top:1.5rem;
  border-top:1px solid #284C40;display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;
  justify-content:space-between;align-items:center;font-size:.85rem;}
.footer-base a{color:var(--cream-dim);text-decoration:none;}
.footer-base a:hover{color:var(--patina);}
.footer-base .legal{display:flex;gap:1.2rem;flex-wrap:wrap;}

/* ---- Legal (subpage) --------------------------------------------------- */
.legal-main{padding-block:clamp(2.5rem,2rem+3vw,4.5rem) var(--sp-section);}
.legal-main .wrap{width:min(100% - 2.5rem,52rem);}
.legal-main h1{font-size:var(--t-3);margin-bottom:.5rem;}
.legal-main .updated{color:var(--muted);font-size:.9rem;margin-bottom:2.5rem;}
.legal-main h2{font-size:var(--t-1);margin:2.4rem 0 .7rem;color:var(--ink);}
.legal-main h3{font-size:1.05rem;margin:1.6rem 0 .4rem;}
.legal-main p,.legal-main li{color:var(--ink);line-height:1.65;max-width:68ch;}
.legal-main p + p{margin-top:.9rem;}
.legal-main ul{margin:.6rem 0;padding-left:1.2rem;display:grid;gap:.35rem;}
.legal-main address{font-style:normal;line-height:1.7;margin:.4rem 0 1rem;}
.legal-back{display:inline-flex;align-items:center;gap:.5rem;margin-top:2.5rem;
  font-family:var(--font-display);font-weight:600;text-decoration:none;color:var(--flame);}
.legal-back:hover{color:var(--ink);}

/* ---- Skip link --------------------------------------------------------- */
.skip{position:absolute;left:1rem;top:-3rem;z-index:200;background:var(--ink);
  color:#fff;padding:.7rem 1.1rem;border-radius:8px;text-decoration:none;
  transition:top .2s var(--ease);}
.skip:focus{top:1rem;}

/* ---- Hero entrance: the single orchestrated on-load motion -------------
   Only the hero animates. All other .reveal elements stay fully visible at
   rest (no scroll-gating), so nothing can be caught mid-animation or stuck
   hidden — content is always present for users, agents and screenshots. */
@media (prefers-reduced-motion:no-preference){
  .js .hero .reveal{animation:reveal-rise .85s var(--ease) both;}
  .js .hero .reveal.d1{animation-delay:.10s;}
  .js .hero .reveal.d2{animation-delay:.20s;}
  .js .hero .reveal.d3{animation-delay:.30s;}
}
@keyframes reveal-rise{from{opacity:0;transform:translateY(22px);}to{opacity:1;transform:none;}}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width:1000px){
  .menu-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:clamp(180px,34vw,260px);}
}
@media (max-width:860px){
  .nav,.header-cta .tel{display:none;}
  .nav-toggle{display:inline-flex;align-items:center;justify-content:center;
    width:48px;height:48px;border-radius:12px;border:1px solid var(--clay);
    background:transparent;cursor:pointer;color:var(--ink);}
  .nav.open{display:flex;position:fixed;inset:70px 0 auto;flex-direction:column;
    align-items:stretch;gap:0;background:var(--paper);padding:.5rem 1.25rem 1.5rem;
    border-bottom:1px solid var(--clay-line);box-shadow:0 20px 40px -20px rgba(45,25,10,.35);}
  .nav.open a{padding:1rem .25rem;border-bottom:1px solid var(--clay-line);font-size:1.1rem;}
  .hero-grid,.hours-grid,.space-grid,.reserve-card,.intro-inner{grid-template-columns:1fr;}
  .hero-figure{order:-1;}
  .hero-figure img{aspect-ratio:5/6;}
  .intro-inner{gap:1.2rem;}
  .space-figure{max-width:30rem;margin-inline:auto;}
  .reserve-card{text-align:left;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .footer-brand{grid-column:1 / -1;}
}
@media (max-width:560px){
  .wrap{width:min(100% - 2rem,var(--wrap));}
  .menu-grid{grid-template-columns:1fr 1fr;gap:.7rem;grid-auto-rows:clamp(150px,40vw,210px);}
  .footer-grid{grid-template-columns:1fr;}
  .hero-badge{width:82px;height:82px;font-size:.72rem;right:10px;top:10px;}
  .hero-badge b{font-size:1.3rem;}
  .brand .brand-word{font-size:1rem;}
  .brand svg{width:64px;height:64px;}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important;scroll-behavior:auto !important;}
  .js .reveal{opacity:1 !important;transform:none !important;}
}
