/* ==========================================================
   Onepager – Jörg Stanzick
   Gemeinsames Stylesheet für event-foto.eu, bandphotos.eu,
   aachener-fotostudio.de. Die Akzentfarbe kommt aus config.php.
   ========================================================== */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --akzent: #e8a23a;          /* wird in index.php überschrieben */
  --bg: #0e0e0f;
  --bg-2: #161618;
  --bg-3: #1f1f22;
  --text: #ecebe8;
  --text-2: #a9a7a2;
  --linie: #2c2c30;
  --max: 1160px;
  --rand: clamp(16px, 4vw, 40px);
  --auf-akzent: #111;        /* Schriftfarbe auf Akzentfarbe */
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* Helles Thema: in config.php 'thema' => 'hell' */
body.thema-hell {
  --bg: #f6f5f2; --bg-2: #ebe9e4; --bg-3: #ffffff;
  --text: #1c1c1e; --text-2: #5a5853; --linie: #d6d3cc;
  --auf-akzent: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.05; letter-spacing: .01em; margin: 0 0 .5em; text-transform: uppercase; }
h2 { font-size: clamp(34px, 5vw, 56px); }
h3 { font-size: 26px; font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--rand); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--rand); color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,0));
  transition: background .3s;
}
.kopf.fest { background: rgba(14,14,15,.94); backdrop-filter: blur(8px); }
.thema-hell .kopf.fest { background: rgba(246,245,242,.95); color: var(--text); box-shadow: 0 1px 0 var(--linie); }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .04em; }
.marke img { height: 40px; width: auto; }
.nav { display: flex; gap: clamp(14px, 3vw, 32px); font-family: var(--head); font-size: 18px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--akzent); }
@media (max-width: 640px) { .nav .nav-opt { display: none; } .marke { font-size: 20px; } }

/* ---------- Slideshow ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; background: #000; }
.slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.aktiv { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: var(--fit, cover); }
.slide figcaption {
  position: absolute; right: var(--rand); bottom: 22px; font-size: 14px; color: rgba(255,255,255,.7);
  letter-spacing: .04em; text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 70%); }
.hero-text { color: #fff; position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(70px, 12vh, 130px); }
.hero h1 { font-size: clamp(52px, 10vw, 128px); margin: 0 0 .1em; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero .unterzeile { font-size: clamp(19px, 2.2vw, 26px); max-width: 760px; margin: 0 0 1.4em; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.pfeil { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; font-size: 26px; cursor: pointer; transition: background .2s; }
.pfeil:hover { background: rgba(0,0,0,.65); }
.pfeil.zurueck { left: 14px; } .pfeil.weiter { right: 14px; }
@media (max-width: 640px) { .pfeil { display: none; } }
.punkte { position: absolute; z-index: 3; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 8px; }
.punkte button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.punkte button.aktiv { background: var(--akzent); }
@media (max-width: 640px) { .punkte { display: none; } }

/* ---------- Buttons ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf { display: inline-block; padding: 14px 26px; border-radius: 2px; text-decoration: none; cursor: pointer;
  font-family: var(--head); font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--akzent); color: var(--auf-akzent); border: 2px solid var(--akzent); transition: filter .2s, background .2s, color .2s; }
.knopf:hover { filter: brightness(1.1); }
.knopf.hohl { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.knopf.hohl:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Sektionen ---------- */
section { padding: clamp(64px, 10vw, 120px) 0; }
.dunkler { background: var(--bg-2); }
.kicker { font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--akzent); font-size: 17px; margin-bottom: 10px; display: block; }
.intro { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.intro .text p { color: var(--text); }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } }

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; margin-top: 40px; background: var(--linie); border: 1px solid var(--linie); }
.karten.drei { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.karte { background: var(--bg-2); padding: 32px 28px; }
.dunkler .karte { background: var(--bg); }
.karte h3 { color: var(--text); }
.karte h3::before { content: ""; display: block; width: 36px; height: 3px; background: var(--akzent); margin-bottom: 18px; }
.karte p { color: var(--text-2); margin: 0; font-size: 17px; }

.schritte { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin: 40px 0 0; padding: 0; list-style: none; }
.schritte li { counter-increment: s; color: var(--text-2); font-size: 17px; }
.schritte li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--head); font-weight: 700; font-size: 46px; color: var(--akzent); line-height: 1; margin-bottom: 10px; }
.schritte strong { display: block; color: var(--text); font-size: 19px; margin-bottom: 4px; }

