/* ============================================================================
   style.css — Portfolio Levin Anneler
   ----------------------------------------------------------------------------
   Aufbau:
   1.  Design-Tokens (Farben, Typo, Abstände)
   2.  Basis & Reset
   3.  Hilfsklassen (Container, Buttons, Eyebrow, Section)
   4.  Navigation
   5.  Hero
   6.  Über mich
   7.  Fokusbereiche
   8.  Projekte: Filter, Chips, Grid, Cards, Leer-Zustand
   9.  Kontakt
   10. Footer
   11. Modal (Projektdetail)
   12. Scroll-Reveal-Animation
   13. Responsive (Tablet / Mobile)
   14. Reduced Motion
   ========================================================================== */

/* ===== 1. Design-Tokens ===== */
:root {
  /* Farben (helles, cleanes Framer-Design) */
  --bg:           #F4F6FA;   /* weicher, heller Hintergrund */
  --surface:      #FFFFFF;   /* helle Cards */
  --surface-2:    #EEF1F6;   /* dezenter Hover-/Input-Ton */
  --text:         #0E1B33;   /* Navy, fast Schwarz */
  --text-soft:    #3A4661;   /* Fliesstext */
  --text-dim:     #55617A;   /* Sekundärtext – WCAG-AA-tauglich auf hellem Grund */
  --accent:       #14315E;   /* Navy – Buttons & Akzente */
  --accent-hover: #1B406F;

  /* Linien */
  --line:        rgba(14, 27, 51, 0.10);
  --line-strong: rgba(14, 27, 51, 0.18);

  /* Schatten (weich, Framer-Look) */
  --shadow-soft:  0 1px 2px rgba(14, 27, 51, 0.04), 0 10px 30px -16px rgba(14, 27, 51, 0.16);
  --shadow-hover: 0 20px 44px -22px rgba(14, 27, 51, 0.28);

  /* Form */
  --radius:      16px;
  --radius-sm:   10px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1180px;

  /* Typografie */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Bewegung */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== 2. Basis & Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* damit Anker nicht unter der Nav verschwinden */
  -webkit-text-size-adjust: 100%;
}

body {
  background: linear-gradient(180deg, #F8FAFD 0%, #F2F4F8 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* Tastatur-Fokus überall sichtbar */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Skip-Link für Screenreader / Tastatur */
.skip-link {
  position: fixed;
  top: 10px; left: 50%;
  transform: translateX(-50%) translateY(-140%);
  background: var(--accent);
  color: #fff;
  padding: .6rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 600;
  z-index: 200;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* ===== 3. Hilfsklassen ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(72px, 11vw, 130px); }

.section__head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 58px); }
.section__title {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.section__intro {
  color: var(--text-dim);
  max-width: 54ch;
  margin-top: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Eyebrow-Label mit dezenter Akzentlinie */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(20, 49, 94, 0.6); }
.btn--accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(20, 49, 94, 0.65); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn:active { transform: translateY(0); }

/* Hero-spezifische Button-Stile (glass look auf dunklem Bild) */
.hero .btn--accent {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid #ffffff;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.35);
}
.hero .btn--accent:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.4);
}
.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero .btn--ghost:hover {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

/* ===== 4. Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(14, 27, 51, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  /* backdrop-filter NICHT animieren – Live-Blur pro Frame ruckelt auf Mobile */
  transition: background-color .4s var(--ease), border-color .4s var(--ease),
              box-shadow .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(14, 27, 51, 0.25);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 600; }
.nav__brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: .78rem;
  letter-spacing: .03em;
}
.nav__brand-name { font-size: .95rem; }

.nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 0;
}
.nav__link {
  display: inline-block;
  padding: .5rem .9rem;
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,0.8);
  font-size: .92rem;
  font-weight: 500;
  transition: color .3s, background-color .3s, border-color .3s;
}
.nav__link:hover { color: #fff; }
.nav__link.is-active { color: #fff; }
.nav__link--cta {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}
.nav__link--cta:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
/* After scroll — switch to dark/navy */
.nav.is-scrolled .nav__link { color: var(--text-dim); }
.nav.is-scrolled .nav__link:hover { color: var(--text); }
.nav.is-scrolled .nav__link.is-active { color: var(--text); }
.nav.is-scrolled .nav__link--cta {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  backdrop-filter: none;
}
.nav.is-scrolled .nav__link--cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Hamburger (nur Mobile sichtbar) */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, background-color .3s;
}
.nav.is-scrolled .nav__toggle span { background: var(--text); }

/* ===== 5. Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Bild startet bei top:0 hinter der Navbar.
     padding-top = Navbar-Höhe (64px) schiebt nur den INHALT runter,
     nicht das Bild. */
  padding: 64px 0 36px;
  overflow: hidden;
  /* ↓ Bildpfad hier anpassen wenn nötig: */
  background-image: url("../assets/images/01_HEADER/Headerbild.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* kein background-attachment: fixed — Bild scrollt normal mit */
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, 0.70);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 900px; }

