/* Marmas Gym – Fight Club Remagen
   Direction from the client's approved draft: dark, lime accent, rounded cards, Russo One headlines. */

@font-face {
  font-family: "Russo One";
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/russo-one.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Archivo";
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4;
}

:root {
  --bg: #0E0E0E;
  --card: #1B1B1B;
  --card-2: #262626;
  --lime: #C4F53A;
  --lime-ink: #0E0E0E;
  --text: #F2F2F2;
  --muted: #A6A6A6;
  --line: rgba(255,255,255,.09);
  --light: #E4E5E8;
  --radius: 18px;
  --display: "Russo One", "Archivo", system-ui, sans-serif;
  --font: "Archivo", system-ui, sans-serif;
  --pad: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); position: relative; }
.wrap-narrow { max-width: 900px; }
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: .5em; }
.h2-sm { font-size: clamp(24px, 2.6vw, 32px); }
.lead { color: var(--muted); max-width: 36em; }
.section-head { text-align: center; max-width: 42em; margin: 0 auto 44px; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pill { display: inline-block; background: #fff; color: #111; font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; }

/* Blurred photo backgrounds behind a section */
.bg-photo { position: absolute; inset: 0; background: center / cover no-repeat; filter: grayscale(1) blur(6px); transform: scale(1.06); opacity: .32; pointer-events: none; }
.bg-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(14,14,14,.55) 50%, var(--bg) 100%); }

/* Buttons */
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(196,245,58,.35); filter: brightness(1.05); }
.btn-lime:active { transform: translateY(0); }

/* NAV */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 8px var(--pad); background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,0)); transition: background-color .3s ease; }
.nav.solid { background: rgba(10,10,10,.72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--lime); transform: scaleX(var(--p, 0)); transform-origin: left; }
.nav-brand img { width: 96px; height: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); transform: scaleX(0); transition: transform .25s ease; transform-origin: left; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-burger span { display: block; height: 3px; background: var(--text); margin: 7px 0; transition: transform .2s ease; border-radius: 2px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 19; background: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: var(--pad); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--display); font-size: 34px; text-transform: uppercase; text-decoration: none; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-burger { display: block; } }

/* HERO */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--pad) 80px; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translateX(-2%); } }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.25) 0%, rgba(0,0,0,.6) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(14,14,14,0) 30%); }
.hero-grain { position: absolute; inset: -50%; width: 200%; height: 200%; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-4%); } 60% { transform: translate(-4%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }
.hero-body { position: relative; max-width: 900px; }
.hero-title { font-size: clamp(34px, 5.6vw, 72px); line-height: 1.12; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero-title .mark { display: inline-block; position: relative; color: var(--lime); }
.hero-title .mark::before { content: ""; position: absolute; inset: 8% -6% 6% -6%; background: #000; border-radius: 6px; transform: skewX(-8deg) rotate(-1.2deg); z-index: -1; box-shadow: 0 0 40px rgba(196,245,58,.25); }
.hero-sub { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: clamp(13px, 1.3vw, 16px); margin: 22px 0 32px; text-shadow: 0 2px 16px rgba(0,0,0,.7); }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; margin-left: -13px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 13px; }
.hero-scroll span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--lime); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0%, 100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } }

