/* Klopstock – Farben und Materialien aus dem Raumkonzept von Nora Vögeli (2023):
   Anthrazit-Putz, rötlich-graue Decke, Terrakotta-Wände, Bordeaux-Zellige,
   Messing-Fensterrahmen, Crème (Clotted Cream), Zementfliesen «Bone & Blush». */
:root {
  --anthracite: #2d2928;        /* Wände NCS S 8000-N, leicht warm */
  --ceiling: #4a3f3d;           /* Decke NCS S 5010-Y90R */
  --tile: rgba(45, 41, 40, 0.93);       /* leichte Stufe: fast deckend */
  --panel: #2d2928;
  --glass: rgba(36, 32, 31, 0.62);       /* Glas: getöntes Anthrazit */
  --glass-panel: rgba(36, 32, 31, 0.78);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --glass-shine: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 38%);
  --gap: 24px;                           /* Abstand des Fensters zum Bildschirmrand */
  --terracotta: #a85b4d;        /* Wände NCS S 3030-Y90R */
  --terracotta-light: #d39a8c;
  --bordeaux: #7b3633;          /* Zellige JAM Z 06 */
  --brass: #b99b62;             /* Fensterrahmen */
  --cream: #efe6d8;             /* Clotted Cream */
  --bar: rgba(239, 230, 216, 0.08);
  --line: rgba(239, 230, 216, 0.1);
  --text: #f4ede3;
  --muted: rgba(244, 237, 227, 0.64);
  --open: #8fcf9f;
  --wrap: 640px;
  /* feine senkrechte Rillen wie Besenstrich-Putz und Akustik-Paneele */
  --ribs: repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 5px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Jost, "Futura", system-ui, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.bg {
  position: fixed; inset: 0; z-index: -1;
  /* Zementfliesen-Muster vom Boden, nahtlos wiederholt */
  background: #efe7dd url(img/pattern.svg) center / 320px repeat;
}

/* ---------- Kacheln ---------- */
.card {
  background-color: var(--tile);
  background-image: var(--ribs);
  border: 1px solid transparent;
}

/* ---------- Startseite ---------- */
.home {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 16px;
  gap: 10px;
}
.hero, .today, .nav, .foot { width: min(var(--wrap), 100%); }

.hero { padding: 0; overflow: hidden; }
.hero-photo { position: relative; margin: 0; aspect-ratio: 16 / 9; }
.hero-photo > img:first-child, .hero-photo > picture:first-child { display: block; width: 100%; height: 100%; }
.hero-photo > img:first-child, .hero-photo > picture:first-child img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,41,40,.15) 0%, rgba(45,41,40,.35) 45%, rgba(45,41,40,.95) 100%);
}
.hero-photo .logo {
  position: absolute; z-index: 1; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(230px, 52%); height: auto; filter: drop-shadow(0 2px 12px rgba(0,0,0,.35));
}
.hero-photo .logo img { display: block; width: 100%; height: auto; }
picture.logo { display: block; }
.hero-text { padding: 22px 36px 30px; text-align: center; }
.hero h1 {
  margin: 0 0 10px; font-size: 18px; font-weight: 500; letter-spacing: .01em; color: var(--text);
}
.hero p { margin: 0 auto; max-width: 48ch; line-height: 1.7; font-size: 15px; color: rgba(244,237,227,.86); }

/* Rauten-Ornament wie «CAFE◆BAR» im Logo – in Messing */
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 16px; width: 150px; }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: var(--brass); opacity: .75; }
.ornament i { width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }

/* Heute */
.today { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.today-tile {
  display: grid; align-content: start; gap: 6px;
  padding: 16px 20px; text-decoration: none;
  border-top: 2px solid var(--brass);
  transition: background-color .2s, transform .2s ease;
}
.today-tile:hover { background-color: rgba(45, 41, 40, 1); }
.kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: .2em; color: var(--brass); }
.status { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 400; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta-light); flex: none; }
.status.is-open::before { background: var(--open); box-shadow: 0 0 0 4px rgba(143, 207, 159, .18); }
.sub { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.dish-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; line-height: 1.4; }
.dish-line .p { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }

