/* Heidi's Caféstübchen – Theme-Styles */

/* Schriften liegen im Theme (keine Verbindung zu Google Fonts nötig) */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

:root {
  --creme: #F7F0E6;
  --creme-hell: #FBF6EE;
  --milchkaffee: #EFE3D3;
  --latte: #D9C2A3;
  --linie: #E4D5C1;
  --kaffee: #6F4A2F;
  --espresso: #3B2A20;
  --text-mittel: #6B4E3D;
  --akzent: #8A4B2A;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--creme); color: var(--espresso); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--kaffee); }
a:hover { color: var(--espresso); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(32px, 4vw, 44px); margin: 8px 0 20px; }
address { font-style: normal; margin: 0 0 20px; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--espresso); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.eyebrow { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mittel); }
.eyebrow-accent { color: var(--akzent); font-weight: 600; font-size: 14px; }
.muted { color: var(--text-mittel); }
.prose p { margin: 0 0 16px; }
.prose > :last-child { margin-bottom: 0; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-small { min-height: 44px; padding: 0 18px; }
.btn-primary { background: var(--kaffee); color: var(--creme-hell); }
.btn-primary:hover { background: var(--espresso); color: var(--creme-hell); }
.btn-outline { border-color: var(--kaffee); color: var(--kaffee); background: transparent; }
.btn-outline:hover { background: var(--kaffee); color: var(--creme-hell); }
.btn-light { background: var(--creme-hell); color: var(--espresso); }
.btn-light:hover { background: #fff; color: var(--espresso); }
.btn-outline-light { border-color: var(--creme-hell); color: var(--creme-hell); }
.btn-outline-light:hover { background: var(--creme-hell); color: var(--espresso); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--creme); border-bottom: 1px solid var(--linie); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--espresso); text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 17px; }
.nav-links a:not(.btn) { text-decoration: none; padding: 8px 0; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--espresso); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 820px) {
  .brand { font-size: 22px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 8px; }
  .nav-links.is-open { display: flex; }
  .nav-links .btn { margin-top: 8px; }
}

/* Titelbild */
.hero { position: relative; min-height: 600px; display: flex; align-items: flex-end; background: #A98466; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-band { position: relative; width: 100%; background: rgba(43, 29, 20, .62); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero h1 { color: var(--creme-hell); font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }
.hero-slogan { margin: 16px 0 28px; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); color: #F1E3CF; }
.today-box { flex: 0 1 320px; padding: 20px 24px; border-radius: 14px; background: var(--creme-hell); }
.today-box .eyebrow { font-size: 14px; }
.today-title { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.today-sub { font-size: 16px; color: #4A3428; margin-bottom: 4px; }
.today-box a { font-size: 16px; }
@media (max-width: 600px) { .hero { min-height: 520px; } }

/* Abschnitte */
.section { padding: 96px 0; }
.section-tint { background: var(--milchkaffee); }
@media (max-width: 600px) { .section { padding: 64px 0; } }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split-top { align-items: flex-start; }
.split-text { flex: 1 1 420px; min-width: 0; }
.split-media { flex: 1 1 380px; min-width: 0; }
.split-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.signature { margin: 24px 0 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--kaffee); }

/* Galerie */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.tab { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--kaffee); background: transparent; color: var(--kaffee); font: inherit; font-weight: 600; cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--kaffee); color: var(--creme-hell); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery[hidden] { display: none; }
.gallery-item { display: block; border-radius: 14px; overflow: hidden; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.03); }

/* Öffnungszeiten */
.split-text .btn { margin-top: 24px; }
.hours-card { flex: 1 1 420px; min-width: 0; padding: 12px 32px; border-radius: var(--radius); background: var(--creme-hell); border: 1px solid var(--linie); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 14px 0; border-bottom: 1px solid var(--linie); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { text-align: left; font-weight: 600; }
.hours td { text-align: right; color: #4A3428; }

/* Anfahrt */
.strong-link { font-weight: 600; }
.map { flex: 1 1 480px; min-width: 0; min-height: 400px; border-radius: var(--radius); overflow: hidden; background: var(--latte); display: flex; }
.map iframe { width: 100%; min-height: 400px; border: 0; }
.map-consent { margin: auto; max-width: 420px; padding: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.map-consent p { margin: 0; font-size: 16px; }

/* Fußzeile */
.site-footer { background: var(--espresso); color: #F1E3CF; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 40px; padding-bottom: 40px; font-size: 16px; }
.footer-name { font-family: var(--serif); font-size: 20px; color: var(--creme-hell); }
.footer-links { display: flex; gap: 24px; align-items: center; }
.site-footer a { color: #F1E3CF; }
.site-footer a:hover { color: #fff; }

/* Unterseiten (Impressum, Datenschutz) */
.page-text { max-width: 820px; padding-top: 64px; padding-bottom: 96px; }
.page-text h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 24px; }
.page-text h2 { font-size: 26px; margin: 32px 0 12px; }

/* Hinweis-Overlay */
.notice-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(43, 29, 20, .55); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; overflow-y: auto; }
.notice-backdrop[hidden] { display: none; }
.notice { position: relative; width: 100%; max-width: 540px; padding: 36px 32px 28px; border-radius: var(--radius); background: var(--creme-hell); box-shadow: 0 20px 60px rgba(43, 29, 20, .35); }
.notice h2 { font-size: 30px; margin: 6px 0 12px; }
.notice .prose { margin-bottom: 20px; }
.notice-image { display: block; margin: 0 0 20px; }
.notice-image img { width: 100%; max-height: 45vh; object-fit: contain; border-radius: 12px; background: var(--milchkaffee); }
.notice-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--espresso); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.notice-close:hover { background: var(--milchkaffee); }

/* Bild vergrößern */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(20, 13, 9, .88); }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; border-radius: 10px; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--creme-hell); color: var(--espresso); cursor: pointer; display: flex; align-items: center; justify-content: center; }