/* Fokus-Klammern als Signature rund um den Hero-Inhalt */
.hero__corner {
  position: absolute;
  width: 34px; height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  opacity: .7;
  pointer-events: none;
}
.hero__corner--tl { top: -24px; left: -26px; border-right: 0; border-bottom: 0; }
.hero__corner--br { bottom: -24px; right: -26px; border-left: 0; border-top: 0; }

.hero__eyebrow {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.hero__title {
  font-size: clamp(3rem, 9vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-top: .5rem;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero__rule {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  width: 52px;
  margin-top: 1.5rem;
}
.hero__slogan {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin-top: 1.3rem;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.hero__lead {
  color: rgba(255, 255, 255, 0.45);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 1.8rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.2rem;
}
.hero__foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.55);
  font-size: .85rem;
  margin-top: clamp(40px, 8vh, 88px);
}
.hero__scroll { display: inline-flex; align-items: center; gap: .4rem; }

/* (Sektionen „Über mich" und „Fokusbereiche" wurden entfernt.) */

/* ===== 8. Projekte ===== */
.section--work { background: transparent; }

/* --- Filterleiste --- */
.filters { margin-bottom: clamp(28px, 3.5vw, 44px); }
.filters__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.3rem;
}

.search { position: relative; flex: 1 1 300px; max-width: 420px; }
.search__icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}
.search__input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text);
  padding: .8rem 1.1rem .8rem 2.9rem;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s, background-color .2s;
}
.search__input::placeholder { color: var(--text-dim); }
.search__input:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }

.filters__meta { display: flex; align-items: center; gap: 1.2rem; }
.result-count {
  color: var(--text-dim);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.btn-reset {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: .9rem;
  cursor: pointer;
  padding: .3rem 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-reset:hover { color: var(--text); border-bottom-color: var(--line-strong); }

/* --- Chips --- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: .5rem .95rem;
  border-radius: var(--radius-pill);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s, transform .12s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip:active { transform: scale(.97); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Projekt-Grid --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: clamp(18px, 2vw, 26px);
}

/* --- Projekt-Card --- */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: opacity .45s var(--ease), transform .45s var(--ease),
              border-color .3s, box-shadow .3s, background-color .3s;
}
.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
/* Animations-Zustand (ein-/ausblenden) */
.project-card.is-entering { opacity: 0; transform: translateY(16px) scale(.985); }
.project-card.is-hidden { display: none; }

.project-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #0d0d0d;
}
.project-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.project-card:hover .project-card__img { transform: scale(1.05); }

