/* Bäckerei Hafermond, fiktives Beispiel von Ortsklar. Stil: warm, weich, fliessend. */

@font-face { font-family: "Young Serif"; src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --mehl: #F8F4EC;        /* Hintergrund */
  --teig: #EFE6D7;        /* Flächen */
  --weiss: #FFFDF9;       /* Karten */
  --kruste: #2A1D14;      /* Text */
  --kruste-2: #6B5646;    /* Nebentext */
  --kobalt: #2F4FA2;      /* Akzent: Knöpfe, Links */
  --kobalt-dunkel: #233D82;
  --butter: #F2D58A;      /* Band Sonntagszopf */
  --linie: rgba(42, 29, 20, .14);

  --display: "Young Serif", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --pill: 999px;
  --shadow: 0 30px 60px -30px rgba(42, 29, 20, .35), 0 12px 24px -12px rgba(42, 29, 20, .14);
  --shadow-soft: 0 18px 40px -24px rgba(42, 29, 20, .3);

  --gutter: 20px;
  --wrap: min(1200px, calc(100% - 2 * var(--gutter)));
  --notice-h: 52px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--mehl); color: var(--kruste); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.015em; line-height: 1.02; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--kobalt); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- Hinweisleiste: identisch zur Demo Coiffeur Muster ---------- */
.example-notice { position: sticky; top: 0; z-index: 70; background: rgba(248, 247, 245, .88); border-bottom: 1px solid rgba(87, 79, 72, .15); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); font-family: "DM Sans", system-ui, sans-serif; color: #302b28; font-size: 13px; line-height: 1.35; }
.notice-inner { width: min(calc(100% - 80px), 1200px); min-height: 48px; margin: auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-block: 2px; }
.notice-inner > span { color: #3a3430; font-size: 13px; line-height: 1.25; }
.notice-inner > a { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 10px; background: rgba(195, 43, 35, .09); color: #a82920; font-size: 13px; font-weight: 700; text-decoration: none; }
.notice-inner > a:hover { background: rgba(195, 43, 35, .16); }
@media (max-width: 1023px) { .notice-inner { width: min(calc(100% - 40px), 1200px); } }
@media (max-width: 600px) {
  .notice-inner { width: calc(100% - 24px); }
  .notice-inner > span { font-size: 12px; }
  .notice-inner > a { padding-inline: 9px; font-size: 12px; }
}

/* ---------- Navigation: schwebende Pille ---------- */
.nav { position: sticky; top: calc(var(--notice-h) + 10px); z-index: 60; width: var(--wrap); margin: 10px auto 0; transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(calc(-100% - var(--notice-h) - 20px)); }
.nav-pill { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 8px 9px 8px 22px; border-radius: var(--pill); background: rgba(255, 253, 249, .78); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, var(--shadow-soft); border: 1px solid rgba(42, 29, 20, .07); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--kruste); margin-right: auto; }
.brand-mark { width: 34px; height: 34px; color: var(--kobalt); }
.brand-text { font-family: var(--display); font-size: 20px; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--body); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--kruste-2); margin-top: 4px; }
.nav-links { display: none; gap: 4px; }
.nav-links a { padding: 10px 16px; border-radius: var(--pill); text-decoration: none; font-weight: 600; font-size: 15px; transition: background .35s var(--ease); }
.nav-links a:hover { background: rgba(47, 79, 162, .08); }
.nav .btn-nav { display: none; }
.only-mobile { display: inline-flex; }
.icon-btn { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--kobalt); color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { height: 46px; padding: 0 18px; border: 1px solid var(--linie); border-radius: var(--pill); background: var(--weiss); font-weight: 600; cursor: pointer; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav .btn-nav { display: inline-flex; }
  .only-mobile { display: none; }
}

