/* GYM — Erscheinungsbild
 *
 * 2026-11-13: Farbgebung aus dem Portfolio-Simulator übernommen (~/Portfolio/mittel/stil.css):
 * Akzent warmes Orange #f08c2e, Dunkelmodus Anthrazit #2a2b2f statt Schwarz, Graustufen leicht
 * warm getönt. Hell und dunkel über CSS-Variablen, umgeschaltet über data-thema der Wurzel.
 */

/* 2026-11-14: Sportliche Schrift für den Schriftzug „GYM“ (Betreiber: „wähle für "GYM" andere
 * schriftart“). Anton (Google Fonts, SIL OFL 1.1, Lizenz in mittel/schrift/OFL-Anton.txt), lokal
 * abgelegt statt vom Google-Server geladen — Datenschutz und schneller. Nur die Latin-Teilmenge. */
@font-face {
  font-family: "Anton";
  src: url("schrift/anton.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --orange: #f08c2e;
  --orange-marke: #ffa24d;
  --auf-orange: #1f1408;
  --orange-schrift: #f59a45;

  --grund: #2a2b2f;
  --grund-tief: #212226;
  --karte: #323438;
  --karte-hell: #3a3c41;
  --linie: #46484e;
  --linie-leise: #3a3c41;
  --schrift: #eeebe6;
  --schrift-leise: #a8a49c;

  --gut: #64c07a;
  --schlecht: #e0655b;

  --schatten-klein: 0 1px 2px rgba(0, 0, 0, .12);
  --seitengrund: radial-gradient(120% 60% at 50% 0%, #34363b 0%, var(--grund) 55%) fixed;
  --kartengrund: linear-gradient(180deg,
                   color-mix(in srgb, var(--karte-hell) 45%, var(--karte)),
                   var(--karte) 42%);
  --knopfgrund: linear-gradient(180deg, #f8a24f, #ea8424);

  --titelschrift: Montserrat, "Helvetica Neue", system-ui, sans-serif;
  --markenschrift: Anton, Impact, "Arial Narrow", sans-serif;
  --textschrift: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --kopf-grund: color-mix(in srgb, #222327 92%, transparent);
  --kopf-linie: #3a3c41;
  --kopf-schrift: #eeebe6;
  --kopf-leise: #b0aca4;
  --kopf-menue: #c4c0b8;
  --kopf-menue-an: var(--orange-marke);
  --kopf-rand: #4e5056;

  --rund: 10px;
  --rund-gross: 18px;
  --breite: 1600px;
  color-scheme: dark;
}

[data-thema="hell"] {
  --orange-schrift: #b0520a;
  --grund: #ffffff;
  --karte: #fdfaf6;
  --karte-hell: #ffffff;
  --linie: #ece4da;
  --linie-leise: #f5efe8;
  --schrift: #1d1813;
  --schrift-leise: #6c6258;
  --gut: #36804b;
  --schlecht: #c0392f;
  --schatten-klein: 0 1px 3px rgba(40, 24, 8, .07), 0 8px 24px rgba(40, 24, 8, .05);
  --seitengrund: linear-gradient(180deg, #ffffff 0%, #fbf6f0 100%) fixed;
  --kartengrund: linear-gradient(180deg, #ffffff,
                   color-mix(in srgb, #ffffff 65%, var(--karte)) 60%);
  --kopf-grund: color-mix(in srgb, #ffffff 90%, transparent);
  --kopf-linie: #ece3d8;
  --kopf-schrift: #1d1813;
  --kopf-leise: #6c6258;
  --kopf-menue: #4d443a;
  --kopf-menue-an: #b0520a;
  --kopf-rand: #ddd2c4;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--seitengrund), var(--grund);
  color: var(--schrift);
  font: 15px/1.55 var(--textschrift);
  -webkit-font-smoothing: antialiased;
}
h1 { font-family: var(--titelschrift); font-size: 1.9rem; line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.08rem; margin: 0; }
a { color: var(--orange-schrift); text-decoration: none; }
a:hover { text-decoration: underline; }
.leise { color: var(--schrift-leise); }

/* ---------------------------------------------------------------- Kopf */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: var(--kopf-grund);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--kopf-linie);
}
.kopfzeile {
  max-width: var(--breite); margin: 0 auto;
  display: flex; align-items: center; gap: .75rem 1.25rem;
  padding: .65rem 1.5rem;
}
.kopfwerkzeuge { display: flex; align-items: center; gap: .8rem; margin-left: auto; }

.marke { display: flex; align-items: center; gap: 1rem; flex: 0 1 auto; min-width: 0; }
.marke:hover { text-decoration: none; }
/* 2026-11-13: Symbol und Schriftzug doppelt so groß (Betreiber: „schreibe Site-überschrift doppelt
 * "GYM" so groß … verdoppel auch dessen größe“): Symbol 46 → 92 px, Schrift 1,75 → 3,5 rem. */
.marken-logo {
  display: block; height: 92px; width: 92px; border-radius: 22px; flex: 0 0 auto;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--orange) 38%, transparent), 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.marke:hover .marken-logo { transform: translateY(-1px) rotate(-3deg); box-shadow: 0 9px 22px color-mix(in srgb, var(--orange) 50%, transparent), 0 1px 2px rgba(0, 0, 0, .2); }
.marken-text { display: grid; line-height: 1.05; min-width: 0; }
/* 2026-11-14: Anton schräg gestellt wirkt dynamischer; rechts etwas Luft, sonst schneidet der
 * Farbverlauf (background-clip) das schräge „M“ ab. */
.marken-name {
  font-family: var(--markenschrift); font-weight: 400; font-style: italic; font-size: 3.5rem;
  line-height: 1.05; letter-spacing: .02em; white-space: nowrap;
}
.marken-name b {
  /* Anton gibt es nur in einer Stärke; 800 ließe den Browser künstlich verfetten. */
  font-weight: 400; display: inline-block; padding-right: .12em;
  background: linear-gradient(100deg, #ffb760 0%, var(--orange) 45%, #d9620c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-thema="hell"] .marken-name b { background: linear-gradient(100deg, #f28a2a 0%, #d9620c 55%, #a8470a 100%); -webkit-background-clip: text; background-clip: text; }
.marken-text small {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .2em; color: var(--kopf-leise);
  margin-top: .22rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ------------------------------------------------------------- Buttons */
button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: var(--knopfgrund); color: var(--auf-orange);
  border: 0; border-radius: var(--rund); padding: .58rem 1.1rem;
  font: 550 .9rem var(--textschrift); cursor: pointer; white-space: nowrap;
}
.themaknopf {
  background: none; border: 1px solid var(--kopf-rand); color: var(--kopf-schrift); font-weight: 450;
  padding: .4rem .8rem;
}
.themaknopf:hover { border-color: var(--orange); color: var(--kopf-menue-an); }
/* Der Button zeigt, wohin er umschaltet: im Dunkeln die Sonne „Hell“, im Hellen den Mond „Dunkel“. */
.themaknopf .sonne, .themaknopf .mond { display: none; align-items: center; gap: .45rem; }
[data-thema="dunkel"] .themaknopf .sonne, [data-thema="hell"] .themaknopf .mond { display: inline-flex; }

/* ---------------------------------------------------------------- Menü */
.menue {
  max-width: var(--breite); margin: 0 auto; padding: 0 1.5rem;
  display: flex; gap: .3rem; overflow-x: auto;
}
.menue a, .menue .bald {
  color: var(--kopf-menue); padding: .45rem .9rem .55rem; border-bottom: 2px solid transparent;
  white-space: nowrap; font-weight: 550; font-size: .92rem;
}
.menue a:hover { color: var(--kopf-schrift); text-decoration: none; }
.menue a.an { color: var(--kopf-menue-an); border-bottom-color: var(--orange); }
.menue .bald { opacity: .5; cursor: default; }

main { max-width: var(--breite); margin: 0 auto; padding: 1.6rem 1.5rem 2rem; }
.fusszeile { font-size: .78rem; margin-top: 2rem; }

/* ------------------------------------------------------------ Startseite
 * 2026-11-13: Begrüßung als Bühne mit großem Symbol, darunter die Bereiche als Kacheln. */
.buehne {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--kartengrund); border: 1px solid var(--linie); border-radius: var(--rund-gross);
  box-shadow: var(--schatten-klein); padding: 1.8rem 2rem; margin-bottom: 1.6rem;
  border-left: 4px solid var(--orange);
}
.buehne-text { max-width: 44rem; }
.buehne-text p { margin: 0; }
.vorzeile {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 650;
  color: var(--orange-schrift); margin-bottom: .35rem !important;
}
.akzent { color: var(--orange-schrift); }
.buehne-bild {
  width: 108px; height: 108px; border-radius: 26px; flex: 0 0 auto;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--orange) 35%, transparent);
  transform: rotate(4deg);
}

.bereiche { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.bereich {
  background: var(--kartengrund); border: 1px solid var(--linie); border-radius: var(--rund-gross);
  box-shadow: var(--schatten-klein); padding: 1.2rem 1.3rem; min-width: 0;
  display: flex; flex-direction: column; gap: .45rem;
  transition: border-color .2s ease, transform .2s ease;
}
.bereich:hover { border-color: color-mix(in srgb, var(--orange) 55%, var(--linie)); transform: translateY(-2px); }
.bereich p { margin: 0; font-size: .9rem; }
.bereich-kopf { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .3rem; }
.bereich-symbol {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; border-radius: 12px;
  background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange-schrift);
}
.bald-marke {
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  padding: .12rem .55rem; border-radius: 99px; border: 1px solid var(--linie); color: var(--schrift-leise);
}

/* ------------------------------------------------------- Handy und Tablet
 * 2026-11-13: Wie im Portfolio: bis 760 px Kopf nicht klebend, Buttons im Kopf nur als Symbol,
 * Marke kleiner; Bühne untereinander. Kein seitliches Scrollen bei 375 px. */
@media (max-width: 760px) {
  .kopf { position: static; }
  .kopfzeile { padding: .55rem 1rem; }
  .menue { padding: 0 .4rem; }
  .menue a, .menue .bald { padding: .4rem .6rem .5rem; }
  .lang { display: none; }
  .themaknopf { padding: .45rem; }
  /* 2026-11-13: Auf dem Handy nicht ganz doppelt, damit der Kopf kompakt bleibt. */
  .marke { gap: .7rem; }
  .marken-logo { height: 62px; width: 62px; border-radius: 16px; }
  .marken-name { font-size: 2.5rem; }
  .marken-text small { font-size: .58rem; letter-spacing: .14em; }
  main { padding: 1.1rem 1rem 1.5rem; }
  h1 { font-size: 1.5rem; }
  .buehne { padding: 1.2rem 1.2rem; gap: 1rem; }
  .buehne-bild { width: 64px; height: 64px; border-radius: 16px; }
  .bereiche { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: .8rem; }
}
@media (max-width: 420px) {
  .buehne-bild { display: none; }
}
