/* Gestaltung Trainingsplaner: ruhig, gut lesbar, Rasengrün als Akzent. Nur heller Modus. */
:root {
  --akzent: #1f6e43;
  --akzent-dunkel: #174f31;
  --hintergrund: #f4f6f3;
  --weiss: #ffffff;
  --text: #22272a;
  --grau: #5f6b66;
  --linie: #dde3de;
  --rot: #b3261e;
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px;
       line-height: 1.5; background: var(--hintergrund); color: var(--text); }
a { color: var(--akzent); }
h1 { font-size: 1.8rem; margin: 0 0 1rem; }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
        padding: .6rem 1rem; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf-name { font-weight: 700; text-decoration: none; color: var(--text); font-size: 1.15rem; }
.kopf-user { display: flex; align-items: center; gap: .8rem; }
.kopf-user form { margin: 0; }
.inhalt { max-width: 1100px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.karte.schmal { max-width: 420px; margin: 2rem auto; }
label { display: block; margin-bottom: .8rem; font-weight: 600; }
input[type=text], input[type=password], input[type=email], select, textarea {
  display: block; width: 100%; margin-top: .25rem; padding: .55rem .7rem; font: inherit;
  border: 1px solid var(--linie); border-radius: 8px; background: var(--weiss); }
.knopf { display: inline-block; padding: .55rem 1.1rem; border: 0; border-radius: 8px; background: var(--akzent);
         color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.knopf:hover { background: var(--akzent-dunkel); }
.knopf-klein { padding: .3rem .7rem; font-size: .9rem; }
.meldung { padding: .6rem .9rem; border-radius: 8px; margin-bottom: 1rem; background: #e7f2ea; }
.meldung-error { background: #fbe9e7; color: var(--rot); }

/* Navigation */
.hauptnav { display: flex; gap: 1rem; flex: 1; }
.hauptnav a { text-decoration: none; color: var(--grau); font-weight: 600; padding: .2rem 0; }
.hauptnav a.aktiv, .hauptnav a:hover { color: var(--akzent); border-bottom: 2px solid var(--akzent); }

/* Allgemein */
h2 { font-size: 1.2rem; margin: 0 0 .8rem; }
h3 { font-size: 1rem; margin: 1rem 0 .2rem; color: var(--akzent-dunkel); }
.grau { color: var(--grau); }
.klein { font-size: .85rem; }
.titelzeile { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.knopfreihe { display: flex; gap: .5rem; flex-wrap: wrap; }
.knopfreihe form { margin: 0; }
.knopf-zweit { background: var(--weiss); color: var(--akzent); border: 1px solid var(--akzent); }
.knopf-zweit:hover { background: #e7f2ea; }
.marken { display: flex; flex-wrap: wrap; gap: .3rem; margin: .3rem 0; }
.marke { font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; background: #eef1ee; color: var(--grau); white-space: nowrap; }
.marke-teil { background: #e3efe7; color: var(--akzent-dunkel); }
.marke-thema { background: #e8eef7; color: #2d4a73; }
.marke-privat { background: #fbeee0; color: #8a4b0f; }
.hinweis-klein { font-size: .85rem; color: #8a4b0f; }

/* Filter */
.filter-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .2rem 1rem; }
.filter label { font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.filter select, .filter input[type=text] { padding: .35rem .5rem; }
label.haken { display: flex; align-items: center; gap: .4rem; font-weight: 600; }

/* Kacheln */
.kachel-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.kachel { display: flex; flex-direction: column; background: var(--weiss); border: 1px solid var(--linie);
          border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); }
.kachel:hover { border-color: var(--akzent); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.kachel img { width: 100%; height: 150px; object-fit: contain; background: #fafbfa; border-bottom: 1px solid var(--linie); }
.kachel-text { padding: .6rem .8rem; display: flex; flex-direction: column; gap: .2rem; }
.kein-bild { height: 150px; display: flex; align-items: center; justify-content: center; color: var(--grau);
             background: #fafbfa; font-size: .85rem; border-bottom: 1px solid var(--linie); }
.kein-bild.gross { height: 220px; border: 1px dashed var(--linie); border-radius: var(--radius); }
.seiten { display: flex; gap: 1rem; justify-content: center; margin: 1.5rem 0; }

/* Detail */
.detail-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem; }
@media (max-width: 760px) { .detail-raster { grid-template-columns: 1fr; } }
.skizze { margin: 0 0 1rem; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: .5rem; }
.skizze img { width: 100%; height: auto; display: block; }
.skizze figcaption { font-size: .85rem; color: var(--grau); margin-top: .3rem; }
.eckdaten { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; }
.eckdaten dt { font-weight: 600; color: var(--grau); }
.eckdaten dd { margin: 0; }

/* Formular */
.formular .feld { margin-bottom: .9rem; }
.formular .feld > label { margin-bottom: .2rem; }
.formular ul { list-style: none; padding: 0; margin: .2rem 0; }
.formular ul label { font-weight: 400; display: flex; gap: .4rem; margin: 0; }
.formular input[type=number] { width: 100%; padding: .5rem .7rem; font: inherit; border: 1px solid var(--linie); border-radius: 8px; }
.spalten-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 1.2rem; }
.bild-zeile { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
.bild-zeile img { height: 70px; border: 1px solid var(--linie); border-radius: 6px; }
.feld-fehler input, .feld-fehler select, .feld-fehler textarea { border-color: var(--rot); }
.errorlist { color: var(--rot); margin: .2rem 0; padding: 0; list-style: none; font-size: .9rem; }

/* Trainings */
.reiter { display: flex; gap: .3rem; border-bottom: 1px solid var(--linie); margin-bottom: 1rem; }
.reiter a { padding: .5rem 1rem; text-decoration: none; color: var(--grau); font-weight: 600; border-bottom: 3px solid transparent; }
.reiter a.aktiv { color: var(--akzent); border-bottom-color: var(--akzent); }
.tabelle-karte { padding: 0; overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-size: .85rem; color: var(--grau); background: #fafbfa; }
.nowrap { white-space: nowrap; }
.status-geplant { background: #e8eef7; color: #2d4a73; }
.status-durchgefuehrt { background: #e3efe7; color: var(--akzent-dunkel); }
.status-abgesagt { background: #fbe9e7; color: var(--rot); }
.untertitel { margin: -.6rem 0 1rem; }

.planer-raster { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .planer-raster { grid-template-columns: 1fr; } }
.kopf-karte .eckdaten { margin: 0; }
.block { border-left: 4px solid var(--akzent); }
.block-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.block-kopf h2 { margin: 0; }
.block-teil { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); }
.block-werkzeuge { display: flex; align-items: center; gap: .2rem; }
.block-werkzeuge form { margin: 0; }
.dauer { font-weight: 700; font-size: 1.1rem; margin-right: .5rem; color: var(--akzent-dunkel); }
.symbol { border: 1px solid var(--linie); background: var(--weiss); border-radius: 6px; width: 2rem; height: 2rem;
          cursor: pointer; color: var(--grau); font-size: .8rem; }
.symbol:hover:not(:disabled) { border-color: var(--akzent); color: var(--akzent); }
.symbol:disabled { opacity: .35; cursor: default; }
.symbol.gefahr:hover { border-color: var(--rot); color: var(--rot); }
.block-notiz { background: #fafbfa; border-radius: 8px; padding: .4rem .7rem; font-size: .92rem; }
.block-uebung { display: flex; gap: .8rem; align-items: flex-start; padding: .6rem 0; border-top: 1px solid var(--linie); }
.block-uebung img, .kein-bild.mini { width: 90px; height: 64px; object-fit: contain; border: 1px solid var(--linie);
                                     border-radius: 6px; background: #fafbfa; flex-shrink: 0; }
.kein-bild.mini { border-bottom: 1px solid var(--linie); }
.block-uebung-text { flex: 1; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.block-fuss { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--linie); }
.block-fuss details { flex: 1; min-width: 200px; }
.block-form { margin-top: .5rem; }
.inline-form { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; margin-top: .3rem; }
.inline-form label { margin: 0; font-weight: 400; }
.inline-form input { padding: .3rem .5rem; border: 1px solid var(--linie); border-radius: 6px; font: inherit; }
.inline-form input[type=number] { width: 5rem; }
summary { cursor: pointer; color: var(--akzent); }
.aktionen { display: flex; flex-direction: column; gap: .5rem; }
.aktionen form { margin: 0; }
.breit { width: 100%; text-align: center; }
.knopf-gefahr { background: var(--weiss); color: var(--rot); border: 1px solid var(--rot); }
.knopf-gefahr:hover { background: #fbe9e7; }
.hinweis { border-top: 1px solid var(--linie); padding: .4rem 0; }
.hinweis p { font-size: .92rem; }
.notiz { border-left: 3px solid var(--linie); padding-left: .7rem; }
.formular input[type=date], .formular input[type=time] { display: block; width: 100%; margin-top: .25rem; padding: .5rem .7rem; font: inherit; border: 1px solid var(--linie); border-radius: 8px; }

/* Saisonplanung */
.zyklus h2 { display: flex; gap: .5rem; align-items: center; }
.termine div { white-space: nowrap; }
.termine a { margin-left: .3rem; }
.alter-pruefen { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; padding: .6rem 1rem; }
.alter-pruefen.offen { border-color: #e8c89a; background: #fffaf2; }
.haken-reihe { display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.haken-reihe label { font-weight: 400; margin: 0; }

/* Startseite */
.start-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.start-raster .karte { margin: 0; }
.zeile { margin: .3rem 0; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.hinweis-karte { border-color: #e8c89a; background: #fffaf2; }
.planer-raster > *, .detail-raster > * { min-width: 0; }
