@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --surface2: #1e1e1e;
  --border: #2a2a2a;
  --accent: #e8ff47;
  --text: #f5f5f5;
  --muted: #777;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* HERO BEREICH */
.hero {
  padding: 80px 40px 60px;
  border-bottom: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
  animation: fadeUp 0.8s ease both;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  max-width: 420px;
  line-height: 1.7;
}

/* FORMULAR */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
  animation: fadeUp 0.8s 0.1s ease both;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .hero, .form-container { padding: 40px 20px; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field.full { grid-column: 1 / -1; }

label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

input, select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 16px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}

input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,255,71,0.08);
}

input::placeholder { color: #444; }

/* VERSTECKTER BEREICH */
#bestzeitFeld, #fitnessFeld {
  grid-column: 1 / -1;
}

/* BUTTON */
.btn-wrap {
  grid-column: 1 / -1;
  margin-top: 12px;
}

button {
  width: 100%;
  padding: 20px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover {
  background: #f0ff70;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232,255,71,0.2);
}

button:active { transform: translateY(0); }

/* LADEANIMATION */
.loading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px;
  color: var(--muted);
  font-size: 14px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ERGEBNIS */
#ergebnis {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 80px;
  animation: fadeUp 0.6s ease both;
}

#ergebnis h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 8px;
}

.plan-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  font-size: 14px;
  line-height: 1.9;
  color: #ccc;
  white-space: pre-wrap;
}

.plan-card strong, .plan-card b {
  color: var(--accent);
  font-weight: 600;
}

/* TRENNLINIE */
.divider {
  height: 1px;
  background: var(--border);
  max-width: 800px;
  margin: 0 auto 60px;
}

/* ANIMATIONEN */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}/* KALENDER */
.kalender-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 32px;
}

.kalender {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kalender-woche {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.woche-label {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: var(--muted);
  width: 60px;
  padding-top: 14px;
  flex-shrink: 0;
}

.woche-tage {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  flex: 1;
}

.tag-karte {
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--border);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.trainings-tag {
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.trainings-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(174, 170, 170, 0.3);
}

.ruhe-tag {
  background: var(--surface);
  opacity: 0.4;
}

.tag-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.tag-typ {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.tag-dauer {
  font-size: 10px;
  color: var(--muted);
}

.intensitaet-hoch {
  background: rgba(255, 80, 80, 0.12);
  border-color: rgba(255, 80, 80, 0.3);
}

.intensitaet-hoch .tag-typ { color: #ff6b6b; }

.intensitaet-mittel {
  background: rgba(232, 255, 71, 0.08);
  border-color: rgba(232, 255, 71, 0.25);
}

.intensitaet-mittel .tag-typ { color: var(--accent); }

.intensitaet-niedrig {
  background: rgba(80, 200, 120, 0.1);
  border-color: rgba(80, 200, 120, 0.25);
}

.intensitaet-niedrig .tag-typ { color: #5cb85c; }

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal.aktiv { display: flex; }

.modal-inhalt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-schliessen {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: auto;
  padding: 6px 12px;
  border-radius: 8px;
}

.modal-typ-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modal-inhalt h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin-bottom: 4px;
}

.modal-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.modal-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.modal-wert {
  font-size: 14px;
  line-height: 1.7;
  color: #ccc;
}

.modal-tipp {
  margin-top: 16px;
  padding: 14px;
  background: rgba(232,255,71,0.06);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .kalender { padding: 0 16px 60px; }
  .kalender-header { padding: 0 16px 24px; }
  .woche-label { display: none; }
  .tag-typ { font-size: 10px; }
}/* TAGE AUSWAHL */
.tage-auswahl {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.tag-btn.aktiv {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.tag-btn:hover:not(.aktiv) {
  border-color: var(--accent);
  color: var(--accent);
}/* EXPORT BEREICH */
.export-bereich {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 28px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.export-bereich h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 6px;
}

.export-bereich p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

.btn-export {
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: auto;
  letter-spacing: 0;
  text-transform: none;
}

.btn-export:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-1px);
  box-shadow: none;
}/* LANDING PAGE */
.landing {
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13,13,13,0.9);
  backdrop-filter: blur(12px);
  z-index: 50;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--text);
}

.nav-logo span { color: var(--accent); }

.nav-btn {
  padding: 10px 20px;
  background: var(--accent);
  color: #000;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: #f0ff70;
  transform: translateY(-1px);
}

.landing-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 40px 80px;
  text-align: center;
}

.landing-badge {
  display: inline-block;
  background: rgba(200,241,53,0.1);
  border: 1px solid rgba(200,241,53,0.25);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.landing-titel {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 1;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}

.landing-titel em {
  font-style: italic;
  color: var(--accent);
}

.landing-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 300;
  animation: fadeUp 0.8s 0.1s ease both;
}

.landing-cta {
  display: inline-block;
  padding: 18px 40px;
  background: var(--accent);
  color: #000;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 60px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.landing-cta:hover {
  background: #f0ff70;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232,255,71,0.2);
}

.landing-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.stat-zahl {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--text);
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* SCHRITTE */
.schritte-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: -32px;
  margin-bottom: 40px;
}

