/* EV24 Styles */
:root {
  --primary: #19a3b6;
  --primary-hover: #158da0;
  --primary-active: #117887;
  --accent: #e6820a;

  --bg: #f7faf9;
  --bg-subtle: #eef4f3;
  --surface: #ffffff;
  --surface-elevated: rgba(255, 255, 255, 0.9);
  --text: #0e2b35;
  --text-muted: #5a6a6f;
  --border: rgba(0, 0, 0, 0.1);

  --radius: 12px;
  --radius-full: 999px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 12px 44px rgba(0, 0, 0, 0.12);

  --space-xs: 0.4rem;
  --space-sm: 0.8rem;
  --space: 1.6rem;
  --space-lg: 2.4rem;
  --space-xl: 5rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-base: 17px;
}

/* =========================================================
   Base & Layout
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font: var(--fs-base)/1.65 var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1200px, 88%);
  margin-inline: auto;
  padding-block: var(--space-lg);
}

/* Typo helpers */
/* Typo helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading, var(--font));
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Links global: Standard nicht unterstrichen, außer bei Hover (außer Nav/Buttons) */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color .25s var(--ease);
}

a:where(:not(.btn, .nav a)):hover {
  text-decoration: underline;
}

/* Screenreader-only helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

/* =========================================================
   Header & Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space);
  padding-block: 1rem;
}

/* Logo niemals strecken */
.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Desktop-Navigation */
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease);
}

.nav a:hover {
  background: rgba(25, 163, 182, .12);
  color: var(--primary);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: .6rem .9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  align-items: center;
  gap: .6rem;
}

.menu-toggle:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--primary) 40%, transparent);
  outline-offset: 2px;
}

/* Burger Icon with animated X via aria-expanded */
.menu-toggle .burger {
  position: relative;
  width: 20px;
  height: 14px;
}

.menu-toggle .burger::before,
.menu-toggle .burger::after,
.menu-toggle .burger {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle .burger {
  top: 6px;
}

/* mittlere Linie */
.menu-toggle .burger::before {
  top: 0;
}

/* obere  */
.menu-toggle .burger::after {
  bottom: 0;
}

/* untere */

.menu-toggle[aria-expanded="true"] .burger {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .burger::before {
  transform: translateY(6px) rotate(45deg);
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .burger::after {
  transform: translateY(-6px) rotate(-45deg);
  transform-origin: center;
}

/* --------- Desktop layout --------- */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex;
    gap: 1rem;
  }

  .nav a {
    padding: .5rem .6rem;
    border-radius: .5rem;
  }

  .nav a[aria-current="page"] {
    font-weight: 700;
  }

  .menu-text {
    display: none;
  }
}

/* --------- Mobile Off-Canvas --------- */
@media (max-width: 767.98px) {
  .menu-toggle {
    display: inline-flex;
  }

  .menu-text {
    font-size: .95rem;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    /* rechts andocken */
    width: min(82vw, 320px);
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility .28s step-end;
    z-index: 51;
    /* über Overlay */
  }

  .nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform .28s ease, opacity .28s ease, visibility 0s;
  }

  .nav a {
    padding: .9rem .8rem;
    border-radius: .6rem;
    border: 1px solid transparent;
    font-weight: 600;
  }

  .nav a:active {
    transform: translateY(1px);
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .28);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s step-end;
    z-index: 49;
    /* unter Nav, über Seite */
  }

  .nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease, visibility 0s;
  }

  /* Body scroll lock when open */
  body.no-scroll {
    overflow: hidden;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  text-align: center;
  padding-block: var(--space-xl) var(--space-lg);
  background: linear-gradient(130deg, #e3f7fa, #fff5e7 65%);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.hero p {
  max-width: 650px;
  margin: .9rem auto 1.2rem;
  font-size: 1.22rem;
  color: var(--text-muted);
}

/* Aufzählung tight unter dem Text */
.hero ul {
  list-style: none;
  padding-left: 0;
  margin: .6rem auto 0;
  max-width: 650px;
  display: grid;
  gap: .5rem;
}

.hero ul li::marker {
  content: "";
}

/* Safety */
.hero ul+.hero-cta {
  margin-top: var(--space);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.2rem;
}

@media (max-width: 600px) {
  .hero {
    padding-block: var(--space-lg) var(--space);
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero ul {
    text-align: left;
    padding-left: 1rem;
  }
}

/* =========================================================
   Buttons
   ========================================================= */
/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-size: 1rem;
  line-height: 1.5;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 30%, transparent);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  background: var(--primary-active);
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
  /* Better than border to avoid layout shift */
}

