/*
Theme Name: jonoda
Theme URI: https://jonoda.de
Author: jonoda Fricaud IT Solutions
Author URI: https://jonoda.de
Description: Custom-Theme fuer jonoda.de. Hand-codiert, kein Page-Builder. Alle Inhalte ueber Secure Custom Fields pflegbar.
Version: 0.1.0
Text Domain: jonoda
*/

/* -- Selbst gehostete Schriften (SIL Open Font License), siehe assets/fonts/README.md -- */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/inter-tight-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/mulish-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/mulish-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #000;
  --color-fg: #fff;
  --color-fg-dim: #cfcfcf;
  --color-fg-muted: #888;
  --color-fg-soft: #aaa;
  --color-panel-start: #1f3a12;
  --color-panel-mid: #0b1407;
  --color-accent: #7ED957;
  --color-accent-dark: #3E9A26;
  --color-on-accent: #0a1a05;
  --font-display: 'Inter Tight', sans-serif;
  --font-body: 'Mulish', sans-serif;
  --font-wordmark: 'Poppins', sans-serif;
  --container-max: 1440px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* clip statt hidden: verhindert ebenfalls horizontales Scrollen, macht body aber nicht zum Scroll-Container
     (sonst greift position: sticky im Hero-Orbit nicht). hidden bleibt als Fallback für alte Browser. */
  overflow-x: clip;
}

a { color: var(--color-fg); text-decoration: none; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 5vw;
}

