/* ===========================================
   BWAG – Modernes CSS
   Barrierefrei, Responsive, ohne JS lauffähig
=========================================== */

/* ── CSS VARIABLEN ── */
:root {
  --blau: #004394;
  --blau-hell: #489bd1;
  --blau-bg: #e8f2fa;
  --akzent: #489bd1;
  --text: #1e293b;
  --text-muted: #4b5563;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,65,148,0.12);
  --max-w: 1200px;
  --header-h: 72px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--blau-hell); }
ul { list-style: none; }

/* ── SKIP-LINK (Barrierefreiheit) ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 16px;
  background: var(--blau);
  color: #fff;
  z-index: 10000;
  font-size: 0.9rem;
}
.skip-link:focus {
  left: 0;
  width: auto;
  height: auto;
}

/* ══════════════════════════════════
   HEADER & NAVIGATION
══════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,65,148,0.08);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  height: var(--header-h);
}

.header-inner .nav-list {
  margin-left: auto;
}

.header-logo img {
  height: 55px;
  width: auto;
  transition: height 0.3s;
}

.site-header.scrolled .header-logo img {
  height: 42px;
}

/* NAV */
.nav-list {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-list a {
  padding: 8px 12px;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color 0.3s;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--blau);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-list a:hover {
  color: var(--blau);
}

.nav-list a:hover::after {
  transform: scaleX(1);
}

.nav-list a[aria-current="page"] {
  color: var(--blau);
}

.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Hamburger (CSS-only) */
.menu-toggle-input { display: none; }
.hamburger {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
  margin-left: auto;
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .header-inner { padding: 0 16px; }

  .header-logo img { height: 40px; }
  .site-header.scrolled .header-logo img { height: 34px; }

  .hamburger {
    display: block;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,65,148,0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    padding: 8px 0;
    gap: 0;
    display: none;
  }

  .nav-list a {
    padding: 14px 20px;
    border-radius: 0;
    font-size: 0.95rem;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    transition: color 0.3s, border-color 0.3s;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-list a:hover {
    border-left-color: var(--blau-hell);
  }

  .nav-list a[aria-current="page"] {
    border-left-color: var(--blau);
  }

  .menu-toggle-input:checked ~ .nav-list {
    display: flex;
  }
}

/* ══════════════════════════════════
   HERO SECTION (Home)
══════════════════════════════════ */
.hero {
  position: relative;
  background: #004394;
  color: #fff;
  padding: 100px 24px 80px;
  overflow: hidden;
  /* CSS-only Parallax via clip + fixed */
  clip: rect(auto, auto, auto, auto);
  -webkit-clip-path: inset(0);
  clip-path: inset(0);
}

/* Hintergrundbild mit Parallax */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 200%;
  height: 200vh;
  object-fit: cover;
  object-position: center 30%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Monochrom in CI-Dunkelblau */
  filter: grayscale(100%) brightness(1) sepia(100%) hue-rotate(190deg) saturate(2.5);
}

/* Langsame Drehung – nur wenn JS die Klasse setzt */
.js-active .hero-bg img {
  animation: heroRotate 60s linear infinite;
}

@keyframes heroRotate {
  0%   { transform: translate(-50%, -50%) rotate(0deg) scale(1.1); }
  50%  { transform: translate(-50%, -50%) rotate(180deg) scale(1.15); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(1.1); }
}

/* Overlay für Lesbarkeit + CI-Farbe */
.hero-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,67,148,0.35) 0%, rgba(0,67,148,0.15) 50%, rgba(0,67,148,0.4) 100%);
}

/* BWAG Buchstaben-Animation */
.hero-letters {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.5vw, 12px);
}

.letter {
  font-size: clamp(7rem, 26vw, 26rem);
  font-weight: 900;
  color: #fff;
  opacity: 0.3;
  display: block;
  line-height: 1;
  will-change: transform, opacity;
  text-shadow: 0 4px 30px rgba(0,67,148,0.3);
}

/* Jeder Buchstabe kommt aus einer anderen Richtung */
.letter-b {
  animation: letterB 10s ease-in-out infinite;
}
.letter-w {
  animation: letterW 10s ease-in-out infinite;
}
.letter-a {
  animation: letterA 10s ease-in-out infinite;
}
.letter-g {
  animation: letterG 10s ease-in-out infinite;
}