.schritte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 600px) {
  .schritte-grid { grid-template-columns: 1fr; }
  .beispiele-grid { grid-template-columns: 1fr 1fr; }
}

.schritt-nr {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--border);
  line-height: 1;
  margin-bottom: 12px;
}

.schritt-titel {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.schritt-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* BEISPIELE */
.beispiele-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 80px;
  border-top: 1px solid var(--border);
  padding-top: 80px;
}

.beispiele-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.beispiel-karte {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.beispiel-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.beispiel-titel {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.beispiel-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* TRENNLINIE LANDING */
.landing-divider {
  text-align: center;
  padding: 60px 40px;
  position: relative;
}

.landing-divider::before {
  content: '';
  position: absolute;
  left: 40px;
  right: 40px;
  top: 50%;
  height: 1px;
  background: var(--border);
}

.divider-text {
  display: inline-block;
  background: var(--bg);
  padding: 8px 24px;
  position: relative;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}/* MEHRTÄGIGE EINHEITEN */
.trainings-tag-multi {
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 80px;
}

.trainings-tag-multi .tag-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 8px 4px;
  background: var(--surface);
}

.tag-einheit {
  flex: 1;
  padding: 6px 8px;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.tag-einheit:hover { opacity: 0.8; }

.tag-einheit .tag-typ {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.tag-einheit .tag-dauer {
  font-size: 10px;
  color: var(--muted);
}/* SVG ANIMATIONEN */
.uebung-animation {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: rgba(232,255,71,0.03);
  border-bottom: 1px solid var(--border);
}

.uebung-svg-gross {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.uebung-animation {
  display: flex;
  justify-content: center;
  padding: 16px 8px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
}

.uebung-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.uebung-detail.offen {
  max-height: 400px;
}

.uebung-animation {
  display: flex;
  justify-content: center;
  padding: 20px;
  background: rgba(232,255,71,0.03);
  border-bottom: 1px solid var(--border);
}

.uebung-svg-gross {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.uebung-animation {
  display: flex;
  justify-content: center;
  padding: 16px 8px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
}
.uebung-name-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.uebung-header {
  cursor: pointer;
  padding: 12px 16px;
}

.uebung-header:hover .uebung-name-link {
  color: #f0ff70;
}/* AUTH */
.auth-bereich {
  display: flex;
  align-items: center;
  gap: 12px;
}

#auth-eingeloggt {
  display: flex;
  align-items: center;
  gap: 12px;
}

#auth-email {
  font-size: 13px;
  color: var(--muted);
}

.nav-btn-outline {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.nav-btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* COACH CHAT */
.coach-chat {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.coach-chat h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 16px;
}

.chat-verlauf {
  min-height: 120px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.chat-nachricht {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 85%;
}

.chat-nachricht.nutzer {
  background: rgba(232,255,71,0.1);
  border: 1px solid rgba(232,255,71,0.2);
  color: var(--accent);
  align-self: flex-end;
}

.chat-nachricht.coach {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-start;
}

.chat-eingabe {
  display: flex;
  gap: 10px;
}

.chat-eingabe input {
  flex: 1;
}

.chat-eingabe button {
  width: auto;
  padding: 12px 20px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

/* SPEICHERN BANNER */
.speichern-banner {
  max-width: 800px;
  margin: 0 auto 32px;
  padding: 16px 24px;
  background: rgba(232,255,71,0.06);
  border: 1px solid rgba(232,255,71,0.2);
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.speichern-banner button {
  width: auto;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 8px;
}

.speichern-banner button:last-child {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: none;
}