/* Navigation */
.nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nav a {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 10px 12px;
  text-align: center; text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 13px; font-weight: 400;
  transition: background-color .2s ease, transform .2s ease;
}
.nav a:hover, .nav a:focus-visible { background-color: var(--terracotta); transform: translateY(-1px); }
/* kurzes «Eindrücken» beim Antippen */
.nav a:active, .today-tile:active { transform: scale(.975); transition-duration: .08s; }
.nav a, .today-tile { -webkit-tap-highlight-color: transparent; }

.foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 20px; font-size: 13px; color: var(--muted); letter-spacing: .03em;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* sanftes Einblenden (nach dem Auftakt etwas später) */
.hero, .today-tile, .nav a, .foot {
  animation: rise .6s cubic-bezier(.2,.7,.2,1) calc(var(--intro-wait, 0s) + var(--i, 0s)) both;
}
.today-tile:nth-child(1) { --i: .06s; } .today-tile:nth-child(2) { --i: .1s; }
.nav a:nth-child(1) { --i: .14s; } .nav a:nth-child(2) { --i: .17s; }
.nav a:nth-child(3) { --i: .2s; }  .nav a:nth-child(4) { --i: .23s; }
.nav a:nth-child(5) { --i: .26s; } .nav a:nth-child(6) { --i: .29s; }
.nav a:nth-child(7) { --i: .32s; } .nav a:nth-child(8) { --i: .35s; }
.foot { --i: .38s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }


/* ---------- Auftakt «Diamant» ----------
   Nur beim ersten Besuch pro Sitzung (perf.js setzt html.has-intro).
   Eine Messing-Raute erscheint in der Mitte des Fotos, öffnet das Foto als Raute,
   dann ziehen sich die Ornament-Linien auf, und der Text erscheint.
   Alles sind die normalen Elemente der Seite – ohne JavaScript-Pflicht, klickbar bleibt alles. */
.home { container-type: inline-size; }
html.has-intro { --intro-wait: 1.25s; }
html.has-intro .hero {
  /* Mitte des Fotos: Kachelbreite × Seitenverhältnis ÷ 2 (16:9, auf dem Handy 4:3) */
  --cy: calc(min(var(--wrap), 100cqw) * var(--photo-half, .28125));
  position: relative;
  animation: intro-diamond 1.3s cubic-bezier(.65, 0, .25, 1) both;
}
html.has-intro .hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--brass);
  animation: intro-brass .5s ease .55s both;
}
html.has-intro .hero-photo > picture:first-child img,
html.has-intro .hero-photo > img:first-child { animation: intro-zoom 1.3s cubic-bezier(.2, .7, .2, 1) .45s both; }
html.has-intro .hero-photo .logo { animation: intro-fade .6s ease .9s both; }
html.has-intro .ornament::before { transform-origin: right; animation: intro-line .55s cubic-bezier(.2, .7, .2, 1) 1s both; }
html.has-intro .ornament::after { transform-origin: left; animation: intro-line .55s cubic-bezier(.2, .7, .2, 1) 1s both; }
html.has-intro .hero h1 { animation: intro-up .55s cubic-bezier(.2, .7, .2, 1) 1.1s both; }
html.has-intro .hero p { animation: intro-up .55s cubic-bezier(.2, .7, .2, 1) 1.18s both; }
/* fertig: alle Auftakt-Animationen weg, die Seite ist im Normalzustand */
html.intro-done .hero, html.intro-done .hero *, html.intro-done .hero::before,
html.intro-done .ornament::before, html.intro-done .ornament::after { animation: none; }
html.intro-done .hero::before { content: none; }
html.intro-skip { --intro-wait: 0s; }