/* Fokus-Ecken auf dem Bild (Signature, erscheinen bei Hover) */
.project-card__focus {
  position: absolute;
  inset: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, inset .35s var(--ease);
}
.project-card:hover .project-card__focus { opacity: 1; inset: 18px; }
.project-card__focus span { position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.92); }
.project-card__focus span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.project-card__focus span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.project-card__focus span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.project-card__focus span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.15rem 1.25rem 1.3rem;
  flex: 1;
}
.project-card__title { font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.project-card__meta {
  color: var(--text-dim);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.project-card__desc { color: var(--text-dim); font-size: .92rem; line-height: 1.5; }

.project-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .15rem; }
.tag {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(20, 49, 94, 0.05);
  border: 1px solid var(--line);
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.project-card__more {
  margin-top: auto;
  padding-top: .7rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text);
}
.project-card__more svg { transition: transform .25s var(--ease); }
.project-card:hover .project-card__more svg { transform: translateX(4px); }

/* --- Leer-Zustand --- */
.empty {
  text-align: center;
  padding: clamp(40px, 7vw, 78px) 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.empty__title { font-size: 1.3rem; font-weight: 600; margin-bottom: .5rem; }
.empty__text { color: var(--text-dim); margin-bottom: 1.4rem; }

/* ===== 9. Kontakt ===== */
.contact { max-width: 840px; }
.contact__title {
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 20ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: clamp(28px, 4vw, 40px);
}
.contact__item {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--surface);
  transition: background-color .3s;
}
a.contact__item:hover { background: var(--surface-2); }
.contact__label {
  color: var(--text-dim);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact__value { font-size: 1.05rem; font-weight: 500; }

/* ===== 10. Footer ===== */
.footer { border-top: 1px solid var(--line); padding-block: 2.2rem; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__brand {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
}
.footer__text { color: var(--text-dim); font-size: .85rem; }
.footer__top { color: var(--text-dim); font-size: .85rem; transition: color .2s; }
.footer__top:hover { color: var(--text); }

/* ===== 11. Modal entfernt — Projekte öffnen jetzt project.html ===== */

/* ===== 12. Scroll-Reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ===== 13. Responsive ===== */
@media (max-width: 760px) {
  /* Burger immer ganz rechts (das leere <nav> zählt sonst als Flex-Item) */
  .nav__toggle { display: flex; position: relative; z-index: 1002; margin-left: auto; }

  /* Logo/Brand über dem Overlay halten, Logo immer hell */
  .nav__brand { position: relative; z-index: 1002; }
  .nav.is-open .site-logo__img--light { opacity: 1; }
  .nav.is-open .site-logo__img--dark  { opacity: 0; }

  /* ---- Vollbild-Overlay-Menü ---- */
  .nav__menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: linear-gradient(180deg, #0a1327 0%, #0e1b33 100%);
    padding: calc(88px + env(safe-area-inset-top, 0px))
             clamp(28px, 8vw, 56px)
             calc(36px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* eigene GPU-Ebene -> glatter Fade ohne Repaints */
    will-change: opacity;
    transform: translateZ(0);
    transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .nav.is-open .nav__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .3s ease, visibility 0s;
  }

  /* Menü offen: teuren Live-Blur der Navbar abschalten (Overlay ist deckend) */
  .nav.is-open,
  .nav.is-scrolled.is-open {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    border-bottom-color: transparent;
  }

  .nav__menu li { width: 100%; }

  /* Grosse, luftige, gut tappbare Menü-Links */
  .nav__link {
    display: flex;
    align-items: center;
    padding: 1.05rem .25rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: rgba(255,255,255,0.90);
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
  .nav__link:hover,
  .nav__link.is-active { color: #fff; }

  /* CTA als klarer Voll-Button */
  .nav__link--cta,
  .nav.is-scrolled .nav__link--cta {
    justify-content: center;
    margin-top: 1.5rem;
    padding: 1.05rem 1.4rem;
    font-size: 1.15rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* Hamburger -> X (im offenen Zustand immer weiss) */
  .nav.is-open .nav__toggle span,
  .nav.is-scrolled.is-open .nav__toggle span { background: #fff; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Scroll-Sperre, solange das Menü offen ist */
  body.nav-open { overflow: hidden; }
}

@media (max-width: 600px) {
  .hero__corner { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .filters__top { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
  .filters__meta { justify-content: space-between; }
  .contact__grid { grid-template-columns: 1fr; }
}

/* ===== 14. Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .project-card.is-entering { opacity: 1; transform: none; }
}

/* ===== 15. Buchungs-CTA ===== */
.section--cta { padding-block: clamp(36px, 6vw, 84px); }
.cta-panel {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(34px, 6vw, 64px) clamp(24px, 5vw, 56px);
}
.cta-panel__title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 1rem;
}
.cta-panel__text {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 54ch;
  margin: 0 auto 2rem;
}
.cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
}

/* ===== 16. Preise ===== */
.section__head--center { text-align: center; margin-inline: auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(18px, 2vw, 26px);
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(26px, 3vw, 38px);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.price-card--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-hover); }

.price-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1rem;
}
.price-card__name { font-size: 1.15rem; font-weight: 600; }
.price-card__badge {
  flex: none;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: .28rem .6rem;
  border-radius: var(--radius-pill);
}
.price-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.price-card__amount { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; }
.price-card__unit { color: var(--text-dim); font-size: .95rem; }

.price-card__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .72rem; }
.price-card__list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text-soft);
  font-size: .96rem;
  line-height: 1.45;
}
/* Haken-Icon: Navy-Kreis mit weissem Häkchen */
.price-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .08em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
}
.price-card__list li::after {
  content: "";
  position: absolute;
  left: 5px; top: .42em;
  width: 8px; height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.pricing-note {
  text-align: center;
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.55;
  max-width: 54ch;
  margin: clamp(26px, 4vw, 40px) auto 0;
}

/* ===== 17. Kontakt-Buttons ===== */
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

/* ===== 18. Preis-Buttons ===== */
.btn--block { width: 100%; }
.price-card__foot { margin-top: auto; padding-top: clamp(20px, 2.4vw, 28px); }

/* ===== 19. Projekt-Detailseite (project.html) ===== */
/* Schlanke, sticky Kopfzeile im Glas-Look */
.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.detail-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}
/* N1: Direkt-Navigation auf der Detailseite (kein Deep-Link-Sackgasse). */
.detail-topbar__nav { display: flex; gap: 1.4rem; align-items: center; }
.detail-topbar__nav a { color: var(--text-soft); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.detail-topbar__nav a:hover { color: var(--accent); }
@media (max-width: 560px) { .detail-topbar__nav { display: none; } }  /* mobil: Zurück + Logo genügen */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-dim);
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s, gap .2s;
}
.detail-back:hover { color: var(--text); gap: .72rem; }

.detail { padding-block: clamp(30px, 5vw, 56px) clamp(64px, 9vw, 120px); }

.detail-head { max-width: 860px; margin-bottom: clamp(22px, 3.5vw, 36px); }
.detail-eyebrow {
  color: var(--text-dim);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.detail-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.03;
  margin: .5rem 0 1.1rem;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: .45rem; }

.detail-hero {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  margin-bottom: clamp(26px, 4vw, 46px);
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }

.detail-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 62ch;
  margin-bottom: clamp(40px, 6vw, 76px);
}