/* B kommt von links oben */
@keyframes letterB {
  0%   { transform: translate(-120px, -80px) rotate(-15deg) scale(0.7); opacity: 0; }
  20%  { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.3; }
  50%  { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.3; }
  70%  { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.3; }
  90%  { transform: translate(-120px, -80px) rotate(-15deg) scale(0.7); opacity: 0; }
  100% { transform: translate(-120px, -80px) rotate(-15deg) scale(0.7); opacity: 0; }
}

/* W kommt von oben */
@keyframes letterW {
  0%   { transform: translate(40px, -120px) rotate(10deg) scale(0.6); opacity: 0; }
  20%  { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.3; }
  50%  { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.3; }
  70%  { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.3; }
  90%  { transform: translate(40px, -120px) rotate(10deg) scale(0.6); opacity: 0; }
  100% { transform: translate(40px, -120px) rotate(10deg) scale(0.6); opacity: 0; }
}

/* A kommt von unten */
@keyframes letterA {
  0%   { transform: translate(-30px, 120px) rotate(-8deg) scale(0.65); opacity: 0; }
  20%  { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.3; }
  50%  { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.3; }
  70%  { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.3; }
  90%  { transform: translate(-30px, 120px) rotate(-8deg) scale(0.65); opacity: 0; }
  100% { transform: translate(-30px, 120px) rotate(-8deg) scale(0.65); opacity: 0; }
}

/* G kommt von rechts unten */
@keyframes letterG {
  0%   { transform: translate(130px, 90px) rotate(12deg) scale(0.7); opacity: 0; }
  20%  { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.3; }
  50%  { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.3; }
  70%  { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.3; }
  90%  { transform: translate(130px, 90px) rotate(12deg) scale(0.7); opacity: 0; }
  100% { transform: translate(130px, 90px) rotate(12deg) scale(0.7); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.hero-text p {
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 14px 28px;
  background: #ffffff;
  color: var(--blau);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.3);
  background: var(--blau-bg);
  color: var(--blau);
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.3s, background 0.3s;
}

.hero-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}

.hero-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: #ffffff;
}

.hero-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 16px 36px;
  }
  /* Parallax Fallback: auf Mobile kein fixed (iOS-Bug) */
  .hero-bg img {
    position: absolute;
    width: 200%;
    height: 200%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .hero-bg::after {
    position: absolute;
    inset: 0;
  }
  .letter { font-size: clamp(5rem, 22vw, 14rem); }
  .hero-letters { gap: 2px; }
  .hero-text h1 { font-size: 1.05rem; margin-bottom: 10px; }
  .hero-text p { font-size: 0.9rem; }
  .hero-cta {
    padding: 12px 24px;
    font-size: 0.9rem;
    margin-top: 20px;
    min-height: 48px;
  }
}

