/* ============================================================
   LEHRER-SPORT.CSS — AdrIAN: Lehrer × Volleyball × Unihockey
   Palette: Kreidetafel-Grün, Sportenergetic-Orange, Weiss, Electric Blue
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --chalk:    #f0f0e8;     /* chalk white */
  --board:    #1a2e1a;     /* chalkboard green */
  --board2:   #152413;
  --orange:   #f97316;     /* sport orange */
  --blue:     #3b82f6;     /* electric blue */
  --yellow:   #fbbf24;
  --red:      #ef4444;
  --bg:       #111816;
  --bg2:      #161e16;
  --bg3:      #1c261c;
  --text:     #c8d4c0;
  --font:     -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:     'Courier New', Courier, monospace;
}

/* ── RB'S BANNER ── */
.rbs-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 3000;
  text-align: center; padding: 0.25rem 1rem;
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--orange);
  background: rgba(10,15,10,0.8); border-bottom: 1px solid rgba(249,115,22,0.15);
  backdrop-filter: blur(8px); user-select: none; pointer-events: none;
}

html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── IAN NAV (sport variant) ── */
.ian-nav {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  z-index: 2000; display: flex; align-items: center; gap: 0.25rem;
  background: rgba(17,24,22,0.80); border: 1px solid rgba(249,115,22,0.35);
  border-radius: 50px; padding: 0.35rem 0.6rem;
  backdrop-filter: blur(12px); box-shadow: 0 4px 24px rgba(249,115,22,0.22);
  white-space: nowrap;
}
.ian-nav__label {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  color: rgba(249,115,22,0.6);
  letter-spacing: 0.1em; padding: 0.3rem 0.75rem;
  border-radius: 50px; margin-right: 0.15rem;
  border: 1px solid rgba(249,115,22,0.28);
  text-decoration: none; transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.ian-nav__label:hover {
  color: var(--orange); border-color: rgba(249,115,22,0.55);
  background: rgba(249,115,22,0.08); text-decoration: none;
}
.ian-nav__item {
  font-size: 0.78rem; color: #4a5a4a; text-decoration: none;
  padding: 0.3rem 0.75rem; border-radius: 50px;
  transition: background 0.18s, color 0.18s;
  display: flex; align-items: center; gap: 0.3rem;
}
.ian-nav__item span   { color: #4a5a4a; transition: color 0.18s; }
.ian-nav__item strong { color: #5a6a5a; font-weight: 700; transition: color 0.18s; }
.ian-nav__item:hover  { background: rgba(249,115,22,0.08); text-decoration: none; }
.ian-nav__item:hover span,
.ian-nav__item:hover strong { color: #c8a060; }
.ian-nav__item--active { background: rgba(249,115,22,0.12); }
.ian-nav__item--active span   { color: rgba(249,115,22,0.7) !important; }
.ian-nav__item--active strong { color: var(--orange) !important; }
/* per-person hover tints */
.ian-nav a[href="fabian.html"]:hover span,
.ian-nav a[href="fabian.html"]:hover strong { color: #00ff41; }
.ian-nav a[href="damian.html"]:hover span,
.ian-nav a[href="damian.html"]:hover strong { color: #f97316; }
.ian-nav a[href="adrian.html"]:hover span,
.ian-nav a[href="adrian.html"]:hover strong { color: #e8ff00; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 3rem 2.5rem 5rem;
  position: relative; overflow: hidden;
  background:
    linear-gradient(to top, rgba(17,24,22,0.85) 0%, rgba(17,24,22,0.30) 60%, rgba(17,24,22,0.10) 100%),
    url("assets/img_sd/sd-09.jpg") center 30% / cover no-repeat;
}

/* ── COMPASS ── */
.hero-compass {
  position: absolute;
  top: 50%; right: 8%;
  transform: translateY(-50%);
  width: clamp(180px, 22vw, 280px);
  color: rgba(255,255,255,0.85);
  pointer-events: none; user-select: none;
  animation: compassSpin 55s linear infinite;
  z-index: 1;
  filter: drop-shadow(0 0 16px rgba(249,115,22,0.6)) drop-shadow(0 0 4px rgba(0,0,0,0.8));
}
@keyframes compassSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

.hero-content { max-width: 600px; position: relative; z-index: 1; }

.hero-motto {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 700; color: var(--orange);
  letter-spacing: 0.04em; margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  opacity: 0; animation: fadeSlideIn 0.8s ease 0.2s forwards;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900; color: #fff; line-height: 1;
  letter-spacing: -0.02em; margin-bottom: 0.8rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  opacity: 0; animation: fadeSlideIn 0.8s ease 0.5s forwards;
}
.hero-title strong { color: var(--orange); }

.hero-sub {
  font-size: 1.05rem; color: rgba(200,212,192,0.75);
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeSlideIn 0.8s ease 0.8s forwards;
}

/* ── HERO COORDINATES ── */
.hero-coords {
  font-family: var(--mono);
  display: flex; flex-direction: column; gap: 0.45rem;
  background: rgba(10,15,10,0.55);
  border-left: 2px solid rgba(249,115,22,0.5);
  padding: 0.8rem 1rem;
  backdrop-filter: blur(6px);
  border-radius: 0 4px 4px 0;
  max-width: 360px;
  opacity: 0; animation: fadeSlideIn 0.8s ease 1.1s forwards;
}
.hero-coords__row { display: flex; align-items: baseline; gap: 0.6rem; }
.hc-val   { font-size: 0.82rem; color: var(--orange); white-space: nowrap; }
.hc-sep   { font-size: 0.75rem; color: rgba(249,115,22,0.4); }
.hc-label { font-size: 0.75rem; color: rgba(200,212,192,0.55); }

/* ── STUNDENPLAN ── */
.schedule-section { padding: 4rem 1.5rem; max-width: 760px; margin: 0 auto; }
.section-title {
  font-size: 1.2rem; font-weight: 700;
  color: var(--orange); margin-bottom: 1.5rem; letter-spacing: 0.02em;
}
.timetable { border: 1px solid #2a3a2a; border-radius: 8px; overflow: hidden; }
.timetable-header {
  display: grid; grid-template-columns: 6rem 1fr 5rem 4rem;
  gap: 0; padding: 0.6rem 1rem;
  background: rgba(249,115,22,0.1);
  border-bottom: 1px solid #2a3a2a;
  font-size: 0.72rem; color: var(--orange); letter-spacing: 0.08em; text-transform: uppercase;
}
.timetable-row {
  display: grid; grid-template-columns: 6rem 1fr 5rem 4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1e2e1e;
  transition: background 0.15s;
}
.timetable-row:last-child { border-bottom: none; }
.timetable-row:hover { background: rgba(249,115,22,0.04); }
.timetable-row--now  { background: rgba(249,115,22,0.07); }
.timetable-row--future { opacity: 0.4; }

.time    { font-family: var(--mono); font-size: 0.78rem; color: #4a5a4a; }
.subject { font-size: 0.9rem; color: var(--text); }
.subject--sport     { color: var(--orange); }
.subject--highlight { color: var(--yellow); font-weight: 700; }
.subject--dim       { color: #3a4a3a; font-style: italic; }
.room  { font-size: 0.82rem; color: #5a7a5a; }
.grade { font-family: var(--mono); font-weight: 700; font-size: 0.9rem; text-align: right; }
.grade--a   { color: var(--orange); }
.grade--b   { color: var(--yellow); }
.grade--dim { color: #3a4a3a; }

/* ── SCOREBOARD ── */
.scoreboard-section { padding: 4rem 1.5rem; max-width: 600px; margin: 0 auto; }
.scoreboard {
  background: #0a0f0a;
  border: 2px solid #1a2a1a;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 50px rgba(249,115,22,0.08);
}
.scoreboard-title {
  background: var(--orange);
  color: #000; font-weight: 900;
  text-align: center; padding: 0.5rem;
  font-size: 0.9rem; letter-spacing: 0.15em;
}
.scores { padding: 1rem; }
.score-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid #1a2a1a;
}
.score-row:last-child { border-bottom: none; }
.score-row--total { margin-top: 0.5rem; padding-top: 1rem; border-top: 2px solid var(--orange); border-bottom: none; }
.score-sport { color: var(--text); font-size: 0.95rem; }
.score-val   { font-family: var(--mono); color: var(--orange); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; }
.score-val--big { font-size: 2.5rem; color: var(--yellow); }
.scoreboard-note {
  font-family: var(--mono); text-align: center;
  padding: 0.6rem; font-size: 0.72rem; color: #3a4a3a;
  border-top: 1px solid #1a2a1a;
}

/* ── SPORT GALLERY ── */
.sport-gallery-section { padding: 0 0 3rem; }
.dm-gallery-wrap { position: relative; background: #000; }

.dm-gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15); color: #fff;
  font-size: 1.1rem; width: 2.4rem; height: 2.4rem;
  border-radius: 50%; cursor: pointer; backdrop-filter: blur(6px);
  transition: background 0.2s, opacity 0.2s;
  display: flex; align-items: center; justify-content: center; opacity: 0.7;
}
.dm-gallery-btn:hover { background: rgba(0,0,0,0.8); opacity: 1; }
.dm-gallery-btn--prev { left:  0.8rem; }
.dm-gallery-btn--next { right: 0.8rem; }

.dm-gallery {
  display: flex; height: 320px; gap: 3px;
  overflow-x: auto; background: #000;
  scrollbar-width: none; cursor: grab; scroll-behavior: smooth;
}
.dm-gallery:active { cursor: grabbing; }
.dm-gallery::-webkit-scrollbar { display: none; }

.dm-photo {
  flex: 0 0 auto; width: 260px; height: 100%;
  overflow: hidden; position: relative;
}
.dm-photo img,
.dm-photo video {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
  filter: brightness(0.85) saturate(1.05);
  transition: filter 0.3s ease;
}
.dm-photo:hover img,
.dm-photo:hover video { filter: brightness(1) saturate(1.1); }

/* ── HAUSAUFGABE ── */
.homework-section { padding: 3rem 1.5rem; max-width: 600px; margin: 0 auto; }
.homework-card {
  border: 2px dashed rgba(249,115,22,0.3);
  border-radius: 4px; padding: 2rem;
  background: rgba(249,115,22,0.03);
  position: relative;
}
.hw-stamp {
  position: absolute; top: -1px; right: 1.5rem;
  background: var(--orange); color: #000;
  font-size: 0.65rem; font-weight: 900;
  letter-spacing: 0.15em; padding: 0.2rem 0.7rem;
  border-radius: 0 0 4px 4px;
}
.hw-title  { color: var(--chalk); font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.hw-list   { color: var(--text); padding-left: 1.3rem; line-height: 2; }
.hw-list strong { color: var(--yellow); }
.hw-deadline { margin-top: 1.2rem; font-size: 0.85rem; color: #5a7a5a; }
.hw-note { font-family: var(--mono); font-size: 0.72rem; color: #3a5a3a; }

/* ── EVENT CARD ── */
.event-section { padding: 3rem 1.5rem; max-width: 500px; margin: 0 auto; }
.event-card {
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 12px; padding: 2rem;
  background: var(--bg2);
  box-shadow: 0 0 40px rgba(249,115,22,0.06);
}
.event-label {
  font-family: var(--mono); font-size: 0.78rem;
  color: rgba(249,115,22,0.5); margin-bottom: 1.5rem; letter-spacing: 0.08em;
}
.event-details { display: flex; flex-direction: column; gap: 0.8rem; }
.event-row { display: flex; align-items: center; gap: 1rem; font-size: 1rem; color: var(--text); }
.event-row span:first-child { font-size: 1.2rem; width: 2rem; text-align: center; }

/* ── FORM ── */
.register { padding: 4rem 1.5rem 8rem; max-width: 580px; margin: 0 auto; }
.register-title { font-size: 1.8rem; font-weight: 800; color: var(--orange); margin-bottom: 2rem; }

.field-group { margin-bottom: 1.5rem; }
label { display: block; font-size: 0.82rem; color: var(--orange); margin-bottom: 0.4rem; letter-spacing: 0.03em; }
.req { color: var(--red); }
.opt { color: #3a5a3a; font-size: 0.78rem; }

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%; background: var(--bg3);
  border: 1px solid rgba(249,115,22,0.2);
  color: #e8e4d8; font-family: var(--font); font-size: 0.95rem;
  padding: 0.7rem 1rem; border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 12px rgba(249,115,22,0.15);
}
textarea { resize: vertical; min-height: 80px; }
.error-msg { display: block; color: var(--red); font-size: 0.75rem; margin-top: 0.3rem; min-height: 1.1em; }
.char-count { display: block; text-align: right; font-size: 0.72rem; color: #3a5a3a; margin-top: 0.3rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.cf-turnstile { margin: 1.5rem 0; }

.btn-submit {
  display: block; width: 100%; padding: 1rem;
  background: linear-gradient(135deg, #ea580c, var(--orange));
  border: none; color: #fff;
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  cursor: pointer; border-radius: 8px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-submit:hover:not(:disabled) {
  box-shadow: 0 0 28px rgba(249,115,22,0.4);
  transform: translateY(-1px);
}
.btn-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.success-state { text-align: center; padding: 2rem 0; }
.success-icon  { font-size: 4rem; margin-bottom: 1rem; }
.success-title { font-size: 2rem; font-weight: 900; color: var(--orange); margin-bottom: 0.5rem; }
.success-sub   { color: var(--text); }
.confetti-container { position: relative; height: 180px; overflow: hidden; margin-top: 1.5rem; }

/* ── REGISTER CTA ── */
.register-cta {
  padding: 3rem 1.5rem; text-align: center;
}
.register-cta__btn {
  display: inline-block;
  border: 2px solid var(--orange); color: var(--orange);
  padding: 0.9rem 2.4rem; border-radius: 50px;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.register-cta__btn:hover {
  background: var(--orange); color: #000;
  box-shadow: 0 0 24px rgba(249,115,22,0.4);
  text-decoration: none;
}

/* ── FOOTER ── */
.site-footer {
  text-align: center; padding: 2.5rem 1.5rem 5rem;
  border-top: 1px solid rgba(249,115,22,0.2);
  color: rgba(249,115,22,0.6); font-size: 0.85rem;
}
.footer-small { font-size: 0.72rem; margin-top: 0.3rem; color: rgba(249,115,22,0.4); }
.footer-ai    { font-size: 0.62rem; margin-top: 0.4rem; opacity: 0.2; letter-spacing: 0.08em; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .timetable-header,
  .timetable-row { grid-template-columns: 5rem 1fr 3.5rem 3rem; font-size: 0.82rem; }
  .chalk-title { font-size: 3rem; }
}