.menu-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(42, 29, 20, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 12px; }
.menu-sheet[hidden] { display: none; }
.menu-inner { background: var(--weiss); border-radius: var(--r-xl); padding: 24px 28px 30px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.menu-inner a { font-family: var(--display); font-size: 30px; text-decoration: none; padding: 8px 4px; }
.menu-inner .btn-primary { margin-top: 14px; justify-content: center; }
.menu-close { align-self: flex-end; border: 0; background: var(--teig); border-radius: var(--pill); padding: 10px 16px; font-weight: 600; cursor: pointer; }

/* ---------- Knöpfe: jeder mit eigener Rolle ---------- */
.btn-primary, .btn-nav, .btn-soft, .btn-dark, .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: var(--pill); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease); will-change: transform; }
.btn-primary, .btn-nav { background: var(--kobalt); color: #fff; box-shadow: 0 14px 26px -14px rgba(47, 79, 162, .9); }
.btn-primary:hover, .btn-nav:hover { background: var(--kobalt-dunkel); }
.btn-nav { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn-soft { background: var(--weiss); color: var(--kruste); box-shadow: inset 0 0 0 1px var(--linie); }
.btn-soft:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(42,29,20,.3); }
.btn-dark { background: var(--kruste); color: var(--mehl); }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--kruste); box-shadow: inset 0 0 0 1.5px var(--kruste); }
.btn-outline:hover { background: var(--kruste); color: var(--mehl); }
.btn-primary:active, .btn-nav:active, .btn-soft:active, .btn-dark:active, .btn-outline:active { scale: .97; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero-head { display: grid; gap: 24px; }
.hero-title { font-size: clamp(46px, 8.6vw, 124px); line-height: .94; letter-spacing: -.025em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-side { display: grid; gap: 22px; }
.hero-side p { max-width: 36ch; }
.hero-side p { font-size: 19px; color: var(--kruste-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1024px) {
  .hero-side { grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
}
.hero-media { --ins: 0px; position: relative; margin: clamp(32px, 4vw, 56px) auto 0; width: var(--wrap); height: min(76svh, 760px); min-height: 420px; clip-path: inset(0 var(--ins) round var(--r-xl)); overflow: hidden; border-radius: var(--r-xl); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 112%; top: -6%; object-fit: cover; object-position: 45% 50%; transform-origin: 50% 40%; }
.status-card { position: absolute; left: calc(var(--ins) + 24px); bottom: 24px; display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; border-radius: 20px; background: rgba(255, 253, 249, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-soft); }
.status-label { font-weight: 600; font-size: 14px; color: var(--kobalt); display: inline-flex; align-items: center; gap: 8px; }
.status-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-card.is-closed .status-label { color: var(--kruste-2); }
.status-time { font-family: var(--display); font-size: 22px; }
@media (max-width: 767px) {
  .hero-media { height: 62svh; min-height: 380px; }
  .hero-media img { object-position: 52% 50%; }
}

/* ---------- Abschnitts-Grundlagen ---------- */
section { position: relative; }
.morning, .shop, .cakes, .cafe, .hours { padding-block: clamp(88px, 11vw, 160px); }
.zopf { padding-block: clamp(24px, 4vw, 48px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2, .shop-content h2, .zopf-text h2, .cafe-text h2, .hours-col h2 { font-size: clamp(38px, 5.6vw, 76px); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--kruste-2); max-width: 52ch; }
.note { font-size: 15px; color: var(--kruste-2); }
.split-line-mask { padding: .32em 0 .12em; margin: -.32em 0 -.12em; }

/* ---------- Unser Morgen ---------- */
.timeline-wrap { position: relative; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; position: relative; }
.timeline li { position: relative; padding-left: 44px; }
.timeline time { display: block; white-space: nowrap; font-family: var(--display); font-size: clamp(38px, 4vw, 54px); line-height: 1; color: var(--kobalt); margin-bottom: 12px; }
.timeline p { color: var(--kruste-2); max-width: 30ch; }
.t-dot { position: absolute; left: 0; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: var(--mehl); box-shadow: inset 0 0 0 2px var(--kobalt); transition: background .5s var(--ease), transform .5s var(--ease); z-index: 1; }
.timeline li.is-on .t-dot { background: var(--kobalt); transform: scale(1.15); }
.t-line { position: absolute; left: 8px; top: 18px; bottom: 30px; width: 2px; background: var(--linie); border-radius: 2px; overflow: hidden; }
.t-fill { position: absolute; inset: 0; background: var(--kobalt); transform-origin: top center; transform: scaleY(1); }
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 40px; padding-top: 56px; }
  .timeline li { padding-left: 0; }
  .t-dot { top: -46px; }
  .t-line { left: 0; right: 0; top: 18px; bottom: auto; width: auto; height: 2px; }
  .t-fill { transform-origin: left center; }
}

/* ---------- Heute im Laden ---------- */
.shop-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.shop-content, .panels { min-width: 0; }
.shop-grid > *, .cafe-grid > *, .hours-panel > *, .zopf-panel > *, .hero-head > * { min-width: 0; }
.shop-visual { position: relative; }
.shop-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; background: var(--teig); box-shadow: var(--shadow); }
.shop-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.shop-frame img.is-active { opacity: 1; transform: scale(1); }
.shop-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-content: start; }
.tabs { position: relative; display: flex; gap: 4px; padding: 6px; border-radius: var(--pill); background: var(--teig); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 12px 20px; border-radius: var(--pill); font-weight: 600; font-size: 15px; cursor: pointer; color: var(--kruste-2); transition: color .4s var(--ease); white-space: nowrap; }
.tabs button[aria-selected="true"] { color: #fff; }
.tab-indicator { position: absolute; z-index: 0; top: 6px; left: 0; height: calc(100% - 12px); width: 0; border-radius: var(--pill); background: var(--kobalt); box-shadow: 0 10px 20px -12px rgba(47,79,162,.9); }
html:not(.js) .tabs button[aria-selected="true"] { background: var(--kobalt); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--linie); font-size: 18px; }
.menu-list li span { max-width: 34ch; }
.menu-list li i { flex: 1; border-bottom: 2px dotted rgba(42, 29, 20, .22); transform: translateY(-5px); min-width: 20px; }
.menu-list li b { font-weight: 600; white-space: nowrap; }
@media (min-width: 1024px) {
  .shop-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; }
  .shop-visual { position: sticky; top: 140px; }
}

