/* ===================================================
   HERZSCHLAG – Dein Frauensportclub
   Website Redesign 2026
   =================================================== */


/* === CSS VARIABLES === */
:root {
  --teal:        #2B9EAD;
  --teal-hover:  #249099;
  --teal-mid:    #1B7A89;
  --teal-dark:   #135D6E;
  --teal-deeper: #0C4554;
  --gold:        #C9A84C;
  --gold-light:  #DCBB6A;
  --gold-pale:   #FAF3E0;
  --white:       #FFFFFF;
  --off-white:   #F7FAFB;
  --light:       #EDF4F6;
  --text:        #1A2D35;
  --text-mid:    #3D5A65;
  --text-light:  #6B8A96;
  --section-pad: 100px;
  --container:   1200px;
  --radius:      16px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.07);
  --shadow-md:   0 8px 40px rgba(0,0,0,0.12);
  --shadow-teal: 0 4px 20px rgba(43,158,173,0.35);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Belt & braces against sideways swiping on mobile: body alone is unreliable
     on iOS Safari. "clip" (not "hidden") because hidden would break any future
     position:sticky – the site currently uses only position:fixed, which is safe.
     Browsers without clip support (Safari <16) fall back to body{overflow-x:hidden}. */
  overflow-x: clip;
}
body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
button { cursor: pointer; }
a, button, .btn, label, summary, input[type="checkbox"], input[type="radio"], .faq-question, .pt-btn { -webkit-tap-highlight-color: transparent; }

/* === TYPOGRAPHY === */
h1,h2,h3,h4,h5 { font-family: 'Outfit', sans-serif; line-height: 1.15; font-weight: 700; }
.script { font-family: 'Caveat', cursive; }

/* === CONTAINER === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  /* --teal-mid statt --teal: Weiss darauf erreicht 5.01 statt 3.18 (WCAG AA). */
  background: var(--teal-mid);
  color: white;
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(43,158,173,0.5);
}
.btn-outline {
  background: transparent;
  /* --teal-mid: 5.01 auf Weiss statt 3.18 (WCAG AA). */
  color: var(--teal-mid);
  border: 2px solid var(--teal-mid);
}
.btn-outline:hover {
  background: var(--teal-mid);
  color: white;
  transform: translateY(-2px);
}
.btn-white {
  background: white;
  color: var(--teal-dark);
  box-shadow: var(--shadow);
}
.btn-white:hover {
  background: var(--gold-pale);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: white;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 44px; font-size: 1rem; }
.btn-sm { padding: 10px 22px; font-size: 0.82rem; }

/* === SECTION HEADINGS === */
section { padding: var(--section-pad) 0; }
.section-label {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
  line-height: 1.75;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }
.text-white { color: white !important; }
.text-white .section-label { color: var(--gold-light); }
.text-white .section-subtitle { color: rgba(255,255,255,0.75); }

/* ===========================
   NAVIGATION
   =========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  /* Nur die drei Eigenschaften, die sich bei .scrolled wirklich aendern.
     "all" haette jede animierbare Eigenschaft mitgenommen. */
  transition: padding 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
  background: var(--teal-deeper);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-heart {
  width: 34px;
  height: 32px;
  color: var(--gold);
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Caveat', cursive;
  font-size: 1.65rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links > li > a {
  font-weight: 500;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 2px;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
  border-radius: 2px;
}
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { width: 100%; }
.nav-links > li > a:hover { color: white; }

/* Nav CTA */
.nav-cta {
  background: var(--teal) !important;
  color: white !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.04em !important;
  box-shadow: var(--shadow-teal) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--teal-hover) !important; transform: translateY(-1px); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  min-width: 230px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  border: 1px solid rgba(0,0,0,0.05);
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}
.dropdown li a {
  display: block;
  padding: 11px 20px;
  color: var(--text) !important;
  font-size: 0.87rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  transition: background 0.2s, color 0.2s, padding 0.2s;
}
.dropdown li a::after { display: none !important; }
.dropdown li a:hover {
  background: var(--light);
  color: var(--teal) !important;
  padding-left: 26px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  margin: -6px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--teal-deeper);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow-y: auto;
  padding: 60px 24px 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold-light); }
.mobile-menu .mobile-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.2);
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  line-height: 1;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===========================
   HERO
   =========================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/img/hero-studio.webp');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(12,69,84,0.75) 0%,
    rgba(19,93,110,0.65) 50%,
    rgba(12,69,84,0.82) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 0 24px;
  max-width: 820px;
}
.hero-logo {
  margin-bottom: 36px;
  animation: fadeDown 0.9s ease both;
}
.hero-logo-heart {
  width: 68px;
  height: 64px;
  color: var(--gold);
  margin: 0 auto 14px;
}
.hero-logo-img {
  height: clamp(120px, 18vw, 200px);
  width: auto;
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.25));
}
.hero-logo-name {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 0.9;
  display: block;
}
.hero-logo-sub {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-top: 8px;
}
.hero-headline {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 900;
  color: white;
  line-height: 1.0;
  margin-bottom: 20px;
  animation: fadeUp 0.9s 0.25s ease both;
}
.hero-subline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 44px;
  font-weight: 300;
  letter-spacing: 0.01em;
  animation: fadeUp 0.9s 0.45s ease both;
}
.hero-cta { animation: fadeUp 0.9s 0.65s ease both; }
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s 2s infinite;
}
.hero-scroll-indicator svg { width: 18px; height: 18px; }

/* ===========================
   ABOUT
   =========================== */
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--gold);
  color: white;
  padding: 22px 26px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge strong { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; }
