/* ═══ Unterseiten: Training · Abnehmen · Muskelaufbau ═══ */
body { background: var(--ink); }

.sub-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(5,8,7,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18,209,142,.15);
}
.sub-back {
  color: var(--emerald-bright); text-decoration: none;
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
}
.sub-back:hover { text-decoration: underline; }

.sub-hero {
  position: relative; min-height: 52vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(4rem, 8vh, 7rem) clamp(1.2rem, 5vw, 4rem) clamp(2rem, 5vh, 4rem);
  overflow: hidden;
}
.sub-hero video, .sub-hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: .5;
}
/* Hero, in dem das Video vollständig (ohne beschnittene Ränder) sichtbar ist */
.hero-video-full { min-height: 72vh; justify-content: flex-end; }
.hero-video-full video { object-fit: contain; opacity: 1; background: #060a08; }
.hero-video-full::after {
  background: linear-gradient(180deg, rgba(5,8,7,.15) 0%, transparent 30%, transparent 60%, rgba(5,8,7,.95) 100%);
}
.sub-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,8,7,.25), rgba(5,8,7,.92));
}
.sub-hero > * { position: relative; z-index: 2; }
.sub-hero h1 {
  font-family: var(--display); font-weight: 400; line-height: .95;
  font-size: clamp(2.6rem, 9vw, 7rem); text-transform: uppercase;
}
.sub-hero p { margin-top: 1rem; font-weight: 300; max-width: 640px; color: var(--cream-dim); line-height: 1.8; }

.sub-section { padding: clamp(3rem, 8vh, 6rem) clamp(1.2rem, 5vw, 4rem); max-width: 1500px; margin: 0 auto; }
.sub-section h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem); text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.sub-section h2 .accent-text { color: var(--emerald-bright); }
.sub-lead { font-weight: 300; line-height: 1.9; color: var(--cream); max-width: 760px; margin-bottom: 2rem; }

/* Flex + zentriert: 3 pro Reihe, letzte Reihe steht mittig → symmetrisch */
.info-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  gap: clamp(1rem, 1.4vw, 1.6rem);
}
.info-grid > * { flex: 0 1 calc(33.333% - 1.1rem); min-width: 300px; }
.info-card {
  border: 1px solid rgba(18,209,142,.25); border-radius: 10px;
  padding: clamp(1.6rem, 2vw, 2.3rem); background: rgba(10,15,12,.6);
  transition: border-color .3s, box-shadow .3s;
}
.info-card:hover { border-color: var(--emerald); box-shadow: 0 0 32px rgba(18,209,142,.18); }
.info-card h3 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.35rem, 1.6vw, 1.7rem); letter-spacing: .04em; margin-bottom: .8rem;
  color: var(--emerald-bright);
}
.info-card p, .info-card li { font-weight: 300; font-size: clamp(1rem, 1.05vw, 1.1rem); line-height: 1.8; color: var(--cream-dim); }
.info-card ul { padding-inline-start: 1.1rem; }
.info-card strong { color: var(--cream); font-weight: 500; }

