/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1B2A4A;
  --teal:   #3ECFCF;
  --teal2:  #2BB5B5;
  --gold:   #F5C842;
  --white:  #F8F9FC;
  --slate:  #6B7A99;
  --light:  #E8EDF6;
  --card:   #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Urbanist', sans-serif;
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 6vw;
  background: rgba(27,42,74,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(62,207,207,0.15);
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { display: block; width: 158px; height: auto; max-height: 48px; object-fit: contain; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: rgba(248,249,252,0.75);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal); color: var(--navy);
  font-weight: 700; font-size: 0.875rem;
  padding: 0.55rem 1.4rem; border-radius: 50px; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--gold); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 80vh;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4vw;
  padding: 6rem 6vw 3.5rem;
  position: relative; overflow: hidden;
}

.dots { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dot {
  position: absolute; border-radius: 50%;
  background: var(--teal); opacity: 0.07;
  animation: float 8s ease-in-out infinite;
}
.dot:nth-child(1) { width:320px;height:320px; top:-80px;left:-60px; animation-delay:0s; }
.dot:nth-child(2) { width:180px;height:180px; bottom:60px;right:10%; animation-delay:2s; }
.dot:nth-child(3) { width:90px;height:90px; top:30%;left:40%; animation-delay:4s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }

.hero-left { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 1.4rem; opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.2s;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  font-weight: 900; line-height: 1.05; color: var(--white);
  max-width: 600px; opacity: 0; letter-spacing: -0.02em;
  animation: fadeUp 0.7s ease forwards 0.4s;
}
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-sub {
  margin-top: 1.6rem; max-width: 480px;
  font-size: 1rem; font-weight: 300; line-height: 1.8;
  color: rgba(232,237,246,0.72); opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.6s;
}
.hero-actions {
  margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s ease forwards 0.8s;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--teal); color: var(--navy);
  font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 2rem; border-radius: 50px; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(62,207,207,0.25); }
.btn-ghost {
  background: transparent; color: var(--white);
  font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 2rem; border-radius: 50px; text-decoration: none;
  border: 1.5px solid rgba(248,249,252,0.25);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ── HERO IMAGE FRAMES ── */
.hero-right {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 1rem;
  align-items: flex-end;
}
.img-frame {
  border-radius: 16px;
  border: 2px dashed rgba(62,207,207,0.35);
  background: rgba(62,207,207,0.04);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.6rem;
  cursor: pointer; position: relative; overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
  opacity: 0;
}
.img-frame:hover {
  border-color: var(--teal);
  background: rgba(62,207,207,0.09);
}
.img-frame input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.img-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 14px; display: none;
}
.img-frame .frame-hint {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  pointer-events: none; transition: opacity 0.2s;
}
.img-frame .frame-icon { font-size: 1.6rem; opacity: 0.5; }
.img-frame .frame-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(62,207,207,0.6);
}
.img-frame-big   { width: 100%; height: 260px; animation: glideLeft 0.7s ease forwards 0.5s; }
.hero-right-row  { display: flex; gap: 1rem; width: 100%; }
.img-frame-sm    { flex: 1; height: 180px; }
.img-frame-sm:first-child { animation: glideLeft 0.7s ease forwards 0.75s; }
.img-frame-sm:last-child  { animation: glideLeft 0.7s ease forwards 1s; }

@keyframes glideLeft {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0; animation: fadeIn 1s ease forwards 1.6s;
}
.scroll-hint span { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.scroll-arrow {
  width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, var(--teal));
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse { 0%,100%{opacity:0.3} 50%{opacity:1} }
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }

/* ── WAVE ── */
.wave { display:block; width:100%; line-height:0; }
.wave-top { background: var(--navy); }

/* ── STATS ── */
.stats {
  background: var(--teal);
  display: flex; justify-content: center; flex-wrap: wrap;
}
.stat-item {
  flex: 1; min-width: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1.5rem; border-right: 1px solid rgba(27,42,74,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2.6rem; font-weight: 900; letter-spacing: -0.03em;
  color: var(--navy); line-height: 1;
}
.stat-label { font-size: 0.8rem; font-weight: 500; color: rgba(27,42,74,0.7); margin-top: 0.4rem; }

/* ── SECTIONS ── */
section { padding: 6rem 6vw; }

.section-eyebrow {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal2);
  margin-bottom: 0.9rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--navy); max-width: 620px;
}
.section-lead {
  margin-top: 1.1rem; max-width: 560px;
  font-size: 1rem; font-weight: 400; line-height: 1.8; color: var(--slate);
}

/* ── STUFEN ── */
.stufen { background: var(--white); }
.stufen-grid {
  margin-top: 3.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0; position: relative;
}
.stufen-grid::before {
  content: ''; position: absolute; top: 40px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold)); z-index: 0;
}
.stufe-card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2.5rem 2rem 2rem;
  transition: transform 0.25s;
}
.stufe-card:hover { transform: translateY(-6px); }
.stufe-icon {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 1.3rem;
  border: 3px solid var(--light); background: var(--white);
  box-shadow: 0 4px 20px rgba(27,42,74,0.1);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.stufe-card:hover .stufe-icon { border-color: var(--teal); box-shadow: 0 8px 32px rgba(62,207,207,0.2); }
.stufe-name { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.stufe-desc { font-size: 0.875rem; font-weight: 400; color: var(--slate); line-height: 1.7; }

/* ── KURSINHALT ── */
.kursinhalt { background: var(--light); }

.same-content-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--navy); color: var(--teal);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.5rem 1.1rem; border-radius: 50px;
  margin-bottom: 2rem;
}
.same-content-badge span { color: rgba(232,237,246,0.6); font-weight: 400; text-transform: none; letter-spacing: 0; }

