/* ============================================================
   INFRAPLAN — main.css
   Mobile-first. Dark theme. Orange accents.
   Breakpoints: 640 / 768 / 1024 / 1280
   ============================================================ */

/* --- Design tokens --- */
:root {
  --orange:      #E8720C;
  --orange-dark: #C55E08;
  --dark:        #0F0F0F;
  --dark-2:      #181818;
  --dark-3:      #222222;
  --border:      #2C2C2C;
  --text:        #F0F0F0;
  --muted:       #9A9A9A;
  --white:       #FFFFFF;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --max-w: 1200px;
  --nav-h: 64px;
  --section-py: 5rem;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Light mode tokens --- */
html[data-theme="light"] {
  --dark:   #F6F5F2;
  --dark-2: #EDECEA;
  --dark-3: #E3E1DC;
  --border: #CCCAC4;
  --text:   #1C1B1A;
  --muted:  #636260;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Badge / kicker --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.badge::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.badge--orange {
  color: var(--orange);
}

/* --- Headings --- */
.section-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-wrap: balance;
  padding-bottom: 0.875rem;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 2.5rem 2px;
}

.section-sub {
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  text-wrap: pretty;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, transform 0.2s var(--ease-out-quart);
  white-space: nowrap;
}
.btn--orange {
  background: var(--orange);
  color: var(--white);
}
.btn--orange:hover {
  background: var(--orange-dark);
}
.btn--orange:active {
  transform: scale(0.97);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--outline:hover {
  border-color: var(--white);
}
.btn--outline:active {
  transform: scale(0.97);
}
.btn--full { width: 100%; justify-content: center; }

@media (hover: hover) and (pointer: fine) {
  .btn--orange:hover { transform: translateY(-2px); }
  .btn--outline:hover { transform: translateY(-2px); }
}

/* ==============================================================
   NAV
   ============================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav--scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav__logo img {
  height: 40px;
  width: auto;
  mix-blend-mode: screen;
}

/* Mobile menu — hidden by default */
.nav__menu {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: #000;
  padding: 2rem 1.5rem;
  gap: 0;
  overflow-y: auto;
}
.nav__menu.is-open { display: flex; }

.nav__link {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav__link:hover,
.nav__link.active { color: var(--orange); }

.nav__cta {
  margin-top: 1.5rem;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

/* Hamburger */
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out-quart), opacity 0.25s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop nav */
@media (min-width: 1024px) {
  .nav__burger { display: none; }

  .nav__menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    align-items: center;
    gap: 2rem;
  }

  .nav__link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
    padding: 0;
    border: none;
    position: relative;
  }
  .nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform 0.2s var(--ease-out-quart);
    transform-origin: left center;
  }
  .nav__link:hover::after,
  .nav__link.active::after {
    transform: scaleX(1);
  }
  .nav__link:hover,
  .nav__link.active {
    color: var(--text);
  }

  .nav__cta {
    margin-top: 0;
    align-self: auto;
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
  }
}

/* ==============================================================
   HERO
   ============================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.15) 30%,
    rgba(0,0,0,0.82) 70%,
    rgba(0,0,0,0.98) 100%
  );
  z-index: 1;
}

/* When no hero image */
.hero:not(:has(.hero__bg)) {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1209 50%, #0f0f0f 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-wrap: balance;
  position: relative;
  padding-left: 1.25rem;
}

.hero__headline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.08em;
  bottom: 0.08em;
  width: 4px;
  background: linear-gradient(to bottom, var(--orange) 0%, rgba(232, 114, 12, 0.2) 100%);
  border-radius: 2px;
}

.hero__subline {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Stats bar */
.stats {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid rgba(232, 114, 12, 0.4);
}

.stats__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.75rem 0;
  flex-wrap: wrap;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 2rem;
  flex: 1;
  min-width: 100px;
}