/* ══════════════════════════════════
   PAGE TITLE BAR (Unterseiten)
══════════════════════════════════ */
.page-title-bar {
  background: linear-gradient(135deg, #004394 0%, #489bd1 100%);
  color: #fff;
  padding: 14px 24px;
  text-align: center;
}

.page-title-bar h1 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.page-title-bar p {
  margin-top: 4px;
  color: rgba(255,255,255,0.92);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .page-title-bar { padding: 12px 16px; }
  .page-title-bar p { font-size: 0.78rem; }
}

/* ══════════════════════════════════
   GRUNDLAGEN SECTION (Home)
══════════════════════════════════ */
.grundlagen {
  max-width: var(--max-w);
  margin: 80px auto;
  padding: 0 24px;
}

.grundlagen-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.grundlagen-subheadline {
  font-size: 1.15rem;
  color: var(--blau);
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 24px;
  max-width: 680px;
}

.grundlagen h2 {
  font-size: 1.8rem;
  color: var(--blau);
  margin-bottom: 16px;
}

.grundlagen-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

.grundlagen-list {
  padding-left: 0;
  counter-reset: item;
}

.grundlagen-list li {
  padding: 16px 16px 16px 56px;
  margin-bottom: 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  transition: transform 0.3s, box-shadow 0.3s;
}

.grundlagen-list li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.grundlagen-list li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  background: var(--blau);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .grundlagen { margin: 36px auto; padding: 0 16px; }
  .grundlagen-inner { grid-template-columns: 1fr; gap: 24px; }
  .grundlagen h2 { font-size: 1.4rem; }
  .grundlagen-text p { font-size: 0.9rem; }
  .grundlagen-list li {
    padding: 14px 14px 14px 48px;
    font-size: 0.88rem;
  }
  .grundlagen-list li::before {
    left: 12px;
    top: 14px;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
  .kontakt-sidebar {
    position: static;
    padding: 24px;
  }
}

/* ══════════════════════════════════
   KONTAKT-INFO SECTION (Home Sidebar)
══════════════════════════════════ */
.kontakt-sidebar {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.kontakt-sidebar h3 {
  color: var(--blau);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.kontakt-sidebar p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
  line-height: 1.6;
}

.kontakt-sidebar strong {
  color: var(--text);
}

.kontakt-sidebar .bank-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

/* ══════════════════════════════════
   DELEGIERTE
══════════════════════════════════ */
.delegierte-section {
  max-width: var(--max-w);
  margin: 60px auto 80px;
  padding: 0 24px;
}

.delegierte-section > p {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.delegierte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.delegierte-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.delegierte-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.delegierte-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.delegierte-card:hover img {
  transform: scale(1.05);
}

.delegierte-card h3 {
  font-size: 0.9rem;
  color: var(--blau);
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.delegierte-card .name {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.delegierte-card .org {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .delegierte-section {
    margin: 32px auto 48px;
    padding: 0 16px;
  }
  .delegierte-section > p {
    font-size: 0.92rem;
    margin-bottom: 28px;
    text-align: left;
  }
  .delegierte-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .delegierte-card {
    flex-direction: row;
    text-align: left;
    gap: 14px;
    padding: 16px;
    border-radius: 10px;
    flex-wrap: wrap;
  }
  .delegierte-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .delegierte-card h3 {
    font-size: 0.85rem;
    flex: 1 1 0;
    min-width: 0;
  }
  .delegierte-card .name,
  .delegierte-card .org {
    width: 100%;
    font-size: 0.78rem;
  }
}

/* ══════════════════════════════════
   CONTENT AREA (Unterseiten)
══════════════════════════════════ */
.page-content {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 24px;
}

.content-wrapper {
  background: var(--card);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-wrapper h2 {
  font-size: 1.5rem;
  color: var(--blau);
  margin-bottom: 24px;
}

.content-wrapper h3 {
  font-size: 1.1rem;
  color: var(--blau);
  margin-top: 28px;
  margin-bottom: 10px;
}

.content-wrapper p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 14px;
}

.content-wrapper ul {
  margin: 8px 0 16px 24px;
  list-style: disc;
}

.content-wrapper ul li {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 4px;
}

.content-wrapper a {
  color: var(--blau);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-wrapper a:hover {
  color: var(--blau-hell);
}

@media (max-width: 768px) {
  .page-content { margin: 24px auto; padding: 0 16px; }
  .content-wrapper { padding: 20px 16px; }
  .content-wrapper h2 { font-size: 1.2rem; }
  .content-wrapper h3 { font-size: 1rem; margin-top: 22px; }
  .content-wrapper p { font-size: 0.88rem; line-height: 1.7; }
  .content-wrapper ul li { font-size: 0.85rem; }
  .content-wrapper ul { margin-left: 18px; }
}

/* ══════════════════════════════════
   KONTAKT-SEITE: 2 Spalten
══════════════════════════════════ */
.kontakt-layout {
  max-width: var(--max-w);
  margin: 60px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.kontakt-adresse {
  background: linear-gradient(135deg, #004394, #489bd1);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.kontakt-adresse h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.kontakt-adresse .info-block {
  margin-bottom: 20px;
}

.kontakt-adresse .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.kontakt-adresse .value {
  font-size: 0.95rem;
  line-height: 1.6;
}

.kontakt-adresse a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kontakt-adresse a:hover {
  color: var(--blau-bg);
}

.kontakt-adresse .info-row {
  display: flex;
  gap: 32px;
}

/* KONTAKTFORMULAR */
.kontakt-form-wrapper {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.kontakt-form-wrapper h2 {
  font-size: 1.4rem;
  color: var(--blau);
  margin-bottom: 24px;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.form-group label .required {
  color: #ef4444;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blau-hell);
  box-shadow: 0 0 0 3px rgba(72,155,209,0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.78rem;
  color: #ef4444;
  background: #fef2f2;
  padding: 4px 8px;
  border-radius: 4px;
  display: none;
  margin-top: 2px;
}

/* Honeypot – unsichtbar */
.hnpt { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Checkbox-Gruppen */
.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}

.form-check input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--blau);
  cursor: pointer;
}

.form-check a {
  text-decoration: underline;
}

.btn-senden {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--blau);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  align-self: flex-end;
}

.btn-senden:hover {
  background: var(--blau-hell);
  transform: translateY(-2px);
}

.btn-senden:focus-visible {
  outline: 3px solid var(--blau-hell);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .kontakt-layout {
    grid-template-columns: 1fr;
    margin: 24px auto;
    padding: 0 16px;
    gap: 20px;
  }
  .kontakt-adresse {
    padding: 24px;
    border-radius: 10px;
  }
  .kontakt-adresse h2 { font-size: 1.2rem; margin-bottom: 18px; }
  .kontakt-adresse .info-row { flex-direction: column; gap: 14px; }
  .kontakt-form-wrapper {
    padding: 20px 16px;
    border-radius: 10px;
  }
  .kontakt-form-wrapper h2 { font-size: 1.2rem; }
  .kontakt-form { gap: 16px; }
  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 1rem; /* verhindert iOS-Zoom */
  }
  .form-check {
    font-size: 0.82rem;
    gap: 8px;
  }
  .form-check input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }
  .btn-senden {
    width: 100%;
    padding: 16px;
    font-size: 0.95rem;
    min-height: 48px;
    align-self: stretch;
  }
  .bestaetigung-box { padding: 40px 20px; }
}

/* Bestätigung / Fehler */
.bestaetigung-box {
  text-align: center;
  padding: 60px 40px;
}

.bestaetigung-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.bestaetigung-box h2 {
  color: var(--blau);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.bestaetigung-box p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.bestaetigung-box.fehler .bestaetigung-icon,
.bestaetigung-box.fehler h2 {
  color: var(--text-muted);
}

.btn-zurueck {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: var(--blau);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.3s;
}
.btn-zurueck:hover {
  background: var(--blau-hell);
  color: #fff;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.site-footer {
  background: var(--blau);
  color: #fff;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.88);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-col a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 16px 24px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
}

.footer-bottom a {
  color: rgba(255,255,255,0.9);
}
.footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .site-footer { margin-top: 48px; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 28px 16px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand p { font-size: 0.82rem; }
  .footer-col h4 { font-size: 0.8rem; margin-bottom: 10px; }
  .footer-col a {
    font-size: 0.82rem;
    padding: 5px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .footer-bottom {
    padding: 12px 16px;
    font-size: 0.72rem;
  }
}

@media (max-width: 420px) {
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* ══════════════════════════════════
   ANIMATIONEN (CSS)
══════════════════════════════════ */

/* Page Fade-in */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.loaded {
  opacity: 1;
}

/* noscript: sofort sichtbar */
/* (wird per <noscript><style> im HTML gesetzt) */

/* Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger-Delay über data-delay oder CSS-Klasse */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* Hero-Animation */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text { animation: heroSlideUp 0.8s ease both; }
.hero-cards { animation: heroSlideUp 0.8s ease 0.3s both; }

/* Hover-Lift Utility */
.lift {
  transition: transform 0.3s, box-shadow 0.3s;
}
.lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ══════════════════════════════════
   DATENSCHUTZ Styles
══════════════════════════════════ */
.datenschutz-stand {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

/* ══════════════════════════════════
   FOCUS-VISIBLE (Barrierefreiheit)
══════════════════════════════════ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[type="checkbox"]:focus-visible {
  outline: 3px solid var(--blau-hell);
  outline-offset: 2px;
}

/* ══════════════════════════════════
   REDUCED MOTION
══════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg img { position: absolute; width: 100%; height: 100%; top: 0; left: 0; transform: none; animation: none !important; }
  .letter { animation: none !important; opacity: 0.06; transform: none; }
}

/* ══════════════════════════════════
   PRINT
══════════════════════════════════ */
@media print {
  .site-header, .site-footer, .hero-cta, .btn-senden { display: none; }
  body { opacity: 1; color: #000; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════
   SAFE AREA (Notch-Geräte)
══════════════════════════════════ */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer .footer-bottom {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .hero { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}

/* ══════════════════════════════════
   TOUCH: Hover-Effekte deaktivieren
══════════════════════════════════ */
@media (hover: none) {
  .hero-card:hover { transform: none; background: rgba(255,255,255,0.1); }
  .delegierte-card:hover { transform: none; box-shadow: var(--shadow); }
  .delegierte-card:hover img { transform: none; }
  .grundlagen-list li:hover { transform: none; box-shadow: var(--shadow); }
  .footer-col a:hover { padding-left: 0; }
}