.kurs-topics {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
 .topic-card {
  display: block; width: 100%; min-height: 270px; padding: 0; border: 0; border-radius: 18px;
  background: transparent; color: inherit; text-align: left; cursor: pointer; perspective: 1000px;
  box-shadow: 0 4px 18px rgba(27,42,74,0.08); transition: box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.topic-card:hover, .topic-card:focus-visible { box-shadow: 0 14px 34px rgba(27,42,74,0.16); outline: none; }
.topic-card:focus-visible { outline: 3px solid var(--teal2); outline-offset: 4px; }
.topic-card-inner { position: relative; display: block; min-height: 270px; width: 100%; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.2,.75,.25,1); }
.topic-card:hover .topic-card-inner, .topic-card:focus-visible .topic-card-inner, .topic-card.is-flipped .topic-card-inner { transform: rotateY(180deg); }
.topic-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 2rem; border-radius: 18px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.topic-front { background: var(--card); border-top: 4px solid var(--teal); }
.topic-front::after { content: ''; position: absolute; width: 140px; height: 140px; right: -60px; bottom: -65px; border-radius: 50%; background: rgba(62,207,207,.10); }
.topic-back { transform: rotateY(180deg); background: var(--navy); border-top: 4px solid var(--teal); }
.topic-icon { font-size: 2.5rem; line-height: 1; margin-bottom: 1.2rem; }
.topic-title { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; color: var(--navy); margin-bottom: .7rem; }
.topic-back .topic-title { color: var(--white); margin-top: .5rem; }
.topic-desc { display: block; font-size: .9rem; font-weight: 400; color: rgba(248,249,252,.82); line-height: 1.7; }
.topic-back-label { color: var(--teal); font-size: .7rem; font-weight: 800; letter-spacing: .14em; }
.topic-hint { display: block; margin-top: auto; padding-top: 1.2rem; color: var(--teal2); font-size: .78rem; font-weight: 800; }
.topic-back .topic-hint { color: var(--teal); }

/* ── ABOUT ── */
.about {
  background: var(--navy);
  display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center;
}
.about-text .section-eyebrow { color: var(--teal); }
.about-text .section-title { color: var(--white); }
.about-text .section-lead { color: rgba(232,237,246,0.7); }
.about-visual { display: flex; align-items: center; justify-content: center; }

.heart-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.heart-draw-svg { overflow: visible; }
#heartAnimated {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}
.heart-pulse {
  width: 60px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: pulseFade 3s ease-in-out infinite;
}
@keyframes pulseFade { 0%,100%{opacity:0.2; width:40px} 30%{opacity:1; width:80px} }

.value-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.value-item { display: flex; align-items: flex-start; gap: 1rem; }
.value-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; margin-top: 0.5rem; }
.value-text { font-size: 0.9rem; color: rgba(232,237,246,0.75); line-height: 1.65; }

/* ── MITMACHEN ── */
.mitmachen { background: var(--white); text-align: center; }
.mitmachen .section-title { margin: 0 auto; }
.mitmachen .section-lead { margin: 1rem auto 0; }
.mitmachen-cards {
  margin: 3rem auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; max-width: 860px;
}
.mitmachen-card {
  background: var(--light); border-radius: 16px;
  padding: 2rem 1.5rem; text-align: center;
  border: 1.5px solid transparent; transition: border-color 0.25s, transform 0.25s;
}
.mitmachen-card:hover { border-color: var(--teal); transform: translateY(-4px); }
.mitmachen-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.mitmachen-title { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: 0.5rem; }
.mitmachen-desc { font-size: 0.875rem; color: var(--slate); line-height: 1.65; }

/* ── CTA ── */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, #0F1D35 100%);
  text-align: center; padding: 5rem 6vw; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(62,207,207,0.1) 0%, transparent 70%);
}
.cta-banner h2 {
  position: relative;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; letter-spacing: -0.02em;
  color: var(--white); margin-bottom: 0.8rem;
}
.cta-banner h2 span { color: var(--teal); }
.cta-banner p { position: relative; color: rgba(232,237,246,0.6); font-size: 1rem; margin-bottom: 2rem; }
.cta-banner .btn-primary { position: relative; display: inline-block; }

/* ── FOOTER ── */
footer {
  background: #0F1D35;
  padding: 3rem 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  width: 150px;
  height: 46px;
  flex-shrink: 0;
}

.footer-logo img {
  display: block;
  width: 150px;
  height: 46px;
  max-width: 150px;
  max-height: 46px;
  object-fit: contain;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(248,249,252,0.35);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(248,249,252,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--teal);
}

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-logo img { width: 130px; max-height: 40px; }
  .topic-card, .topic-card-inner { min-height: 255px; }
  .topic-face { padding: 1.5rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .stufen-grid::before { display: none; }
  footer { flex-direction: column; text-align: center; }
}