/* Hero load: fade + rise once, no slam */
.hero-body { opacity: 0; transform: translateY(18px); }
.loaded .hero-body { animation: rise .9s cubic-bezier(.2,.8,.2,1) .15s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* FADE on scroll (CSS scroll timeline, progressive) */
@supports (animation-timeline: view()) {
  .fade { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* GYM (about) – light section */
.gym { background: var(--light); color: #111; }
.gym .bg-photo { opacity: .5; filter: grayscale(1) blur(10px); }
.gym .bg-photo::after { background: linear-gradient(180deg, rgba(228,229,232,.55), rgba(228,229,232,.85)); }
.gym .lead { color: #333; }
.gym-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.feature { background: rgba(60,60,60,.72); color: #fff; border-radius: 14px; padding: 16px 16px 18px; display: grid; gap: 6px; backdrop-filter: blur(6px); }
.feature strong { font-size: 15px; }
.feature span { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.45; }
.gym-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.gym-media video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.gym-tag { position: absolute; right: 0; bottom: 36px; background: var(--lime); color: var(--lime-ink); padding: 12px 18px; border-radius: 10px 0 0 10px; display: grid; }
.gym-tag strong { font-family: var(--display); font-size: 22px; }
.gym-tag span { font-family: var(--display); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 900px) { .gym-grid { grid-template-columns: 1fr; } .feature-row { grid-template-columns: 1fr; } .gym-media { aspect-ratio: 4 / 3; } }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.coach { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 24px; text-align: center; transition: border-color .25s ease, transform .25s ease; }
.coach:hover { border-color: rgba(196,245,58,.6); transform: translateY(-4px); }
.coach-img { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 14px; overflow: hidden; background: var(--card-2); }
.coach-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.05); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.coach:hover .coach-img img { transform: scale(1.08); }
.coach h3 { font-size: 18px; margin-bottom: 10px; }
.coach li { font-size: 14px; color: var(--muted); padding: 3px 0; }
.coach li::before { content: "• "; color: var(--lime); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

.memorial { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; margin-top: 80px; padding-top: 64px; border-top: 1px solid var(--line); }
.memorial img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); filter: grayscale(1); box-shadow: 0 0 60px rgba(255,255,255,.12); }
.memorial .years { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.memorial p { max-width: 42em; }
.memorial blockquote { margin: 18px 0 0; padding-left: 14px; border-left: 2px solid var(--lime); font-style: italic; color: var(--muted); }
@media (max-width: 760px) { .memorial { grid-template-columns: 1fr; } .memorial img { max-width: 220px; } }

/* PLÄNE */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
.plan { border-radius: var(--radius); padding: 36px 28px 32px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.plan h3 { font-size: 22px; }
.plan p { color: inherit; opacity: .8; margin: 0; }
.plan ul { margin: 14px 0 20px; display: grid; gap: 8px; }
.plan li { font-size: 15px; }
.plan li::before { content: "✓ "; color: #7DBF1B; font-weight: 800; }
.plan-light { background: #fff; color: #111; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.plan-dark { background: rgba(80,80,80,.55); color: #fff; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); }
.plan-dark li::before { color: var(--lime); }
@media (max-width: 700px) { .plan-grid { grid-template-columns: 1fr; } }

/* TRAINING */
.week { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.day h3 { color: var(--lime); font-size: 18px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.day.today h3::after { content: "Heute"; font: 700 11px/1 var(--font); letter-spacing: 0; text-transform: none; color: var(--lime-ink); background: var(--lime); padding: 5px 9px; border-radius: 999px; }
.day.today { border-color: rgba(196,245,58,.6); }
.day dl { margin: 0; }
.day dl > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.day dl > div:last-child { border-bottom: 0; }
.day dt { color: var(--muted); font-variant-numeric: tabular-nums; }
.day dd { margin: 0; }
.day-cta { background: linear-gradient(160deg, var(--card-2), var(--card)); display: grid; align-content: start; gap: 6px; }
.day-cta h3 { color: var(--text); }
.day-cta p { color: var(--muted); font-size: 15px; }
.day-cta .btn { justify-self: start; }
@media (max-width: 900px) { .week { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .week { grid-template-columns: 1fr; } }

/* ANMELDUNG */
.form { background: #fff; color: #111; border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); display: grid; gap: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; min-width: 0; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: #111; background: #F4F5F7; border: 1px solid #E3E5E8; border-radius: 10px; padding: 12px 14px; width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; }
/* iOS Safari: date inputs ignore width and collapse height unless forced */
.form input[type="date"] { display: block; min-height: 48px; -webkit-min-logical-width: 0; text-align: left; }
.form input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--lime); outline-offset: 0; border-color: var(--lime); }
.form button { justify-self: start; margin-top: 4px; }
.form-note { color: #777; font-size: 13px; margin: 0; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* FOOTER */
.footer { padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 150px; margin-bottom: 14px; }
.footer address { font-style: normal; color: var(--muted); font-size: 14px; line-height: 1.7; }
.footer h4 { color: var(--lime); font-size: 16px; margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; font-size: 15px; padding: 4px 0; }
.footer-grid a:hover { color: var(--text); }
.footer-copy { text-align: center; color: #666; font-size: 13px; margin: 48px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-copy a { color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 140px var(--pad) 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 32px; }
.legal h2 { font-family: var(--font); text-transform: none; letter-spacing: 0; font-weight: 800; font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal a { text-decoration-color: var(--lime); text-underline-offset: 4px; }
.legal-nav { margin-left: auto; font-weight: 600; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-body { opacity: 1; transform: none; animation: none !important; }
  .hero-video, .hero-grain, .hero-scroll span { animation: none !important; }
  .fade { animation: none !important; }
}

/* Section backgrounds */
.gym .bg-photo { background-image: url("../assets/kurs-thai.jpg"); }
.plaene .bg-photo { background-image: url("../assets/kurs-kick.jpg"); }
.anmeldung .bg-photo { background-image: url("../assets/hero-poster.jpg"); }
