/* Stil: hell, grosse runde Karten, grosse Kennzahlen, blauer Akzent.
   Schrift: Figtree (SIL Open Font License), liegt lokal in static/fonts, nichts wird aus dem Internet geladen. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
             src: url("/static/fonts/figtree-latin-wght-normal.woff2") format("woff2"); }
:root {
  --akzent: #1f8fff;
  --text: #1d1f24;
  --grau: #6b7280;
  --linie: #e5e7eb;
  --hintergrund: #f1f2f5;
}
* { box-sizing: border-box; }
button, input, textarea { font-family: inherit; }
body { margin: 0; background: var(--hintergrund); color: var(--text);
       font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
       font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { margin: 0; font-size: 2.4rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
h3 { margin: 1rem 0 .5rem; font-size: 1.1rem; }

.top { background: #fff; border-bottom: 1px solid var(--linie); padding: .7rem 1.4rem; }
.marke { color: var(--text); font-weight: 700; display: inline-flex; align-items: center; gap: .6rem; }
.marke:hover { text-decoration: none; }
.logo { width: 22px; height: 22px; border-radius: 6px; background: var(--akzent); display: inline-block; position: relative; }
.logo::after { content: ""; position: absolute; left: 6px; top: 5px; width: 10px; height: 10px;
               border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-135deg) translate(1px, -1px); }

main { max-width: 1100px; margin: 0 auto; padding: 1.2rem; }
.card { background: #fff; border-radius: 18px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.zurueck { margin: 0 0 .8rem; font-size: .9rem; }
.hinweis { color: var(--grau); font-size: .82rem; margin: .7rem 0 0; }
.meldung { padding: .6rem .9rem; background: #eaf4ff; border: 1px solid #b9dcff; border-radius: 10px; }
.meldung.fehler { background: #fde8e8; border-color: #f5b5b5; color: #9b1c1c; }

/* Kopf der Aktivitaet */
.kopf { background: #fff; border-radius: 18px; padding: 1.5rem 1.6rem 1.3rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.titel { display: flex; align-items: center; gap: .8rem; }
.stift { border: 1px solid var(--linie); background: #fff; border-radius: 50%; width: 36px; height: 36px; font-size: 1.1rem;
         color: var(--grau); cursor: pointer; flex: none; }
.stift:hover { color: var(--akzent); border-color: var(--akzent); }
.gross3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.gross3 span { display: block; color: var(--grau); font-size: .95rem; }
.gross3 b { font-size: 2.3rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.2; font-variant-numeric: tabular-nums; }

/* Liste: wochenweise Gruppen, jede Aktivitaet eine Karte wie in der Detailansicht */
.upload { display: flex; gap: .8rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.knopf { display: inline-block; background: var(--akzent); color: #fff; border: 0; border-radius: 999px; padding: .55rem 1.2rem;
         font: inherit; font-weight: 600; cursor: pointer; }
.knopf:hover { filter: brightness(.95); }
.unter { margin: .35rem 0 0; color: var(--grau); }
.woche { margin-bottom: .6rem; }
.woche[hidden], .eintrag[hidden] { display: none; }
.woche-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
              padding: 1rem .4rem .5rem; }
.woche-kopf b { font-size: 1.05rem; }
.woche-kopf span { color: var(--grau); font-size: .9rem; font-variant-numeric: tabular-nums; }
.eintrag { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 18px; padding: 1rem 1.3rem;
           margin-bottom: .6rem; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.eintrag:hover { text-decoration: none; box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.eintrag .symbol { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
                   background: #eaf4ff; color: var(--akzent); flex: none; }
.eintrag .text { flex: 1; min-width: 0; }
.eintrag .text b { display: block; font-size: 1.15rem; font-weight: 600; }
.eintrag .text small { display: block; color: var(--grau); font-size: .85rem; margin-top: .1rem; }
.eintrag .zahlen { display: grid; grid-template-columns: 5.8rem 5.2rem 8.2rem 3.6rem; gap: .6rem; font-variant-numeric: tabular-nums; }
.eintrag .zahlen small { display: block; color: var(--grau); font-size: .78rem; }
.eintrag .zahlen b { display: block; font-size: 1.2rem; font-weight: 600; }

/* Schalter ueber dem Diagramm */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 .6rem; }
.chip { border: 1.5px solid var(--c, #cfd3da); color: var(--c, var(--grau)); background: #fff; border-radius: 999px; padding: .25rem .75rem;
        font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.chip.an { background: var(--c, var(--akzent)); color: #fff; border-color: var(--c, var(--akzent)); }
.chip.text { border-color: transparent; background: none; color: var(--grau); font-weight: 500; padding: .25rem .4rem; }
.chip.text:hover { color: var(--text); }
.chips .trenn { width: 1px; height: 1.2rem; background: var(--linie); margin: 0 .2rem; }

/* Kacheln (schalten zugleich die Linien im Diagramm) */
.kachelraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kachel { position: relative; text-align: left; background: #fff; border: 2px solid transparent; border-radius: 16px;
          padding: .9rem 1.1rem 1rem; font: inherit; color: var(--text); cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.kachel .kl { display: flex; align-items: center; gap: .5rem; color: var(--grau); font-size: .95rem; }
.kachel .ikon { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
                background: color-mix(in srgb, var(--c) 18%, white); color: var(--c); }
.kachel .ikon svg { display: block; }
.kachel .kw { display: block; margin-top: .4rem; font-size: 2rem; font-weight: 600; letter-spacing: -.005em; font-variant-numeric: tabular-nums; }
.kachel .pf { position: absolute; right: 1rem; top: .8rem; color: #9ca3af; font-size: 1.3rem; }
.kachel.an { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, white); }
.kachel.statisch { cursor: default; }

/* Bewertung */
.bw-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.bw-kopf small { color: var(--grau); }
.bw-kopf h2 { margin: .2rem 0 0; font-size: 1.8rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.2; }
.balkenwahl { display: flex; align-items: flex-end; gap: 6px; }
.balkenwahl button { width: 16px; border: 0; border-radius: 8px; background: #dfe2e8; cursor: pointer; padding: 0; }
.balkenwahl button:nth-child(1) { height: 16px; } .balkenwahl button:nth-child(2) { height: 26px; }
.balkenwahl button:nth-child(3) { height: 36px; } .balkenwahl button:nth-child(4) { height: 46px; }
.balkenwahl button:nth-child(5) { height: 56px; }
.balkenwahl button.an { background: var(--akzent); }
#notiz { width: 100%; min-height: 72px; margin-top: .8rem; border: 1px solid var(--linie); border-radius: 12px; padding: .7rem; font: inherit; resize: vertical; }
.bw-fuss { display: flex; align-items: center; gap: .8rem; margin-top: .6rem; }
.bw-fuss .hinweis { margin: 0; }

/* Runden: jede Zeile ein abgerundetes Feld, wie die Kacheln */
.rtabelle { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.rtabelle th { color: var(--grau); font-weight: 500; text-align: left; padding: .1rem .9rem; font-size: .82rem; border: 0; }
.rtabelle td { padding: .65rem .9rem; border: 0; background: #f6f7f9; white-space: nowrap; }
.rtabelle td:first-child { border-radius: 14px 0 0 14px; }
.rtabelle td:last-child { border-radius: 0 14px 14px 0; }
.rtabelle tr[data-nr] { cursor: pointer; }
.rtabelle tr[data-nr]:hover td { background: #eceef2; }
.rtabelle tr.intervall td { background: #eaf4ff; }
.rtabelle tr.intervall:hover td { background: #dcecff; }
.rtabelle tr.pause td { color: var(--grau); }
.rtabelle tr.gewaehlt td { background: #cfe5ff !important; }
.rtabelle tr.serie { cursor: pointer; }
.rtabelle tr.serie td { background: none; padding: .9rem .2rem .1rem; font-weight: 700; color: var(--akzent); font-size: .95rem; }
.rtabelle td.tempo { width: 34%; }
.rname { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
         background: #fff; color: var(--akzent); border: 2px solid var(--akzent); font-size: .85rem; font-weight: 700; flex: none; }
.badge.grau { color: #9ca3af; border-color: #d4d7de; font-size: .7rem; }
.tempozelle { display: flex; align-items: center; gap: .8rem; }
.tempozelle .wert { width: 3.6rem; font-weight: 600; font-size: 1.1rem; }
.tempozelle .bar { flex: 1; height: 12px; background: #e6e8ed; border-radius: 999px; min-width: 40px; }
.tempozelle .bar i { display: block; height: 12px; border-radius: 999px; background: #b6bbc6; }
tr.intervall .tempozelle .bar { background: #cfe3fb; }
tr.intervall .tempozelle .bar i { background: var(--akzent); }
.herz { color: #ef4444; margin-right: .25rem; font-size: .85rem; }
.blitz { color: #f59e0b; margin-right: .25rem; font-size: .85rem; }

/* Zonen mit Reitern */
.zonenkopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.zonenkopf h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.reiter { display: inline-flex; background: #f0f1f4; border-radius: 999px; padding: 3px; }
.reiter-knopf { border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 600; color: var(--grau);
                padding: .3rem .9rem; border-radius: 999px; cursor: pointer; }
.reiter-knopf.an { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.zonenpanel[hidden] { display: none; }

/* Zonen */
.balken { display: flex; align-items: center; gap: .8rem; margin: .25rem 0; font-size: .9rem; }
.balken .name { width: 270px; flex: none; }
.balken .leiste { flex: 1; height: 14px; background: #e6e8ed; border-radius: 999px; }
.balken .fuell { height: 14px; border-radius: 999px; background: var(--akzent); }
.balken .wert { width: 9rem; text-align: right; color: var(--grau); }

@media (max-width: 640px) {
  main { padding: .6rem; }
  h1 { font-size: 1.8rem; }
  .gross3 b { font-size: 1.6rem; }
  .eintrag { flex-wrap: wrap; }
  .eintrag .zahlen { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .bw-kopf h2 { font-size: 1.4rem; }
  .balken { flex-wrap: wrap; }
  .balken .name { width: 100%; }
  .balken .leiste { flex: 1; }
}

/* Vergleich aehnlicher Einheiten */
.vergleich td small { color: var(--grau, #8b8b96); }
.vergleich td.besser { color: var(--akzent, #1f8fff); font-weight: 700; }
.vergleich td.schwaecher { color: #c2410c; font-weight: 700; }

/* Trend-Pfeil auf der Einheit */
.vglzeile { margin: 1rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.trend { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none; color: var(--akzent, #1f8fff); }
.trend b { font-size: 1.05rem; }
.trend small { color: var(--grau, #8b8b96); font-size: .82rem; }
.trend.r-1 { color: #c2410c; }
.trend.r0 { color: var(--grau, #8b8b96); }

/* Navigation */

/* Hitze und Bestzeiten */
.knopf.klein { padding: .3rem .85rem; font-size: .9rem; }
.knopf.hell { background: #eef0f3; color: var(--text); }
.knopf.rand { background: #fff; color: var(--grau); border: 1.5px solid #cfd3da; }
.btabelle td form { display: inline; }
.btabelle .vorschlag { background: color-mix(in srgb, var(--akzent) 10%, #fff); }
.btabelle small { color: var(--grau); }

.hitzechart text { font-size: 13px; fill: #6b7280; font-family: inherit; }
.btabelle td { white-space: normal; }
.btabelle td form { margin-left: .3rem; }

/* Hitzeanpassungs-Score */
.scorekopf { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; justify-content: space-between; align-items: flex-end; }
.scorekopf small { color: var(--grau); }
.scorezahl { display: flex; align-items: baseline; gap: .8rem; margin: .2rem 0; }
.scorezahl b { font-size: 3rem; line-height: 1; letter-spacing: -.02em; }
.scorezahl span { color: var(--akzent); font-weight: 700; }
.scoreform { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.scoreform label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--grau); }
.scoreform input { font: inherit; font-size: 1rem; color: var(--text); border: 1.5px solid #cfd3da; border-radius: 12px; padding: .4rem .6rem; background: #fff; }
.scoreform input[type=number] { width: 6.5rem; }
.scoreform input[type=text] { width: 14rem; }
.scoreliste { margin-top: .8rem; }
.scoreliste summary { cursor: pointer; color: var(--grau); }
.scoreliste form { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid #eef0f3; }

.hchart svg text { font-size: 13px; fill: #6b7280; font-family: inherit; }
.hchart .hinweis { margin: 1rem 0; }

/* Kopfzeile und Zurueck-Buttons (ueberarbeitet) */
.top { background: #fff; border-bottom: 0; padding: .8rem 1.2rem; box-shadow: 0 1px 0 var(--linie); }
.top-innen { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; flex-wrap: wrap; }
.marke { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.menue { display: flex; gap: .3rem; background: #eef0f3; border-radius: 999px; padding: .25rem; }
.menue a { color: var(--grau); font-weight: 600; padding: .38rem 1rem; border-radius: 999px; }
.menue a:hover { color: var(--text); text-decoration: none; }
.menue a.an { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.zurueck { margin: 0 0 1rem; }
.zurueck a { display: inline-block; background: #fff; color: var(--text); font-weight: 600; font-size: .95rem; padding: .45rem 1.1rem;
             border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.zurueck a:hover { color: var(--akzent); text-decoration: none; }

[hidden] { display: none !important; }

/* Kalender und Ampeln */
.ampel { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1); flex: none; }
.ampel.gruen { background: #22c55e; } .ampel.gelb { background: #f5b301; } .ampel.rot { background: #ef4444; }
.ampel.grau { background: #cbd2dc; } .ampel.blau1 { background: #93c5fd; } .ampel.blau2 { background: #2563eb; } .ampel.orange { background: #f97316; }
.kal-nav { display: flex; align-items: center; gap: 1rem; }
.kal-nav h1 { font-size: 1.8rem; flex: 1; }
.pfeil { width: 40px; height: 40px; border-radius: 50%; background: #eef0f3; color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.pfeil:hover { background: #e3e6eb; text-decoration: none; }
.planform summary { cursor: pointer; font-weight: 700; }
.planform select { font: inherit; border: 1.5px solid #cfd3da; border-radius: 12px; padding: .4rem .6rem; background: #fff; }
.tagzeile { display: flex; gap: 1.2rem; align-items: flex-start; padding: .9rem 1.2rem; }
.tagzeile.heute { box-shadow: 0 0 0 2px var(--akzent); }
.tagkopf { width: 3.2rem; flex: none; display: flex; flex-direction: column; }
.tagkopf span { color: var(--grau); font-size: .85rem; }
.tagfeld { flex: 1; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.leer { color: #c4c9d2; }
.planbox, .istbox { display: flex; align-items: center; gap: .8rem; background: #f6f7f9; border-radius: 14px; padding: .5rem .8rem; color: var(--text); }
.istbox:hover { text-decoration: none; background: #eef0f3; }
.planbox { background: color-mix(in srgb, var(--akzent) 8%, #fff); border: 1.5px dashed color-mix(in srgb, var(--akzent) 40%, #fff); }
.symbol svg { width: 22px; height: 22px; color: var(--akzent); }
.plantext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plantext small { color: var(--grau); }
.ampeln { display: flex; gap: .35rem; }
.planaktion { display: flex; gap: .7rem; font-size: .85rem; align-items: center; }
.planaktion form { display: inline; }
.linkknopf { border: 0; background: none; color: var(--akzent); cursor: pointer; font: inherit; font-size: .85rem; padding: 0; }
.monat { padding: .8rem; }
.monatraster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(8.6rem, 10rem); gap: 4px; margin-bottom: 4px; }
.monatkopf span { text-align: center; color: var(--grau); font-weight: 600; font-size: .85rem; }
.monatstag { min-height: 86px; background: #f6f7f9; border-radius: 12px; padding: .35rem .45rem; color: var(--text); display: flex; flex-direction: column; gap: .2rem; }
.monatstag:hover { text-decoration: none; background: #eef0f3; }
.monatstag.fremd { opacity: .45; } .monatstag.heute { box-shadow: 0 0 0 2px var(--akzent); }
.monatstag small { color: var(--grau); margin-top: auto; }
.mpunkte { display: flex; flex-wrap: wrap; gap: 2px; }
.msymbol { position: relative; display: inline-flex; }
.msymbol svg { width: 18px; height: 18px; color: var(--akzent); }
.msymbol.ist svg { color: #8b93a1; }
.msymbol .ampel { position: absolute; right: -4px; bottom: -4px; width: 9px; height: 9px; border-width: 1px; }
@media (max-width: 640px) { .monatstag { min-height: 64px; } .tagzeile { gap: .6rem; } .planaktion { flex-direction: column; align-items: flex-end; gap: .1rem; } }
.ampelinfo { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); }
.ampelinfo:hover { text-decoration: none; }
.ampelinfo small { color: var(--grau); font-size: .85rem; }
.wochensumme { min-height: 86px; background: color-mix(in srgb, var(--akzent) 8%, #fff); border-radius: 12px; padding: .4rem .55rem; color: var(--text); display: flex; flex-direction: column; gap: .05rem; font-variant-numeric: tabular-nums; }
.wochensumme:hover { text-decoration: none; background: color-mix(in srgb, var(--akzent) 14%, #fff); }
.wochensumme.aktuell { box-shadow: 0 0 0 2px var(--akzent); }
.wochensumme b { font-size: .85rem; color: var(--grau); }
.wochensumme span { font-weight: 700; }
.wochensumme small { color: var(--grau); margin-top: auto; }
@media (max-width: 640px) { .wochensumme { min-height: 64px; padding: .3rem .4rem; font-size: .8rem; } .monatraster { grid-template-columns: repeat(7, minmax(0, 1fr)) 4.6rem; } }
.wsport { display: flex; align-items: center; gap: .3rem; font-size: .85rem; }
.wsport i { display: inline-flex; } .wsport svg { width: 16px; height: 16px; color: var(--akzent); }
.wsport em { font-style: normal; font-weight: 500; color: var(--grau); margin-left: auto; }
.wgesamt { margin-top: .15rem; padding-top: .15rem; border-top: 1px solid #dfe5ee; font-size: .8rem; color: var(--grau); }
@media (max-width: 640px) { .monatraster { grid-template-columns: repeat(7, minmax(0, 1fr)) 7.2rem; } .wsport { font-size: .72rem; } .wsport svg { display: none; } }
.tagzeile { scroll-margin-top: 1rem; }
.tagzeile.fokus { background: color-mix(in srgb, var(--akzent) 6%, #fff); box-shadow: 0 0 0 2px color-mix(in srgb, var(--akzent) 55%, #fff); }
.eintragform { align-items: flex-end; }
.distzeile { display: flex; gap: .3rem; }

/* Formular "Manuell eintragen" */
.eform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.2rem; padding: 1.5rem; }
.efeld { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.efeld.voll, .efuss.voll { grid-column: 1 / -1; }
.elabel { font-weight: 600; font-size: .95rem; }
.elabel em { font-style: normal; font-weight: 400; color: var(--grau); font-size: .85rem; margin-left: .3rem; }
.efeld small { color: var(--grau); font-size: .82rem; }
.eform input[type=text], .eform input[type=date], .eform input[type=time], .eform select {
  font: inherit; font-size: 1.05rem; color: var(--text); background: #f6f7f9; border: 1.5px solid transparent; border-radius: 14px;
  padding: .7rem .9rem; width: 100%; min-width: 0; }
.eform input:focus, .eform select:focus { outline: none; border-color: var(--akzent); background: #fff; }
.eform .distzeile { display: flex; gap: .5rem; }
.eform .distzeile select { width: 5.5rem; flex: none; }
.sportwahl { display: flex; flex-wrap: wrap; gap: .5rem; }
.sportwahl label { cursor: pointer; }
.sportwahl input { position: absolute; opacity: 0; pointer-events: none; }
.sportwahl span { display: inline-block; padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid #cfd3da; color: var(--grau); font-weight: 600; background: #fff; }
.sportwahl input:checked + span { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.sportwahl input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 30%, #fff); }
.efuss { display: flex; align-items: center; gap: .8rem; padding-top: .3rem; }
@media (max-width: 560px) { .eform { grid-template-columns: 1fr; } }

/* Workouts */
.wkarte { display: flex; align-items: center; gap: .6rem; padding-right: .8rem; }
.wkarte .wlink { flex: 1; display: flex; align-items: center; gap: 1rem; color: var(--text); min-width: 0; }
.wkarte .wlink:hover { text-decoration: none; }
.waktion { display: flex; flex-direction: column; gap: .15rem; align-items: flex-end; }
.waktion form { display: inline; }
.wbuttons { display: flex; gap: .5rem; margin-top: .8rem; }
.wschritt { display: grid; grid-template-columns: 8rem auto auto minmax(6rem, 1fr) auto; gap: .5rem .7rem; align-items: center; background: #f6f7f9; border-radius: 14px; padding: .55rem .7rem; margin-bottom: .45rem; }
.wschritt select, .wschritt input, .wdhkopf input { font: inherit; font-size: .95rem; color: var(--text); background: #fff; border: 1.5px solid #e3e7ee; border-radius: 10px; padding: .4rem .55rem; min-width: 0; }
.wdauer, .wziel { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.weinheit { color: var(--grau); font-size: .85rem; }
.wtools { display: flex; gap: .2rem; justify-content: flex-end; }
.mini { border: 0; background: #fff; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; color: var(--grau); font-size: .95rem; }
.mini:hover { color: var(--akzent); }
.wdh { border: 2px solid color-mix(in srgb, var(--akzent) 35%, #fff); border-radius: 16px; padding: .6rem .7rem; margin-bottom: .55rem; background: color-mix(in srgb, var(--akzent) 4%, #fff); }
.wdhkopf { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin-bottom: .5rem; }
.wspace { flex: 1; }
.wsumme { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: .8rem; }
.wsumme small { display: block; color: var(--grau); }
.wsumme b { font-size: 1.6rem; }
#vorschau svg { display: block; }
@media (max-width: 760px) { .wschritt { grid-template-columns: 1fr 1fr; } .wtools { grid-column: 1 / -1; } }
.wnotiz { grid-column: 1 / -1; width: 100%; }
.wziel select { max-width: 15rem; }

/* Planseite */
.formchips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .8rem; }
.fchip { color: #fff; font-weight: 700; padding: .3rem .8rem; border-radius: 8px; }
.fchip.fit { background: #1d4ed8; } .fchip.mued { background: #db2777; } .fchip.form { background: #f97316; }
.pschritt { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; background: #f6f7f9; border-radius: 12px; padding: .5rem .8rem; margin-bottom: .35rem; }
.pschritt .part { color: var(--grau); min-width: 6.5rem; }
.pschritt .pziel { color: var(--akzent); font-weight: 600; }
.pschritt small { flex-basis: 100%; color: var(--grau); }
.pwdh { border: 2px solid color-mix(in srgb, var(--akzent) 30%, #fff); border-radius: 14px; padding: .5rem .6rem; margin-bottom: .45rem; }
.pwdhkopf { font-weight: 700; margin-bottom: .35rem; }

/* Intervall-Assistent */
.assi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.4rem; margin: .9rem 0; }
.agruppe { background: #f6f7f9; border-radius: 14px; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.agruppe h4 { margin: 0; font-size: 1rem; } .agruppe h4 em { font-weight: 400; font-style: normal; color: var(--grau); font-size: .85rem; }
.azeile { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.assi label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--grau); }
.assi label em { font-style: normal; }
.assi input[type=text], .assi select, .assi textarea { font: inherit; font-size: .95rem; color: var(--text); background: #fff; border: 1.5px solid #e3e7ee; border-radius: 10px; padding: .4rem .55rem; min-width: 0; width: 7.5rem; }
.assi textarea { width: 100%; }
.assi .distzeile { display: flex; gap: .3rem; } .assi .distzeile select { width: 5.2rem; } .assi .distzeile input { width: 5.6rem; }
.achk { flex-direction: row !important; align-items: center; gap: .5rem !important; font-size: 1rem !important; color: var(--text) !important; }
@media (max-width: 760px) { .assi { grid-template-columns: 1fr; } }
/* Ziehen */
.griff { cursor: grab; color: #b0b7c3; padding: 0 .3rem; font-size: 1.1rem; user-select: none; }
.zieht { opacity: .45; }
.drop-oben { box-shadow: 0 -3px 0 0 var(--akzent); } .drop-unten { box-shadow: 0 3px 0 0 var(--akzent); }
.grundform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tagwahl { cursor: pointer; user-select: none; }
@media (max-width: 560px) { .grundform { grid-template-columns: 1fr; } }

/* Training planen (ein Panel) */
.tpknopf { display: inline-block; background: var(--akzent); color: #fff; border-radius: 999px; padding: .55rem 1.2rem; font-weight: 700; cursor: pointer; list-style: none; }
.planform > summary.tpknopf::-webkit-details-marker { display: none; }
details#tp[open] > summary.tpknopf { margin-bottom: 1rem; background: #eef0f3; color: var(--text); }
details#tp { padding: 1rem 1.2rem; }
.tpkopf { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: .8rem; }
.tpkopf input[type=date] { font: inherit; font-size: 1.05rem; color: var(--text); background: #f6f7f9; border: 1.5px solid transparent; border-radius: 14px; padding: .6rem .9rem; }
.tpkopf input[type=date]:focus { outline: none; border-color: var(--akzent); background: #fff; }

/* Einstellungen: Reiter und Daten */
.reiterleiste { display: flex; gap: .3rem; background: #eef0f3; border-radius: 999px; padding: .25rem; width: fit-content; margin-bottom: 1rem; }
.reiterleiste a { color: var(--grau); font-weight: 600; padding: .35rem 1rem; border-radius: 999px; }
.reiterleiste a:hover { color: var(--text); text-decoration: none; }
.reiterleiste a.an { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.dimport { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.dimport > div { background: #f6f7f9; border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.dimport small { color: var(--grau); }
.dimport form { margin: 0; }
.dlog { background: #1d1f24; color: #e5e7eb; border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0 0; font-size: .85rem; white-space: pre-wrap; max-height: 14rem; overflow: auto; }
.dsel { font: inherit; border: 1.5px solid #cfd3da; border-radius: 12px; padding: .45rem .7rem; background: #fff; }

/* Aktivitaeten: Monat, Suche */
.pfeil.aus { opacity: .35; cursor: default; }
.listensteuer { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; margin-top: .9rem; }
.suche { display: flex; gap: .4rem; margin: 0; flex: 1 1 16rem; }
.suche input { flex: 1; min-width: 0; font: inherit; border: 1.5px solid #cfd3da; border-radius: 999px; padding: .5rem 1rem; background: #fff; }
.suche input:focus { outline: none; border-color: var(--akzent); }
.listenlinks { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.knopf { white-space: nowrap; }

/* Formulare vereinheitlicht: alle Eingaben wie im Raster-Formular */
.scoreform input[type=text], .scoreform input[type=date], .scoreform input[type=number], .scoreform input[type=time], .scoreform select {
  font: inherit; font-size: 1rem; color: var(--text); background: #f6f7f9; border: 1.5px solid transparent; border-radius: 14px; padding: .6rem .8rem; }
.scoreform input:focus, .scoreform select:focus { outline: none; border-color: var(--akzent); background: #fff; }
.scoreform label { font-weight: 600; color: var(--text); }
.zahlen b { white-space: nowrap; }
.tssform { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.tssfeld { display: flex; gap: .5rem; margin-left: auto; }
.tssfeld input { font: inherit; background: #f6f7f9; border: 1.5px solid transparent; border-radius: 14px; padding: .5rem .8rem; width: 9rem; }
.tssfeld input:focus { outline: none; border-color: var(--akzent); background: #fff; }
.kachelraster.kompakt { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.kachelraster.kompakt .kachel { padding: .6rem .8rem; border-radius: 14px; }
.kachelraster.kompakt .kl { font-size: .8rem; }
.kachelraster.kompakt .kw { font-size: 1.25rem; margin-top: .15rem; }
@media (max-width: 640px) { .kachelraster.kompakt { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Anmeldung */
.loginkarte { max-width: 28rem; margin: 2rem auto; }
.konto { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; }
.konto a { color: var(--text); }
.eform input[type=password] { font: inherit; font-size: 1.05rem; color: var(--text); background: #f6f7f9; border: 1.5px solid transparent; border-radius: 14px; padding: .7rem .9rem; width: 100%; min-width: 0; }
.eform input[type=password]:focus { outline: none; border-color: var(--akzent); background: #fff; }
.kommentar { border-bottom: 1px solid #eef0f3; padding: .5rem 0; } .kommentar p { margin: .2rem 0 0; white-space: pre-wrap; }
.kommentar small { color: var(--grau); margin-left: .4rem; }
.aktubanner { background: #eaf3ff; color: #1b4f8a; text-align: center; padding: .45rem 1rem; font-size: .9rem; border-bottom: 1px solid #d3e4fb; }
.aktubanner a { font-weight: 700; margin-left: .4rem; }

.scoreform label.haken { display: flex; align-items: center; gap: .4rem; flex-direction: row; font-size: .9rem; }
.scoreform label.haken input { width: auto; }

.donutraster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
@media (max-width: 900px) { .donutraster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card.donut { padding: .8rem .9rem 1rem; margin: 0; }
.card.donut h3 { margin: 0 0 .3rem; font-size: .9rem; font-weight: 600; color: var(--grau); }
.kreis { display: block; width: 100%; max-width: 9.5rem; margin: 0 auto .5rem; }
.kreis .km { font-size: 17px; font-weight: 600; fill: var(--text); font-variant-numeric: tabular-nums; }
.kreis .ke { font-size: 10.5px; fill: var(--grau); }
.dleg { list-style: none; margin: 0; padding: 0; font-size: .82rem; }
.dleg li { display: flex; align-items: center; gap: .4rem; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.dleg .sw { width: .6rem; height: .6rem; border-radius: 3px; flex: none; }
.dleg .dn { flex: 1; color: var(--grau); }
.dplan { margin: .5rem 0 0; font-size: .78rem; color: var(--grau); }

.scharf { color: #c0392b !important; font-weight: 600; }
.knopf.scharf { border-color: #c0392b !important; }

/* Liste: Suche und Filter */
.filterform { margin-top: .9rem; }
.filterform .suche { display: flex; gap: .4rem; margin: 0; }
.filterzeile { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: .7rem; }
.fsel { display: flex; flex-direction: column; gap: .15rem; font-size: .78rem; color: var(--grau); }
.fsel select { font: inherit; font-size: .95rem; color: var(--text); border: 1.5px solid #cfd3da; border-radius: 12px; padding: .4rem .7rem; background: #fff; }
.sportchips { margin: .9rem 0 0; }
.chip .cn { opacity: .65; font-weight: 500; margin-left: .15rem; }
.aktive { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .7rem; }
.aktiv { display: inline-flex; align-items: center; gap: .35rem; background: #eef0f3; color: var(--text); border-radius: 999px; padding: .25rem .75rem; font-size: .85rem; }
.aktiv:hover { background: #e2e5ea; text-decoration: none; }
.trefferliste { background: #fff; border-radius: 18px; overflow: hidden; }
.treffer { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; color: inherit; border-top: 1px solid #eef0f3; }
.treffer:first-child { border-top: 0; }
.treffer:hover { background: #f7f9fc; text-decoration: none; }
.treffer .symbol { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #e9f3ff; color: var(--akzent); flex: none; }
.treffer .symbol svg { width: 20px; height: 20px; }
.treffer .tt { flex: 1; min-width: 0; }
.treffer .tt b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.treffer .tt small { display: block; color: var(--grau); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.treffer .tz { display: flex; gap: 1rem; font-variant-numeric: tabular-nums; text-align: right; }
.treffer .tz span { min-width: 4.2rem; }
.treffer .tz b { display: block; font-size: .95rem; font-weight: 600; }
.treffer .tz small { display: block; color: var(--grau); font-size: .7rem; }
mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 .1rem; }
@media (max-width: 640px) { .treffer .tz span:nth-child(2) { display: none; } .treffer .tz span { min-width: 3.4rem; } }

.suchbox { margin-top: .8rem; }
.suchbox > summary { display: inline-flex; list-style: none; cursor: pointer; }
.suchbox > summary::-webkit-details-marker { display: none; }
.suchbox[open] > summary { margin-bottom: .2rem; }
.tagaktionen { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .4rem; font-size: .8rem; }
.tagaktionen a { color: var(--grau); }
.tagaktionen a:hover { color: var(--akzent); text-decoration: none; }

.tpknopf .tpzu { float: right; font-size: .85rem; font-weight: 500; color: var(--grau); }

.tpkopfzeile { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: default; margin-bottom: 1rem; font-size: 1.15rem; font-weight: 700; }
.tpkopfzeile::-webkit-details-marker { display: none; }
.tpkopfzeile .tpzu { float: none; font-size: .9rem; font-weight: 500; color: var(--grau); }

/* Sportfarben: Schwimmen blau, Rad orange, Laufen gruen (wie in den Kreisdiagrammen) */
:root { --c-schwimmen: #2a78d6; --c-rad: #eb6834; --c-lauf: #1baf7a; --c-andere: #8b93a1; }
svg.sp-schwimmen { color: var(--c-schwimmen) !important; } svg.sp-rad { color: var(--c-rad) !important; }
svg.sp-lauf { color: var(--c-lauf) !important; } svg.sp-andere { color: var(--c-andere) !important; }
.symbol:has(.sp-schwimmen), .eintrag .symbol:has(.sp-schwimmen) { background: color-mix(in srgb, var(--c-schwimmen) 12%, #fff); }
.symbol:has(.sp-rad), .eintrag .symbol:has(.sp-rad) { background: color-mix(in srgb, var(--c-rad) 12%, #fff); }
.symbol:has(.sp-lauf), .eintrag .symbol:has(.sp-lauf) { background: color-mix(in srgb, var(--c-lauf) 12%, #fff); }
.symbol:has(.sp-andere), .eintrag .symbol:has(.sp-andere) { background: color-mix(in srgb, var(--c-andere) 14%, #fff); }
.treffer .symbol:has(.sp-schwimmen) { background: color-mix(in srgb, var(--c-schwimmen) 12%, #fff); }
.treffer .symbol:has(.sp-rad) { background: color-mix(in srgb, var(--c-rad) 12%, #fff); }
.treffer .symbol:has(.sp-lauf) { background: color-mix(in srgb, var(--c-lauf) 12%, #fff); }
/* Wochensumme im Monat: Symbole auch auf dem Handy zeigen (klein), sonst fehlt die Zuordnung */
@media (max-width: 640px) { .wsport svg { display: inline-block !important; width: 12px; height: 12px; } .wsport { gap: .2rem; } }
/* Workout-Bibliothek auf dem Handy: Name volle Breite, Zahlen darunter */
@media (max-width: 640px) {
  .wkarte { flex-wrap: wrap; padding-right: 1rem; }
  .wkarte .wlink { flex: 1 1 100%; flex-wrap: wrap; gap: .5rem .8rem; }
  .wkarte .text { flex: 1 1 calc(100% - 64px); }
  .wkarte .zahlen { grid-template-columns: repeat(3, auto) !important; gap: .4rem 1.2rem !important; width: 100%; justify-content: start; }
  .wkarte .waktion { flex-direction: row; gap: 1rem; width: 100%; padding: 0 0 .3rem 3.4rem; }
}
/* Daten: Schalter mit Text und Hinweis untereinander */
.achk2 { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; }
.achk2 input { margin-top: .25rem; flex: none; }
.achk2 span { display: block; }
.achk2 small { display: block; color: var(--grau); margin-top: .1rem; }
details.mehr { margin: .6rem 0 .9rem; color: var(--grau); font-size: .88rem; }
details.mehr > summary { cursor: pointer; color: var(--akzent); }
details.mehr p { margin: .4rem 0 0; }
@media (max-width: 640px) { .wsport em { display: none; } .wsport { font-size: .75rem; } .wochensumme .wgesamt { font-size: .72rem; } }

.marke .logo { display: block; height: 2.6rem; width: auto; border-radius: 8px; }
@media (max-width: 640px) { .marke .logo { height: 2.2rem; } }

.kachel.gruppe { grid-column: 1 / -1; cursor: default; }
.gzeilen { display: flex; flex-direction: column; gap: .15rem; margin-top: .4rem; }
.gz { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; background: none; border: 0; border-radius: 10px; padding: .4rem .55rem; font: inherit; cursor: pointer; text-align: left; color: var(--text); }
.gz::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--c); opacity: .35; flex: none; }
.gz .gn { flex: 1; color: var(--grau); }
.gz b { font-variant-numeric: tabular-nums; font-weight: 600; }
.gz.an { background: color-mix(in srgb, var(--c) 10%, #fff); }
.gz.an::before { opacity: 1; }
.gz:hover { background: color-mix(in srgb, var(--c) 6%, #fff); }

/* Einheitenseite: Kacheln oben dreispaltig, Gruppen darunter, Bewertung mit kleinen Sternen */
#kacheln .kachelraster.oben { grid-template-columns: repeat(auto-fit, minmax(6.6rem, 1fr)); margin-bottom: .6rem; }
#kacheln .oben .kachel { padding: .6rem .8rem; }
#kacheln .oben .kl { font-size: .8rem; }
#kacheln .oben .kw { font-size: 1.45rem; }
#kacheln .oben .pf { display: none; }
#kacheln .kachel.gruppe { display: block; grid-column: auto; margin-bottom: .6rem; padding: .7rem .9rem; }
.card.sterne { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .7rem 1rem; }
.sterne .bw-text { color: var(--grau); font-size: .95rem; }
.sternwahl { display: inline-flex; gap: .1rem; }
.sternwahl button { border: 0; background: none; padding: .1rem .15rem; font-size: 1.3rem; line-height: 1; color: #d5d9e0; cursor: pointer; }
.sternwahl button.an { color: #f5a524; }
.sternwahl button:hover { color: #f5a524; }
.sterne .bw-wort { color: var(--grau); font-size: .85rem; }
@media (max-width: 640px) {
  #kacheln .kachelraster.oben { gap: .45rem; }
  #kacheln .oben .kachel { padding: .5rem .55rem; }
  #kacheln .oben .kl { font-size: .72rem; white-space: nowrap; gap: .3rem; }
  #kacheln .oben .ikon { width: 1.3rem; height: 1.3rem; flex: none; }
  #kacheln .oben .kw { font-size: 1.1rem; white-space: nowrap; margin-top: .3rem; }
}

details.standquellen > summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; }
details.standquellen > summary::-webkit-details-marker { display: none; }
details.standquellen > summary::after { content: " ▾"; color: var(--grau); font-weight: 400; }
details.standquellen[open] > summary { margin-bottom: .6rem; }

/* Schwellen und Bereiche */
.saktuell { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.saktuell small { color: var(--grau); }
.saktuell b { display: block; font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sfelder { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-bottom: 1rem; }
.sfelder label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--grau); }
.sfelder label small { font-size: .72rem; }
.sfelder input { font: inherit; font-size: 1rem; color: var(--text); border: 1.5px solid #cfd3da; border-radius: 12px; padding: .5rem .8rem; background: #fff; min-width: 0; }
.sfelder .swert { width: 11rem; }
.ztab { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .92rem; }
.ztab th { text-align: left; font-weight: 500; color: var(--grau); font-size: .78rem; padding: .3rem .4rem; }
.ztab td { padding: .3rem .4rem; border-top: 1px solid #eef0f3; }
.ztab .zlo { width: 5.5rem; font: inherit; font-variant-numeric: tabular-nums; border: 1.5px solid #cfd3da; border-radius: 10px; padding: .3rem .55rem; background: #fff; }
.ztab .zfest { color: var(--grau); padding-left: .6rem; }
.ztab .zber { color: var(--grau); font-variant-numeric: tabular-nums; }
.verlauf { margin-top: 1.1rem; border-collapse: collapse; font-size: .85rem; color: var(--grau); }
.verlauf td { padding: .12rem 1.2rem .12rem 0; }
.verlauf .vx { padding: 0; } .verlauf .vx form { display: inline; }
.verlauf .linkknopf { color: #9aa3b2; font-size: 1.05rem; line-height: 1; }
.verlauf .linkknopf:hover { color: #c0392b; }
@media (max-width: 480px) {
  .top { padding: .6rem .8rem; }
  .top-innen { gap: .5rem .8rem; }
  .menue { max-width: 100%; gap: .1rem; }
  .menue a { padding: .35rem .6rem; font-size: .88rem; white-space: nowrap; }
}
@media (max-width: 640px) { .efuss > .hinweis { flex: 1 1 100%; } }
@media (max-width: 400px) { .menue a { padding: .32rem .42rem; font-size: .8rem; } }
.efuss { flex-wrap: wrap; }

/* Wochenansicht: vier Ringe in einer Reihe, darunter eine gemeinsame Tabelle */
.card.wochenringe { padding: .8rem 1rem 1rem; margin-bottom: 1rem; }
.ringreihe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.ringzelle { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.ringzelle .kreis { width: 100%; max-width: 6.8rem; margin: 0; }
.ringzelle b { font-size: .82rem; font-weight: 600; color: var(--grau); margin-top: .15rem; }
.ringzelle small { font-size: .7rem; color: var(--grau); }
.leerring { display: flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; color: var(--grau); }
.sporttab { width: 100%; border-collapse: collapse; margin-top: .7rem; font-size: .88rem; font-variant-numeric: tabular-nums; }
.sporttab th { font-weight: 500; font-size: .72rem; color: var(--grau); text-align: right; padding: .15rem .3rem; }
.sporttab th:first-child, .sporttab td:first-child { text-align: left; }
.sporttab td { padding: .22rem .3rem; text-align: right; border-top: 1px solid #eef0f3; }
.sporttab td:first-child { display: flex; align-items: center; gap: .4rem; }
.sw { display: inline-block; width: .6rem; height: .6rem; border-radius: 3px; flex: none; }
.zonenleg { list-style: none; margin: .7rem 0 0; padding: .6rem 0 0; border-top: 1px solid #eef0f3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem .9rem; font-size: .8rem; font-variant-numeric: tabular-nums; }
.zonenleg li { display: flex; align-items: center; gap: .35rem; }
.zonenleg .dn { flex: 1; color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .zonenleg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ringzelle .kreis .km { font-size: 19px; } }

/* Wochenansicht: drei Ringe, Intensitaet als Balken */
.ringreihe { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.ringzelle .kreis { max-width: 7.6rem !important; }
.intens { margin-top: .9rem; padding-top: .7rem; border-top: 1px solid #eef0f3; }
.ihead { display: flex; justify-content: space-between; font-size: .8rem; color: var(--grau); margin-bottom: .45rem; font-variant-numeric: tabular-nums; }
.ibar { display: flex; height: 1.3rem; border-radius: 7px; overflow: hidden; gap: 2px; }
.ibar span { display: block; height: 100%; }
.izahlen { display: flex; gap: .8rem; margin-top: .6rem; }
.izahlen div { flex: 1; min-width: 0; }
.izahlen i { display: block; height: 4px; border-radius: 2px; margin-bottom: .35rem; }
.izahlen b { display: block; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.izahlen small { display: block; font-size: .75rem; color: var(--grau); }

.ringzelle .kreis .ke { font-size: 12.5px; }
.ringzelle small { margin-top: .2rem; }

.kalsuche { display: flex; gap: .6rem; align-items: center; margin-top: .8rem; }
.kalsuche .suche { flex: 1; margin: 0; }
.kalsuche .knopf { white-space: nowrap; }

/* Intervall-Assistent: eine Spalte in zeitlicher Reihenfolge, ausgefuellte Felder sofort erkennbar */
.assi { grid-template-columns: 1fr !important; gap: .7rem !important; }
.agruppe.amodus { background: none; padding: 0 .2rem; }
.assi .aserien { border-top: 1px solid #e3e7ee; padding-top: .6rem; display: flex; flex-direction: column; gap: .5rem; }
.assi input[type=text].gefuellt, .assi textarea.gefuellt { border-color: var(--akzent); background: #f1f7ff; font-weight: 600; }
.assi input[type=text]:not(.gefuellt), .assi textarea:not(.gefuellt) { background: #fff; }
.assi input[type=text] { width: 6.2rem; }
.assi label > span { display: block; }
.assi label > span em { color: #9aa3b2; font-size: .78rem; margin-left: .15rem; }
@media (max-width: 640px) { .assi input[type=text] { width: 4.9rem; } .assi .distzeile input { width: 4.4rem; } .assi .azeile { gap: .5rem; } }

.assi .azonelabel select { width: 8.2rem; }
@media (max-width: 640px) { .assi .azonelabel select { width: 7rem; } }

/* Auswahlfelder im Assistenten: Text immer ganz lesbar */
.assi .distzeile select { width: auto !important; min-width: 6.4rem; padding-right: 1.6rem; }
.assi .azonelabel select { width: auto !important; min-width: 9.6rem; max-width: 100%; padding-right: 1.6rem; }
.assi select { text-overflow: clip; }
@media (max-width: 640px) { .assi .distzeile select { min-width: 6rem; } .assi .azonelabel select { min-width: 9rem; } }

/* Ampel: TrainingPeaks-Farben, in der Woche ein Kreis mit Prozent */
.ampel.gruen { background: #2f9e5b; } .ampel.gelb { background: #e3a008; } .ampel.orange { background: #e8731a; } .ampel.rot { background: #d6403a; }
.ampel.gross { width: 2.4rem; height: 2.4rem; border: 0; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ampel.gross small { font-size: .6rem; font-weight: 600; margin-left: 1px; color: inherit; }
.ampel.gross.gelb { color: #3d2a00; }
.ampel.gross.grau { background: transparent; border: 2px dashed #c3c9d4; color: #9aa3b2; }
.mzahl { display: flex; flex-direction: column; gap: 0; line-height: 1.2; font-size: .7rem; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .planbox { flex-wrap: wrap; }
  .planbox .plantext { flex: 1 1 8rem; min-width: 0; }
  .planbox .planaktion { flex: 1 1 100%; flex-direction: row !important; justify-content: flex-end; gap: 1rem; align-items: center; }
}
.msymbol .ampel { width: 11px; height: 11px; right: -5px; bottom: -4px; }

.abw { margin-left: .25rem; font-size: .8em; font-weight: 700; color: #5b6575; cursor: help; }

.titeldatum { color: var(--grau); font-size: .95rem; margin-left: .3rem; align-self: flex-end; padding-bottom: .35rem; }

/* Titel umbenennen und Einheit loeschen */
.titelfeld { font: inherit; font-weight: inherit; color: inherit; border: 1px solid var(--akzent); border-radius: 10px; padding: .1rem .5rem; width: min(30rem, 70vw); background: #fff; }
.stift.scharf { width: auto; border-radius: 18px; padding: 0 .9rem; font-size: .9rem; color: #c0392b; border-color: #c0392b; }

/* Rundentabelle Rad: Zusammenfassung Einfahren, Prozent vom Ziel */
.rtabelle tr.gruppe { cursor: pointer; }
.rtabelle tr.gruppe:hover td { background: #eceef2; }
.rtabelle tr.kind td:first-child { padding-left: 1.8rem; }
.rtabelle .prozent { color: var(--grau); font-size: .88rem; margin-left: .25rem; }
.rtabelle .prozent.ausser { color: #c0392b; font-weight: 600; }
.rtabelle tr.sgruppe { cursor: pointer; }
.rtabelle tr.sgruppe td { background: #eaf4ff; color: var(--text, #1d1f24); font-weight: 500; }
.rtabelle tr.sgruppe:hover td { background: #dcecff; }
.rtabelle .unterzeile { color: var(--grau); font-size: .88rem; font-weight: 400; margin-top: .15rem; }
.rtabelle tr.sgruppe td { padding: .65rem .9rem; font-size: 1rem; color: #1d1f24; font-weight: 500; }

/* Workout-Analyse: Aufklapp-Pfeile, Abweichung als Marke */
.chev { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #fff; color: var(--akzent);
        font-size: 1.5rem; font-weight: 700; line-height: 1; margin-right: .6rem; flex: none; transition: transform .15s; box-shadow: 0 0 0 1px var(--linie); }
.chev.auf { transform: rotate(90deg); }
.rtabelle tr.gruppe .rname, .rtabelle tr.sgruppe .rname { font-weight: 600; }
.rtabelle tr.gruppe td { background: #f0f1f4; }
.rtabelle .prozent { display: inline-block; padding: .05rem .45rem; border-radius: 999px; background: #eef0f3; font-size: .82rem; margin-left: .35rem; vertical-align: 1px; }
.rtabelle .prozent.ausser { background: #fde8e6; color: #c0392b; }
.rtabelle tr.sgruppe .unterzeile { margin-top: .2rem; }
.rzusammen { margin: -.2rem 0 .6rem; color: var(--grau); font-size: .98rem; }
.intbox .gz { cursor: default; }

/* Auswahl-Feld unter dem Diagramm */
#auswahl { padding: 1rem 1.2rem; }
#auswahl .akopf { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
#auswahl .akopf b { font-size: 1.1rem; }
#auswahl .akopf span { color: var(--grau); font-variant-numeric: tabular-nums; }
#auswahl .akopf button { margin-left: auto; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: #9ca3af; cursor: pointer; }
#auswahl .agross { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .6rem; }
#auswahl .ag { background: #fff; border: 2px solid #eef0f3; border-radius: 14px; padding: .6rem .8rem; }
#auswahl .ag span, #auswahl .ak span { display: block; color: var(--grau); font-size: .85rem; }
#auswahl .ag b { font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
#auswahl small { font-size: .9rem; font-weight: 400; color: var(--grau); }
#auswahl .aklein { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: .6rem; }
#auswahl .ak b { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
#auswahl .atab { width: 100%; max-width: 34rem; margin-top: 1rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
#auswahl .atab th, #auswahl .atab td { padding: .3rem .5rem; text-align: right; }
#auswahl .atab thead th { color: var(--grau); font-size: .85rem; font-weight: 500; border-bottom: 1px solid #e5e7eb; }
#auswahl .atab tbody th { text-align: left; font-weight: 500; padding-left: 0; }
#auswahl .atab .ae { text-align: left; color: var(--grau); font-size: .85rem; }
@media (max-width: 600px) { #auswahl .ag b { font-size: 1.3rem; } }
#auswahl .ak span { display: inline; margin-right: .4rem; }

/* Reiter Spitzen */
.spitzen { margin-top: 1rem; }
.spitzen h4 { margin: 0 0 .3rem; font-size: 1rem; font-weight: 600; }
.spitzen-svg { width: 100%; height: auto; display: block; }
.spitzen-svg text { font-size: 12px; fill: #6b7280; font-family: inherit; }
.spwerte { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin-top: .5rem; font-variant-numeric: tabular-nums; }
.spwerte dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .15rem .8rem; font-size: .9rem; }
.spwerte dt { color: var(--grau); }
.spwerte dd { margin: 0; font-weight: 600; text-align: right; }
.kachel .ks { display: block; margin-top: .1rem; font-size: 1.05rem; font-weight: 600; color: var(--grau); font-variant-numeric: tabular-nums; }

/* Kopf der Einheitenseite (kompakt) */
.kopf { padding: 1rem 1.3rem; }
.kopf .titel { align-items: flex-start; justify-content: space-between; gap: 1rem; }
.kopf h1 { font-size: 1.35rem; line-height: 1.3; margin: 0; }
.titelknoepfe { display: inline-flex; gap: .4rem; flex: none; align-items: center; }
.titelknoepfe .stift { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1rem; }
.kopfmeta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .35rem; }
.kopfmeta .titeldatum { margin: 0; padding: 0; align-self: auto; }
.kopfmeta .ampelinfo { gap: .5rem; }
.knopf.klein { padding: .2rem .7rem; font-size: .85rem; }
a.kachel.statisch { text-decoration: none; color: inherit; }
a.kachel.vgl:hover { border-color: var(--c); }
.kachel.vgl.r1 .kw { color: #15803d; }
.kachel.vgl.r-1 .kw { color: #c2410c; }

/* Kalender Monatsansicht: groessere Symbole, Plan-Vergleich als Ring um das Symbol */
.mpunkte { gap: 4px; }
.msymbol { width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; box-sizing: border-box; border: 2.5px solid transparent; }
.msymbol svg { width: 20px; height: 20px; }
.msymbol.r-gruen { border-color: #2f9e5b; } .msymbol.r-gelb { border-color: #e3a008; }
.msymbol.r-orange { border-color: #e8731a; } .msymbol.r-rot { border-color: #d6403a; }
.msymbol.r-grau { border: 2px dashed #c3c9d4; }
@media (max-width: 640px) { .msymbol { width: 26px; height: 26px; border-width: 2px; } .msymbol svg { width: 17px; height: 17px; } .mpunkte { gap: 2px; } }
.msymbol { width: 38px; height: 38px; }
.msymbol svg { width: 25px; height: 25px; }
@media (max-width: 640px) { .msymbol { width: 31px; height: 31px; } .msymbol svg { width: 20px; height: 20px; } }

/* Wochenansicht: groessere Symbole, Plan-Vergleich als Ring um das Symbol */
.tagfeld .symbol { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 50px; height: 50px; border-radius: 50%; box-sizing: border-box; border: 3px solid transparent; }
.tagfeld .symbol svg { width: 28px; height: 28px; }
.tagfeld .symbol.r-gruen { border-color: #2f9e5b; } .tagfeld .symbol.r-gelb { border-color: #e3a008; }
.tagfeld .symbol.r-orange { border-color: #e8731a; } .tagfeld .symbol.r-rot { border-color: #d6403a; }
.tagfeld .symbol.r-grau { border: 2px dashed #c3c9d4; }
.planprozent { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--grau); flex: none; }
.planprozent.r-gruen { color: #2f9e5b; } .planprozent.r-gelb { color: #b98300; } .planprozent.r-orange { color: #e8731a; } .planprozent.r-rot { color: #d6403a; }
@media (max-width: 640px) { .tagfeld .symbol { width: 42px; height: 42px; } .tagfeld .symbol svg { width: 24px; height: 24px; } }

/* Planbox neutral statt blau */
.planbox { background: #f6f7f9; border: 1.5px solid #e5e8ed; }
.planbox .plantext small a { color: var(--grau); }
.planbox .plantext small a:hover { color: var(--text); }

/* Kalender: Scrollansicht (Wochen untereinander, Karten je Einheit) */
.scroll { padding: .6rem; overflow-x: auto; }
.srast { display: grid; grid-template-columns: repeat(7, minmax(7.2rem, 1fr)) 17rem; gap: 4px; margin-bottom: 4px; min-width: 68rem; }
.skopf span { text-align: center; color: var(--grau); font-weight: 600; font-size: .85rem; }
.smonat { margin: .6rem 0 .3rem; font-weight: 700; color: var(--grau); font-size: .9rem; min-width: 68rem; }
.smehr { display: block; text-align: center; padding: .4rem; color: var(--grau); font-size: .85rem; }
.stag { min-height: 92px; background: #f6f7f9; border-radius: 10px; padding: .3rem; display: flex; flex-direction: column; gap: .25rem; }
.stag.heute { box-shadow: 0 0 0 2px var(--akzent); }
.snr { font-size: .78rem; color: var(--grau); padding-left: .1rem; }
.snr:hover { text-decoration: none; color: var(--text); }
.skarte { display: flex; flex-direction: column; gap: .05rem; background: #fff; border: 2px solid #4caf6a; border-radius: 8px; padding: .25rem .35rem; color: var(--text); font-size: .74rem; line-height: 1.3; min-width: 0; }
.skarte:hover { text-decoration: none; background: #fafbfc; }
.skarte.gelb { border-color: #e8b923; } .skarte.orange { border-color: #f0892b; } .skarte.rot { border-color: #e05050; }
.skarte.grau { border: 1.5px dashed #c7ccd4; background: #f9fafb; }
.stitel { display: flex; align-items: flex-start; gap: .25rem; font-weight: 600; white-space: normal; overflow-wrap: break-word; word-break: normal; hyphens: none; text-wrap: balance; line-height: 1.25; }
.stitel i { margin-top: 1px; }
.stitel i { display: inline-flex; flex: none; } .stitel svg { width: 14px; height: 14px; color: var(--akzent); }
.szeit { color: #2f7d4a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.skarte.gelb .szeit { color: #9a7500; } .skarte.orange .szeit { color: #b45f0c; } .skarte.rot .szeit { color: #c03a3a; } .skarte.grau .szeit { color: var(--grau); }
.sterne { letter-spacing: 1px; font-size: .78rem; line-height: 1; }
.sterne b { font-weight: 400; color: #d9dde3; } .sterne b.voll { color: #f0b429; }
.swoche.aktuell .stag:not(.heute) { background: color-mix(in srgb, var(--akzent) 6%, #fff); }
.ssumme { background: color-mix(in srgb, var(--akzent) 8%, #fff); border-radius: 10px; padding: .4rem .6rem; color: var(--text); display: flex; flex-direction: column; gap: .15rem; font-variant-numeric: tabular-nums; font-size: .82rem; }
.ssumme:hover { text-decoration: none; background: color-mix(in srgb, var(--akzent) 14%, #fff); }
.swoche.aktuell .ssumme { box-shadow: 0 0 0 2px var(--akzent); }
.ssumme b { color: var(--grau); font-size: .85rem; } .ssumme b small { font-weight: 400; }
.ssport { display: flex; justify-content: space-between; gap: .4rem; white-space: nowrap; }
.ssport > span:first-child { display: inline-flex; align-items: center; gap: .3rem; } .ssport i { display: inline-flex; } .ssport svg { width: 14px; height: 14px; color: var(--akzent); }
.ssport > span:last-child { font-weight: 700; }
.sgesamt { border-top: 1px solid #e5e8ed; padding-top: .15rem; margin-top: .1rem; } .sgesamt > span:first-child { font-weight: 600; }
.ssumme > small { color: var(--grau); margin-top: auto; }

/* Planen im Kalender: links die Woche, rechts der Planer (ab 1100 px) */
.tpziehen .dauerwahl { cursor: grab; user-select: none; } .tpziehen .dauerwahl:active { cursor: grabbing; }
.tpgenau { margin-top: .8rem; } .tpgenau summary { cursor: pointer; color: var(--grau); font-size: .9rem; }
.tprahmen { width: 100%; height: 62vh; min-height: 420px; border: 0; border-radius: 12px; background: #fff; }
.tagzeile.ziel { outline: 2px dashed var(--akzent); background: color-mix(in srgb, var(--akzent) 8%, #fff); }
.tagzeile.plant { opacity: .5; }
@media (min-width: 1100px) {
  main:has(.plansplit.mitplan) { max-width: 1560px; }
  .plansplit.mitplan { display: grid; grid-template-columns: minmax(0, 1fr) 34rem; gap: 1rem; align-items: start; }
  .plansplit.mitplan > #tp { grid-column: 2; grid-row: 1; position: sticky; top: .8rem; max-height: calc(100vh - 1.6rem); overflow: auto; margin: 0; }
  .plansplit.mitplan > .tage { grid-column: 1; grid-row: 1; }
}

/* Planer: Bibliothek-Karten (ziehbar) */
.tpbib { display: flex; flex-direction: column; gap: .4rem; }
.bibkarte { display: flex; align-items: center; gap: .6rem; border: 1.5px solid #e5e8ed; border-radius: 12px; padding: .45rem .6rem; background: #f9fafb; cursor: grab; }
.bibkarte:active { cursor: grabbing; }
.bibkarte .symbol svg { width: 20px; height: 20px; }
.bibkarte .text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bibkarte .text b { font-size: .9rem; } .bibkarte .text small { color: var(--grau); }

/* Schrittzeile: das Titelfeld darf schrumpfen und ueberdeckt die Knoepfe nicht mehr */
.wschritt > input:not(.wnotiz) { width: 100% !important; min-width: 0; }

/* Schrittzeile Variante A: eine Zeile je Schritt, Farbstreifen fuer die Art, Titel und Notiz hinter "..." */
.wschritt { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; border-left: 6px solid #6ab4ff; border-radius: 10px; padding: .45rem .6rem; }
.wschritt > select:first-child { width: 7.6rem; font-weight: 600; }
.wschritt .wziel { flex: 1 1 14rem; }
.wschritt .wziel select { max-width: 9.5rem; }
.wschritt .wwatt { color: var(--grau); }
.wschritt > .mini { margin-left: auto; }
.wschritt > .mini.hat { color: var(--akzent); }
.wdetails { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .4rem; }
.wdetails input { min-width: 0; }
.wdetails .wnotiz { flex: 1 1 16rem; width: auto; grid-column: auto; }
.wschritt .wtools .mini { opacity: 0; transition: opacity .12s; }
.wschritt:hover .wtools .mini, .wschritt:focus-within .wtools .mini { opacity: 1; }
@media (hover: none) { .wschritt .wtools .mini { opacity: 1; } }

/* Notizen und Kommentare zu einer Einheit */
.notizen { margin: .3rem 0 .2rem 4.4rem; font-size: .9rem; }
.notizen > summary { cursor: pointer; color: var(--grau); font-size: .85rem; list-style: none; }
.notizen > summary::-webkit-details-marker { display: none; }
.notizen.vomcoach > summary { color: var(--akzent); font-weight: 600; }
.notiz { background: #f6f7f9; border-radius: 10px; padding: .4rem .65rem; margin: .35rem 0; }
.notiz.coach { background: color-mix(in srgb, var(--akzent) 9%, #fff); }
.notiz p { margin: .15rem 0 0; white-space: pre-wrap; }
.notiz small { color: var(--grau); margin-left: .3rem; }
.notiz .rolle { font-size: .7rem; font-weight: 700; color: var(--akzent); border: 1px solid currentColor; border-radius: 8px; padding: 0 .35rem; margin-left: .35rem; }
.notizform { display: flex; gap: .5rem; align-items: flex-end; margin-top: .4rem; }
.notizform textarea { flex: 1; font: inherit; border: 1.5px solid #e3e7ee; border-radius: 10px; padding: .4rem .55rem; resize: vertical; }
#kommentare .notizen, #notizen .notizen { margin-left: 0; }
.snotiz { font-size: .68rem; color: var(--akzent); font-weight: 600; }
@media (max-width: 640px) { .notizen { margin-left: 0; } }
.planbox[draggable="true"] { cursor: grab; }

/* Details und Planung: Rahmen nach Ampel (gruen, gelb, orange, rot), ohne Plan grau, offen grau gestrichelt */
.skarte { border-color: #4caf6a; }
.skarte.neutral { border: 2px solid #c3c8d0; }
.skarte.neutral .szeit { color: var(--grau); }
.stag.ziel { outline: 2px dashed var(--akzent); background: color-mix(in srgb, var(--akzent) 8%, #fff); }
.skarte[draggable="true"] { cursor: grab; }
/* Mit offenem Planer: Wochen links, ohne Summenspalte */
.plansplit.mitplan .srast { grid-template-columns: repeat(7, minmax(5.2rem, 1fr)); min-width: 0; }
.plansplit.mitplan .ssumme, .plansplit.mitplan .skopf span:last-child { display: none; }
.plansplit.mitplan .smonat { min-width: 0; }
.plansplit.mitplan .scroll { overflow-x: visible; }

/* Details und Planung: Kopfzeile bleibt beim Scrollen oben, "+ Planen" darin, "+" am Tag beim Daraufzeigen */
@media (min-width: 1000px) { .scroll { overflow-x: clip; } }
.skopf { position: sticky; top: 0; z-index: 6; background: #fff; padding: .35rem 0; margin-bottom: 6px; box-shadow: 0 1px 0 #e5e8ed; }
.skplan { display: inline-block; background: var(--akzent); color: #fff; border-radius: 999px; padding: .2rem .8rem; font-size: .8rem; font-weight: 600; }
.skplan:hover { text-decoration: none; opacity: .9; }
.skopf span:last-child { text-align: center; }
.stag { position: relative; }
.splus { position: absolute; top: .1rem; right: .3rem; opacity: 0; width: 1.3rem; height: 1.3rem; line-height: 1.2rem; text-align: center; border-radius: 50%; background: #fff; color: var(--akzent); font-weight: 700; box-shadow: 0 0 0 1px #d9dde3; transition: opacity .12s; }
.stag:hover .splus, .splus:focus { opacity: 1; }
.splus:hover { text-decoration: none; background: var(--akzent); color: #fff; }
@media (hover: none) { .splus { display: none; } }
.skplan { padding: .5rem 1.3rem; font-size: 1rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.skopf { padding: .5rem 0; }

/* Wochensumme: je Sportart Zeit und Strecke (km, beim Schwimmen m) */
.ssport { display: grid; grid-template-columns: 1fr auto 4.6rem; gap: .4rem; }
.ssport .sdist { text-align: right; font-weight: 400; color: var(--grau); }

/* Planer: Fortschrittsbalken Plan und Ist in der Wochensumme */
.sfort { margin-top: .15rem; }
.sfort small { color: var(--grau); display: block; font-size: .75rem; }
.sbar { position: relative; height: 8px; border-radius: 4px; background: transparent; margin-bottom: 2px; }
.sbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.sbar i.plan { background: #b9c7da; } .sbar i.ist { background: #4caf6a; }
/* Woche: Plan gegen Ist je Tag */
.tagbalken { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 1rem 0 .3rem; }
.tb { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .3rem .2rem; border-radius: 10px; }
.tb.heute { box-shadow: 0 0 0 2px var(--akzent); }
.tbsaeulen { height: 70px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; background: #f6f7f9; border-radius: 8px; padding: 0 .3rem; }
.tbsaeulen span { display: block; width: 36%; max-width: 18px; border-radius: 3px 3px 0 0; }
.tbsaeulen .plan, .tbleg .plan { background: #b9c7da; } .tbsaeulen .ist, .tbleg .ist { background: #4caf6a; }
.tb b { font-size: .8rem; color: var(--grau); } .tb small { font-size: .72rem; color: var(--grau); white-space: nowrap; }
.tbleg { display: flex; gap: 1rem; font-size: .75rem; color: var(--grau); margin-bottom: .6rem; }
.tbleg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: .3rem; }

/* Planer: passt sich der Breite an, nichts wird mehr abgeschnitten */
main:has(.scroll) { max-width: 1500px; }
.srast { grid-template-columns: repeat(7, minmax(0, 1fr)) 15rem; min-width: 0; }
.smonat { min-width: 0; }
.ssport { grid-template-columns: 1fr auto 4.2rem; }
@media (max-width: 999px) {
  .scroll { overflow-x: auto; }
  .srast, .smonat { min-width: 58rem; }
}
.plansplit.mitplan .srast { grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 0; }
@media (max-width: 999px) { .plansplit.mitplan .srast { min-width: 0; } }
.stag, .skarte { min-width: 0; }
.plansplit.mitplan .szeit { white-space: normal; }
@media (min-width: 1100px) and (max-width: 1399px) { .plansplit.mitplan { grid-template-columns: minmax(0, 1fr) 28rem; } }
.plansplit.mitplan .stitel { overflow-wrap: anywhere; }
.plansplit.mitplan .skarte { font-size: .7rem; padding: .2rem .28rem; }
.plansplit.mitplan .stitel svg { width: 12px; height: 12px; }
@media (min-width: 1100px) and (max-width: 1399px) {
  .plansplit.mitplan .stitel { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  .plansplit.mitplan .stitel i { margin-right: .25rem; vertical-align: -2px; }
}
