/* ============================================================
   CODING GORILLAS – Stylesheet
   Fonts  : Antonio Bold/Regular · Inter Regular/Bold
   Colors : #000000 · #ffffff · #ff0000
   ============================================================ */

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colors */
  --clr-black:   #000000;
  --clr-white:   #ffffff;
  --clr-red:     #ff0000;
  --clr-red-dk:  #cc0000;

  /* Surface tones */
  --clr-surface:    #0a0a0a;
  --clr-surface-dk: #050505;
  --clr-border:     rgba(255,255,255,0.07);

  /* Text */
  --clr-text-muted: #ffffff;
  --clr-text-dim:   rgba(255,255,255,0.30);

  /* Typography */
  --ff-display: 'Antonio', sans-serif;
  --ff-body:    'Inter', sans-serif;
  --fw-reg:  400;
  --fw-bold: 700;

  /* Fluid type scale */
  --fs-caption: 14px;
  --fs-body:    16px;
  --fs-h3:      clamp(18px, 1.8vw, 22px);
  --fs-h2:      clamp(30px, 4vw,  56px);
  --fs-h1:      clamp(48px, 7.5vw, 100px);

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 6rem;

  /* Layout */
  --max-w: 1280px;
  --pad-x: 1.5rem;
  --nav-h: 72px;

  /* Effects */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.4,0,0.2,1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;
}

/* ============================================================
   RESET
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-reg);
  line-height: 1.65;
  color: var(--clr-white);
  background: var(--clr-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
[hidden] { display: none !important; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.text-red { color: var(--clr-red); }

/* Section wrapper */
.section { padding-block: var(--sp-xl); }
.section--dark { background-color: var(--clr-surface); }

/* Section header block */
.section__header { text-align: center; margin-bottom: var(--sp-lg); }

.section__eyebrow {
  font-family: var(--ff-body);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: var(--sp-sm);
}

.section__title {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  line-height: 1.05;
  color: var(--clr-white);
  margin-bottom: var(--sp-sm);
}

.section__subtitle {
  font-size: var(--fs-body);
  color: var(--clr-text-muted);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--ff-body);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: .65rem 1.4rem;
  transition: background-color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              opacity var(--dur-base) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--clr-red); outline-offset: 3px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.btn--primary {
  background: var(--clr-red);
  border-color: var(--clr-red);
  color: var(--clr-white);
}
.btn--primary:hover:not(:disabled) {
  background: var(--clr-red-dk);
  border-color: var(--clr-red-dk);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--clr-white);
}
.btn--outline:hover:not(:disabled) {
  border-color: var(--clr-white);
  background: rgba(255,255,255,.05);
  transform: translateY(-2px);
}

.btn--sm  { padding: .45rem .9rem; font-size: 12px; }
.btn--lg  { padding: 1rem 2rem; font-size: var(--fs-body); }
.btn--full { width: 100%; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--nav-h);
  z-index: 900;
  background: transparent;
  transition: background var(--dur-slow) var(--ease),
              backdrop-filter var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease);
}
.header.scrolled {
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--clr-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-md);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* Desktop links */
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.nav__link {
  font-family: var(--ff-body);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  position: relative;
  padding-block: .25rem;
  transition: color var(--dur-fast) var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--clr-red);
  transition: width var(--dur-base) var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--clr-white); }
.nav__link:hover::after { width: 100%; }

.nav__link--cta {
  color: var(--clr-red);
  border: 1px solid var(--clr-red);
  padding: .35rem .9rem;
  border-radius: var(--radius-sm);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--clr-red);
  color: var(--clr-white);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 4px;
}
.nav__bar {
  display: block;
  width: 24px; height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease),
              opacity var(--dur-base) var(--ease);
  transform-origin: center;
}
.nav__toggle.is-open .nav__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open .nav__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.is-open .nav__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav__mobile {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(0,0,0,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease);
  z-index: 800;
}
.nav__mobile.is-open { opacity: 1; pointer-events: all; }
.nav__mobile-link {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--clr-white);
  transition: color var(--dur-fast) var(--ease);
}
.nav__mobile-link:hover { color: var(--clr-red); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 60%, rgba(255,0,0,.06) 0%, transparent 70%),
    linear-gradient(135deg, #0b0b0b 0%, #000 60%);
  z-index: 0;
}
/* Subtle grid texture */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    700px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 0, 0, 0.13) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--clr-black) 100%);
  z-index: 2;
}
.hero__content {
  position: relative;
  z-index: 3;
  padding-top: var(--nav-h);
  padding-block: var(--sp-xl);
}
.hero__eyebrow {
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: var(--sp-md);
}
.hero__headline {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h1);
  line-height: .98;
  color: var(--clr-white);
  max-width: 820px;
  margin-bottom: var(--sp-md);
}
.hero__sub {
  font-size: clamp(14px, 2vw, 16px);
  color: #ffffff;
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: var(--sp-lg);
}
.hero__actions {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: var(--pad-x);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
}
.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.2);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--clr-red);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { left: -100%; }
  50%  { left: 0; }
  100% { left: 100%; }
}