/* -- Header / Navigation -- */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0;
}
.site-header__logo img { height: 94px; width: auto; }
.site-header__nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-header__nav li { list-style: none; }
.site-header__nav a { padding: 12px 22px; border-radius: 999px; color: var(--color-fg-dim); font-size: 15px; display: inline-block; }
.site-header__nav .current-menu-item > a,
.site-header__nav a.is-current,
.site-header__nav a.is-cta {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-on-accent);
  font-weight: 600;
}
.site-header__actions { display: flex; gap: 8px; align-items: center; }
.social-icon {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.site-header__contact {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 6px 5px 20px; border-radius: 999px;
  background: #fff; color: #000; font-size: 15px; font-weight: 600;
}
.site-header__contact-label { color: #000; }
.site-header__contact-icon {
  width: 36px; height: 36px; border-radius: 50%; background: #000;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px;
  flex: none;
}
.site-header__contact-icon:hover { color: var(--color-accent); }
.site-header__mobile-toggle { display: none; }
.site-header__nav a.site-header__nav-contact { display: none; }

/* -- Hero -- */
.hero {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(ellipse 70% 60% at 50% 60%, var(--color-panel-start) 0%, var(--color-panel-mid) 45%, #000 80%);
  padding: 28px 5vw 48px;
}
.hero--simple { min-height: auto; padding-bottom: 80px; background: radial-gradient(ellipse 70% 60% at 50% 30%, var(--color-panel-start) 0%, var(--color-panel-mid) 45%, #000 80%); }
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr) minmax(0,1fr);
  gap: 24px;
  align-items: start;
  margin-top: 8vh;
  z-index: 1;
}
.hero__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.35;
  letter-spacing: -.02em;
  color: #e6e6e6;
  white-space: pre-line;
}
/* Grossflaechiges Freisteller-Bild, liegt HINTER Headline/Karte, nicht als
   eigene Grid-Spalte -- daher position:absolute statt einer Grid-Zelle. */
.hero__portrait {
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 0;
  width: min(46vw, 760px);
  max-width: 90vw;
  transform: translateX(-50%);
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 55% 68% at 50% 42%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 55% 68% at 50% 42%, #000 30%, transparent 100%);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero__portrait-spacer { min-height: 52vh; }

.hero-card {
  justify-self: end;
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border-radius: 22px; padding: 16px; gap: 12px;
  color: #000; max-width: 440px; width: 100%;
}
.hero-card__body { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 4px 8px; }
.hero-card__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: .01em; }
.hero-card__text { margin: 0; font-size: 12px; line-height: 1.35; color: #555; }
.hero-card__cta { margin-top: auto; align-self: flex-start; padding: 10px 22px; border-radius: 999px; background: #000; color: #fff; font-size: 12px; font-weight: 600; }
.hero-card__image { position: relative; height: 190px; border-radius: 16px; overflow: hidden; }
.hero-card__image img { width: 100%; height: 100%; object-fit: cover; }

.hero__tiles-row { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: end; margin-top: 32px; }
.hero__tiles { display: flex; gap: 10px; flex-wrap: wrap; }
.tile { width: 196px; height: 166px; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.tile--accent { background: linear-gradient(160deg, var(--color-accent), var(--color-accent-dark)); color: var(--color-on-accent); }
.tile__title { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.15; }
.tile__text { margin: 0; font-size: 11.5px; line-height: 1.35; }

.tile-wide {
  width: 340px; max-width: 100%; height: 166px; border-radius: 22px;
  background: #fff; color: #000; padding: 16px 16px 16px 22px;
  display: grid; grid-template-columns: 1fr 128px; gap: 14px;
}
.tile-wide__body { display: flex; flex-direction: column; gap: 8px; }
.tile-wide__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.tile-wide__text { margin: 0; font-size: 11.5px; line-height: 1.35; color: #555; }
.tile-wide__cta { margin-top: auto; color: #000; font-size: 12px; font-weight: 600; text-decoration: underline; }
.tile-wide__image { position: relative; border-radius: 14px; overflow: hidden; }
.tile-wide__image img { width: 100%; height: 100%; object-fit: cover; }

.hero__wordmark { display: flex; flex-direction: column; align-items: flex-end; }
.hero__wordmark-row { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.hero__wordmark-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 7.4vw, 130px); line-height: .82; letter-spacing: -.04em; color: #fff;
}
.hero__wordmark-cta {
  padding: 22px 44px; border-radius: 999px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-on-accent); font-size: 17px; font-weight: 600; white-space: nowrap;
}

/* -- Hero-Orbit: scroll-gesteuertes Video (specs/hero-orbit.md) --
   .hero__stage ist ohne Orbit unsichtbar fürs Layout (display: contents) -- der Hero sieht dann aus wie bisher.
   Mit .is-orbit-live (gesetzt per Inline-Script, nur Desktop + Bewegung erlaubt) wird der Hero höher und die
   Bühne klebt (sticky) für die Dauer der Kamerafahrt. hero-orbit.js setzt die Fortschritts-Variablen:
   --p-text (Claim), --p-logo (Logo ein/aus), --p-ui (Karte, Kacheln, Wortmarke). */
.hero__stage { display: contents; }
.hero__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__logo-reveal { display: none; }

.hero.is-orbit-live {
  height: 350vh;
  min-height: 0;
  padding: 0;
  background: #000;
}
.hero.is-orbit-live .hero__stage {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 5vw 48px;
  overflow: hidden;
}
.hero.is-orbit-live .hero__portrait {
  inset: 0;
  left: 0; top: 0; bottom: 0;
  width: auto; max-width: none;
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}
/* Breite Fenster schneiden das 16:9-Video oben/unten ab -- Ausschnitt nach oben schieben, damit der Kopf bleibt */
.hero.is-orbit-live .hero__video { object-position: 50% 22%; }
/* Abdunkelung: links (Claim), unten (Kacheln) und ganzflächig, während das Logo steht */
.hero.is-orbit-live .hero__portrait::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(0,0,0,calc(.62 * var(--p-logo, 0))), rgba(0,0,0,calc(.62 * var(--p-logo, 0)))),
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 32%, rgba(0,0,0,0) 55%),
    linear-gradient(0deg, rgba(0,0,0,calc(.75 * var(--p-ui, 0))) 0%, rgba(0,0,0,0) 45%);
}
/* Claim tritt zurück, solange das Logo steht */
.hero.is-orbit-live .hero__headline { opacity: calc(1 - .75 * var(--p-logo, 0)); }
.hero.is-orbit-live .site-header { position: relative; z-index: 3; }
.hero.is-orbit-live .hero__grid { flex: 1 1 auto; margin-top: 6vh; }
.hero.is-orbit-live .hero__portrait-spacer { min-height: 0; }
.hero.is-orbit-live .hero__tiles-row { margin-top: auto; }

/* Claim baut sich Buchstabe für Buchstabe auf (--n Zeichen gesamt, --i Nummer des Zeichens) */
.hero__word { white-space: nowrap; }
.hero.is-orbit-live .hero__headline { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.hero.is-orbit-live .hero__char {
  --c: clamp(0, calc(var(--p-text, 0) * var(--n) - var(--i)), 1);
  display: inline-block;
  opacity: var(--c);
  transform: translateY(calc((1 - var(--c)) * .35em));
}

/* Karte, Kacheln, Wortmarke erst am Ende der Fahrt (nur über Opacity -> kein Layout-Sprung) */
.hero.is-orbit-live .hero-card,
.hero.is-orbit-live .hero__tiles-row {
  opacity: var(--p-ui, 0);
  transform: translateY(calc((1 - var(--p-ui, 0)) * 24px));
}

/* Logo groß in der Bildmitte, kurz vor Ende der Fahrt */
.hero.is-orbit-live .hero__logo-reveal {
  --l: var(--p-logo, 0);
  display: flex; align-items: center; justify-content: center;
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: var(--l);
  transform: scale(calc(.92 + .08 * var(--l)));
}
.hero__logo-reveal img { width: min(56vw, 860px); height: auto; filter: drop-shadow(0 6px 40px rgba(0,0,0,.7)); }

/* Video blendet weich ein, sobald es bereit ist (bis dahin: Posterbild) */
.hero--orbit .hero__video { opacity: 1; transition: opacity .6s ease; }

@media (prefers-reduced-motion: reduce) {
  .hero__char, .hero-card, .hero__tiles-row, .hero__logo-reveal { opacity: 1 !important; transform: none !important; }
  .hero__logo-reveal { display: none !important; }
}

/* -- Generic section shell -- */
.section { padding: 100px 5vw 80px; }
.section__eyebrow { font-size: 15px; color: #bbb; }
.section__eyebrow span { color: var(--color-accent); }
.section__claim {
  margin: 0; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 2.8vw, 50px); line-height: 1.08; letter-spacing: -.02em; color: #e6e6e6;
}
.section__claim strong, .section__claim .is-accent { color: var(--color-accent); font-weight: inherit; }

/* -- Philosophy -- */
.philosophy { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); grid-template-rows: auto auto; gap: 40px; }
.philosophy > .section__eyebrow { grid-column: 1; grid-row: 1; }
.philosophy > .section__claim { grid-column: 2; grid-row: 1; }
.philosophy > .philosophy__grid { grid-column: 2; grid-row: 2; margin-top: 0; }
.philosophy__grid { grid-column: 2; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 20px; margin-top: 40px; }
.philosophy__image { position: relative; aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden; }
.philosophy__image img { width: 100%; height: 100%; object-fit: cover; }
.philosophy__card { background: #fff; color: #000; border-radius: 24px; padding: 22px 26px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.card-dots { display: flex; gap: 5px; align-items: center; }
.card-dots__dash { width: 26px; height: 6px; border-radius: 3px; background: #000; }
.card-dots__dot { width: 6px; height: 6px; border-radius: 50%; background: #46A62C; }
.card-dots--on-accent .card-dots__dash { width: 22px; height: 5px; background: var(--color-on-accent); }
.card-dots--on-accent .card-dots__dot { width: 5px; height: 5px; background: #fff; }
.philosophy__card .card-dots { justify-content: flex-end; }
.philosophy__card-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px,2.4vw,40px); letter-spacing: -.02em; }
.philosophy__card-text { margin: 14px 0 0; font-size: 12px; line-height: 1.4; color: #555; }
.philosophy__side { grid-column: 1; grid-row: 2; align-self: end; justify-self: end; max-width: 260px; margin-top: 24px; }
.philosophy__side-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: .02em; }
.philosophy__side-text { margin: 12px 0 0; font-size: 12px; line-height: 1.4; color: var(--color-fg-muted); }

/* -- Expertise -- */
.expertise { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 40px; }
.expertise__intro { margin: 16px 0 0; max-width: 640px; font-size: 12px; line-height: 1.45; color: var(--color-fg-muted); }
.leistung { border-bottom: 1px solid rgba(255,255,255,.18); }
.leistung__toggle {
  all: unset; cursor: pointer; width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; padding: 26px 0; color: #e6e6e6; box-sizing: border-box;
}
.leistung__title { display: flex; gap: 14px; align-items: baseline; font-family: var(--font-display); font-weight: 300; font-size: clamp(22px,2vw,34px); letter-spacing: -.01em; line-height: 1.1; }
.leistung__title span { color: #888; }
.leistung__icon { font-size: 28px; font-weight: 300; color: #ccc; }
.leistung__body { display: none; grid-template-columns: 120px minmax(0,1fr); gap: 28px; align-items: center; padding: 0 0 30px 34px; }
.leistung.is-open .leistung__body { display: grid; }
.leistung.is-open .leistung__icon { transform: rotate(45deg); }
.leistung__image { position: relative; width: 120px; height: 120px; }
.leistung__image-backdrop { position: absolute; inset: 0; border-radius: 16px; background: #46A62C; }
.leistung__image-frame {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden;
  transform: rotate(12deg); transform-origin: bottom left;
  box-shadow: 0 12px 24px rgba(0,0,0,.4);
}
.leistung__image-frame img { width: 100%; height: 100%; object-fit: cover; }
.leistung__text { margin: 0; max-width: 420px; font-size: 12px; line-height: 1.45; color: #aaa; }

/* -- Process -- */
.process__claim { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 40px; }
.process__grid { margin-top: 60px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.process-card {
  background: #fff; color: #000; border-radius: 24px; padding: 22px 26px 26px;
  min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 50px;
}
.process-card--accent { background: linear-gradient(160deg, var(--color-accent), var(--color-accent-dark)); color: var(--color-on-accent); }
.process-card__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px,2.2vw,38px); line-height: 1; letter-spacing: -.02em; }
.process-card__text { margin: 14px 0 0; font-size: 12px; line-height: 1.4; color: #555; max-width: 320px; }
.process-card--accent .process-card__text { color: #12300a; }
.process__scene { position: relative; height: 56vh; margin: 40px -5vw -80px; overflow: hidden; background: #000; }
.process__scene img { width: 100%; height: 100%; object-fit: cover; }

/* -- Projects -- */
.projects__intro-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: start; }
.projects__intro-row .section__claim { max-width: 560px; font-size: clamp(32px, 3.6vw, 66px); line-height: 1; }
.projects__intro-side { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.projects__text { margin: 0; max-width: 420px; text-align: left; font-size: 12px; line-height: 1.45; color: var(--color-fg-muted); }
.projects__cta { padding: 20px 40px; border-radius: 999px; background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark)); color: var(--color-on-accent); font-size: 16px; font-weight: 600; display: inline-block; }
.projects__grid { margin-top: 72px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.projects__dots, .process__dots { margin-top: 44px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.projects__dots button, .process__dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: var(--color-accent-dark); cursor: pointer; transition: width .2s; }
.projects__dots button.is-active, .process__dots button.is-active { width: 56px; height: 12px; border-radius: 6px; background: #fff; }
.process__dots { display: none; } /* nur mobil sichtbar, siehe Media Query unten */
.project-card { position: relative; aspect-ratio: 1.18; border-radius: 26px; overflow: hidden; background: #111; }
.project-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-card__tags { position: absolute; left: 16px; top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.project-card__tags span { padding: 12px 24px; border-radius: 999px; background: #000; color: #fff; font-size: 12px; }
.project-card__actions { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.project-card__link, .project-card__info { width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; }
.project-card__link:hover, .project-card__info:hover { background: var(--color-accent); color: #000; }

/* -- Reviews -- */
.reviews { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); grid-template-rows: auto auto; gap: 40px; }
.reviews__eyebrow-col { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; height: 100%; }
.reviews__intro-text { margin: 14px 0 0; max-width: 560px; font-size: 12px; line-height: 1.45; color: var(--color-fg-muted); }
.reviews__body { grid-column: 1/-1; grid-row: 2; margin-top: 20px; }
.review { display: none; grid-template-columns: minmax(0,1fr) auto; gap: 40px; align-items: end; }
.review.is-active { display: grid; }
.review__quote { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(22px,2vw,36px); line-height: 1.12; letter-spacing: -.015em; color: #e6e6e6; }
.review__quote-rest { display: none; }
.review.is-expanded .review__quote-rest { display: inline; }
.review.is-expanded .review__quote-ellipsis { display: none; }
.review__toggle { margin: 10px 0 0; padding: 0; border: 0; background: none; color: var(--color-accent); font-size: 13px; font-weight: 600; font-family: var(--font-body); cursor: pointer; }
.review__toggle:hover { color: #fff; }
.review__meta { display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(160deg, var(--color-accent), var(--color-accent-dark)); flex: none; object-fit: cover; }
.review__name { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .04em; }
.review__firma { font-size: 12px; color: var(--color-fg-muted); }
.review__stars { color: var(--color-accent); font-size: 12px; letter-spacing: 2px; margin-top: 2px; }
.reviews__dots { display: flex; gap: 6px; align-items: center; margin-top: auto; }
.reviews__dots button { all: unset; cursor: pointer; width: 12px; height: 12px; border-radius: 50%; background: var(--color-accent-dark); }
.reviews__dots button.is-active { width: 56px; height: 12px; border-radius: 6px; background: #fff; }

/* -- Footer -- */
.site-footer {
  position: relative; padding: 80px 5vw 32px; overflow: visible;
  background: radial-gradient(ellipse 90% 60% at 50% 100%, var(--color-accent-dark) 0%, #1c4210 35%, #0a1206 60%, #000 85%);
}
/* Strahlt ueber den Footer hinaus nach oben in den vorherigen Abschnitt hinein. */
.site-footer__glow {
  position: absolute; left: 0; right: 0; bottom: 0; top: -100vh;
  background: radial-gradient(ellipse 90% 100% at 50% 100%, rgba(62,154,38,.58) 0%, rgba(28,66,16,.32) 50%, rgba(0,0,0,0) 84%);
  pointer-events: none; z-index: 0;
}
.site-footer__claim-row { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,0.5fr) minmax(0,1.1fr); gap: 40px 16px; align-items: start; }
.site-footer__claim { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(26px,2.4vw,44px); line-height: 1.08; letter-spacing: -.02em; color: #e6e6e6; }
.site-footer__reach { font-size: 12px; line-height: 1.7; color: var(--color-fg-soft); }
.site-footer__reach-label { color: #fff; letter-spacing: .06em; }
.site-footer__reach-col + .site-footer__reach-col { margin-top: 20px; }
.site-footer__socials { display: flex; gap: 8px; margin-top: 20px; }
.site-footer__socials-bottom { display: flex; gap: 8px; }
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.04); color: #fff; font-size: 13px; font-family: var(--font-body);
}
.contact-form button {
  margin-top: 2px; padding: 12px 20px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-on-accent); font-size: 14px; font-weight: 600; font-family: var(--font-display); cursor: pointer;
}
.site-footer__wordmark {
  position: relative; z-index: 1;
  margin-top: 40px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(80px,19vw,340px); line-height: 1.15; letter-spacing: -.12em;
  background: linear-gradient(to bottom, var(--color-accent) 0%, var(--color-accent-dark) 55%, rgba(62,154,38,.15) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center;
}
.site-footer__wordmark span { font-family: var(--font-wordmark); }
.site-footer__bottom { position: relative; z-index: 1; margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--color-fg-soft); }
.site-footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer__legal { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.site-footer__legal ul { display: contents; }

/* -- Scroll to top -- */
.scroll-top-btn {
  position: fixed; right: 28px; bottom: 28px; z-index: 50;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-on-accent); font-size: 22px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .25s, transform .25s;
}
.scroll-top-btn.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* -- Ueber mich page -- */
.about-hero { padding-top: 28px; }
/* Bild spannt beide Zeilen in einer eigenen Spalte, damit sein Hoehe nicht
   den Abstand zwischen Intro-Text und Abschnitten beeinflusst. */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 40px; row-gap: 112px;
  align-items: start; margin-top: 8vh;
}
.about__intro { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.about__intro h1 { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(20px,2.6vw,58px); line-height: 1.1; letter-spacing: -.02em; color: #e6e6e6; white-space: nowrap; }
.about__intro p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--color-fg-soft); }
.about__intro strong { color: #fff; }
.about__portrait {
  grid-column: 2; grid-row: 1 / 3;
  position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 55% 68% at 50% 42%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 55% 68% at 50% 42%, #000 30%, transparent 100%);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__sections { grid-column: 1; grid-row: 2; max-width: 720px; display: flex; flex-direction: column; gap: 18px; font-size: 15px; line-height: 1.75; color: #ccc; align-self: start; }
.about__section-title { margin: 28px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; color: #fff; letter-spacing: -.01em; }
.about__section-text p { margin: 0 0 12px; }
.about__section-text strong { color: var(--color-accent); }

/* -- Rechtstext-Seite (Impressum, Datenschutz) -- */
.legal-content { max-width: 900px; margin: 8vh auto 0; padding-bottom: 40px; color: #ccc; font-size: 15px; line-height: 1.7; }
.legal-content h1 { margin: 0 0 32px; font-family: var(--font-display); font-weight: 300; font-size: clamp(32px,3.6vw,52px); letter-spacing: -.02em; color: #e6e6e6; }
.legal-content__body h2 { margin: 32px 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: #fff; }
.legal-content__body h3 { margin: 24px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #fff; }
.legal-content__body p { margin: 0 0 14px; }
.legal-content__body a { text-decoration: underline; }
.legal-content__body ul, .legal-content__body ol { margin: 0 0 14px; padding-left: 20px; }
/* Cookie-Richtlinie (Complianz): Cookie-Tabelle im dunklen Look statt weißer Zellen.
   Erhöhte Spezifität (html body … :nth-child(n)), damit die Regeln des Plugins unabhängig von der Ladereihenfolge überstimmt werden. */
html body #cmplz-document .cmplz-dropdown .cookies-per-purpose { border-color: rgba(255,255,255,.15); background-color: rgba(255,255,255,.15); }
html body #cmplz-document .cmplz-dropdown .cookies-per-purpose div:nth-child(n) { background-color: rgba(0,0,0,.35); color: #e6e6e6; }
html body #cmplz-document .cmplz-dropdown .cookies-per-purpose div.purpose:nth-child(n),
html body #cmplz-document .cmplz-dropdown .cookies-per-purpose div.name-header:nth-child(n),
html body #cmplz-document .cmplz-dropdown .cookies-per-purpose div.retention-header:nth-child(n),
html body #cmplz-document .cmplz-dropdown .cookies-per-purpose div.function-header:nth-child(n) { background-color: rgba(0,0,0,.2); color: #fff; }
html body #cmplz-document .cmplz-dropdown .cookies-per-purpose h4,
html body #cmplz-document .cmplz-dropdown .cookies-per-purpose h5 { color: #fff; }
html body #cmplz-document .cmplz-dropdown .cookies-per-purpose a { color: #fff; }
html body #cmplz-document .cmplz-dropdown { background-color: rgba(255,255,255,.04); }
html body #cmplz-document .cmplz-dropdown summary { background-color: rgba(255,255,255,.1); }
html body #cmplz-document .cmplz-dropdown summary p { color: #b5b5b5; } /* Kategorie-Label (Funktional, Marketing …) */
html body #cmplz-document .cmplz-dropdown summary div::after { filter: invert(1); } /* Auf-/Zu-Pfeil ist eine schwarze SVG */
html body #cmplz-document a[target=_blank]::after { filter: invert(1); } /* Icon des Plugins ist ein schwarzes PNG, im ganzen Dokument auf dunklem Grund */

/* -- Responsive -- */
@media (max-width: 860px) {
  .hero__grid,
  .philosophy,
  .expertise,
  .process__claim,
  .projects__intro-row,
  .reviews,
  .site-footer__claim-row,
  .about__grid,
  .philosophy__grid,
  .process__grid,
  .projects__grid,
  .review {
    grid-template-columns: 1fr !important;
  }
  .hero__portrait { width: min(70vw, 760px); }
  .about__intro, .about__portrait, .about__sections { grid-column: 1; }
  .about__intro { grid-row: 1; }
  .about__portrait { grid-row: 2; aspect-ratio: 1; }
  .about__sections { grid-row: 3; }
  .about__intro h1 { white-space: normal; }
  .hero__wordmark { align-items: flex-start; }
  .hero__wordmark-row { justify-content: flex-start; }
  .site-footer__wordmark { font-size: clamp(56px, 20vw, 160px); }
  .container, .section, .site-footer, .hero { padding-left: 5vw; padding-right: 5vw; }
}

/* -- Mobile: Hamburger-Navigation + Hero (siehe specs/mobile-hero.md) -- */
@media (max-width: 860px) {
  .site-header { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; }
  .site-header__mobile-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 8px; background: none; border: 0; cursor: pointer;
  }
  .site-header__mobile-toggle span { display: block; height: 2px; background: #fff; border-radius: 1px; transition: transform .2s, opacity .2s; }
  .site-header.is-open .site-header__mobile-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.is-open .site-header__mobile-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .site-header__mobile-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .site-header__logo { justify-self: center; }
  .site-header__logo img { height: 56px; }

  .site-header__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: rgba(11,20,7,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 22px;
    z-index: 10;
  }
  .site-header.is-open .site-header__nav { display: flex; }
  .site-header__nav a { display: block; padding: 14px 18px; font-size: 17px; }
  .site-header__nav a.site-header__nav-contact { display: block; }

  .site-header__actions { justify-self: end; }
  .site-header__actions .social-icon,
  .site-header__contact-label { display: none; }
  .site-header__contact { padding: 0; background: none; }
  .site-header__contact-icon { width: 40px; height: 40px; background: #f1ede4; color: #000; font-size: 18px; }

  /* Hero: eine Bildschirmhöhe -- Headline oben, Bild mittig komplett sichtbar, Wordmark + Button unten */
  .hero:not(.hero--simple) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding-top: 16px; padding-bottom: 28px; }
  .hero:not(.hero--simple) .hero__grid { margin-top: 3vh; }
  .hero__headline { font-size: clamp(30px, 8.4vw, 44px); }
  .hero-card, .hero__portrait-spacer, .hero__tiles { display: none; }
  .hero:not(.hero--simple) .hero__portrait {
    position: relative; left: auto; top: auto; bottom: auto; transform: none;
    width: 100%; max-width: none; flex: 1 1 0; min-height: 36vh; margin: -6vw 0 -14vw;
  }
  .hero__portrait img { object-fit: contain; }
  /* Orbit-Video (Schleife): nicht unter den Claim rücken, Ausschnitt oben ansetzen -> Kopf bleibt sichtbar */
  .hero--orbit:not(.hero--simple) .hero__portrait { margin-top: 2vh; }
  .hero__portrait .hero__video { object-fit: cover; object-position: 50% 6%; }
  .hero__tiles-row { display: block; margin-top: 0; }
  .hero__wordmark { display: flex; flex-direction: column; align-items: flex-start; }
  .hero__wordmark-row { display: contents; }
  .hero__wordmark-text { font-size: clamp(56px, 17vw, 96px); }
  .hero__wordmark-cta { order: 3; align-self: stretch; text-align: center; margin-top: 18px; padding: 20px 24px; }
}

/* -- Mobile: Philosophie -- alles untereinander (Desktop-Grid-Plätze zurücksetzen) -- */
@media (max-width: 860px) {
  .philosophy { gap: 20px; }
  .philosophy > .section__eyebrow,
  .philosophy > .section__claim,
  .philosophy > .philosophy__grid,
  .philosophy > .philosophy__side { grid-column: 1; grid-row: auto; }
  .philosophy__grid { margin-top: 8px; }
  .philosophy__side { justify-self: start; max-width: none; margin-top: 8px; }
}

/* -- Mobile: Abschnitts-Abstände verkleinern -- */
@media (max-width: 860px) {
  .section { padding: 48px 5vw 40px; }
  .expertise { gap: 20px; }
}

/* -- Mobile: Prozess-Bild (Panorama): Diagramm + Person sichtbar, bündig mit Sektionsende -- */
@media (max-width: 860px) {
  .process__scene { height: auto; aspect-ratio: 13 / 5; margin: 32px -5vw -40px; }
  .process__scene img { height: 100%; object-fit: cover; object-position: 55% 50%; }
}

/* -- Projekte-Karussell (siehe specs/projekte-karussell.md) --
   Desktop nur bei > 3 Projekten (Klasse .projects--carousel), mobil immer. */
.projects--carousel .projects__grid {
  position: relative; display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.projects--carousel .projects__grid::-webkit-scrollbar { display: none; }
.projects--carousel .project-card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }

@media (max-width: 860px) {
  .projects__grid {
    position: relative; display: flex; gap: 14px; overflow-x: auto;
    margin: 32px 0 0;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .projects__grid::-webkit-scrollbar { display: none; }
  .project-card, .projects--carousel .project-card { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: start; }
  .projects__dots { margin-top: 24px; }
}

/* -- Mobile: Bewertungen -- Reihenfolge: Label, Titel + Intro, Bewertung, Punkte -- */
@media (max-width: 860px) {
  .reviews { gap: 20px; }
  .reviews__eyebrow-col { display: contents; }
  .reviews__eyebrow-col .section__eyebrow { order: 1; }
  .reviews__head { order: 2; }
  .reviews__body { grid-row: auto; order: 3; margin-top: 8px; }
  .reviews__dots { order: 4; margin-top: 8px; }
}

/* -- Mobile: Footer -- Erreichbarkeit und Kontakt nebeneinander, Social-Icons darunter -- */
@media (max-width: 860px) {
  .site-footer__reach { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 16px; }
  .site-footer__reach-col + .site-footer__reach-col { margin-top: 0; }
  .site-footer__reach-col { overflow-wrap: anywhere; }
  .site-footer__reach .site-footer__socials { grid-column: 1 / -1; }
}

/* -- Mobile: "Projekt besprechen"-Button wie der Hero-Button, volle Breite -- */
@media (max-width: 860px) {
  .projects__intro-side { align-items: stretch; }
  .projects__cta { display: block; text-align: center; padding: 20px 24px; font-size: 17px; }
}

/* -- Mobile: Prozess-Karten als Karussell (Reihenfolge = Schritte 1-4; DOM-Reihenfolge folgt dem Desktop-Layout) -- */
@media (max-width: 860px) {
  .process__grid {
    position: relative; display: flex; gap: 14px; overflow-x: auto; margin-top: 32px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .process__grid::-webkit-scrollbar { display: none; }
  .process__grid > div:not(.process-card) { display: none; }
  .process__grid > .process-card { flex: 0 0 100%; scroll-snap-align: start; }
  .process__grid > :nth-child(1) { order: 1; }
  .process__grid > :nth-child(4) { order: 2; }
  .process__grid > :nth-child(5) { order: 3; }
  .process__grid > :nth-child(3) { order: 4; }
  .process__dots { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 24px; }
}

/* -- Mobile: Abstand Text -> Footer-Wortmarke (Über mich / Unterseiten ohne Claim-Block) verkleinern -- */
@media (max-width: 860px) {
  .hero--simple { padding-bottom: 40px; }
  .site-footer { padding-top: 40px; }
  .site-footer__glow + .site-footer__wordmark { margin-top: 0; }
}

/* -- Mobile: Rechtstext-Seiten (Impressum, Datenschutz) -- weniger Abstand zum Footer -- */
@media (max-width: 860px) {
  .legal-content { margin-top: 4vh; padding-bottom: 0; }
  .legal-hero { padding-bottom: 16px; }
}

/* -- Blog (Übersicht, Archive, Einzelbeitrag) -- siehe specs/blog.md -- */
/* WordPress setzt auf der Beitragsseite die Klasse "blog" aufs <body> – deshalb nur div.blog ansprechen, sonst wird die ganze Seite auf 900px verengt */
div.blog { position: relative; z-index: 1; max-width: 900px; margin: 8vh auto 0; }
.blog__title { margin: 0 0 16px; font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 4vw, 60px); line-height: 1.05; letter-spacing: -.02em; color: #e6e6e6; }
.blog__intro { margin: 0 0 40px; font-size: 15px; line-height: 1.6; color: var(--color-fg-soft); }
.blog__intro p { margin: 0; }
.blog__list { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.blog__empty { color: var(--color-fg-soft); }
.blog__back { display: inline-block; margin-bottom: 28px; font-size: 14px; color: var(--color-fg-soft); }
.blog__back:hover { color: var(--color-accent); }

.blog-card {
  padding: 28px 32px; border-radius: 22px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
}
.blog-card__image { display: block; margin: -4px -8px 20px; border-radius: 14px; overflow: hidden; }
.blog-card__image img { width: 100%; height: auto; }
.blog-card__date { font-size: 13px; color: var(--color-fg-muted); }
.blog-card__title { margin: 10px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.01em; }
.blog-card__title a { color: #fff; }
.blog-card__title a:hover { color: var(--color-accent); }
.blog-card__excerpt { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--color-fg-soft); }
.blog-card__more { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--color-accent); }
.blog-card__more:hover { color: #fff; }

div.blog .navigation.pagination { margin-top: 40px; }
div.blog .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
div.blog .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); font-size: 14px; color: #fff; }
div.blog .page-numbers.current { background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark)); border-color: transparent; color: var(--color-on-accent); font-weight: 600; }
div.blog a.page-numbers:hover { border-color: var(--color-accent); color: var(--color-accent); }
div.blog .page-numbers.dots { border: 0; }

.blog-single__image { margin: 0 0 32px; border-radius: 22px; overflow: hidden; }
.blog-single__image img { width: 100%; height: auto; }
.blog-single__body { color: #ccc; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.blog-single__body h2 { margin: 36px 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; color: #fff; }
.blog-single__body h3 { margin: 28px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.25; color: #fff; }
.blog-single__body p { margin: 0 0 16px; }
.blog-single__body a { color: var(--color-accent); text-decoration: underline; }
.blog-single__body ul, .blog-single__body ol { margin: 0 0 16px; padding-left: 22px; }
.blog-single__body li { margin-bottom: 6px; }
.blog-single__body img { max-width: 100%; height: auto; border-radius: 14px; }
.blog-single__body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--color-accent); color: #e6e6e6; }
.blog-single__body pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 14px; }
.blog-single__body table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; }
.blog-single__body th, .blog-single__body td { padding: 8px 12px; border: 1px solid rgba(255,255,255,.15); }

@media (max-width: 860px) {
  div.blog { margin-top: 4vh; }
  .blog-card { padding: 22px 20px; }
  .blog-card__image { margin: -2px -4px 16px; }
}

/* -- Mobile: Footer aufräumen -- zentrierte Spalte, Icons nicht doppelt, gleichmäßige Abstände -- */
@media (max-width: 860px) {
  .site-footer__claim-row { gap: 28px 16px; }
  .site-footer__wordmark { margin-top: 28px; }
  .site-footer__bottom { flex-direction: column; align-items: center; gap: 20px; margin-top: 16px; text-align: center; }
  .site-footer__nav, .site-footer__legal { justify-content: center; gap: 10px 22px; }
  .site-footer__socials-bottom { justify-content: center; }
  /* Startseite: Icons stehen schon im Kontaktblock oben */
  .site-footer__claim-row ~ .site-footer__bottom .site-footer__socials-bottom { display: none; }
  /* Aufzählungspunkte innerhalb der Textkante; Kontakt-Link bekommt denselben Punkt */
  .site-footer__nav li, .site-footer__legal li { list-style-position: inside; }
  .site-footer__nav > a::before { content: '\2022'; margin-right: .5em; color: var(--color-fg-soft); }
  .site-footer__copy { flex-basis: 100%; text-align: center; }
  .site-footer__copy-sep { display: none; }
}

/* -- Kontaktformular (WPForms) im Footer -- dunkler Look, überschreibt die WPForms-Standardstile -- */
.site-footer__form .wpforms-container { margin: 0; }
.site-footer__form .wpforms-container .wpforms-form .wpforms-field { padding: 0 0 10px; }
.site-footer__form .wpforms-container .wpforms-form .wpforms-field-label { margin: 0 0 4px; color: var(--color-fg-soft); font-family: var(--font-body); font-size: 12px; font-weight: 400; }
.site-footer__form .wpforms-container .wpforms-form .wpforms-required-label { color: var(--color-accent); }
.site-footer__form .wpforms-container .wpforms-form .wpforms-field-sublabel { color: var(--color-fg-muted); font-size: 11px; }
.site-footer__form .wpforms-container .wpforms-form input[type="text"],
.site-footer__form .wpforms-container .wpforms-form input[type="email"],
.site-footer__form .wpforms-container .wpforms-form input[type="tel"],
.site-footer__form .wpforms-container .wpforms-form textarea,
.site-footer__form .wpforms-container .wpforms-form select {
  width: 100%; max-width: 100%; height: auto; padding: 11px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); box-shadow: none;
  color: #fff; font-size: 13px; font-family: var(--font-body);
}
.site-footer__form .wpforms-container .wpforms-form textarea { min-height: 90px; }
.site-footer__form .wpforms-container .wpforms-form input:focus,
.site-footer__form .wpforms-container .wpforms-form textarea:focus { border-color: var(--color-accent); box-shadow: none; outline: none; }
/* Textfarbe auch im Fokus-/Invalid-Zustand: WPForms setzt dort color mit höherer Spezifität (div.wpforms-container-full textarea:focus:invalid) */
.site-footer__form .wpforms-container.wpforms-container-full .wpforms-form .wpforms-field input[type="text"],
.site-footer__form .wpforms-container.wpforms-container-full .wpforms-form .wpforms-field input[type="email"],
.site-footer__form .wpforms-container.wpforms-container-full .wpforms-form .wpforms-field input[type="tel"],
.site-footer__form .wpforms-container.wpforms-container-full .wpforms-form .wpforms-field textarea,
.site-footer__form .wpforms-container.wpforms-container-full .wpforms-form .wpforms-field select { color: #fff; caret-color: #fff; }
/* Browser-Autofill (Chrome färbt Felder hellblau mit dunkler Schrift) auf den dunklen Look zurücksetzen */
.site-footer__form .wpforms-container .wpforms-form input:-webkit-autofill,
.site-footer__form .wpforms-container .wpforms-form input:-webkit-autofill:hover,
.site-footer__form .wpforms-container .wpforms-form input:-webkit-autofill:focus,
.site-footer__form .wpforms-container .wpforms-form textarea:-webkit-autofill,
.site-footer__form .wpforms-container .wpforms-form textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff; caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #0f1a0a inset; box-shadow: 0 0 0 1000px #0f1a0a inset;
}
.site-footer__form .wpforms-container .wpforms-form .wpforms-field-row { display: flex; gap: 10px; }
.site-footer__form .wpforms-container .wpforms-form .wpforms-field-row .wpforms-field-row-block { flex: 1; width: auto; padding: 0; }
.site-footer__form .wpforms-container .wpforms-form .wpforms-submit-container { padding: 0; }
.site-footer__form .wpforms-container .wpforms-form button.wpforms-submit {
  width: 100%; margin-top: 2px; padding: 12px 20px; height: auto; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-on-accent); font-size: 14px; font-weight: 600; font-family: var(--font-display); cursor: pointer;
}
.site-footer__form .wpforms-container .wpforms-form button.wpforms-submit:hover { filter: brightness(1.08); }
.site-footer__form .wpforms-container .wpforms-form label.wpforms-error,
.site-footer__form .wpforms-container .wpforms-form .wpforms-error { color: #ff8a80; font-size: 12px; }
.site-footer__form .wpforms-container .wpforms-form input.wpforms-error,
.site-footer__form .wpforms-container .wpforms-form textarea.wpforms-error { border-color: #ff8a80; }
.site-footer__form .wpforms-confirmation-container-full,
.site-footer__form div[submit-success] {
  margin: 0; padding: 14px 16px; border-radius: 10px; color: #fff;
  background: rgba(126,217,87,.12); border: 1px solid var(--color-accent);
}
/* WPForms setzt Bestätigungsbox hellgrün mit color:#333 (div.wpforms-container-full .wpforms-confirmation-container-full) – Spezifität erhöhen */
.site-footer__form div.wpforms-container.wpforms-container-full .wpforms-confirmation-container-full,
.site-footer__form div.wpforms-container.wpforms-container-full div[submit-success] {
  margin: 0; padding: 14px 16px; border-radius: 10px; color: #fff; font-size: 14px;
  background: rgba(126,217,87,.12); border: 1px solid var(--color-accent);
}
.site-footer__form div.wpforms-container.wpforms-container-full .wpforms-confirmation-container-full p { color: #fff; font-size: 14px; }

/* reCAPTCHA-Checkbox: Google-iframe lässt sich nicht transparent machen, daher den Wrapper abschwächen */
.site-footer__form .g-recaptcha { opacity: .5; }

/* reCAPTCHA-Badge (nur bei unsichtbarem reCAPTCHA / v3 vorhanden) dezenter darstellen */
.grecaptcha-badge { opacity: 0.3; }

/* -- Projekt-Infos: Popup (<dialog>) -- siehe specs/projekte-popup.md -- */
html:has(dialog[open]) { overflow: hidden; }
.project-modal {
  width: min(92vw, 720px); max-height: 88vh; padding: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.15); border-radius: 22px;
  background: linear-gradient(160deg, #10210a, #060c04); color: #fff;
}
.project-modal::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.project-modal__inner { max-height: 88vh; overflow-y: auto; padding-bottom: 28px; }
.project-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.project-modal__close:hover { background: var(--color-accent); color: #000; }
.project-modal__image img { width: 100%; height: auto; max-height: 40vh; object-fit: cover; }
.project-modal__body { padding: 24px 28px 0; }
/* Ohne Bild sitzt der Text direkt unter dem Schließen-Button: Platz lassen */
.project-modal__inner > form + .project-modal__body { padding-top: 64px; }
.project-modal__title { margin: 0 0 12px; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -.01em; }
.project-modal__text { color: #ccc; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.project-modal__text p { margin: 0 0 14px; }
.project-modal__text a { color: var(--color-accent); text-decoration: underline; }
.project-modal__text ul, .project-modal__text ol { margin: 0 0 14px; padding-left: 22px; }
@media (max-width: 860px) {
  .project-modal__body { padding: 20px 20px 0; }
}

/* -- Bewertung abgeben (page-bewertung-abgeben.php) -- */
.review-form { max-width: var(--container-max); margin: 8vh auto 0; padding-bottom: 40px; }
.review-form h1 { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(28px,3.4vw,48px); line-height: 1.1; letter-spacing: -.02em; color: #e6e6e6; }
.review-form__intro { margin: 14px 0 0; max-width: 560px; font-size: 14px; line-height: 1.6; color: var(--color-fg-soft); }
.review-form__notice { margin: 20px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.review-form__notice--success { background: rgba(126,217,87,.12); border: 1px solid var(--color-accent); color: #fff; }
.review-form__notice--error { background: rgba(255,138,128,.1); border: 1px solid #ff8a80; color: #fff; }

.review-form__grid { display: grid; grid-template-columns: minmax(320px,420px) minmax(0,1fr); gap: 40px; align-items: start; margin-top: 40px; }
.review-form__form { display: flex; flex-direction: column; gap: 10px; }
.review-form__form label { font-size: 12px; color: var(--color-fg-soft); margin-top: 6px; }
.review-form__hint { margin: -4px 0 0; font-size: 11px; color: var(--color-fg-muted); }
.review-form__form input[type="text"], .review-form__form input[type="file"], .review-form__form textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.04); color: #fff; font-size: 13px; font-family: var(--font-body);
}
.review-form__form textarea { min-height: 110px; resize: vertical; }
.review-form__form input:focus, .review-form__form textarea:focus { border-color: var(--color-accent); outline: none; }
.review-form__form button { margin-top: 6px; padding: 12px 20px; border-radius: 10px; border: none; background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark)); color: var(--color-on-accent); font-size: 14px; font-weight: 600; font-family: var(--font-display); cursor: pointer; }
.review-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.review-form__preview { padding: 28px 32px; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.review-form__preview-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-fg-muted); margin-bottom: 16px; }
.review-form__preview .review { grid-template-columns: 1fr; gap: 20px; align-items: start; }
.review-form__preview .review__avatar { background-size: cover; background-position: center; }

@media (max-width: 860px) {
  .review-form { margin-top: 4vh; }
  .review-form__grid { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .review-form__preview { padding: 22px 20px; }
}