/* Muskel-Karten mit Übungs-Video bzw. Animation */
/* Übungs-Videos: 3 pro Reihe = größer, letzte Reihe mittig */
.muscle-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  gap: clamp(1rem, 1.4vw, 1.6rem);
}
.muscle-grid > * { flex: 0 1 calc(50% - 1rem); min-width: 380px; }
.muscle-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; background: #060a08;
  border-bottom: 1px solid rgba(18,209,142,.25);
  cursor: zoom-in;
}
.muscle-video video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease;
}
.muscle-card:hover .muscle-video video { transform: scale(1.05); }
.muscle-card {
  border: 1px solid rgba(18,209,142,.25); border-radius: 8px;
  background: rgba(10,15,12,.6); overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.muscle-card:hover { border-color: var(--emerald); box-shadow: 0 0 32px rgba(18,209,142,.2); }
.muscle-anim {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 1.4rem 0;
}
.muscle-anim::before {
  content: ''; position: absolute; width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18,209,142,.16), transparent 68%);
  animation: anim-pulse 2.4s ease-in-out infinite;
}
@keyframes anim-pulse { 0%,100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }
.muscle-anim svg { position: relative; width: 220px; height: 160px; }
/* WICHTIG: explizite Strichfarben — sonst sind die Figuren unsichtbar */
.muscle-anim svg line, .muscle-anim svg circle, .muscle-anim svg rect, .muscle-anim svg path { stroke: var(--emerald-bright); }
.muscle-anim svg .bar { stroke: var(--cream); }
.muscle-body { padding: 1.1rem 1.4rem 1.5rem; }
.muscle-body h3 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; margin-bottom: .2rem; }
.muscle-body .uebung { font-size: .72rem; letter-spacing: .22em; color: var(--emerald-bright); text-transform: uppercase; }
.muscle-body p { margin-top: .6rem; font-weight: 300; font-size: .9rem; line-height: 1.7; color: var(--cream-dim); }
.muscle-body ul.steps { margin-top: .7rem; padding-inline-start: 1.05rem; }
.muscle-body ul.steps li { font-weight: 300; font-size: .86rem; line-height: 1.65; color: var(--cream-dim); margin-bottom: .25rem; }
.muscle-body .fehler { margin-top: .7rem; font-size: .82rem; color: #e8b34b; }
.muscle-body .satz { display: inline-block; margin-top: .7rem; font-size: .72rem; letter-spacing: .16em; color: var(--emerald-bright); border: 1px solid rgba(18,209,142,.35); border-radius: 2em; padding: .35em .9em; }

.sub-cta {
  text-align: center; padding: clamp(3rem, 9vh, 6rem) 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(18,209,142,.08));
}
.sub-cta h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 5vw, 3.2rem); margin-bottom: 1.6rem; }

/* ═══ Schwebender Zurück-Button — gleicher Stil wie der Musik-Knopf ═══ */
.back-fab {
  position: fixed; bottom: 1.4rem; left: 1.4rem; z-index: 95;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(5,8,7,.8); border: 1px solid var(--emerald);
  color: var(--emerald-bright); font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 22px rgba(18,209,142,.28); backdrop-filter: blur(6px);
  transition: transform .3s, box-shadow .3s;
}
.back-fab:hover { transform: scale(1.1); box-shadow: 0 0 34px rgba(18,209,142,.5); }
[dir="rtl"] .back-fab { left: auto; right: 1.4rem; transform: scaleX(-1); }
[dir="rtl"] .back-fab:hover { transform: scaleX(-1) scale(1.1); }

/* ═══ Schwebende Hintergrund-Elemente (Blätter, Lebensmittel) ═══ */
.float-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
/* Nur der Seiteninhalt liegt über der Schwebe-Ebene — NICHT die fixen Bedien-Elemente (Nav, Knöpfe) */
.sub-hero, .sub-section, .sub-cta { position: relative; z-index: 1; }
.floater {
  position: absolute; top: -8vh;
  font-size: var(--fs, 2rem); opacity: var(--op, .5);
  animation: float-down var(--dur, 16s) linear infinite;
  animation-delay: var(--del, 0s);
  filter: drop-shadow(0 0 10px rgba(18,209,142,.15));
}
@keyframes float-down {
  0%   { transform: translate(0, -10vh) rotate(0deg); }
  25%  { transform: translate(4vw, 25vh) rotate(90deg); }
  50%  { transform: translate(-3vw, 55vh) rotate(200deg); }
  75%  { transform: translate(3vw, 82vh) rotate(300deg); }
  100% { transform: translate(-2vw, 115vh) rotate(380deg); }
}
.floater.sway { animation-name: float-sway; }
@keyframes float-sway {
  0%   { transform: translate(0, -10vh) rotate(-12deg); }
  50%  { transform: translate(-6vw, 55vh) rotate(14deg); }
  100% { transform: translate(5vw, 115vh) rotate(-10deg); }
}
/* Proteindose, die Pulver schüttet */
.protein-pour { position: fixed; right: 4vw; top: 16vh; z-index: 0; pointer-events: none; opacity: .8; }
.protein-pour svg { width: 130px; height: 150px; }
.protein-pour .dose { animation: dose-tilt 3.2s ease-in-out infinite; transform-origin: 90px 40px; }
@keyframes dose-tilt { 0%,100% { transform: rotate(28deg); } 50% { transform: rotate(40deg); } }
.protein-pour .korn { fill: var(--cream); animation: korn-fall 1.6s linear infinite; opacity: 0; }
.protein-pour .korn.k2 { animation-delay: .4s; }
.protein-pour .korn.k3 { animation-delay: .8s; }
.protein-pour .korn.k4 { animation-delay: 1.2s; }
@keyframes korn-fall {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translateY(88px); opacity: 0; }
}