.about-badge span { font-size: 0.78rem; opacity: 0.9; }
.about-features {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 32px 0 40px;
}
.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.about-feature-icon {
  width: 50px; height: 50px;
  background: var(--light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}
.about-feature-icon svg { width: 22px; height: 22px; }
.about-feature-text strong { display: block; font-weight: 600; margin-bottom: 3px; }
.about-feature-text span { font-size: 0.9rem; color: var(--text-mid); }

/* ===========================
   SERVICES GRID
   =========================== */
#leistungen-home { background: var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.service-card {
  background: var(--teal-dark);
  border-radius: var(--radius);
  padding: 36px 28px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-card-icon {
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--gold-light);
}
.service-card-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.service-card p { font-size: 0.9rem; color: rgba(255,255,255,0.82); line-height: 1.7; }

/* ===========================
   NEW OFFERINGS
   =========================== */
#angebote { background: var(--white); }
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.offering-card {
  background: white;
  border: 1px solid var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.offering-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.offering-card-img {
  height: 220px;
  overflow: hidden;
  background: var(--light);
}
.offering-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.offering-card:hover .offering-card-img img { transform: scale(1.06); }
.offering-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.offering-badge {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.offering-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.offering-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  flex: 1;
  margin-bottom: 22px;
  line-height: 1.75;
}
.offering-card .btn { align-self: flex-start; }

/* ===========================
   MEMBERSHIP PRICING
   =========================== */
.pricing-section { background: var(--teal-deeper); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.pricing-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.pricing-card:hover, .pricing-card.featured {
  background: rgba(255,255,255,0.11);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.pricing-img {
  height: 200px;
  overflow: hidden;
}
.pricing-img img { width: 100%; height: 100%; object-fit: cover; }
.pricing-body { padding: 28px; }
.pricing-feat-badge {
  display: inline-block;
  background: var(--gold);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.pricing-card h3 { font-size: 1.35rem; color: white; margin-bottom: 12px; }
.pricing-card p { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-bottom: 24px; line-height: 1.7; }
.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.pricing-price-row strong { font-size: 2.2rem; font-weight: 800; color: white; }
.pricing-price-row span { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.pricing-duration {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 26px;
}
.pricing-card .btn { width: 100%; }

/* Full pricing page – tier options */
.pricing-full-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
}
.pricing-full-header {
  background: var(--teal-dark);
  color: white;
  padding: 32px 40px;
}
.pricing-full-header h2 { color: white; margin-bottom: 8px; }
.pricing-full-header p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.pricing-full-body { padding: 40px; }
.pricing-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.pricing-option {
  border: 2px solid var(--light);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.pricing-option:hover, .pricing-option.best {
  border-color: var(--teal);
  transform: translateY(-3px);
}
.pricing-option.best { border-color: var(--gold); }
.pricing-option-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}
.pricing-option-months { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 12px; }
.pricing-option-price { font-size: 1.8rem; font-weight: 800; color: var(--teal-dark); }
.pricing-option-price sub { font-size: 0.9rem; font-weight: 400; color: var(--text-mid); }

/* ===========================
   TEAM
   =========================== */
#team { background: var(--off-white); }
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
}
.team-card {
  flex: 0 0 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
/* Nur Geraete mit echtem Zeiger: auf Touch bliebe :hover sonst kleben. */
@media (hover: hover) {
  .team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
  }
}
.team-card-photo {
  height: 380px;
  overflow: hidden;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s;
}
@media (hover: hover) {
  .team-card:hover .team-card-photo img { transform: scale(1.04); }
}
.team-avatar {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, var(--teal-mid), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Caveat', cursive;
  font-size: 4.5rem;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
}
.team-card-body { padding: 24px 20px; }
.team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-role {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 10px;
}
.team-card p { font-size: 0.86rem; color: var(--text-mid); line-height: 1.6; }

/* ===========================
   NEWSLETTER
   =========================== */
#newsletter { background: var(--gold-pale); padding: 80px 0; }
.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.newsletter-form { display: flex; flex-direction: column; gap: 14px; }
.newsletter-form input {
  padding: 14px 22px;
  border: 2px solid rgba(201,168,76,0.3);
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  background: white;
  outline: none;
  color: var(--text);
  transition: border-color 0.3s;
}
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form input::placeholder { color: var(--text-light); }

/* ===========================
   CTA BANNER
   =========================== */
#cta-banner {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('/img/hero-studio.webp');
  background-size: cover;
  background-position: center;
  /* KEIN background-attachment: fixed!
     Das zwingt den Browser, die Flaeche bei JEDEM Scroll-Frame neu zu rastern
     (Hauptursache fuer ruckelndes Scrollen). iOS/Safari ignoriert es ohnehin,
     mobil sah es also schon immer so aus wie jetzt. */
}
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,69,84,0.88) 0%, rgba(19,93,110,0.82) 100%);
}
.cta-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}
.cta-banner-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: white;
  margin-bottom: 16px;
}
.cta-banner-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 40px;
}
.cta-banner-content .section-label { color: var(--gold-light); }

/* ===========================
   PAGE HERO (subpages)
   =========================== */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--teal-deeper) 0%, var(--teal-dark) 100%);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 300px; height: 300px;
  background: rgba(201,168,76,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero h1 { color: white; margin-bottom: 16px; font-size: clamp(2rem, 5vw, 3.5rem); }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.15rem; max-width: 600px; margin: 0 auto 28px; }
.page-hero .section-label { color: var(--gold-light); margin-bottom: 12px; font-size: 1.4rem; }

/* Page hero with photo background */
.page-hero-photo {
  position: relative;
}
.page-hero-photo .phero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-photo .phero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,69,84,0.85), rgba(19,93,110,0.78));
}
.page-hero-photo .container { position: relative; z-index: 1; }