/* ============================================================
   INTRO
   ============================================================ */
.intro { background: var(--clr-black); }

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-xl);
  align-items: start;
}
.intro__headline {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  font-size: clamp(26px, 3.5vw, 46px);
  line-height: 1.1;
  color: var(--clr-white);
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-md));
}
.intro__body p {
  font-size: clamp(14px, 1.5vw, 16px);
  color: #ffffff;
  line-height: 1.85;
  margin-bottom: var(--sp-md);
}
.intro__stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--clr-border);
}
.stat__number {
  display: block;
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  font-size: clamp(32px, 4vw, 52px);
  color: var(--clr-red);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat__label {
  display: block;
  font-size: 13px;
  color: var(--clr-text-dim);
  line-height: 1.45;
}

/* ============================================================
   LEISTUNGEN
   ============================================================ */
.leistungen__grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.leistungen__card {
  background: var(--clr-surface);
  padding: var(--sp-md) var(--sp-md) var(--sp-lg);
  transition: background var(--dur-base) var(--ease);
}
.leistungen__card:hover { background: rgba(255,255,255,.035); }

.leistungen__icon {
  width: 44px; height: 44px;
  color: var(--clr-white);
  margin-bottom: var(--sp-md);
}
.leistungen__card-title {
  font-family: var(--ff-display);
  font-weight: var(--fw-reg);
  font-size: var(--fs-h3);
  color: var(--clr-white);
  letter-spacing: .02em;
  margin-bottom: .6rem;
}
.leistungen__card-text {
  font-size: var(--fs-caption);
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-md);
}
.leistungen__list { display: flex; flex-direction: column; gap: .45rem; }
.leistungen__list li {
  font-size: var(--fs-caption);
  color: rgba(255,255,255,.65);
  padding-left: 1rem;
  position: relative;
}
.leistungen__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  background: var(--clr-red);
  border-radius: 50%;
}

/* ============================================================
   PHILOSOPHIE
   ============================================================ */
.philosophie {
  background: var(--clr-black);
  position: relative;
  overflow: hidden;
}

.philosophie__parallax {
  position: absolute;
  inset: -220px 0;
  background: url('../../Images/Jungel Bild.jpg') center / cover no-repeat;
  will-change: transform;
  z-index: 0;
}

.philosophie__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 75% at 28% 8%, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.97) 100%);
  z-index: 1;
}

.philosophie .container {
  position: relative;
  z-index: 2;
}

.philosophie__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

.philosophie__headline {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: var(--sp-md);
}
.philosophie__text {
  font-size: clamp(14px, 1.4vw, 16px);
  color: #ffffff;
  line-height: 1.85;
  margin-bottom: var(--sp-sm);
}

.philosophie__values {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  padding-top: .4rem;
}
.philosophie__value { display: flex; gap: var(--sp-sm); align-items: flex-start; }
.philosophie__value-bar {
  flex-shrink: 0;
  width: 3px; height: 38px;
  background: var(--clr-red);
  border-radius: 2px;
  margin-top: 3px;
}
.philosophie__value-title {
  font-family: var(--ff-display);
  font-weight: var(--fw-reg);
  font-size: var(--fs-h3);
  color: var(--clr-white);
  margin-bottom: .2rem;
}
.philosophie__value-text {
  font-size: var(--fs-caption);
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ============================================================
   REFERENZEN
   ============================================================ */
.referenzen { background: var(--clr-surface); }

.referenzen__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
}

.referenzen__card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}
.referenzen__card:hover {
  border-color: rgba(255,255,255,.2);
  transform: translateY(-4px);
}

.referenzen__card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.referenzen__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s var(--ease);
}
.referenzen__card:hover .referenzen__card-img img {
  transform: scale(1.04);
}

.referenzen__card-body {
  padding: var(--sp-sm) var(--sp-md);
}
.referenzen__card-title {
  font-family: var(--ff-display);
  font-weight: var(--fw-reg);
  font-size: var(--fs-h3);
  color: var(--clr-white);
  margin-bottom: .2rem;
}
.referenzen__card-cat {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  letter-spacing: .05em;
}

.referenzen__cta {
  text-align: center;
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}
.referenzen__cta-text {
  font-family: var(--ff-display);
  font-weight: var(--fw-reg);
  font-size: clamp(18px, 2.5vw, 26px);
  color: rgba(255,255,255,.65);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--clr-black); }

