/* danielreichenbach.com – Stylesheet
   Farben und Schrift zentral in :root anpassen. */

:root {
  --bg: #FAFAF7;
  --surface: #F0EFEA;
  --ink: #17171A;
  --muted: #5E5F66;
  --line: #17171A;
  --line-soft: #D9D8D2;
  --accent: #DD2100;          /* Rot wie im Logo – Akzentfarbe hell (15.11.2026) */
  --accent-ink: #FFFFFF;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 48px);
}

[data-theme="dark"] {
  --bg: #121214;
  --surface: #1C1C20;
  --ink: #F2F1EC;
  --muted: #A3A3AA;
  --line: #F2F1EC;
  --line-soft: #34343A;
  --accent: #DEFF00;          /* Gelbgrün – Akzentfarbe dunkel (15.11.2026, vorher #E0613F) */
  --accent-ink: #121214;      /* dunkle Schrift auf Gelbgrün */
}

/* Ohne eigene Wahl folgt die Seite der Einstellung des Geräts (hell/dunkel, auch automatisch nach Tageszeit) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121214;
    --surface: #1C1C20;
    --ink: #F2F1EC;
    --muted: #A3A3AA;
    --line: #F2F1EC;
    --line-soft: #34343A;
    --accent: #DEFF00;          /* Gelbgrün – Akzentfarbe dunkel (15.11.2026, vorher #E0613F) */
    --accent-ink: #121214;      /* dunkle Schrift auf Gelbgrün */
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Typografie ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 22px;
}
h1, h2, h3 { margin: 0; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.1rem); line-height: .95; letter-spacing: -0.045em; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -0.015em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 34em; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 15px 22px; font: 700 16px/1 var(--font); text-decoration: none;
  border: 2px solid var(--ink); background: var(--ink); color: var(--bg);
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.arrow-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.arrow-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: block; line-height: 0; color: var(--ink); text-decoration: none; }
.brand svg { display: block; width: 237px; height: 20px; fill: currentColor; }
@media (max-width: 420px) { .brand svg { width: 190px; height: 16px; } }
/* Schlusspunkte in Titeln etwas absetzen */
.dot { margin-left: .12em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 550; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.theme-toggle, .menu-toggle {
  background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; display: inline-flex;
}
.theme-toggle svg { width: 20px; height: 20px; }
.menu-toggle { display: none; font: 700 16px var(--font); }

/* ---------- Bild-Hero (Bildpräsentation wie reichenbachstories) ---------- */
.stage { padding: clamp(20px, 3vw, 40px) var(--pad) 0; max-width: 1600px; margin: 0 auto; }
.stage__img { aspect-ratio: 2.2 / 1; overflow: hidden; background: var(--surface); }
.stage__img img { width: 100%; height: 100%; object-fit: cover; animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes settle { from { transform: scale(1.06); opacity: .0; } to { transform: none; opacity: 1; } }
.stage__caption { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--accent); padding: 16px 0 0; margin: 0; }
.intro { padding: clamp(56px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); }
.intro__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.intro .lead { margin: 0; }

/* ---------- Split-Hero (Kontakt) ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; min-height: calc(92vh - 76px); }
.hero__text { padding: clamp(48px, 8vw, 110px) var(--pad); padding-left: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); display: flex; flex-direction: column; justify-content: center; }
.hero__text .lead { margin-top: 30px; }
.hero__media { position: relative; overflow: hidden; border-left: 1px solid var(--line); background: var(--surface); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tag {
  position: absolute; left: 0; bottom: 0; background: var(--bg); color: var(--ink);
  font-size: 12.5px; padding: 7px 12px; border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  letter-spacing: .01em;
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; border-bottom: 1px solid var(--line); }
.section--surface { background: var(--surface); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose p { font-size: 18px; }

/* Raster wie bei Röthlisberger: Kacheln mit Linien, Mitte in Akzentfarbe */
.matrix { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-top: clamp(48px, 7vw, 80px); }
.matrix > div { padding: 28px 24px 32px; border-right: 1px solid var(--line); min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; }
.matrix > div:last-child { border-right: 0; }
.matrix h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; }
.matrix p { margin: 0; color: var(--muted); font-size: 15px; }
.matrix .is-accent { background: var(--accent); color: var(--accent-ink); }
.matrix .is-accent h3, .matrix .is-accent p { color: var(--accent-ink); }
.matrix .is-accent h3 { font-style: italic; }