/* Leere Felder/Abschnitte zuverlässig ausblenden (überschreibt display:grid etc.) */
[hidden] { display: none !important; }

/* Projektziel / Rolle / Output */
.detail-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(48px, 7vw, 92px);
}
.detail-info__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 2.6vw, 30px);
}
.detail-info__label {
  color: var(--accent);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: .6rem;
}
.detail-info__text { color: var(--text-soft); line-height: 1.6; }

.detail-section { margin-bottom: clamp(48px, 7vw, 92px); }
.detail-section:last-child { margin-bottom: 0; }
.detail-section__title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: clamp(20px, 3vw, 30px);
}

/* Media-Galerie */
.media-main {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  margin-bottom: clamp(14px, 1.6vw, 20px);
}
.media-main img { width: 100%; height: 100%; object-fit: cover; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.media-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid var(--line);
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Video-Platzhalter (später durch echtes Video ersetzbar) */
.media-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: clamp(14px, 1.6vw, 20px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #16233c, #0d1320);
  display: grid;
  place-items: center;
}
.media-video__play {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.media-video__label {
  position: absolute;
  bottom: 14px;
  font-size: .85rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, 0.7);
}

/* Kundenfeedback */
.feedback {
  max-width: 860px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 4vw, 48px);
}
.feedback__quote {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
}
.feedback__quote::before { content: "\201C"; color: var(--accent); }
.feedback__quote::after  { content: "\201D"; color: var(--accent); }
.feedback__author { margin-top: 1.4rem; color: var(--text-dim); font-size: .95rem; }
.feedback__author strong { color: var(--text); font-weight: 600; }
.feedback--empty { text-align: center; }
.feedback--empty .feedback__placeholder { color: var(--text-dim); font-size: 1.05rem; }

/* CTA-Panel auf der Detailseite nutzt die bestehende .cta-panel-Optik */
.detail-cta .cta-panel { margin-top: 0; }

/* ===== 20. Foto-Galerie (CSS Grid + Lightbox) ===== */

/* --- CSS Grid: links nach rechts, oben nach unten, Originalformat --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px)  { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }

.photo-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #0d1320;
  cursor: pointer;
  position: relative;
}
.photo-tile img {
  display: block;
  width: 100%;
  height: auto; /* Originalformat — nie zugeschnitten */
}
.photo-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Lightbox --- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
}
.lb.is-open { opacity: 1; visibility: visible; }

.lb-figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 86vh;
}
.lb-figure img {
  display: block;
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto; /* Originalformat in der Preview */
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 32px 80px rgba(0,0,0,.65);
  transition: opacity .3s ease;
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(14, 27, 51, 0.65);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .22s var(--ease), transform .2s var(--ease);
}
.lb-btn:hover { background: rgba(20, 49, 94, 0.85); }
.lb-btn:active { transform: scale(.93); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lb-close { top: 20px; right: 20px; width: 46px; height: 46px; }
.lb-nav   { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-nav:active { transform: translateY(-50%) scale(.93); }
.lb-prev  { left: 20px; }
.lb-next  { right: 20px; }

.lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
  font-variant-numeric: tabular-nums;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-pill);
  background: rgba(14,27,51,.4);
  pointer-events: none;
}