/* EMP Hero – linksausgerichtet, kompakter Badge */
.emp-hero .container { text-align: left; }
.emp-hero-content { max-width: 640px; }
.emp-hero h1 { text-align: left; }
.emp-hero p { text-align: left; margin: 0; }
.emp-hero-badge {
  display: inline-block;
  background: var(--gold);
  color: #1A2D35;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.emp-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 40px;
}

/* ===========================
   CONTENT SECTIONS (subpages)
   =========================== */
.content-section { padding: 80px 0; }
.content-section.bg-light { background: var(--off-white); }
.content-section.bg-teal { background: var(--teal-deeper); color: white; }
.content-section.bg-teal .section-title { color: white; }
.content-section.bg-teal .section-subtitle { color: rgba(255,255,255,0.75); }
.content-section.bg-gold { background: var(--gold-pale); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.two-col.reverse .col-img { order: 2; }
.two-col.reverse .col-text { order: 1; }
.col-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.col-img.tall img { height: 520px; }
.col-text .section-subtitle { margin-bottom: 28px; }

/* Check lists */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.check-list li::before {
  content: '';
  width: 20px; height: 20px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}
.check-list.dark li::before { background-color: var(--gold); }

/* Benefit cards */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.benefit-card {
  background: white;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.benefit-icon {
  width: 56px; height: 56px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--teal);
  font-size: 1.6rem;
}
.benefit-card h4 { font-size: 1rem; margin-bottom: 8px; }
.benefit-card p { font-size: 0.87rem; color: var(--text-mid); line-height: 1.65; }

/* Step cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.step-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--light);
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Outfit', sans-serif;
}
.step-card h4 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.87rem; color: var(--text-mid); line-height: 1.65; }

/* FAQ accordion */
.faq-list { margin-top: 40px; }
.faq-item {
  border-bottom: 1px solid var(--light);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  gap: 16px;
}
.faq-question svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--teal);
  transition: transform 0.3s;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  padding-bottom: 24px;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* Target audience cards */
.target-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.target-item {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.target-item svg { width: 20px; height: 20px; color: var(--gold-light); flex-shrink: 0; margin-top: 2px; }
.target-item p { font-size: 0.9rem; color: rgba(255,255,255,0.85); }

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-deeper));
  border-radius: var(--radius);
  padding: 48px;
  color: white;
  text-align: center;
}
.highlight-box h3 { color: white; font-size: 1.6rem; margin-bottom: 12px; }
.highlight-box p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }

/* Course cards */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.course-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.course-card-img {
  height: 180px;
  overflow: hidden;
}
.course-card-img img { width: 100%; height: 100%; object-fit: cover; }
.course-card-body { padding: 24px; }
.course-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.course-card p { font-size: 0.87rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 16px; }
.course-tag {
  display: inline-block;
  background: var(--light);
  color: var(--teal-mid);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Contact / Probetraining form */
.form-card {
  background: white;
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-mid); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 18px;
  border: 2px solid var(--light);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  background: var(--off-white);
  transition: border-color 0.3s, background 0.3s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: white;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }

.check-group { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 6px; }
.check-option { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; font-weight: 500; color: var(--text-mid); padding: 8px 4px; min-height: 44px; -webkit-tap-highlight-color: transparent; }
.check-option input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; cursor: pointer; accent-color: var(--teal); }

/* Info box */
.info-box {
  background: var(--light);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box p { font-size: 0.92rem; color: var(--text-mid); }

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.87rem;
  line-height: 1.75;
  margin-top: 16px;
  color: rgba(255,255,255,0.55);
}
.footer-col h3,
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-col address { font-style: normal; }
.footer-col p { font-size: 0.87rem; margin-bottom: 7px; }
.footer-col a { color: rgba(255,255,255,0.55); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.49);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.49); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.60s; }

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===========================
   UTILITIES
   =========================== */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.gap-16 { gap: 16px; }