/* ═══ Rauch-Effekt + Athlet im Hintergrund (Muskelaufbau) ═══ */
.smoke-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.smoke {
  position: absolute; width: 55vw; height: 55vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,209,142,.09), rgba(120,140,130,.06) 45%, transparent 70%);
  filter: blur(48px);
  animation: smoke-drift var(--dur, 22s) ease-in-out infinite alternate;
}
.smoke.s1 { left: -18vw; top: 8vh; }
.smoke.s2 { right: -20vw; top: 38vh; animation-delay: -8s; }
.smoke.s3 { left: 12vw; bottom: -20vh; animation-delay: -15s; }
@keyframes smoke-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(9vw, -7vh) scale(1.25); }
}
.athlete-bg {
  position: fixed; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: min(76vh, 90vw); aspect-ratio: 16 / 9; z-index: 0; pointer-events: none;
  background: url("assets/poster_hero.jpg") center / contain no-repeat;
  opacity: .16;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 74%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 74%);
}
/* Sonnenstrahlen — rotierender Lichtfächer */
.sun-rays {
  position: fixed; left: 50%; top: 30%; transform: translate(-50%,-50%);
  width: 150vmax; height: 150vmax; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg,
    transparent 0deg 5deg,
    rgba(255,224,150,.055) 5deg 7deg,
    transparent 7deg 12deg,
    rgba(18,209,142,.045) 12deg 14deg);
  -webkit-mask-image: radial-gradient(circle, black 0%, transparent 58%);
  mask-image: radial-gradient(circle, black 0%, transparent 58%);
  animation: rays-spin 60s linear infinite;
}
@keyframes rays-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
/* Blitz-Aufhellung */
.storm-flash {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 28% 12%, rgba(200,255,235,.55), rgba(18,209,142,.15) 42%, transparent 65%);
  opacity: 0;
  animation: storm-flash 9s steps(1, end) infinite;
}
@keyframes storm-flash {
  0%, 40%, 100% { opacity: 0; }
  41% { opacity: .85; } 42% { opacity: .12; } 43% { opacity: .7; } 45% { opacity: 0; }
  74% { opacity: .6; } 75% { opacity: .1; } 76.5% { opacity: .5; } 78% { opacity: 0; }
}
/* Blitze (SVG) */
.smoke-layer .bolt {
  position: fixed; z-index: 0; pointer-events: none;
  width: clamp(60px, 9vw, 130px); height: auto; opacity: 0;
}
.smoke-layer .bolt polyline { fill: none; stroke: #d8fff0; stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(120,255,210,.9)) drop-shadow(0 0 18px rgba(18,209,142,.7)); }
.smoke-layer .bolt1 { left: 22%; top: 6%; animation: bolt-strike 9s steps(1,end) infinite; }
.smoke-layer .bolt2 { right: 24%; top: 4%; transform: scaleX(-1); animation: bolt-strike 9s steps(1,end) infinite; animation-delay: 3.3s; }
@keyframes bolt-strike {
  0%, 40%, 100% { opacity: 0; }
  41% { opacity: 1; } 43% { opacity: .2; } 44% { opacity: .9; } 46% { opacity: 0; }
}

/* Muskelaufbau-Hero ohne Video — sauber, modern */
.hero-clean { min-height: 46vh; background: transparent; }
.hero-clean::after { background: linear-gradient(180deg, transparent 40%, rgba(5,8,7,.85)); }
.hero-clean h1 { text-shadow: 0 4px 40px rgba(0,0,0,.7), 0 0 30px rgba(18,209,142,.25); }

/* ═══ Positivitäts-Sektion (Die Prinzipien) — Bild + aufsteigendes Licht ═══ */
.positiv-section {
  position: relative; max-width: none; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5,8,7,.9) 0%, rgba(5,8,7,.62) 45%, rgba(5,8,7,.9) 100%),
    url("assets/positiv_bg.jpg") center 30% / cover no-repeat;
}
.positiv-section > h2, .positiv-section > .info-grid, .positiv-section > .sub-lead {
  position: relative; z-index: 2; max-width: 1500px; margin-left: auto; margin-right: auto;
}
.positiv-section .info-card { background: rgba(6,10,8,.72); backdrop-filter: blur(4px); }
.positiv-sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.positiv-sparks span {
  position: absolute; bottom: -12px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle, #ffe9a8, rgba(58,240,173,.75) 60%, transparent 75%);
  box-shadow: 0 0 14px rgba(255,222,130,.8);
  animation: spark-rise var(--d, 8s) linear infinite;
  animation-delay: var(--del, 0s);
  opacity: 0;
}
@keyframes spark-rise {
  0%   { transform: translateY(0) scale(.7); opacity: 0; }
  12%  { opacity: .95; }
  70%  { opacity: .55; }
  100% { transform: translateY(-92vh) scale(1.25); opacity: 0; }
}