.liste { columns: 2 260px; column-gap: 40px; padding: 0; margin: 30px 0 0; list-style: none; }
.liste li { break-inside: avoid; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--linie); position: relative; color: var(--text-2); }
.liste li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 2px; background: var(--akzent); }

.pakete { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.paket { border: 1px solid var(--linie); padding: 30px 28px; background: var(--bg); display: flex; flex-direction: column; }
.paket.hervor { border-color: var(--akzent); }
.paket .preis { font-family: var(--head); font-weight: 700; font-size: 40px; color: var(--akzent); line-height: 1.1; margin: 4px 0 16px; }
.paket .preis small { font-size: 18px; color: var(--text-2); font-weight: 500; }
.paket ul { margin: 0; padding: 0 0 0 18px; color: var(--text-2); font-size: 17px; }
.paket li { margin-bottom: 6px; }
.hinweis { color: var(--text-2); font-size: 15px; margin-top: 18px; }

.referenzen { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.referenzen li { font-family: var(--head); font-weight: 500; font-size: 22px; text-transform: uppercase; letter-spacing: .05em;
  padding: 8px 16px; border: 1px solid var(--linie); color: var(--text); }

/* ---------- Geschichten / Projekte ---------- */
.projekte { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 40px; }
.projekt { border-top: 3px solid var(--akzent); padding-top: 20px; }
.projekt h3 { margin-bottom: .15em; }
.projekt .ort { display: block; color: var(--akzent); font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: 15px; margin-bottom: 12px; }
.projekt p { color: var(--text-2); font-size: 17px; }

/* ---------- Teaser zur Hauptseite ---------- */
.teaser { background: var(--akzent); color: var(--auf-akzent); }
.teaser .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.teaser h2 { margin-bottom: .2em; }
.teaser p { margin: 0; max-width: 680px; font-size: 19px; }
.teaser .knopf { background: #111; color: #fff; border-color: #111; }
.thema-hell .teaser .knopf { background: #fff; color: #111; border-color: #fff; }

/* ---------- Kontakt ---------- */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 6vw, 80px); }
@media (max-width: 820px) { .kontakt-grid { grid-template-columns: 1fr; } }
.direkt { list-style: none; padding: 0; margin: 26px 0 0; }
.direkt li { margin-bottom: 14px; }
.direkt span { display: block; font-size: 14px; color: var(--text-2); text-transform: uppercase; letter-spacing: .1em; }
.direkt a { text-decoration: none; font-size: 21px; }
.direkt a:hover { color: var(--akzent); }
form .feld { margin-bottom: 16px; }
form label { display: block; font-size: 15px; color: var(--text-2); margin-bottom: 6px; }
form input[type=text], form input[type=email], form input[type=tel], form textarea {
  width: 100%; padding: 13px 14px; background: var(--bg-3); color: var(--text); border: 1px solid var(--linie); border-radius: 2px;
  font: inherit; font-size: 17px; }
form input:focus, form textarea:focus { border-color: var(--akzent); outline: none; }
form textarea { min-height: 150px; resize: vertical; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .zwei { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); margin: 6px 0 20px; }
.check input { margin-top: 5px; accent-color: var(--akzent); width: 18px; height: 18px; flex: none; }
.honig { position: absolute; left: -9999px; }
.meldung { padding: 16px 18px; margin-bottom: 22px; border-left: 4px solid var(--akzent); background: var(--bg-3); }
.meldung.fehler { border-color: #e05a4f; }

/* ---------- Fuß ---------- */
.fuss { border-top: 1px solid var(--linie); padding: 30px 0; font-size: 15px; color: var(--text-2); }
.fuss .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--akzent); }

/* ---------- Rechtstexte ---------- */
.recht { padding-top: 130px; max-width: 820px; }
.recht h1 { font-size: clamp(40px, 6vw, 64px); }
.recht h2 { font-size: 28px; margin-top: 1.6em; }
.recht p, .recht li { color: var(--text-2); }
.markierung { background: #6b4b00; color: #fff; padding: 0 4px; }