/* ---------- Sonntagszopf ---------- */
.zopf-panel { position: relative; display: grid; gap: 32px; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-xl); background: var(--butter); overflow: hidden; }
.zopf-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); rotate: -3deg; }
.zopf-img img { width: 100%; height: 100%; object-fit: cover; }
.zopf-text { display: grid; gap: 18px; align-content: center; }
.zopf-text p { font-size: 19px; max-width: 38ch; }
.zopf-text .btn-dark { justify-self: start; }
@media (min-width: 1024px) {
  .zopf-panel { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ---------- Torten und Apéro ---------- */
.cake-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.cake-rail::-webkit-scrollbar { display: none; }
.cake-card { flex: 0 0 min(78vw, 360px); margin: 0; scroll-snap-align: start; }
.cake-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-soft); }
.cake-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cake-card:hover .cake-img img { transform: scale(1.05); }
.cake-card figcaption { margin-top: 14px; font-size: 17px; font-weight: 600; max-width: 30ch; }
.cakes-cta { margin-top: 36px; }
@media (min-width: 1024px) {
  .cake-rail { width: var(--wrap); margin: 0 auto; padding: 0; overflow: visible; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .cake-card:nth-child(2) { margin-top: 72px; }
  .cake-card:nth-child(3) { margin-top: 24px; }
}

/* ---------- Café ---------- */
.cafe-grid { display: grid; gap: 40px; }
.cafe-media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.cafe-media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.cafe-text { display: grid; gap: 24px; align-content: center; }
.quote { margin: 12px 0 0; padding: clamp(28px, 3vw, 40px); border-radius: var(--r-lg); background: var(--weiss); box-shadow: var(--shadow-soft); }
.quote p { font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; }
.quote footer { margin-top: 14px; font-size: 15px; color: var(--kruste-2); }
@media (min-width: 1024px) {
  .cafe-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .quote { margin-left: -140px; position: relative; z-index: 2; }
}

/* ---------- Öffnungszeiten ---------- */
.hours { padding-top: clamp(40px, 6vw, 80px); }
.hours-panel { display: grid; gap: 40px; padding: clamp(32px, 5vw, 64px) clamp(28px, 5vw, 64px); border-radius: var(--r-xl); background: var(--weiss); box-shadow: var(--shadow); }
.hours-col { display: grid; gap: 22px; align-content: start; }
.hours-list { margin: 8px 0 0; }
.hours-list { margin-inline: -18px; }
.hours-list div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-md); transition: background .5s var(--ease), color .5s var(--ease); }
.hours-list div + div { margin-top: 4px; }
.hours-list dt { font-weight: 600; }
.hours-list dd { margin: 0; white-space: nowrap; }
.hours-list div.is-today { background: var(--kobalt); color: #fff; }
.info address { font-style: normal; font-size: 19px; line-height: 1.5; }
.info a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--kruste-2); }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--kobalt); border-radius: 2px; }
.hours-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (min-width: 1024px) { .hours-panel { grid-template-columns: 1.2fr 1fr; gap: 80px; } }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(40px, 6vw, 80px); background: var(--kobalt); color: #F4EFE4; border-radius: 40px 40px 0 0; padding: clamp(48px, 7vw, 96px) 0 calc(36px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer-mark { font-family: var(--display); font-size: min(15.4vw, 204px); line-height: .85; letter-spacing: -.035em; white-space: nowrap; }
.footer-row { display: grid; gap: 12px; margin-top: 40px; padding-bottom: 84px; font-size: 15px; color: rgba(244, 239, 228, .85); }
.footer-row nav { display: flex; gap: 20px; }
.footer a { color: #fff; text-underline-offset: 4px; }
@media (min-width: 1024px) { .footer-row { grid-template-columns: 1fr auto 1fr; align-items: center; padding-bottom: 0; } .footer-row p:last-child { text-align: right; } }

/* ---------- Mobile Leiste und Meldung ---------- */
.mobile-bar { position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: var(--pill); background: rgba(255, 253, 249, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow); transform: translateY(140%); transition: transform .6s var(--ease); }
.mobile-bar.is-visible { transform: translateY(0); }
.mobile-bar button { min-height: 50px; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 18px; background: var(--kruste); color: var(--mehl); font-size: 15px; line-height: 1.4; box-shadow: var(--shadow); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 1024px) { .toast { bottom: 32px; } }

/* ---------- Rechtsseiten ---------- */
.legal { padding-block: 72px 120px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 28px; }
.legal h2 { font-family: var(--body); font-weight: 600; font-size: 20px; margin: 36px 0 8px; letter-spacing: 0; }
.legal p { color: var(--kruste-2); }
.legal .disclaimer { padding: 16px 20px; border-radius: var(--r-md); background: var(--butter); margin-bottom: 28px; font-weight: 600; }
.legal-back { display: inline-flex; margin-bottom: 32px; }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .nav.is-hidden { transform: none; }
}