.flex { display: flex; align-items: center; gap: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 16px; }
.w-full { width: 100%; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .about-grid    { gap: 48px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .steps-grid    { grid-template-columns: repeat(2,1fr); }
  .benefit-grid  { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-grid    { grid-template-columns: 1fr; }
  .about-image-wrap { order: -1; }
  .about-badge { bottom: -16px; right: -8px; }
  .services-grid { grid-template-columns: 1fr; }
  .offerings-grid { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .team-grid .team-card { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
  .newsletter-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .two-col       { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse .col-img { order: 0; }
  .two-col.reverse .col-text { order: 0; }
  .course-grid   { grid-template-columns: repeat(2,1fr); }
  .steps-grid    { grid-template-columns: 1fr; }
  .benefit-grid  { grid-template-columns: 1fr; }
  .target-grid   { grid-template-columns: 1fr; }
  .form-grid     { grid-template-columns: 1fr; }
  .pricing-options-grid { grid-template-columns: 1fr; }
  .form-card     { padding: 32px 24px; }
  .highlight-box { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .team-grid { gap: 14px; }
  .team-grid .team-card { flex: 0 0 calc(50% - 7px); max-width: calc(50% - 7px); }
  .course-grid   { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.4rem; }
}

/* === WHATSAPP BUTTON === */
.whatsapp-fab {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  right: calc(28px + env(safe-area-inset-right, 0px));
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 890;
  transition: transform 0.3s ease, box-shadow 0.3s ease, margin-bottom 0.35s ease;
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}
.whatsapp-fab svg { width: 30px; height: 30px; fill: white; }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 28px;
  left: 28px;
  max-width: 400px;
  width: calc(100% - 56px);
  background: #1A2D35;
  color: white;
  padding: 20px 24px;
  z-index: 9998;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.15);
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hz-hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.cookie-banner p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  margin: 0 0 14px;
  line-height: 1.65;
}
.cookie-banner p a { color: #DCBB6A; text-decoration: underline; }
.cookie-accept-btn {
  background: #2B9EAD;
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s;
  display: block;
  width: 100%;
  text-align: center;
}
.cookie-accept-btn:hover { background: #249099; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
  align-items: start;
}
.testimonial-card {
  background: var(--off-white);
  border-radius: 16px;
  padding: 36px 32px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(43,158,173,0.12);
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Caveat', cursive;
  font-size: 7rem;
  color: var(--teal);
  opacity: 0.08;
  position: absolute;
  top: -8px; right: 18px;
  line-height: 1;
  pointer-events: none;
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
  margin-bottom: 18px;
}
.testimonial-stars svg { width: 17px; height: 17px; }
.testimonial-text {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
}
.testimonial-divider {
  width: 36px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  margin-bottom: 20px;
  opacity: 0.4;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.3;
}
.testimonial-author-info {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
  .whatsapp-fab { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

/* ===================== DESIGN UPGRADES ===================== */

/* Trust Ribbon */
.trust-ribbon {
  background: var(--teal-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0;
}
.trust-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.trust-heart {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}
.trust-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
}
.trust-text strong {
  /* Aufgehelltes Gold: 4.83 auf --teal-dark statt 4.03 (WCAG AA). */
  color: #E8CE8A;
  font-weight: 700;
}

/* Card Hover Effects */
.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(43,158,173,0.15);
}
.offering-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.offering-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.benefit-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.course-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Service Card Icon – Circle Background */
.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.service-card:hover .service-card-icon {
  transform: scale(1.1) rotate(5deg);
}
.service-card-icon svg {
  width: 26px;
  height: 26px;
  color: white;
}

/* Benefit Card Icon Hover */
.benefit-icon {
  transition: transform 0.25s ease;
}
.benefit-card:hover .benefit-icon {
  transform: scale(1.15) rotate(-5deg);
}

/* Featured Pricing Card Gold Glow */
.pricing-card.featured {
  box-shadow: 0 0 0 2px var(--gold), 0 20px 60px rgba(201,168,76,0.25);
  transform: scale(1.03);
  position: relative;
  z-index: 1;
}
.pricing-card.featured:hover {
  box-shadow: 0 0 0 2px var(--gold), 0 28px 70px rgba(201,168,76,0.35);
  transform: scale(1.04) translateY(-4px);
}

/* ===== WAVE DIVIDERS ===== */
.wave-divider {
  line-height: 0;
  overflow: hidden;
  margin: -2px 0;
}
.wave-divider svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* ===== TEAM CARD HOVER OVERLAY ===== */
.team-card {
  overflow: hidden;
  position: relative;
}
.team-card-photo {
  position: relative;
}
.team-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(12,45,54,0.97) 60%, rgba(12,45,54,0.0));
  color: white;
  padding: 32px 20px 20px;
  transform: translateY(calc(100% - 92px));
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@media (hover: hover) {
  .team-card:hover .team-card-body {
    transform: translateY(0);
  }
}
.team-card-body h3 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.team-card-body .team-role {
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.team-card-body p:not(.team-role) {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}
@media (hover: hover) {
  .team-card:hover .team-card-body p:not(.team-role) {
    opacity: 1;
  }
}

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  /* Volle Breite + scaleX statt animierter width:
     transform laeuft im Compositor, width wuerde jeden Frame Layout ausloesen.
     Die transition entfaellt bewusst - JS setzt den Wert ohnehin pro Frame. */
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  background: linear-gradient(to right, var(--teal), var(--gold));
  z-index: 9999;
  border-radius: 0 2px 2px 0;
}

/* === SCROLL TO TOP === */
.scroll-top-btn {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  left: calc(28px + env(safe-area-inset-left, 0px));
  width: 46px;
  height: 46px;
  background: var(--teal-dark);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 889;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease, margin-bottom 0.35s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: var(--teal);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.scroll-top-btn svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 768px) {
  .scroll-top-btn { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: calc(16px + env(safe-area-inset-left, 0px)); width: 44px; height: 44px; }
}

/* Float buttons clear of the cookie banner while it's open.
   --cookie-lift is set in JS to the banner height + gap. */
body.cookie-open .scroll-top-btn { margin-bottom: var(--cookie-lift, 0px); }
@media (max-width: 768px) {
  /* On mobile the banner is full width, so lift the WhatsApp button too. */
  body.cookie-open .whatsapp-fab { margin-bottom: var(--cookie-lift, 0px); }
}

/* === MEMBERSHIP CARDS (mitgliedschaft.html) === */
.mem-card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 28px;
}
.mem-card-featured {
  outline: 2.5px solid var(--gold);
  box-shadow: 0 8px 48px rgba(201,168,76,0.15), 0 2px 12px rgba(0,0,0,0.08);
}
.mem-card-left {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: white;
}
.mem-left-1 { background: linear-gradient(155deg, var(--teal-mid), var(--teal-dark)); }
.mem-left-2 { background: linear-gradient(155deg, var(--teal-dark), var(--teal-deeper)); }
.mem-left-3 { background: linear-gradient(155deg, var(--teal-deeper), #071820); }
.mem-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  width: fit-content;
}
.mem-badge-gold { background: var(--gold); }
.mem-card-h {
  color: white;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.25;
  margin: 0;
}
.mem-card-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}
.mem-price-block { margin: 4px 0; }
.mem-price-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  line-height: 1;
}
.mem-price-num {
  font-size: 4rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  transition: opacity 0.15s ease;
}
.mem-price-num.updating { opacity: 0; }
.mem-price-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  padding-bottom: 7px;
  gap: 1px;
}
.mem-duration {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.48);
  margin-top: 8px;
}
.mem-cta { align-self: flex-start; margin-top: auto; }
.mem-card-right {
  background: #fff;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mem-features-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 22px;
}
.mem-features-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  flex-direction: unset !important;
}
.mem-features-grid li { font-size: 0.875rem; align-self: start; }
.mem-features-grid .wert { display: block; font-size: 0.75rem; color: var(--text-light); margin-top: 1px; }
.mem-features-grid li { align-self: start; }
.mem-card-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.07);
  line-height: 1.65;
}
@media (max-width: 900px) {
  .mem-card { grid-template-columns: 1fr; }
  .mem-card-left, .mem-card-right { padding: 32px 28px; }
  .mem-features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .mem-price-num { font-size: 3rem; }
  .mem-card-left { padding: 28px 22px; gap: 16px; }
  .mem-card-right { padding: 28px 22px; }
}

