/* Gemeinsame Basis der vier Beispielseiten. Jede Seite setzt ihre Farben/Schrift über Variablen und eigene Regeln.
   Alles hier ist bewusst schlicht: Reset, Beispiel-Leiste, Container, Reveal, Buttons, Bildplätze, Fußzeile. */
@font-face { font-family: 'Instrument Sans'; src: url('../assets/fonts/InstrumentSans-Variable.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../assets/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --bg: #0b0b0b; --fg: #f1f1ef; --muted: rgba(241, 241, 239, .66); --line: rgba(241, 241, 239, .14);
  --surface: rgba(241, 241, 239, .05); --accent: #d58c3d; --on-accent: #0b0b0b;
  --font: 'Instrument Sans', system-ui, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace;
  --gutter: clamp(1.25rem, 5vw, 4.5rem); --ease: cubic-bezier(.2, 0, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrapx { width: min(100% - 2 * var(--gutter), 78rem); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Beispiel-Leiste: macht klar, dass das ein Entwurf für ein fiktives Unternehmen ist */
.demo-bar { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem var(--gutter);
  font: 500 .72rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: #101010; color: #e8e8e6; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.demo-bar a { color: #f1f1ef; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.demo-bar span { opacity: .7; }

/* Reveal: sanftes Einblenden beim Scrollen (ohne JS sofort sichtbar) */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } * { animation: none !important; } }

.btn { display: inline-flex; align-items: center; gap: .7rem; padding: .95rem 1.6rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .98rem; transition: transform .25s var(--ease), filter .25s var(--ease); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }

/* Bildplatz: zeigt das Foto, wenn die Datei da ist, sonst den Verlauf darunter */
.ph { background-image: var(--img, none), var(--fallback, linear-gradient(135deg, #1a1a1a, #2a2a2a)); background-size: cover; background-position: center; border-radius: var(--r, 18px); }

.tag { font: 500 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.foot-x { padding: 3rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot-x .wrapx { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.foot-x a { text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 140%); padding: .8rem 1.2rem; border-radius: 12px; background: #fff; color: #111; font-size: .9rem; font-weight: 600; z-index: 99; transition: transform .4s var(--ease); max-width: calc(100% - 2rem); text-align: center; }
.toast.show { transform: translate(-50%, 0); }
form.fake { display: grid; gap: .9rem; }
form.fake label { display: grid; gap: .35rem; font-size: .85rem; color: var(--muted); }
form.fake input, form.fake textarea, form.fake select { font: inherit; font-size: 1rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
form.fake textarea { min-height: 6.5rem; resize: vertical; }

/* Fotos: Hero-Hintergrund (abgedunkelt) und ein Streifen mit zwei Bildern */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .2; -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 90%); mask-image: linear-gradient(to bottom, #000 35%, transparent 90%); pointer-events: none; }
.photos { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(.6rem, 2vw, 1.4rem); padding-block: clamp(3rem, 7vw, 6rem); }
.photos { grid-auto-rows: clamp(16rem, 38vw, 30rem); }
.photos figure { margin: 0; overflow: hidden; border-radius: 1.2rem; }
.photos .wide { grid-column: 1 / -1; grid-row: span 1; }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