.stats__zahl {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stats__label {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.5rem;
}

.stats__divider {
  width: 1px;
  height: 2rem;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ==============================================================
   LEISTUNGEN
   ============================================================== */
.leistungen {
  padding: var(--section-py) 0;
  background: var(--dark);
}

.leistungen__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.leistungs-karte {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.025) 0%, transparent 55%),
    var(--dark-2);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: background 0.25s var(--ease-out-quart), box-shadow 0.25s var(--ease-out-quart);
}
.leistungs-karte::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-out-expo);
}
.leistungs-karte:hover {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.04) 0%, transparent 55%),
    var(--dark-3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45),
              inset 0 1px 0 rgba(255,255,255,0.08);
}
.leistungs-karte:hover::before {
  transform: scaleX(1);
}

/* Featured first card */
.leistungs-karte:first-child {
  background:
    linear-gradient(145deg, rgba(232, 114, 12, 0.08) 0%, transparent 55%),
    var(--dark-2);
  box-shadow: inset 4px 0 0 var(--orange), inset 0 1px 0 rgba(255,255,255,0.05);
}
.leistungs-karte:first-child:hover {
  background:
    linear-gradient(145deg, rgba(232, 114, 12, 0.12) 0%, transparent 55%),
    var(--dark-3);
  box-shadow: inset 4px 0 0 var(--orange), 0 10px 40px rgba(0,0,0,0.45),
              inset 0 1px 0 rgba(255,255,255,0.08);
}
.leistungs-karte:first-child .leistungs-karte__titel {
  font-size: 1.5rem;
}

.leistungs-karte__icon {
  width: 52px;
  height: 52px;
  background: rgba(232, 114, 12, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.25s;
}
.leistungs-karte:hover .leistungs-karte__icon {
  background: rgba(232, 114, 12, 0.18);
}
.leistungs-karte__icon .material-symbols-outlined {
  color: var(--orange);
  font-size: 1.5rem;
}

.leistungs-karte__titel {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.leistungs-karte__text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  text-wrap: pretty;
}

.leistungs-karte__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  transition: gap 0.2s var(--ease-out-quart);
}
.leistungs-karte__link:hover {
  gap: 0.5em;
}

@media (min-width: 768px) {
  .leistungen__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .leistungen__grid {
    grid-template-columns: 1.65fr 1fr 1fr;
  }
}

/* ==============================================================
   ÜBER UNS
   ============================================================== */
.ueber-uns {
  padding: var(--section-py) 0;
  background: var(--dark-2);
}

.ueber-uns__layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.ueber-uns__body {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 540px;
  text-wrap: pretty;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.feature__icon {
  color: var(--orange);
  font-size: 1.75rem;
}

.feature__label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1.3;
}

.ueber-uns__bild {
  overflow: hidden;
}
.ueber-uns__bild img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-quart);
}
@media (hover: hover) and (pointer: fine) {
  .ueber-uns__bild:hover img {
    transform: scale(1.03);
  }
}

@media (min-width: 1024px) {
  .ueber-uns__layout {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }
  .ueber-uns__text { flex: 1; }
  .ueber-uns__bild { flex: 1; }
  .ueber-uns__bild img { height: 480px; }
}

/* ==============================================================
   PARTNER
   ============================================================== */
.partner {
  padding: 3.5rem 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partner__headline {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
}

.partner__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.partner__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--dark-2);
  min-height: 72px;
  transition: background 0.2s;
}
.partner__item:hover {
  background: var(--dark-3);
}

.partner__item img {
  max-height: 40px;
  width: auto;
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.65;
  transition: filter 0.3s, opacity 0.3s;
}
.partner__item:hover img { filter: none; opacity: 1; }