/* === LEISTUNGEN PAGE === */
.lsg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.lsg-card {
  background: white;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.22s, box-shadow 0.22s;
}
.lsg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(43,158,173,0.13);
}
.lsg-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--teal), var(--teal-mid));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.lsg-icon svg {
  width: 26px;
  height: 26px;
  stroke: white;
}
.lsg-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 10px;
}
.lsg-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* Angebote horizontal cards */
.angebot-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  transition: box-shadow 0.22s;
}
.angebot-card:last-child { margin-bottom: 0; }
.angebot-card:hover { box-shadow: var(--shadow-md); }
.angebot-img { position: relative; overflow: hidden; }
.angebot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.angebot-card:hover .angebot-img img { transform: scale(1.04); }
.angebot-body {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.angebot-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal-deeper);
  margin-bottom: 14px;
  line-height: 1.2;
}
.angebot-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
}
.angebot-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.angebot-cat {
  display: inline-block;
  background: var(--light);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

@media (max-width: 1024px) {
  .lsg-grid { grid-template-columns: repeat(2, 1fr); }
  .angebot-card { grid-template-columns: 280px 1fr; }
  .angebot-body { padding: 36px 36px; }
}
@media (max-width: 768px) {
  .lsg-grid { grid-template-columns: 1fr; }
  .angebot-card { grid-template-columns: 1fr; }
  .angebot-img { height: 220px; }
  .angebot-body { padding: 32px 28px; }
  .angebot-body h3 { font-size: 1.25rem; }
}
@media (max-width: 480px) {
  .angebot-body { padding: 24px 20px; }
  .lsg-card { padding: 28px 22px; }
}

/* === GALLERY === */
.gallery-section { padding: 100px 0 80px; background: var(--off-white); }
/* === GALLERY ACCORDION === */
.gallery-accordion {
  display: flex;
  gap: 6px;
  height: 420px;
  margin-top: 52px;
  transition: height 0.45s ease-in-out;
}
.gallery-accordion.has-hover {
  height: 750px;
}
.gallery-panel {
  flex: 1;
  overflow: hidden;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: flex 0.45s ease-in-out;
  will-change: flex;
  background: #0c2d36;
}
.gallery-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.35s ease;
  pointer-events: none;
}
/* JS-gesteuerte Zustände */
.gallery-accordion.has-hover .gallery-panel { flex: 0.2; }
.gallery-accordion.has-hover .gallery-panel.is-active { flex: 0.8; background: var(--off-white); }
.gallery-panel.is-expanded img { object-fit: contain; }
.gallery-accordion.has-hover .gallery-panel:not(.is-active)::after { background: rgba(255,255,255,0.55); }

.gallery-placeholder {
  width: 100%; height: 100%;
  background: var(--teal-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.45);
  transition: background 0.3s;
}
.gallery-placeholder:hover { background: var(--teal); }
.gallery-placeholder svg { width: 36px; height: 36px; stroke: currentColor; }
.gallery-placeholder span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.gallery-placeholder--light {
  background: #e8f0f2;
  color: rgba(0,0,0,0.25);
}
.gallery-placeholder--light:hover { background: #d4e4e8; }
.gallery-placeholder--light span { color: rgba(0,0,0,0.2); }
.gallery-placeholder--gold {
  background: linear-gradient(135deg, #c9913a 0%, #e0b060 100%);
  color: rgba(255,255,255,0.5);
}
.gallery-placeholder--gold:hover { background: linear-gradient(135deg, #b8822e 0%, #d0a050 100%); }
.gallery-placeholder--gold span { color: rgba(255,255,255,0.45); }

.gallery-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 24px;
  font-style: italic;
}

@media (max-width: 768px) {
  .gallery-accordion {
    flex-wrap: wrap;
    height: auto !important;
    gap: 10px;
    transition: none;
  }
  .gallery-accordion.has-hover .gallery-panel { flex: 0 0 calc(50% - 5px); }
  .gallery-panel {
    flex: 0 0 calc(50% - 5px);
    height: 260px;
  }
  .gallery-panel:first-child {
    flex: 0 0 100%;
    height: 300px;
  }
}
@media (max-width: 480px) {
  .gallery-section { padding: 56px 0 48px; }
  .gallery-panel { height: 220px; }
  .gallery-panel:first-child { height: 260px; }
}

/* === PRICING TOGGLE === */
.pricing-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 36px 0 40px;
}
.pricing-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 4px;
  gap: 2px;
}
.pt-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}
.pt-btn.active {
  background: white;
  color: var(--teal-dark);
}
.pt-btn:not(.active):hover {
  background: rgba(255,255,255,0.15);
  color: white;
}
.pt-hint {
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
  min-height: 1.2em;
  transition: opacity 0.2s;
}
.pt-hint.hidden { opacity: 0; }

.js-price {
  transition: opacity 0.15s ease;
}
.js-price.updating { opacity: 0; }

/* ===== MOBILE OVERHAUL ===== */