/* Zitat-Band */
.statement { font-size: clamp(1.9rem, 4.2vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; max-width: 20em; margin: 0; }
.statement em { font-style: normal; color: var(--accent); }

/* Portfolio-Karten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.card { text-decoration: none; display: block; }
.card__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img img { transform: scale(1.045); }
.card h3 { margin-top: 18px; }
.card p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.card:hover h3 { color: var(--accent); }

/* Auftraggeber */
.clients { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 40px; }
.clients li { list-style: none; flex: 1 1 200px; padding: 26px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.clients li small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.clients { padding: 0; }

/* Journal-Teaser & Liste */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; margin-top: 56px; }
.post-card { text-decoration: none; display: flex; flex-direction: column; }
.post-card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.post-card:hover .post-card__img img { transform: scale(1.045); }
.meta { font-size: 13px; color: var(--muted); margin: 18px 0 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.meta .cat { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.post-card h3 { transition: color .2s; }
.post-card:hover h3 { color: var(--accent); }
.post-card p { color: var(--muted); font-size: 15.5px; margin: 10px 0 0; }

.featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; text-decoration: none; margin-top: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line-soft); }
.featured .post-card__img { aspect-ratio: 4 / 3; }
.featured h2 { font-size: clamp(2rem, 4vw, 3.2rem); transition: color .2s; }
.featured:hover h2 { color: var(--accent); }
.featured:hover img { transform: scale(1.03); }
.featured p { color: var(--muted); font-size: 18px; margin-top: 18px; }

/* Artikel */
.article-head { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px); }
.article-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 14em; }
.article-head .meta { margin-top: 26px; font-size: 14px; }
.back { display: inline-block; margin-bottom: 36px; font-weight: 700; text-decoration: none; font-size: 15px; }
.back:hover { color: var(--accent); }
.article-hero { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.article-hero img { width: 100%; max-height: 82vh; object-fit: cover; }
.article-body { max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 90px) var(--pad); }
.article-body p { font-size: 19px; line-height: 1.65; }
.article-body p:first-child { font-size: 22px; line-height: 1.5; font-weight: 500; }
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.6em 0 .6em; letter-spacing: -0.02em; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 var(--pad) clamp(64px, 8vw, 110px); max-width: var(--wrap); margin: 0 auto; }
.gallery figure { margin: 0; background: var(--surface); }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery figcaption, .article-hero figcaption { font-size: 13px; color: var(--muted); padding: 8px 0 0; background: var(--bg); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.article-nav a { padding: 40px var(--pad); text-decoration: none; display: block; }
.article-nav a + a { border-left: 1px solid var(--line); text-align: right; }
.article-nav small { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; margin-bottom: 8px; }
.article-nav span { font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -0.02em; }
.article-nav a:hover span { color: var(--accent); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,10,12,.94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 4vw; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 100%; object-fit: contain; }

/* Kontakt */
.contact-poem { font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.025em; margin: 30px 0 0; }
.contact-poem span { display: block; }
.contact-poem .soft { color: var(--muted); }
.contact-poem .acc { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.contact-card { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 36px; }
.contact-card p { margin: 0 0 6px; }
.contact-card a { text-decoration: none; font-weight: 700; }
.contact-card a:hover { color: var(--accent); }
form .field { margin-bottom: 18px; }
form label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
form input, form textarea {
  width: 100%; font: 400 17px/1.5 var(--font); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
form textarea { min-height: 190px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 16px; font-weight: 700; }

/* CTA */
.cta { text-align: left; }
.cta h2 { max-width: 13em; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(64px, 8vw, 110px) 0 36px; }
.footer-claim { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin: 0 0 64px; }
.footer-claim em { font-style: italic; color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 32px; }
.footer-cols h4 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--accent); }
.copyright { margin-top: 56px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Einblenden beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { aspect-ratio: 4 / 3; border-left: 0; border-top: 1px solid var(--line); }
  .two-col, .contact-grid, .featured, .intro__grid { grid-template-columns: 1fr; }
  .stage__img { aspect-ratio: 3 / 2; }
  .matrix { grid-template-columns: 1fr 1fr; }
  .matrix > div:nth-child(2) { border-right: 0; }
  .matrix > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards, .posts { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--bg); flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--line); padding: 8px var(--pad) 20px; transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav.open { transform: none; }
  .nav a { font-size: 26px; font-weight: 800; padding: 10px 0; letter-spacing: -0.02em; }
  .nav a::after { display: none; }
  .cards, .posts, .gallery { grid-template-columns: 1fr; }
  .matrix > div { min-height: 160px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav a + a { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
}

/* ---------- Film ---------- */
.film-stage { max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); }
.film-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-thumb { position: relative; aspect-ratio: 16 / 9; }
.film-thumb .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(250,250,247,.92); transition: transform .3s, background .3s; }
.film-thumb .play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #17171A; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.post-card:hover .play { transform: scale(1.1); background: var(--accent); }
.post-card:hover .play::after { border-left-color: var(--accent-ink); }
.ph { color: var(--muted); border-left: 3px dashed var(--line-soft); padding-left: 18px; font-style: italic; }
.article-body p.ph:first-child { font-size: 19px; font-weight: 400; }
.still-ph { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-soft); color: var(--muted); font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 0; }
.facts > div { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 700; }

/* ---------- Fotografie ---------- */
.cards--two { grid-template-columns: repeat(2, 1fr); gap: 48px 28px; }
.card__img--wide { aspect-ratio: 3 / 2; }
.masonry { columns: 2; column-gap: 12px; padding: 12px var(--pad) clamp(64px, 8vw, 110px); max-width: 1600px; margin: 0 auto; }
.masonry figure { margin: 0 0 12px; break-inside: avoid; background: var(--surface); }
.masonry img { width: 100%; cursor: zoom-in; }
.stage img { cursor: zoom-in; }
@media (max-width: 960px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .masonry { columns: 1; } .cards--two { grid-template-columns: 1fr; } }

/* Lightbox-Navigation */
.lightbox img { cursor: pointer; user-select: none; }
.lb-btn { position: absolute; background: none; border: 0; color: #F2F1EC; cursor: pointer; padding: 14px; opacity: .75; transition: opacity .2s, color .2s; }
.lb-btn:hover { opacity: 1; color: var(--accent); }
.lb-btn svg { width: 40px; height: 40px; display: block; }
.lb-prev { left: 1vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1vw; top: 50%; transform: translateY(-50%); }
.lb-close { top: 12px; right: 12px; }
.lb-close svg { width: 28px; height: 28px; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #A3A3AA; font-size: 13px; letter-spacing: .08em; }
.lb-btn[hidden], .lb-count[hidden] { display: none; }
@media (max-width: 720px) { .lb-btn svg { width: 30px; height: 30px; } .lb-prev, .lb-next { top: auto; bottom: 6px; transform: none; } .lb-count { bottom: 26px; } }