.faq__list {
  max-width: 800px;
  margin-inline: auto;
}

.faq__item { border-bottom: 1px solid var(--clr-border); }
.faq__item:first-child { border-top: 1px solid var(--clr-border); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  width: 100%;
  padding-block: var(--sp-md);
  font-weight: var(--fw-bold);
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--clr-white);
  text-align: left;
  transition: color var(--dur-fast) var(--ease);
}
.faq__q:hover,
.faq__q[aria-expanded="true"] { color: var(--clr-red); }

.faq__chevron {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: currentColor;
  transition: transform var(--dur-base) var(--ease);
}
.faq__q[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); }

/* Animated answer using max-height */
.faq__answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--dur-slow) var(--ease),
              opacity var(--dur-base) var(--ease);
}
.faq__answer.is-open {
  max-height: 600px;
  opacity: 1;
}
.faq__answer p {
  font-size: clamp(14px, 1.4vw, 16px);
  color: #ffffff;
  line-height: 1.85;
  padding-bottom: var(--sp-md);
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt { background: var(--clr-surface); }

.kontakt__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

/* Form fields */
.form__group { margin-bottom: var(--sp-md); }

.form__label {
  display: block;
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: .5rem;
}

.form__input {
  display: block;
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: var(--clr-white);
  padding: .875rem 1rem;
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
  -webkit-appearance: none;
}
.form__input::placeholder { color: rgba(255,255,255,.22); }
.form__input:focus {
  outline: none;
  border-color: var(--clr-red);
  background: rgba(255,0,0,.03);
}
.form__input.is-error { border-color: var(--clr-red); }
.form__textarea { resize: vertical; min-height: 160px; }

.form__error {
  display: block;
  min-height: 1.2em;
  margin-top: .35rem;
  font-size: 12px;
  color: var(--clr-red);
}

/* Custom checkbox */
.form__check-label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
}
.form__check { position: absolute; opacity: 0; width: 0; height: 0; }
.form__check-box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  margin-top: 1px;
}
.form__check:checked + .form__check-box {
  background: var(--clr-red);
  border-color: var(--clr-red);
}
.form__check:checked + .form__check-box::after {
  content: '';
  width: 6px; height: 10px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px,-1px);
}
.form__check:focus-visible + .form__check-box {
  outline: 2px solid var(--clr-red);
  outline-offset: 2px;
}
.form__check-text {
  font-size: var(--fs-caption);
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}
.form__check-text a { color: var(--clr-red); text-decoration: underline; text-underline-offset: 2px; }

.form__success {
  margin-top: var(--sp-md);
  padding: var(--sp-md);
  border: 1px solid rgba(50,220,100,.25);
  border-radius: var(--radius-sm);
  background: rgba(50,220,100,.04);
  color: rgba(255,255,255,.8);
  text-align: center;
  font-size: var(--fs-body);
}

/* Contact sidebar info */
.kontakt__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  padding-top: calc(var(--fs-caption) + .5rem + var(--sp-md)); /* align with first input */
}
.kontakt__info-title {
  font-family: var(--ff-display);
  font-weight: var(--fw-reg);
  font-size: var(--fs-h3);
  color: var(--clr-white);
  margin-bottom: .3rem;
}
.kontakt__info-link {
  color: var(--clr-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: var(--fs-body);
  transition: opacity var(--dur-fast) var(--ease);
}
.kontakt__info-link:hover { opacity: .75; }
.kontakt__info-text {
  font-size: var(--fs-body);
  color: var(--clr-text-muted);
  line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--clr-surface-dk);
  border-top: 1px solid var(--clr-border);
  padding-block: var(--sp-lg) var(--sp-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--sp-lg);
  align-items: start;
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--sp-md);
}
.footer__brand { display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer__tagline {
  font-size: var(--fs-caption);
  color: rgba(255,255,255,.28);
  letter-spacing: .05em;
  margin-top: .25rem;
}

.footer__nav-list { display: flex; flex-direction: column; gap: .7rem; }
.footer__nav-list a {
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  transition: color var(--dur-fast) var(--ease);
}
.footer__nav-list a:hover { color: var(--clr-white); }

.footer__legal { display: flex; flex-direction: column; gap: .7rem; }
.footer__legal a {
  font-size: var(--fs-caption);
  color: rgba(255,255,255,.3);
  transition: color var(--dur-fast) var(--ease);
}
.footer__legal a:hover { color: var(--clr-white); }

.mobile-fab {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  left: 1rem;
  right: 1rem;
  flex-direction: row;
  gap: .5rem;
  z-index: 900;
}
.mobile-fab__kontakt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1rem;
  background: rgba(0,0,0,0.6);
  border: 2px solid #ffffff;
  color: var(--clr-red);
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--dur-fast) var(--ease);
}
.mobile-fab__kontakt:active { border-color: rgba(255,255,255,0.5); }
.mobile-fab__top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  background: rgba(0,0,0,0.6);
  border: 2px solid #ffffff;
  border-radius: var(--radius-sm);
  color: var(--clr-red);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--dur-fast) var(--ease);
}
.mobile-fab__top svg { width: 22px; height: 22px; }
.mobile-fab__top:active { border-color: rgba(255,255,255,0.5); }