@media (max-width: 768px) {
  /* Hero */
  /* Querformat-Foto im Hochformat-Container: Ausschnitt auf die Mitte zwischen
     beiden Frauen legen (beide sichtbar), sonst zeigt cover nur leeren Streifen (v52). */
  .hero-bg { background-position: 40% center; }
  .hero-logo-img { height: clamp(90px, 28vw, 140px); }
  .hero-logo { margin-bottom: 20px; }
  .hero-subline { font-size: 1rem; margin-bottom: 32px; }
  .hero-scroll-indicator { display: none; }

  /* Nav */
  .nav-logo-img { height: 42px; }

  /* Section typography */
  .section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }

  /* About badge – prevent overflow on single column */
  .about-badge { right: 0; bottom: -8px; padding: 16px 18px; }
  .about-badge strong { font-size: 1.6rem; }

  /* Pricing – remove scale to prevent horizontal overflow */
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--gold), 0 20px 50px rgba(201,168,76,0.3); }

  /* Team card – increase visible area on mobile */
  .team-card-body { transform: translateY(calc(100% - 92px)); }

  /* Page hero */
  .page-hero { padding: 110px 0 56px; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }

  /* CTA banner */
  .cta-banner-content { text-align: center; }
  .cta-banner-content h2 { font-size: 1.9rem; }

  /* Wave divider */
  .wave-divider svg { height: 50px; }

  /* Trust ribbon */
  .trust-ribbon { padding: 12px 0; }

  /* Highlight box */
  .highlight-box { text-align: center; }
}