.partner__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.partner__name span {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.partner__name small {
  font-size: 0.7rem;
  color: rgba(153,153,153,0.6);
  margin-top: 0.2rem;
}

@media (min-width: 640px) {
  .partner__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==============================================================
   KONTAKT
   ============================================================== */
.kontakt {
  padding: var(--section-py) 0;
  background: var(--dark-2);
}

.kontakt__layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.kontakt__headline {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1.75rem;
  text-wrap: balance;
}

.kontakt__liste {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.kontakt__liste li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.kontakt__liste .material-symbols-outlined {
  color: var(--orange);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.kontakt__liste a {
  transition: color 0.15s;
}
.kontakt__liste a:hover { color: var(--orange); }

/* Form */
.kontakt__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-group input,
.form-group textarea {
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.875rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(255,255,255,0.15);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: rgba(34,34,34,0.8);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(154,154,154,0.7); }
.form-group--error input,
.form-group--error textarea { border-color: #e55; }
.form-error {
  font-size: 0.75rem;
  color: #e55;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(232, 114, 12, 0.08);
  border: 1px solid rgba(232, 114, 12, 0.4);
  color: var(--orange);
  padding: 1.25rem;
  font-weight: 500;
}
.form-success .material-symbols-outlined { font-size: 1.4rem; }

@media (min-width: 640px) {
  .form-row { flex-direction: row; }
  .form-row .form-group { flex: 1; }
}

@media (min-width: 1024px) {
  .kontakt__layout {
    flex-direction: row;
    gap: 5rem;
    align-items: flex-start;
  }
  .kontakt__info { flex: 0 0 340px; }
  .kontakt__form-wrap { flex: 1; }
}

/* ==============================================================
   FOOTER
   ============================================================== */
.footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer__logo {
  mix-blend-mode: screen;
  opacity: 0.75;
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(154,154,154,0.7);
  letter-spacing: 0.02em;
}

.footer__nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__nav a {
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 0.15s;
  letter-spacing: 0.02em;
}
.footer__nav a:hover { color: var(--white); }

/* ==============================================================
   LOGIN PAGE
   ============================================================== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  background: var(--dark);
}

.login-box {
  width: 100%;
  max-width: 380px;
  padding: 2.5rem 2rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
}

.login-box__logo {
  mix-blend-mode: screen;
  margin: 0 auto 2rem;
}

.login-box input {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.login-box input:focus { border-color: var(--orange); }
.login-box input::placeholder { color: rgba(154,154,154,0.7); }

.login-box__error {
  font-size: 0.8rem;
  color: #e55;
  margin-bottom: 0.75rem;
}

/* ==============================================================
   HONEYPOT — off-screen, invisible to real users
   ============================================================== */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==============================================================
   FOCUS STYLES
   ============================================================== */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Inputs use border-color for focus — suppress outline */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.login-box input:focus-visible {
  outline: none;
}

/* Ensure focus on nav links is visible */
.nav__link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ==============================================================
   SCROLL REVEAL
   Default state is visible (safe for no-JS). JS adds .js-loaded
   to <html> before initialising observers, which enables the
   hidden initial state and the transition.
   ============================================================== */
.js-loaded .js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out-expo),
              transform 0.65s var(--ease-out-expo);
}
.js-loaded .js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==============================================================
   HERO ENTRANCE ANIMATION
   ============================================================== */
.js-loaded .hero__content > * {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.7s var(--ease-out-expo) forwards;
}
.js-loaded .hero__content > *:nth-child(1) { animation-delay: 0.1s; }
.js-loaded .hero__content > *:nth-child(2) { animation-delay: 0.2s; }
.js-loaded .hero__content > *:nth-child(3) { animation-delay: 0.3s; }
.js-loaded .hero__content > *:nth-child(4) { animation-delay: 0.4s; }

.js-loaded .stats {
  opacity: 0;
  animation: heroFadeUp 0.6s var(--ease-out-expo) 0.5s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==============================================================
   THEME TOGGLE BUTTON
   ============================================================== */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:active {
  transform: scale(0.92);
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    color: var(--orange);
    border-color: var(--orange);
  }
}
.theme-toggle .material-symbols-outlined {
  font-size: 1.1rem;
  line-height: 1;
}

html[data-theme="light"] .theme-toggle {
  border-color: rgba(0,0,0,0.2);
}

/* --- Logo visibility by theme --- */
.logo--light { display: none; }
html[data-theme="light"] .logo--dark  { display: none; }
html[data-theme="light"] .logo--light { display: block; }

/* ==============================================================
   LIGHT MODE OVERRIDES
   ============================================================== */

/* Nav */
html[data-theme="light"] .nav {
  background: rgba(246, 245, 242, 0.95);
}
html[data-theme="light"] .nav--scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
html[data-theme="light"] .nav__menu {
  background: var(--dark);
}
html[data-theme="light"] .nav__burger span {
  background: #1C1B1A;
}
html[data-theme="light"] .nav__logo img {
  mix-blend-mode: normal;
}

/* Headings */
html[data-theme="light"] .section-headline,
html[data-theme="light"] .leistungs-karte__titel,
html[data-theme="light"] .kontakt__headline {
  color: #1C1B1A;
}

/* Outline button */
html[data-theme="light"] .btn--outline {
  color: #1C1B1A;
  border-color: rgba(0,0,0,0.25);
}
html[data-theme="light"] .btn--outline:hover {
  border-color: #1C1B1A;
}

/* Stats bar */
html[data-theme="light"] .stats {
  background: rgba(240, 239, 236, 0.9);
  border-top-color: rgba(232, 114, 12, 0.5);
}
html[data-theme="light"] .stats__label {
  color: rgba(0,0,0,0.45);
}
html[data-theme="light"] .stats__divider {
  background: rgba(0,0,0,0.1);
}

/* Cards */
html[data-theme="light"] .leistungs-karte {
  background:
    linear-gradient(160deg, rgba(0,0,0,0.02) 0%, transparent 55%),
    var(--dark-2);
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.04);
}
html[data-theme="light"] .leistungs-karte:hover {
  background:
    linear-gradient(160deg, rgba(0,0,0,0.03) 0%, transparent 55%),
    var(--dark-3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(0,0,0,0.06);
}
html[data-theme="light"] .leistungs-karte:first-child {
  background:
    linear-gradient(145deg, rgba(232, 114, 12, 0.06) 0%, transparent 55%),
    var(--dark-2);
  box-shadow: inset 4px 0 0 var(--orange), inset 0 1px 0 rgba(0,0,0,0.04);
}
html[data-theme="light"] .leistungs-karte:first-child:hover {
  background:
    linear-gradient(145deg, rgba(232, 114, 12, 0.09) 0%, transparent 55%),
    var(--dark-3);
  box-shadow: inset 4px 0 0 var(--orange), 0 8px 32px rgba(0,0,0,0.12);
}
html[data-theme="light"] .leistungs-karte__icon {
  background: rgba(232, 114, 12, 0.08);
}
html[data-theme="light"] .leistungs-karte:hover .leistungs-karte__icon {
  background: rgba(232, 114, 12, 0.14);
}

/* Form inputs */
html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group textarea {
  background: var(--dark-3);
  border-color: var(--border);
  color: var(--text);
}
html[data-theme="light"] .form-group input:hover,
html[data-theme="light"] .form-group textarea:hover {
  border-color: rgba(0,0,0,0.2);
}
html[data-theme="light"] .form-group input:focus,
html[data-theme="light"] .form-group textarea:focus {
  border-color: var(--orange);
  background: var(--dark-2);
}
html[data-theme="light"] .form-group input::placeholder,
html[data-theme="light"] .form-group textarea::placeholder {
  color: rgba(80,79,77,0.55);
}

/* Partner logos */
html[data-theme="light"] .partner__item img {
  filter: grayscale(100%) brightness(0.4);
  opacity: 0.65;
}
html[data-theme="light"] .partner__item:hover img {
  filter: none;
  opacity: 1;
}

/* Footer */
html[data-theme="light"] .footer {
  background: #E0DDD8;
}
html[data-theme="light"] .footer__logo {
  mix-blend-mode: normal;
  opacity: 0.85;
}
html[data-theme="light"] .footer__copy {
  color: rgba(0,0,0,0.4);
}
html[data-theme="light"] .footer__nav a {
  color: rgba(0,0,0,0.5);
}
html[data-theme="light"] .footer__nav a:hover {
  color: #1C1B1A;
}

/* Login */
html[data-theme="light"] .login-box input {
  background: var(--dark-3);
  border-color: var(--border);
  color: var(--text);
}
html[data-theme="light"] .login-box input::placeholder {
  color: rgba(80,79,77,0.55);
}

/* ==============================================================
   REDUCED MOTION
   ============================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Disable all transitions and animations */
  .js-loaded .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js-loaded .hero__content > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .js-loaded .stats {
    opacity: 1;
    animation: none;
  }

  .btn,
  .leistungs-karte,
  .leistungs-karte::before,
  .ueber-uns__bild img,
  .nav__link::after,
  .partner__item img,
  .kontakt__liste a,
  .footer__nav a {
    transition: none;
  }
}