@media (max-width: 640px) {
  .lb-nav   { width: 44px; height: 44px; }
  .lb-prev  { left: 10px; }
  .lb-next  { right: 10px; }
  .lb-close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-tile, .photo-tile img, .photo-tile__zoom,
  .lb, .lb-figure img { transition: none !important; }
  .photo-tile:hover img { transform: none; }
}

/* ===== 21. Rollen-Liste (Bullet Points) ===== */
.role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.role-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
/* ===== 22. YouTube-Hero-Block ===== */
.yt-hero {
  margin-bottom: clamp(26px, 4vw, 46px);
}
.yt-hero__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.yt-hero__embed iframe,
.yt-hero__embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}
.yt-hero__promo {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(20px, 2.6vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-soft);
}
.yt-hero__eyebrow {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.yt-hero__title {
  display: none;
}
.yt-hero__text {
  color: var(--text-soft);
  font-size: .97rem;
  line-height: 1.6;
  max-width: 62ch;
}
@media (min-width: 640px) {
  .yt-hero__promo {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .yt-hero__promo .btn { flex: none; white-space: nowrap; }
  .yt-hero__text { max-width: 48ch; }
}
@media (max-width: 639px) {
  .yt-hero__promo .btn { align-self: flex-start; }
}

/* ===== Reel-Hero: Hochformat-Video klein & seitlich (Format bleibt erhalten) ===== */
.yt-hero--reel {
  display: flex;
  flex-direction: column;        /* Mobile: gestapelt, Video oben zentriert */
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
}
.yt-hero--reel .yt-hero__embed {
  aspect-ratio: 9 / 16;          /* natives Reel-Format – kein Beschnitt */
  width: min(300px, 78vw);
  flex: none;
  border-radius: var(--radius);
}
/* Textbox: linksbündige Spalte statt zentrierter Zeile (überschreibt die 640er-Regel). */
.yt-hero--reel .yt-hero__promo {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: .9rem;
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.yt-hero--reel .yt-hero__title {
  display: block;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}
.yt-hero--reel .yt-hero__text {
  max-width: 52ch;
  margin: 0;
}
.yt-hero--reel .yt-hero__promo .btn {
  margin-top: .35rem;
  align-self: flex-start;
}
@media (min-width: 760px) {
  .yt-hero--reel {
    flex-direction: row;         /* Desktop: Video links, Text rechts daneben */
    align-items: stretch;
  }
  .yt-hero--reel .yt-hero__promo { flex: 1; }
}

/* ===== 23. Site-Logo (dual hell/dunkel — wechselt per .is-scrolled) ===== */
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
  position: relative;
  height: 36px;
  min-width: 80px;
}
.site-logo__img {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  position: absolute;
  top: 0; left: 0;
  transition: opacity .35s var(--ease);
}
/* Im Hero (oben): weisses Logo sichtbar, dunkles unsichtbar */
.site-logo__img--light { opacity: 1; }
.site-logo__img--dark  { opacity: 0; }
/* Nach Scroll: dunkles Logo einblenden, weisses ausblenden */
.nav.is-scrolled .site-logo__img--light { opacity: 0; }
.nav.is-scrolled .site-logo__img--dark  { opacity: 1; }
/* Footer: immer dunkles Logo */
.site-logo--footer { height: 28px; min-width: 60px; }
.site-logo--footer .site-logo__img { height: 28px; }
.site-logo--footer .site-logo__img--light { opacity: 0; }
.site-logo--footer .site-logo__img--dark  { opacity: 1; }
/* Alte Textelemente */
.site-logo .nav__brand-mark,
.site-logo .nav__brand-name { display: none; }
@media (max-width: 760px) {
  .site-logo { height: 30px; }
  .site-logo__img { height: 30px; }
}



/* ===== 25. Rollen-Liste (Bullet Points) ===== */
.role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.role-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* R1: Rechts-Links im Footer */
.footer__legal { text-align: center; padding: 2px 20px 26px; font-size: .85rem; }
.footer__legal a { color: var(--text-dim); text-decoration: none; margin: 0 3px; }
.footer__legal a:hover { color: var(--accent); text-decoration: underline; }