@media (max-width: 480px) {
  :root { --section-pad: 48px; }

  /* Container */
  .container { padding: 0 16px; }

  /* Hero – use svh for iOS Safari address bar fix */
  #hero { min-height: 100svh; }
  .hero-headline { font-size: 2.1rem; line-height: 1.05; }
  .hero-subline { font-size: 0.95rem; }
  .hero-logo-img { height: 96px; }
  .hero-logo { margin-bottom: 14px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  /* Gestapelte Hero-Knoepfe klebten sonst aneinander (404 hat zwei). */
  .hero-cta .btn + .btn { margin-top: 12px; }

  /* Nav */
  .nav-logo-img { height: 36px; }

  /* Typography */
  .section-title { font-size: 1.65rem; }
  .section-subtitle { font-size: 0.93rem; }
  .section-label { font-size: 1.1rem; }

  /* Trust ribbon – slightly smaller text on very small screens */
  .trust-text { font-size: 0.82rem; }

  /* About badge – hide on very small screens */
  .about-badge { display: none; }

  /* CTA stacking */
  .flex-center { flex-direction: column; align-items: stretch; }
  .flex-center .btn { text-align: center; justify-content: center; width: 100%; }

  /* Pricing full cards */
  .pricing-full-card .two-col { grid-template-columns: 1fr; }

  /* Page hero */
  .page-hero { padding: 96px 0 44px; }
  .page-hero p { font-size: 1rem; }

  /* CTA banner section */
  #cta-banner { padding: 56px 0; }
  .cta-banner-content h2 { font-size: 1.7rem; }
  .cta-banner-content p { font-size: 0.95rem; }

  /* Wave divider */
  .wave-divider svg { height: 36px; }

  /* Schedule table */
  .schedule-table th, .schedule-table td { padding: 10px 10px; font-size: 0.8rem; }

  /* Offering card images */
  .offering-card-img img { height: 180px; object-fit: cover; }

  /* Footer */
  .footer-bottom { gap: 8px; }
  .footer-brand .nav-logo-img { height: 48px; }
  .footer-brand p { font-size: 0.88rem; }

  /* Highlight box */
  .highlight-box { padding: 28px 18px; }
  .highlight-box .flex-center { flex-direction: column; }

  /* FAQ */
  .faq-question { font-size: 0.92rem; }

  /* Buttons */
  .btn-lg { padding: 16px 32px; font-size: 0.95rem; }
}

/* Touch-Geraete: Bio ausblenden, damit das Foto frei bleibt (Ben, 27.07.2026).
   Vorher fuhr der Overlay hier dauerhaft aus und deckte die Portraits zu. */
@media (hover: none) {
  .team-card-body { transform: none; }
  .team-card-body p:not(.team-role) { display: none; }
}

/* ===================================================
   MOBILE OVERHAUL v2 – Comprehensive Fix
   =================================================== */

@media (max-width: 768px) {
  /* About section – image was 520px on desktop */
  .about-image-wrap img { height: 360px; }
  .about-grid { gap: 28px; }

  /* Two-col images on subpages (was 400px / 520px) */
  .col-img img { height: 260px; }
  .col-img.tall img { height: 280px; }
  .two-col { gap: 28px; }

  /* content-section has hardcoded 80px – reduce for mobile */
  .content-section { padding: 56px 0; }

  /* Reduce section-level grid top margins */
  .services-grid    { margin-top: 32px; }
  .offerings-grid   { margin-top: 32px; }
  .benefit-grid     { margin-top: 28px; grid-template-columns: repeat(2, 1fr); }
  .team-grid        { margin-top: 32px; }
  .testimonials-grid { margin-top: 28px; }
  .course-grid      { margin-top: 28px; }
  .pricing-grid     { gap: 16px; }

  /* Pricing cards */
  .pricing-img  { height: 180px; }
  .pricing-body { padding: 22px 20px; }

  /* Team cards – portrait aspect (matches 4:5 source, no face crop) */
  .team-card-photo { height: auto; aspect-ratio: 4 / 5; }
  .team-avatar     { height: auto; aspect-ratio: 4 / 5; }

  /* Team overlay – show full name + role */
  .team-card-body { transform: translateY(calc(100% - 92px)); }

  /* Newsletter */
  #newsletter    { padding: 56px 0; }
  .newsletter-grid { gap: 24px; }

  /* Footer – tighten spacing */
  .footer-grid { gap: 24px; margin-bottom: 28px; }
  footer { padding: 48px 0 28px; }

  /* Cookie banner – floating card, full width on small screens */
  .cookie-banner { left: 16px; bottom: 16px; width: calc(100% - 32px); max-width: none; }

  /* Highlight box on subpages */
  .highlight-box { padding: 32px 22px; }

  /* CTA banner */
  #cta-banner { padding: 72px 0; }
}

@media (max-width: 480px) {
  /* About section */
  .about-image-wrap img { height: 320px; }
  .about-grid { gap: 18px; }

  /* Two-col images */
  .col-img img { height: 200px; }
  .col-img.tall img { height: 210px; }

  /* Content sections */
  .content-section { padding: 44px 0; }

  /* Service cards – reduce heavy padding */
  .service-card { padding: 22px 18px; }
  .service-card-icon { width: 44px; height: 44px; margin-bottom: 14px; }
  .service-card h3 { font-size: 1.4rem; }
  .services-grid { gap: 14px; }

  /* Offerings */
  .offerings-grid { gap: 14px; }
  .offering-card-img { height: 190px; }
  .offering-card-body { padding: 18px 16px; }
  .offering-card h3 { font-size: 1.1rem; }
  .offering-card p { font-size: 0.87rem; margin-bottom: 16px; }

  /* Pricing */
  .pricing-img  { height: 160px; }
  .pricing-body { padding: 18px 16px; }
  .pricing-card h3 { font-size: 1.2rem; }
  .pricing-price-row strong { font-size: 2rem; }

  /* Team – 2 columns, portrait aspect (no face crop) */
  .team-card-photo { height: auto; aspect-ratio: 4 / 5; }
  .team-avatar     { height: auto; aspect-ratio: 4 / 5; font-size: 3rem; }
  .team-card-body  { transform: translateY(calc(100% - 74px)); padding: 22px 12px 12px; }
  .team-card-body h3 { font-size: 0.92rem; }
  .team-card-body .team-role { font-size: 0.62rem; letter-spacing: 0.05em; }

  /* Benefit grid – single column for readability */
  .benefit-grid { grid-template-columns: 1fr; gap: 12px; }
  .benefit-card { padding: 20px 20px; }
  .benefit-icon { width: 44px; height: 44px; margin-bottom: 12px; }
  .benefit-icon svg { width: 18px; height: 18px; }
  .benefit-card h4 { font-size: 0.95rem; }
  .benefit-card p  { font-size: 0.85rem; }

  /* Testimonials */
  .testimonial-card { padding: 24px 18px; }
  .testimonial-text { font-size: 0.9rem; }
  .testimonials-grid { gap: 16px; }

  /* Steps */
  .step-card { padding: 24px 18px; }

  /* Course */
  .course-card-img { height: 160px; }
  .course-card-body { padding: 18px; }

  /* Highlight box */
  .highlight-box { padding: 28px 16px; }

  /* Check list */
  .check-list li { font-size: 0.9rem; }

  /* Footer two-col for link sections */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

/* Touch-Geraete: nur Name + Rolle als Streifen unten, keine Bio (Ben, 27.07.2026).
   !important noetig, weil die 480/768-Breakpoints oben ein translateY setzen. */
@media (hover: none) {
  .team-card-body { transform: none !important; }
  .team-card-body p:not(.team-role) { display: none; }
}

/* ===================================================
   BUTTON & CTA POLISH – Mobile Professional Fix
   =================================================== */

@media (max-width: 768px) {
  /* Ensure hero-content always fills available width */
  .hero-content { width: 100%; }

  /* Buttons in flex-center: allow text wrapping to prevent overflow */
  .flex-center .btn { white-space: normal; text-align: center; line-height: 1.3; }

  /* Page hero buttons: enough breathing room */
  .page-hero .container { padding: 0 24px; }
  .page-hero .flex-center .btn { white-space: normal; line-height: 1.3; }
}

@media (max-width: 480px) {
  /* Hero content: proper horizontal padding */
  .hero-content { padding: 0 20px; }

  /* Hero CTA: long text needs smaller font + can wrap */
  .hero-cta .btn {
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    padding: 16px 20px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    width: 100%;
  }

  /* All full-width buttons: ensure no overflow */
  .flex-center .btn {
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    padding: 15px 20px;
    white-space: normal;
    line-height: 1.3;
  }

  /* CTA banner button */
  #cta-banner .btn { white-space: normal; line-height: 1.3; }

  /* Highlight box buttons */
  .highlight-box .btn { white-space: normal; line-height: 1.3; font-size: 0.88rem; }

  /* Submit buttons in forms */
  .form-card .btn { white-space: normal; line-height: 1.3; }

  /* Page hero: tighter padding to give buttons more room */
  .page-hero .container { padding: 0 20px; }
}

/* ===================================================
   MOBILE POLISH – Final pass (v13)
   =================================================== */

/* ---- Global: no overflow + balanced line breaks ---- */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
  word-break: break-word;
  text-wrap: balance;        /* prevents orphaned last words */
}
p, li {
  text-wrap: pretty;         /* prevents orphaned last word in paragraphs */
}
p a, li a {
  overflow-wrap: anywhere;   /* long URLs in legal texts must not overflow on mobile */
}

/* Grid children must be allowed to shrink below their content size.
   Without this, one wide child stretches the whole track and the column
   grows past .container – on 320px screens the text got clipped on the right
   (body has overflow-x:hidden, so it is cut off, not scrollable). */
.two-col > * { min-width: 0; }

/* Very narrow phones (iPhone SE 1st gen / iPhone 5, 320px):
   the 3-button pricing toggle is 336px wide and gets clipped,
   making "24 Monate" partly invisible and hard to tap. */
@media (max-width: 360px) {
  .pt-btn { padding: 9px 12px; font-size: 0.8rem; }
  /* .btn is nowrap by default; long labels ("Beratungstermin vereinbaren")
     stick out and get clipped. Allow wrapping and trim the side padding. */
  .btn { padding: 14px 20px; white-space: normal; text-align: center; line-height: 1.3; }
}

/* Skip-Link: fuer Tastatur- und Screenreader-Nutzer, die sonst bei JEDEM
   Seitenaufruf erst durch Logo + 7 Navi-Punkte muessten. Liegt ausserhalb des
   Bildes und springt erst bei :focus herein - optisch aendert sich nichts.
   Kein display:none / visibility:hidden - das nimmt das Element aus der
   Tab-Reihenfolge und der Link waere unerreichbar. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--teal-dark);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
/* <main> traegt tabindex="-1", damit der Skip-Link den Fokus wirklich dorthin
   setzt (ohne das springt nur die URL, der Tastaturfokus bliebe im Menue).
   Der Rahmen wird unterdrueckt - ein Kasten um den halben Bildschirm sieht
   nach einem Fehler aus, und das Ziel wird ohnehin nur programmatisch fokussiert. */
main:focus { outline: none; }

/* Tippflaechen auf Mobil mind. 44px hoch (Apple HIG / WCAG 2.5.8).
   min-height statt Padding-Rechnerei: wirkt unabhaengig von Schriftgroesse
   und den engeren Breakpoints weiter unten, die das Padding beschneiden. */
@media (max-width: 768px) {
  .pt-btn,
  .nav-logo {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Touch feedback for interactive elements */
@media (hover: none) {
  .btn:active       { opacity: 0.82; transform: scale(0.98); }
  .filter-btn:active,
  .week-btn:active  { background: var(--light); }
  .faq-question:active { background: var(--light); }
  .service-card:active,
  .offering-card:active,
  .benefit-card:active,
  .course-card:active { transform: scale(0.99); }
}

/* ---- 768px: General size reductions ---- */
@media (max-width: 768px) {
  /* Section titles: drop to balanced size for mobile */
  .section-title { font-size: clamp(1.45rem, 5.5vw, 2rem); }

  /* Offering cards: smaller h3 so long titles don't orphan */
  .offering-card h3 { font-size: 1.05rem; }

  /* CTA banner h2 */
  .cta-banner-content h2 { font-size: 1.65rem; }

  /* Pricing card titles */
  .pricing-card h3 { font-size: 1.1rem; }

  /* Subtitles: slightly tighter */
  .section-subtitle { font-size: 0.97rem; line-height: 1.7; }
}

/* ---- 480px: Further tightening ---- */
@media (max-width: 480px) {
  /* Typography scale for very small screens */
  .section-title     { font-size: 1.45rem; margin-bottom: 12px; }
  .section-subtitle  { font-size: 0.93rem; margin-bottom: 0; line-height: 1.65; }
  .section-label     { font-size: 1.05rem; }

  /* Page hero */
  .page-hero h1      { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
  .page-hero p       { font-size: 0.93rem; }

  /* CTA banner */
  .cta-banner-content h2  { font-size: 1.5rem; }
  .cta-banner-content p   { font-size: 0.92rem; }
  #cta-banner .btn-outline-white { font-size: 0.88rem; }

  /* Offering & pricing cards */
  .offering-card h3  { font-size: 1.0rem; }
  .pricing-card h3   { font-size: 1.05rem; }

  /* Angebote section cards (index + leistungen) */
  .angebot-body h3   { font-size: 1.1rem; }
  .angebot-btns { flex-direction: column; align-items: stretch; }
  .angebot-btns .btn { width: 100%; text-align: center; justify-content: center; }

  /* Service & feature cards */
  .service-card h3   { font-size: 1.2rem; }

  /* Leistungen lsg-cards */
  .lsg-card          { padding: 24px 18px; }
  .lsg-card h3       { font-size: 1.0rem; }

  /* info-box */
  .info-box          { padding: 16px 18px; }

  /* Steps */
  .step-number       { font-size: 2.6rem; }
  .step-card h4      { font-size: 0.95rem; }

  /* Week nav */
  .week-nav          { margin-top: 20px; margin-bottom: 28px; }

  /* FAQ */
  .faq-question      { font-size: 0.9rem; padding: 18px 0; }
}

/* === MAPS CLICK-TO-LOAD === */
.maps-placeholder {
  background: var(--teal-light, #e8f4f6);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.maps-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  color: var(--teal-dark, #1a6b76);
}
.maps-placeholder-inner svg { opacity: 0.6; }
.maps-placeholder-inner p { font-size: 1rem; font-weight: 500; margin: 0; }
.maps-consent-note {
  font-size: 0.75rem;
  color: var(--text-light);
  max-width: 320px;
  line-height: 1.5;
}
.maps-consent-note a { color: var(--teal); }
.maps-consent-wrapper iframe { display: block; width: 100%; height: 380px; border: 0; }


/* ===========================
   FOOTER-KARTE (OpenStreetMap, DSGVO-freundlich)
   =========================== */
.footer-map { margin: 4px 0 38px; }
.footer-map-frame {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.footer-map-static { display: block; line-height: 0; }
.footer-map-attrib {
  display: block;
  margin-top: 7px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.49);
  letter-spacing: 0.02em;
}
.footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  /* 8px senkrechtes Polster -> 40px Tippflaeche statt 24px.
     margin-top entsprechend 14 -> 6, damit der Abstand optisch gleich bleibt. */
  padding: 8px 2px;
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
}
.footer-map-link:hover { color: #fff; }
@media (max-width: 768px) {
  .footer-map { margin: 0 0 30px; }
  .footer-map-frame { height: 200px; }
}
