/* ============================================================
   Deutsch Ecke — hub landing page only
   Loaded after theme.css, which supplies the design tokens,
   fonts, aurora background, header, buttons and section heads.
   This file holds what only the hub landing page uses.
   ============================================================ */

/* ---------- floating German letters behind the hero ---------- */

.floaters {
  position: absolute;
  inset: -20px 0 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.floaters b {
  position: absolute;
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  opacity: 0.13;
  white-space: nowrap;
  will-change: transform;
  user-select: none;
}

.floaters b:nth-child(1) { top: 6%;  left: 5%;   font-size: 3.4rem; animation: bob 14s ease-in-out infinite; }
.floaters b:nth-child(2) { top: 20%; right: 7%;  font-size: 4.2rem; animation: bob 18s ease-in-out infinite 1.4s; }
.floaters b:nth-child(3) { top: 54%; left: 3%;   font-size: 2.6rem; animation: bob 16s ease-in-out infinite 0.7s; }
.floaters b:nth-child(4) { top: 70%; right: 5%;  font-size: 3rem;   animation: bob 20s ease-in-out infinite 2.1s; }
.floaters b:nth-child(5) { top: 39%; left: 11%;  font-size: 1.5rem; animation: bob 15s ease-in-out infinite 0.3s; opacity: 0.16; }
.floaters b:nth-child(6) { top: 48%; right: 12%; font-size: 1.5rem; animation: bob 17s ease-in-out infinite 1.9s; opacity: 0.16; }
.floaters b:nth-child(7) { top: 86%; left: 20%;  font-size: 1.35rem; animation: bob 19s ease-in-out infinite 1.1s; opacity: 0.14; }
.floaters b:nth-child(8) { top: 88%; right: 22%; font-size: 1.35rem; animation: bob 21s ease-in-out infinite 2.6s; opacity: 0.14; }

@keyframes bob {
  0%,
  100% { transform: translate3d(0, 0, 0) rotate(-3deg); }
  50%  { transform: translate3d(0, -22px, 0) rotate(3deg); }
}

.landing .hero > *:not(.floaters) {
  position: relative;
  z-index: 1;
}

/* the hub headline is the biggest type on the site */
.landing .hero h1 {
  font-size: clamp(2.9rem, 8.4vw, 5.3rem);
  line-height: 0.96;
}

/* ---------- stats strip ---------- */

.hero-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  margin: 46px auto 0;
  max-width: 660px;
  padding: 22px 10px;
  border-radius: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-stats .stat {
  flex: 1 1 0;
  min-width: 110px;
  padding: 2px 14px;
  text-align: center;
  position: relative;
}

.hero-stats .stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: var(--border);
}

.hero-stats .num {
  display: block;
  font-family: var(--display);
  font-variation-settings: "SOFT" 30, "opsz" 90;
  font-weight: 900;
  font-size: 2.15rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background-image: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-stats .lbl {
  display: block;
  margin-top: 3px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- level cards (A1 / A2 / ...) ---------- */

.landing .level-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  padding: 0 0 8px;
}

.landing .level-card {
  overflow: hidden;
  padding: 32px 28px 30px;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box,
    linear-gradient(140deg, var(--border), var(--border)) border-box;
  box-shadow: var(--shadow);
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              background 0.3s ease;
}

.landing .level-card .spot {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) 15%, transparent) 0%,
    transparent 62%
  );
}

.landing a.level-card:hover {
  text-decoration: none;
  transform: translateY(-8px);
  box-shadow: 0 22px 46px color-mix(in srgb, var(--accent) 20%, transparent);
  background:
    linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box,
    var(--grad) border-box;
}

.landing a.level-card:hover .spot {
  opacity: 1;
}

.landing .level-badge {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  font-family: var(--display);
  font-variation-settings: "SOFT" 30, "opsz" 60;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  background: var(--grad);
  box-shadow: 0 10px 24px var(--glow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing a.level-card:hover .level-badge {
  transform: scale(1.08) rotate(-7deg);
}

.landing .level-card h2 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 50;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.022em;
  margin-top: 6px;
}

.landing .level-card p {
  font-family: var(--ui);
  font-size: 0.95rem;
  line-height: 1.65;
}

.landing .level-card .cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.93rem;
  margin-top: 6px;
}

.landing .level-card .cta .icon-svg {
  transition: transform 0.25s ease;
}

.landing a.level-card:hover .cta .icon-svg {
  transform: translateX(5px);
}

.landing .status-pill {
  top: 22px;
  right: 22px;
  font-family: var(--ui);
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  background: color-mix(in srgb, var(--whatsapp) 15%, transparent);
  color: var(--whatsapp);
  border: 1px solid color-mix(in srgb, var(--whatsapp) 35%, transparent);
}

.landing .status-pill.muted {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.landing .level-card.disabled {
  opacity: 0.78;
}

.landing .level-card.disabled .level-badge {
  background: linear-gradient(140deg, var(--border), var(--text-muted));
  box-shadow: none;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .floaters b:nth-child(1),
  .floaters b:nth-child(3),
  .floaters b:nth-child(5),
  .floaters b:nth-child(6),
  .floaters b:nth-child(7),
  .floaters b:nth-child(8) {
    display: none;
  }

  .floaters b:nth-child(2) { font-size: 2.6rem; right: 2%; }
  .floaters b:nth-child(4) { font-size: 2.2rem; right: 3%; }

  .hero-stats {
    margin-top: 36px;
    padding: 16px 6px;
  }

  .hero-stats .num {
    font-size: 1.7rem;
  }

  .hero-stats .lbl {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 430px) {
  .hero-stats .stat {
    min-width: 0;
    padding: 2px 5px;
  }

  .hero-stats .lbl {
    font-size: 0.58rem;
    letter-spacing: 0.035em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floaters b {
    animation: none !important;
  }
}