@keyframes intro-diamond {
  0% { clip-path: polygon(50% var(--cy), 50% var(--cy), 50% var(--cy), 50% var(--cy)); }
  25% { clip-path: polygon(50% calc(var(--cy) - 12px), calc(50% + 12px) var(--cy), 50% calc(var(--cy) + 12px), calc(50% - 12px) var(--cy)); }
  42% { clip-path: polygon(50% calc(var(--cy) - 12px), calc(50% + 12px) var(--cy), 50% calc(var(--cy) + 12px), calc(50% - 12px) var(--cy)); }
  100% { clip-path: polygon(50% calc(var(--cy) - 1100px), calc(50% + 1100px) var(--cy), 50% calc(var(--cy) + 1100px), calc(50% - 1100px) var(--cy)); }
}
@keyframes intro-brass { to { opacity: 0; } }
@keyframes intro-zoom { from { transform: scale(1.08); } to { transform: none; } }
@keyframes intro-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-line { from { transform: scaleX(0); } to { transform: none; } }
@keyframes intro-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.has-intro { --intro-wait: 0s; } }

/* ---------- Fenster ---------- */
.modal {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  padding: var(--gap) 16px;
  background: rgba(45, 41, 40, 0.6);
  overflow: hidden; z-index: 10;
}
.modal:target, .modal.open { display: flex; animation: fade .25s ease; }
html.js .modal:target:not(.open) { display: none; }
.modal.open .panel, .modal:target .panel { animation: pop .3s cubic-bezier(.2,.7,.2,1); }
/* Mit JavaScript übernimmt app.js die Übergänge (Kachel wächst zum Fenster) */
html.js .modal.open, html.js .modal.open .panel, html.js .lightbox.open { animation: none; }
.panel { will-change: clip-path; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.panel {
  width: min(660px, 100%);
  /* Fenster ist so hoch wie nötig, aber nie höher als der Bildschirm minus Abstand – es scrollt innen */
  max-height: calc(100vh - 2 * var(--gap));
  max-height: calc(100dvh - 2 * var(--gap));
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(185,155,98,.5) transparent;
  background-color: var(--panel); background-image: var(--ribs);
  border-top: 3px solid var(--terracotta);
  padding: 0 30px 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
}
.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-thumb { background: rgba(185,155,98,.45); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.wide-panel { width: min(1040px, 100%); }
.panel > header {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 -30px 20px; padding: 18px 30px 14px;
  background: var(--panel-head, var(--panel));
  border-bottom: 1px solid rgba(185, 155, 98, .55);
}
h2 { margin: 0; font-weight: 400; font-size: 26px; text-transform: uppercase; letter-spacing: 0.1em; }
.close {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(244, 237, 227, .55);
  display: grid; place-items: center; flex: none;
  text-decoration: none; font-size: 20px; line-height: 1;
  transition: background-color .2s, border-color .2s;
}
.close:hover { background: var(--terracotta); border-color: var(--terracotta); }

h3.bar {
  background: var(--bar); border-left: 3px solid var(--terracotta);
  margin: 30px 0 6px; padding: 7px 12px;
  font-size: 14.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
}
.menu-cat:first-child h3.bar { margin-top: 0; }
h3.plain {
  margin: 20px 0 8px; font-size: 15px; font-weight: 500; color: var(--brass);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.subtitle { margin: 6px 0 4px; font-size: 13px; color: var(--muted); font-style: italic; }

table.menu { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.menu th { font-weight: 400; font-size: 12px; color: var(--brass); padding: 8px 8px 2px; letter-spacing: .05em; }
table.menu td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
table.menu tr:last-child td { border-bottom: 0; }
table.menu .p { text-align: right; white-space: nowrap; width: 70px; font-variant-numeric: tabular-nums; }
.name { display: block; }
.desc { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.center { text-align: center; margin-top: 28px; }
.text { line-height: 1.7; font-size: 15px; color: rgba(244, 237, 227, .88); }
table.hours td:first-child { width: 48%; }

/* Wochenmenü */
.weekly { display: grid; gap: 8px; }
.day {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px;
  background: var(--bar); border-left: 3px solid transparent;
  padding: 12px 14px; font-size: 14.5px;
}
.day.today { border-left-color: var(--terracotta); background: rgba(168, 91, 77, .2); }
.dayname { font-weight: 500; }
.day.today .dayname::after { content: 'heute'; display: block; font-size: 11px; color: var(--brass); text-transform: uppercase; letter-spacing: .14em; font-weight: 400; }
.dish { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; line-height: 1.45; }
.dish .p { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* About & Café */
img.wide { width: 100%; height: auto; display: block; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.people img, .story img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.story { display: grid; grid-template-columns: 190px 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.story:last-child { border-bottom: 0; }
.story:not(:has(img)) { grid-template-columns: 1fr; }
.story h3.plain { margin-top: 0; }

/* Galerie */
.gallery { columns: 3 220px; column-gap: 10px; }
.gallery a { display: block; margin-bottom: 10px; break-inside: avoid; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0; z-index: 20; display: none;
  align-items: center; justify-content: center; background: rgba(30, 27, 26, .95);
}
.lightbox.open { display: flex; animation: fade .2s ease; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute; background: rgba(244,237,227,.08); color: var(--text); border: 1px solid rgba(244,237,227,.4);
  width: 46px; height: 46px; border-radius: 50%; font: inherit; font-size: 22px; cursor: pointer;
}
.lightbox button:hover { background: var(--terracotta); border-color: var(--terracotta); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 20px; font-size: 13px; color: var(--muted); letter-spacing: .1em; }

/* Kontakt */
.box { background: var(--bar); border-left: 3px solid var(--terracotta); padding: 14px 18px; }
.buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 9px 22px; background: var(--cream); color: var(--anthracite);
  text-decoration: none; font-weight: 400; font-size: 14px; letter-spacing: .06em;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--terracotta); color: var(--text); }
.map { width: 100%; height: 300px; border: 0; margin-top: 16px; display: block; filter: grayscale(.45) sepia(.12); }

.map-consent { margin-top: 16px; padding: 16px 18px; background: var(--bar); border: 1px dashed rgba(244,237,227,.25); font-size: 13.5px; color: var(--muted); }
.map-consent p { margin: 0 0 12px; line-height: 1.5; }
.map-consent .buttons { margin: 0; }
.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(244,237,227,.45); }
.btn-ghost:hover { border-color: var(--terracotta); }
.legal-links { flex-basis: 100%; text-align: center; font-size: 12px; letter-spacing: .08em; }
.legal-links a { text-decoration: none; }
.legal-links a:hover { color: var(--text); text-decoration: underline; }
.legal a { color: var(--text); text-decoration-color: rgba(185,155,98,.6); }
.legal .text { margin: 0 0 12px; }
.legal h3.plain:first-child { margin-top: 0; }

.foot-actions { display: inline-flex; align-items: center; gap: 14px; }
.icon-link {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  color: var(--muted); background: none; border: 1px solid transparent; padding: 0; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.icon-link:hover, .icon-link:focus-visible { color: var(--text); border-color: rgba(185,155,98,.6); background: rgba(185,155,98,.12); }
.ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico .dot { fill: currentColor; stroke: none; }
.btn-ig { display: inline-flex; align-items: center; gap: 8px; }
.btn-ig .ico { width: 16px; height: 16px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); z-index: 30;
  padding: 10px 18px; background: var(--panel); color: var(--text); font-size: 14px; letter-spacing: .03em;
  border: 1px solid rgba(185,155,98,.5); box-shadow: 0 10px 30px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .home { padding: 14px 12px 28px; gap: 8px; justify-content: flex-start; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero { --photo-half: .375; }
  .hero-text { padding: 18px 20px 24px; }
  .hero h1 { font-size: 16.5px; }
  .hero p { font-size: 14.5px; }
  .today { grid-template-columns: 1fr; gap: 8px; }
  .nav { gap: 8px; }
  .nav a { min-height: 52px; font-size: 12px; letter-spacing: .12em; }
  .foot { justify-content: center; text-align: center; }
  :root { --gap: 12px; }
  .modal { padding: var(--gap) 10px; }
  .panel { padding: 0 18px 28px; }
  .panel > header { margin: 0 -18px 18px; padding: 14px 18px 12px; }
  h2 { font-size: 21px; }
  .people, .story { grid-template-columns: 1fr; }
  .story img { aspect-ratio: 4 / 3; }
  .day { grid-template-columns: 1fr; gap: 4px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 12px; transform: none; }
}

/* ---------- Glas-Design, abgestuft nach Gerät ----------
   high   = starkes Glas mit viel Unschärfe (starke Geräte)
   medium = Glas mit wenig Unschärfe
   low    = deckende Kacheln, keine Unschärfe (schwache Geräte, Datensparmodus,
            «Transparenz reduzieren» oder Browser ohne backdrop-filter) */
html[data-fx="high"] .card, html[data-fx="medium"] .card {
  background-color: var(--glass);
  background-image: var(--glass-shine), var(--ribs);
  border-color: var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 12px 32px rgba(45,41,40,.18);
}
html[data-fx="high"] .card { backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); }
html[data-fx="medium"] .card { --glass: rgba(36,32,31,.74); backdrop-filter: blur(8px) saturate(130%); -webkit-backdrop-filter: blur(8px) saturate(130%); }
html[data-fx="high"] .hero, html[data-fx="medium"] .hero { border-color: var(--glass-edge); }

html[data-fx="high"] .nav a:hover, html[data-fx="medium"] .nav a:hover,
html[data-fx="high"] .nav a:focus-visible, html[data-fx="medium"] .nav a:focus-visible {
  background-color: rgba(168, 91, 77, .82); border-color: rgba(255,255,255,.22);
}
html[data-fx="high"] .today-tile:hover, html[data-fx="medium"] .today-tile:hover { background-color: rgba(38,34,33,.72); }

html[data-fx="high"] .modal { background: rgba(45,41,40,.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html[data-fx="high"] .panel, html[data-fx="medium"] .panel {
  --panel-head: rgba(36,32,31,.72);
  background-color: var(--glass-panel);
  background-image: var(--glass-shine), var(--ribs);
  border-left: 1px solid var(--glass-edge); border-right: 1px solid var(--glass-edge); border-bottom: 1px solid var(--glass-edge);
}
html[data-fx="high"] .panel { backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%); }
html[data-fx="medium"] .panel { --glass-panel: rgba(36,32,31,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html[data-fx="high"] .panel > header, html[data-fx="medium"] .panel > header {
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
html[data-fx="low"] .card { box-shadow: none; }
/* Auf Glas: Schrift etwas heller für gute Lesbarkeit */
html[data-fx="high"], html[data-fx="medium"] { --muted: rgba(244, 237, 227, 0.78); }
html[data-fx="high"] .kicker, html[data-fx="medium"] .kicker { color: #d9bf8a; }
html[data-fx="high"] .hero p, html[data-fx="medium"] .hero p { color: rgba(244, 237, 227, .92); }
.hero h1, .hero p, .today-tile, .nav a { text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }

@media (prefers-reduced-transparency: reduce) {
  html .card, html .panel { background-color: var(--panel) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* sehr schmale Handys (z.B. iPhone SE) */
@media (max-width: 360px) {
  .nav a { font-size: 11px; letter-spacing: .08em; padding: 8px 6px; }
  .foot-actions { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
