/* Gemeinsame Grundlagen der Webgut-Beispielseiten. Farben und Schriften setzt jede Seite selbst über Variablen. */
*, *::before, *::after { box-sizing:border-box; }
* { margin:0; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:90px; }
body { -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
img { display:block; max-width:100%; height:auto; }
button, input, select, textarea { font:inherit; color:inherit; }
[hidden] { display:none !important; }
:focus-visible { outline:3px solid var(--focus, #1f5fbf); outline-offset:3px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip { position:absolute; left:-999px; top:8px; z-index:200; padding:10px 14px; background:#000; color:#fff; }
.skip:focus { left:8px; }

/* Hinweisleiste "Beispiel-Website" */
.demo-ribbon { position:relative; z-index:100; display:flex; justify-content:center; align-items:center; gap:8px 18px; flex-wrap:wrap; padding:8px 16px; background:#1d1915; color:#e9e1d6; font:500 16px/1.4 "Source Sans 3", system-ui, sans-serif; text-align:center; }
.demo-ribbon b { color:#fff; }
.demo-ribbon a { color:#9ccab6; font-weight:600; text-decoration:none; white-space:nowrap; }
.demo-ribbon a:hover { text-decoration:underline; }

/* Kurzmeldung */
.demo-toast { position:fixed; left:50%; bottom:max(24px, env(safe-area-inset-bottom)); z-index:300; transform:translate(-50%, 20px); opacity:0; pointer-events:none;
  max-width:min(92vw, 460px); padding:13px 18px; border-radius:12px; background:#1d1915; color:#fff; font:500 16px/1.45 "Source Sans 3", system-ui, sans-serif; box-shadow:0 18px 40px -14px rgba(0,0,0,.45); transition:opacity .25s, transform .25s; }
.demo-toast.on { opacity:1; transform:translate(-50%, 0); }
@media (max-width:760px) { .demo-toast { bottom:88px; } html { scroll-padding-bottom:96px; } }

/* Status "Jetzt geöffnet" */
[data-status] { display:inline-flex; align-items:center; gap:9px; }
[data-status] i { width:9px; height:9px; border-radius:50%; background:var(--st-closed, #b4473a); flex:none; position:relative; }
[data-status][data-state="open"] i { background:var(--st-open, #2f8f4e); }
[data-status][data-state="soon"] i { background:var(--st-soon, #c98a12); }
[data-status][data-state="open"] i::after { content:""; position:absolute; inset:-4px; border-radius:50%; border:2px solid var(--st-open, #2f8f4e); opacity:.35; animation:pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform:scale(.6); opacity:.5; } 100% { transform:scale(1.7); opacity:0; } }

/* Öffnungszeiten-Tabelle */
.h-row { display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--line, #e5ddd2); }
.h-row.today { font-weight:700; }
.h-row.today span:first-child::after { content:"heute"; margin-left:8px; padding:1px 8px; border-radius:99px; font-size:.8em; font-weight:600; vertical-align:2px; background:var(--accent, #333); color:var(--on-accent, #fff); }
.h-row.off span:last-child { opacity:.7; }

/* Einblenden beim Scrollen */
.reveal { opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity:1; transform:none; }
.shot .reveal { opacity:1; transform:none; transition:none; }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .reveal { opacity:1; transform:none; transition:none; } [data-status] i::after { animation:none; } }

/* Formulare: Fehlerzustand */
.fld.bad input, .fld.bad select, .fld.bad textarea { border-color:#b4473a !important; box-shadow:0 0 0 3px rgba(180,71,58,.15); }