/* ═══ Übungs-Sektion: Wind + Geräte-Grafiken an den Rändern ═══ */
.uebungen-section { position: relative; overflow: hidden; }
.uebungen-section > h2, .uebungen-section > .muscle-grid { position: relative; z-index: 2; }
.gym-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.gym-decor .gd {
  position: absolute; font-size: clamp(3rem, 7vw, 6rem); opacity: .07;
  filter: grayscale(1) drop-shadow(0 0 14px rgba(18,209,142,.3));
  animation: gd-bob 6s ease-in-out infinite;
}
.gym-decor .gd-l1 { left: -1.5%; top: 8%;  transform: rotate(-12deg); }
.gym-decor .gd-l2 { left: 1%;    top: 62%; animation-delay: -2s; }
.gym-decor .gd-r1 { right: -1.5%; top: 22%; transform: rotate(12deg); animation-delay: -3s; }
.gym-decor .gd-r2 { right: 1%;   top: 74%; animation-delay: -4.5s; }
@keyframes gd-bob { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
/* Wind-Streifen, die horizontal durchziehen */
.wind-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.wind-layer span {
  position: absolute; height: 2px; width: 42vw; left: -45vw;
  background: linear-gradient(90deg, transparent, rgba(18,209,142,.28), transparent);
  filter: blur(1px);
  animation: wind-blow var(--wd, 8s) linear infinite;
}
.wind-layer span:nth-child(1) { top: 16%; --wd: 7s;  animation-delay: 0s; }
.wind-layer span:nth-child(2) { top: 34%; --wd: 9s;  animation-delay: -3s; }
.wind-layer span:nth-child(3) { top: 55%; --wd: 6.5s;animation-delay: -1.5s; }
.wind-layer span:nth-child(4) { top: 72%; --wd: 10s; animation-delay: -5s; }
.wind-layer span:nth-child(5) { top: 88%; --wd: 8s;  animation-delay: -2s; }
@keyframes wind-blow { to { transform: translateX(150vw); } }

/* Zusätzliche driftende Rauchschwaden nur in der Übungs-Sektion */
.uebungen-section::before {
  content: ''; position: absolute; z-index: 0; left: 50%; top: 40%;
  width: 70vw; height: 70vw; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(18,209,142,.1), rgba(150,170,160,.06) 45%, transparent 70%);
  filter: blur(60px); pointer-events: none;
  animation: smoke-drift 20s ease-in-out infinite alternate;
}