.btn-ghost:hover {
  background: color-mix(in oklab, var(--primary) 8%, transparent);
  color: var(--primary-hover);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding-block: var(--space-xl);
}

.section.alt {
  background: #eef4f3;
}

/* Brand-Gradient für „Warum EV24?“ */
.section--brand {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #e3f7fa 0%, #fff5e7 65%);
  border-block: 1px solid var(--border);
  padding-bottom: calc(var(--space-xl) + .6rem);
}

.section--brand::before,
.section--brand::after {
  content: "";
  position: absolute;
  pointer-events: none;
  filter: blur(2px);
}

.section--brand::before {
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(closest-side, rgba(25, 163, 182, .18), transparent 70%);
}

.section--brand::after {
  bottom: -140px;
  left: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(230, 130, 10, .14), transparent 70%);
}

.section--brand .cards {
  gap: calc(var(--space-lg) + .4rem);
  margin-top: var(--space-lg);
}

.section--brand .card {
  background: var(--surface-elevated);
  backdrop-filter: blur(8px);
}

.section--brand+.section {
  padding-top: calc(var(--space-xl) + .4rem);
}

/* =========================================================
   Cards
   ========================================================= */
/* =========================================================
   Cards
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space);
}

.card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklab, var(--primary) 30%, transparent);
}

/* Trust Utilities */
.trust-badge-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.trust-badge-container:hover {
  opacity: 1;
  filter: grayscale(0);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-elevated);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.rating-stars {
  color: var(--accent);
}


/* =========================================================
   Steps (So funktioniert EV24)
   ========================================================= */
.steps {
  display: grid;
  gap: 1rem;
  list-style: none;
  counter-reset: step;
  margin-top: var(--space);
}

.steps li {
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 3.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  backdrop-filter: blur(8px);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

/* =========================================================
   Forms (Kontakt)
   ========================================================= */
.form {
  display: grid;
  gap: 1rem;
  margin-top: var(--space);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

label {
  display: grid;
  gap: .35rem;
  font-weight: 600;
  color: var(--text);
}

input,
textarea,
select {
  padding: 1rem 1.2rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  /* Safari/Autofill */
  caret-color: var(--primary);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 25%, transparent);
}

/* Chrome/Safari Autofill fix */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--text) !important;
  box-shadow: 0 0 0 1000px var(--surface) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Consent Checkbox + Text */
.consent {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}

.consent input[type="checkbox"] {
  margin-top: .3rem;
}

/* =========================================================
   Cookie Bubble (schwebend)
   ========================================================= */
.cookie {
  position: fixed;
  right: 26px;
  bottom: 26px;
  display: none;
  flex-direction: column;
  gap: .8rem;
  width: 300px;
  padding: 1.3rem 1.5rem;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 9999;
}

.cookie.show {
  display: flex;
}

.cookie .cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
}

@media (max-width: 560px) {
  .cookie {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space);
  background: var(--bg-subtle);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner .logo-image {
  height: 40px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.875rem;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* =========================================================
   Team (Grid für 20+ Mitglieder)
   ========================================================= */
.team-hero {
  text-align: center;
  padding-block: var(--space-xl) var(--space-lg);
  background: linear-gradient(130deg, #e3f7fa, #fff5e7 65%);
}

.team-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.team-hero p {
  max-width: 740px;
  margin: .8rem auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-lg);
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklab, var(--primary) 30%, transparent);
}

/* Portraits mit mehr Kopf-Freiraum */
.avatar {
  width: 100%;
  aspect-ratio: 3 / 4;
  /* etwas höher → weniger Beschnitt */
  object-fit: cover;
  object-position: 50% var(--face-y, 18%);
  /* Fokus leicht nach oben */
  border-radius: calc(var(--radius) - 2px);
  background: #eef4f3;
  box-shadow: inset 0 0 0 1px var(--border);
}

.team-name {
  margin-top: .9rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.team-role {
  margin-top: .25rem;
  color: var(--text-muted);
  font-size: .95rem;
}

.team-meta {
  margin-top: .6rem;
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--text-muted);
}

.chip {
  border: 1px solid var(--border);
  padding: .25rem .6rem;
  border-radius: var(--radius-full);
  background: var(--surface);
}

/* =========================================================
   Motion Utilities
   ========================================================= */
.fade {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp .8s var(--ease) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}