@media (max-width: 768px) {
  .mobile-fab { display: flex; }
}

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,.18);
  text-align: center;
  letter-spacing: .03em;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.35);
  color: var(--clr-red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease),
              transform 0.3s var(--ease),
              background 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.scroll-top svg { width: 20px; height: 20px; }
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.scroll-top:hover {
  background: rgba(255, 0, 0, 0.28);
  border-color: rgba(255, 0, 0, 0.6);
}


/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: var(--sp-md);
  inset-inline: var(--sp-md);
  max-width: 620px;
  margin-inline: auto;
  z-index: 1000;
  background: rgba(12,12,12,.97);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease),
              opacity var(--dur-slow) var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-md);
  flex-wrap: wrap;
}
.cookie-banner__text {
  font-size: var(--fs-caption);
  color: rgba(255,255,255,.6);
  line-height: 1.55;
  flex: 1 1 200px;
}
.cookie-banner__text a { color: var(--clr-red); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: .6rem; flex-shrink: 0; }

/* ============================================================
   SCROLL REVEAL – JS adds `.sr` class to elements
   ============================================================ */
.sr {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.sr.sr--visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   LEGAL PAGES (impressum / datenschutz)
   ============================================================ */
.legal-page {
  padding-top: calc(var(--nav-h) + var(--sp-xl));
  padding-bottom: var(--sp-xl);
  min-height: 100vh;
  background: var(--clr-black);
}
.legal-page .container { max-width: 760px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--sp-lg);
  transition: color var(--dur-fast) var(--ease);
}
.legal-back:hover { color: var(--clr-white); }
.legal-h1 {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  color: var(--clr-white);
  margin-bottom: var(--sp-lg);
}
.legal-h2 {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  font-size: clamp(22px, 2.5vw, 30px);
  color: var(--clr-white);
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-sm);
}
.legal-body p {
  color: rgba(255,255,255,.62);
  font-size: var(--fs-body);
  line-height: 1.85;
  margin-bottom: var(--sp-sm);
}
.legal-body a { color: var(--clr-red); text-decoration: underline; text-underline-offset: 2px; }
.legal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: rgba(255,255,255,.62);
  margin-bottom: var(--sp-sm);
}
.legal-body ul li { margin-bottom: .4rem; line-height: 1.7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .leistungen__grid { grid-template-columns: repeat(2,1fr); }
  .intro__stats { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  :root {
    --sp-xl: 4rem;
    --pad-x: 1.25rem;
    --fs-body: 14px;
  }

  /* Nav */
  .nav__menu { display: none; }
  .nav__toggle { display: flex; }

  /* Scroll-to-top desktop button */
  .scroll-top { display: none; }

  /* Hero */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__scroll { display: none; }

  /* Intro */
  .intro__grid { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .intro__headline { position: static; }
  .intro__stats { grid-template-columns: 1fr 1fr; }

  /* Leistungen */
  .leistungen__grid { grid-template-columns: 1fr; }
  .leistungen__card { border-bottom: 1px solid var(--clr-border); }

  /* Philosophie */
  .philosophie__content { grid-template-columns: 1fr; }

  /* Referenzen */
  .referenzen__grid { grid-template-columns: 1fr; }

  /* Kontakt */
  .kontakt__grid { grid-template-columns: 1fr; }
  .kontakt__info { padding-top: 0; flex-direction: row; flex-wrap: wrap; }
  .kontakt__info > * { flex: 1 1 180px; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-md); text-align: center; }
  .footer__brand { align-items: center; }
  .footer__nav-list { flex-direction: row; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: center; }
  .footer__legal { justify-content: center; }
  .footer__copy { text-align: center; }
  .footer__legal { flex-direction: row; gap: 1.5rem; }

  /* Cookie */
  .cookie-banner { bottom: var(--sp-sm); inset-inline: var(--sp-sm); }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: flex-end; }
}

@media (max-width: 480px) {
  :root { --pad-x: 1rem; }
  .intro__stats { grid-template-columns: 1fr; }
}