/* ═══ Musik-Knopf ═══ */
.music-toggle {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 95;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(5,8,7,.8); border: 1px solid var(--emerald);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 22px rgba(18,209,142,.28); backdrop-filter: blur(6px);
  transition: transform .3s, box-shadow .3s;
}
.music-toggle:hover { transform: scale(1.1); box-shadow: 0 0 34px rgba(18,209,142,.5); }
[dir="rtl"] .music-toggle { right: auto; left: 1.4rem; }
.music-toggle .mbars { display: flex; align-items: flex-end; gap: 2.5px; height: 18px; }
.music-toggle .mbars i { width: 3px; background: var(--emerald-bright); border-radius: 2px; animation: mbar 1s ease-in-out infinite; }
.music-toggle .mbars i:nth-child(1) { height: 40%; }
.music-toggle .mbars i:nth-child(2) { height: 90%; animation-delay: .2s; }
.music-toggle .mbars i:nth-child(3) { height: 60%; animation-delay: .4s; }
.music-toggle .mbars i:nth-child(4) { height: 100%; animation-delay: .1s; }
@keyframes mbar { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.music-toggle.off { border-color: rgba(242,236,223,.4); box-shadow: none; }
.music-toggle .mmute { color: var(--cream-dim); font-size: 1.2rem; line-height: 1; }

/* ═══ Kalorienrechner ═══ */
.calc {
  border: 1px solid rgba(18,209,142,.35); border-radius: 10px;
  background: rgba(8,13,10,.75); padding: clamp(1.4rem, 3vw, 2.4rem);
  max-width: 860px;
}
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.1rem; }
.calc label { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald-bright); margin-bottom: .4rem; }
.calc input, .calc select {
  width: 100%; padding: .8em 1em; border-radius: 8px;
  background: #0a120d; border: 1px solid rgba(18,209,142,.35);
  color: var(--cream); font-family: var(--body); font-size: 1rem;
}
.calc input:focus, .calc select:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 14px rgba(18,209,142,.3); }
.geschlecht { display: flex; gap: .6rem; }
.geschlecht input { display: none; }
.geschlecht label { flex: 1; }
.geschlecht label > span {
  display: block; text-align: center; padding: .8em .5em; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(18,209,142,.35); color: var(--cream-dim);
  font-family: var(--body); font-size: 1rem; transition: all .25s;
}
/* Innere Sprach-Spans erben die Farbe des Knopfs — sonst bleibt der Text hell auf hellem Grund */
.geschlecht label > span span { color: inherit; }
.geschlecht input:checked + span { background: var(--emerald); color: #04120c; font-weight: 700; box-shadow: 0 0 18px rgba(18,209,142,.4); }
.calc-btn {
  margin-top: 1.4rem; width: 100%; padding: 1em; border: none; border-radius: 8px;
  background: var(--emerald); color: var(--ink); font-family: var(--body); font-weight: 700;
  font-size: 1rem; letter-spacing: .16em; cursor: pointer; transition: background .25s, transform .25s;
}
.calc-btn:hover { background: var(--emerald-bright); transform: translateY(-2px); }
.calc-result { margin-top: 1.6rem; display: none; }
.calc-result.zeigen { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); animation: result-pop .5s cubic-bezier(.22,1,.36,1); }
@keyframes result-pop { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.calc-result .wert {
  border: 1px solid rgba(18,209,142,.35); border-radius: 8px; padding: 1rem; text-align: center;
}
.calc-result .wert.ziel { border-color: var(--emerald); box-shadow: 0 0 26px rgba(18,209,142,.3); }
.calc-result .zahl { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--emerald-bright); display: block; }
.calc-result .einheit { font-size: .75rem; letter-spacing: .16em; color: var(--cream-dim); text-transform: uppercase; }
.calc-hinweis { margin-top: 1rem; font-size: .8rem; color: var(--cream-dim); font-weight: 300; line-height: 1.6; }

