/* ============================================================
   MTMS – Mentaltraining Maximilian Seibel
   SHARED.CSS

   Dieses Stylesheet wird von JEDER Seite der Website geladen.
   Es enthaelt nur die Bausteine, die auf wirklich allen Seiten
   identisch aussehen:

     1. Design-Tokens (Farben, Schriften) + Reset
     2. Buttons
     3. Header / Navigation (Desktop)
     4. Dropdown-Menue "Angebote" (Zurück in den Sport, Golf,
        Comeback nach Verletzung)
     5. Logo-Bild
     6. Mobiles Ausklapp-Menue (Hamburger)
     7. Footer
     8. Hinweisbox (z.B. fuer den "keine Therapie"-Disclaimer)
     9. Mobile-Fix (siehe Kommentar dort fuer den Grund, warum er
        ganz unten steht)

   Seitenspezifisches CSS (Hero-Bereiche, einzelne Sections wie
   Preis-Karten, Formular, FAQ, Timeline usw.) liegt in eigenen
   Dateien unter content/css/<seitenname>.css und wird zusaetzlich
   pro Seite eingebunden.
   ============================================================ */


/* ---------- 1. Design-Tokens & Reset ---------- */

:root {
  --ink: #20241F;               /* Haupttextfarbe */
  --paper: #FBFAF7;             /* Hintergrund hell */
  --paper-dim: #F1F1EA;         /* Hintergrund leicht abgesetzt */
  --card: #FFFFFF;              /* Kartenhintergrund */
  --amber: #1F3A66;             /* Primaerfarbe (Navy-Akzent) */
  --sage: #3D5A85;              /* Sekundaerfarbe */
  --sage-dim: #93AED8;          /* Sekundaerfarbe, blasser */
  --line: rgba(32, 36, 31, 0.10); /* dezente Trennlinien */
  --display: 'Manrope', sans-serif; /* Ueberschriften-Schrift */
  --body: 'Inter', sans-serif;      /* Fliesstext-Schrift */
  --mono: 'Inter', sans-serif;      /* Mono/Eyebrow-Schrift */
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Zentrierter Inhaltscontainer, wird von fast jeder Section genutzt */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Kleine, dezente Ueberschrift ueber Section-Titeln, z.B. "MENTALTRAINING" */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

/* Bewegungsreduktion respektieren (Barrierefreiheit) */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}


/* ---------- 2. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Ausgefuellter Button (Primaeraktion, z.B. "Erstgespraech") */
.btn-amber { background: var(--amber); color: #FFFFFF; }
.btn-amber:hover { background: #16294A; }

/* Umrandeter Button (Sekundaeraktion) */
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }


/* ---------- 3. Header / Navigation (Desktop) ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

nav.wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  row-gap: 10px;
  min-height: 104px;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Falls die Nav-Punkte (z.B. durch eine breitere geladene Schrift,
   Browser-Zoom oder groessere Systemschrift) doch einmal nicht in
   eine Zeile passen: lieber sichtbar in eine zweite Zeile umbrechen
   als sich mit dem Logo zu ueberlappen. min-height statt height
   sorgt dafuer, dass der Header dabei mitwaechst statt abzuschneiden. */

/* Text-Logo-Variante (aktuell wird ein Bild-Logo genutzt, diese Klasse
   bleibt als Fallback/Referenz erhalten) */
.logo {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.logo small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--sage);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a, .nav-item-trigger { position: relative; padding: 4px 0; }
.nav-item-trigger { display: inline-flex; align-items: center; cursor: default; color: inherit; }
.nav-links a::after, .nav-item-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  transition: width .2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after,
.nav-item:hover .nav-item-trigger::after,
.nav-item-trigger.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}


/* ---------- 4. Dropdown-Menue "Angebote" ---------- */

.nav-item { position: relative; }
.nav-item .caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 4px;
  transition: transform .2s ease;
}
.nav-item:hover .caret { transform: rotate(225deg) translateY(2px); }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(32, 36, 31, 0.10);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 60;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  transition: background .15s ease;
}
.dropdown a:hover { background: var(--paper-dim); }
.dropdown a.active { color: var(--amber); font-weight: 600; }


/* ---------- 5. Logo-Bild ---------- */

.logo-link { display: flex; align-items: center; }
.logo-img { height: 78px; width: auto; display: block; }

/* ---------- 6. Mobiles Ausklapp-Menue (Hamburger) ---------- */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn-amber { display: none; }
  .menu-toggle { display: flex; }

  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    padding: 6px 20px 24px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  .mobile-link {
    padding: 15px 2px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 15.5px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .mobile-link.active { color: var(--amber); }
  .mobile-group { border-bottom: 1px solid var(--line); padding: 12px 2px 8px; }
  .mobile-group-label {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 6px;
  }
  .mobile-sublink {
    display: block;
    padding: 10px 0 10px 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(32, 36, 31, 0.75);
  }
  .mobile-sublink.active { color: var(--amber); }
}


/* ---------- 7. Footer ---------- */

footer { border-top: 1px solid var(--line); padding: 46px 0 32px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
}
footer .logo { font-size: 16px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 13.5px;
  font-weight: 500;
}
.footer-links a { position: relative; padding: 2px 0; color: rgba(32, 36, 31, 0.75); }
.footer-links a:hover { color: var(--sage); }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.footer-social a:hover { background: var(--amber); border-color: var(--amber); color: #FFFFFF; }
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer-fine { font-family: var(--mono); font-size: 12px; color: rgba(32, 36, 31, 0.5); }

/* Allgemeine Reflow-Regeln fuer Footer & generische Cards auf Mobile.
   Seitenspezifische Grids (Hero, Preis-Karten usw.) werden zusaetzlich
   in der jeweiligen content/css/<seite>.css auf 1 Spalte gestellt. */
@media (max-width: 900px) {
  section { padding: 66px 0; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .cta-card { padding: 50px 26px; }
}


/* ---------- 8. Hinweisbox (z.B. "keine Therapie"-Disclaimer) ---------- */
/* Wiederverwendbar auf jeder Seite, wo ein wichtiger rechtlicher/
   inhaltlicher Hinweis hervorgehoben werden soll. */

.notice-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 28px;
}
.notice-box svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--sage);
}
.notice-box p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(32, 36, 31, 0.75);
}
.notice-box strong { color: var(--ink); }


/* ---------- 9. Mobile-Fix ---------- */
/* WICHTIG: Dieser Block steht absichtlich ganz am Ende der Datei.
   Bei gleicher Spezifitaet gewinnt in CSS die zuletzt notierte Regel -
   dieser Block ueberschreibt also zuverlaessig die Desktop-Werte fuer
   Logo-Groesse, Header-Hoehe usw. auf kleinen Bildschirmen. Wuerde er
   weiter oben stehen, koennten spaetere Regeln ihn wieder aushebeln
   (das ist uns beim ersten Versuch genau so passiert). */
@media (max-width: 900px) {
  nav.wrap { min-height: 72px; }
  .wrap { padding: 0 20px; }
  .logo-img { height: 42px; }
  .nav-actions { gap: 8px; }
  .menu-toggle { padding: 6px; margin-left: -6px; }
}