/* ═══ Weibliche Figuren (Line-Art) ═══ */
.fig-frau svg { width: 120px; height: 120px; }
.fig-frau svg * { stroke: var(--emerald-bright); fill: none; stroke-width: 4; stroke-linecap: round; }
.fig-frau svg .haar { stroke-width: 3.4; }
.frauen-line {
  display: flex; align-items: center; gap: 1rem; margin-top: .4rem;
  color: var(--cream); font-weight: 300; font-size: clamp(.95rem, 1.5vw, 1.15rem); letter-spacing: .04em;
}
.frauen-line svg { width: 58px; height: 58px; flex-shrink: 0; }
.frauen-line svg * { stroke: var(--emerald-bright); fill: none; stroke-width: 3.4; stroke-linecap: round; }

/* ═══ Sanftes Einblenden der Karten beim Scrollen ═══ */
.info-card, .muscle-card {
  opacity: 0; transform: translateY(34px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.22,1,.36,1),
              border-color .3s, box-shadow .3s;
}
.info-card.in, .muscle-card.in { opacity: 1; transform: translateY(0); }

/* ═══ Handy: Karten und Videos einspaltig stapeln ═══ */
@media (max-width: 760px) {
  .info-grid > *, .muscle-grid > * { flex-basis: 100%; min-width: 0; }
  /* Sprachknöpfe: groß genug zum Tippen — min-width, damit auch das schmale ع gut trifft */
  .lang-switch button { font-size: .82rem; padding: .55em .5em; min-height: 32px; min-width: 38px; }
}

/* Sprachsichtbarkeit: drei Sprachen im HTML, CSS blendet um (Englisch = Standard) */
.only-de, .only-ar, .only-en { display: none; }
body:not(.lang-de):not(.lang-ar) .only-en { display: revert; }
body.lang-en .only-en { display: revert; }
body.lang-de .only-de { display: revert; }
body.lang-ar .only-ar { display: revert; }

/* Sprachumschalter mit 3 Sprachen */
.lang-switch {
  display: flex; gap: 2px; border: 1px solid var(--emerald); border-radius: 2em;
  overflow: hidden; background: rgba(5,8,7,.6);
}
.lang-switch button {
  background: none; border: none; color: var(--cream-dim); cursor: pointer;
  font-family: var(--body); font-size: .74rem; letter-spacing: .06em;
  padding: .5em .85em; transition: background .25s, color .25s;
}
.lang-switch button.aktiv { background: var(--emerald); color: var(--ink); font-weight: 700; }
.lang-switch button:not(.aktiv):hover { color: var(--emerald-bright); }
/* ═══ Rechtsseiten (Impressum / Datenschutz) ═══ */
.legal-hero { min-height: 38vh; }
.legal-content { max-width: 820px; }
.legal-content h2 {
  font-family: var(--body); font-weight: 700; text-transform: none;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--emerald-bright);
  margin: 2.2rem 0 .7rem;
}
.legal-content p { font-weight: 300; line-height: 1.85; color: var(--cream-dim); margin-bottom: .9rem; }
.legal-content a { color: var(--emerald-bright); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--cream); }
/* Deutscher/englischer Rechtstext bleibt LTR — auch bei arabischer Oberfläche */
.legal-content .legal-ltr { direction: ltr; text-align: left; }

/* Kleiner Rechts-Footer auf Unterseiten */
.sub-foot {
  display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap;
  padding: 2.2rem 1.5rem 6rem; position: relative; z-index: 1;
}
.sub-foot a {
  color: var(--cream-dim); text-decoration: none; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid rgba(242,236,223,.25); padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.sub-foot a:hover { color: var(--emerald-bright); border-color: var(--emerald-bright); }

body.lang-ar { --display: 'Tajawal', 'Cairo', sans-serif; --body: 'Tajawal', 'Cairo', 'Segoe UI', sans-serif; }
body.lang-ar .sub-hero h1, body.lang-ar .sub-section h2, body.lang-ar .muscle-body h3, body.lang-ar .sub-cta h2 { letter-spacing: 0; line-height: 1.2; }
body.lang-ar .sub-back, body.lang-ar .info-card h3, body.lang-ar .muscle-body .uebung, body.lang-ar .btn { letter-spacing: 0; }
