:root {
  color-scheme: dark;
  --bg: #08110f;
  --bg-soft: #0d1b1a;
  --navy: #101c2b;
  --navy-2: #14253a;
  --anthracite: #1b2228;
  --panel: rgba(20, 32, 37, 0.88);
  --panel-strong: rgba(24, 41, 47, 0.96);
  --line: rgba(182, 213, 199, 0.16);
  --line-strong: rgba(118, 230, 172, 0.34);
  --ink: #eef7f2;
  --muted: #9eb2aa;
  --subtle: #6f837d;
  --green: #39c47f;
  --green-2: #1f8d5c;
  --blue: #4d9de0;
  --amber: #e8b64d;
  --red: #e0675f;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(57, 196, 127, 0.12), transparent 34%),
    linear-gradient(245deg, rgba(77, 157, 224, 0.10), transparent 38%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 28px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(57, 196, 127, 0.14), transparent 28%),
    linear-gradient(180deg, var(--navy), #101718);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mark {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(57, 196, 127, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 9px, rgba(57, 196, 127, 0.9) 10px 11px, transparent 12px),
    linear-gradient(90deg, transparent 47%, rgba(238, 247, 242, 0.7) 48% 52%, transparent 53%),
    linear-gradient(transparent 47%, rgba(238, 247, 242, 0.7) 48% 52%, transparent 53%);
  box-shadow: 0 0 0 8px rgba(57, 196, 127, 0.08);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 27px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.18;
}

h4 {
  color: var(--ink);
  font-size: 14px;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav-button,
.segmented button,
.icon-button,
.week-button,
.reference-link,
.export-button {
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.nav-button.active,
.nav-button:hover {
  color: #07100d;
  background: var(--green);
}

.icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.icon-grid {
  background:
    linear-gradient(currentColor 0 0) left top / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) right top / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) left bottom / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) right bottom / 7px 7px no-repeat;
}

.icon-whistle {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-whistle::after {
  position: absolute;
  right: -5px;
  top: 5px;
  width: 8px;
  height: 5px;
  border-top: 2px solid currentColor;
  content: "";
}

.icon-book {
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-book::before {
  position: absolute;
  left: 7px;
  top: -2px;
  bottom: -2px;
  border-left: 2px solid currentColor;
  content: "";
}

.icon-pulse::before,
.icon-pulse::after {
  position: absolute;
  content: "";
}

.icon-pulse::before {
  left: 0;
  right: 0;
  top: 8px;
  border-top: 2px solid currentColor;
}

.icon-pulse::after {
  left: 3px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.season-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.season-card strong,
.season-card span {
  display: block;
}

.season-card strong {
  margin-bottom: 8px;
  font-size: 21px;
}

.season-card span {
  color: var(--muted);
}

.main {
  min-width: 0;
  padding: 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.squad-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.export-button {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 6px 12px;
  color: #06110d;
  background: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.export-button:hover {
  filter: brightness(1.08);
}

.squad-strip span,
.tag,
.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 750;
}

.source-pill {
  border-color: rgba(57, 196, 127, 0.38);
  color: #c8f5dd;
  background: rgba(57, 196, 127, 0.13);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.summary-grid,
.week-grid,
.exercise-grid,
.athletics-grid,
.athletics-weekly,
.principle-strip,
.term-grid,
.drill-grid {
  display: grid;
  gap: 16px;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 30px;
}

.focus-panel,
.week-card,
.exercise-card,
.session-card,
.session-detail,
.field-panel,
.athletics-card,
.principle-card,
.rhythm-card,
.term-card,
.drill-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.focus-panel {
  min-height: 174px;
  padding: 22px;
  border-top: 4px solid var(--green);
}

.focus-panel.tempo {
  border-top-color: var(--blue);
}

.focus-panel.duel {
  border-top-color: var(--red);
}

.panel-code {
  display: block;
  margin-bottom: 28px;
  color: var(--subtle);
  font-weight: 900;
}

.focus-panel p,
.week-card p,
.exercise-card p,
.session-card p,
.session-detail p,
.athletics-card p,
.principle-card p,
.rhythm-card p,
.term-card p,
.drill-card p {
  color: var(--muted);
  line-height: 1.5;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 16px;
}

.section-head h3 {
  margin-bottom: 0;
  font-size: 26px;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.segmented button {
  min-height: 36px;
  padding: 7px 12px;
  color: var(--muted);
  background: transparent;
}

.segmented button.active {
  color: #06110d;
  background: var(--green);
}

.week-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.week-card,
.exercise-card,
.session-card {
  padding: 18px;
}

.week-card {
  min-height: 286px;
}

.hall-week {
  border-color: rgba(232, 182, 77, 0.28);
  background:
    linear-gradient(180deg, rgba(232, 182, 77, 0.12), transparent 42%),
    var(--panel);
}

.week-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.week-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #07100d;
  background: var(--green);
  font-weight: 950;
}

.week-card ul,
.session-card ul,
.drawer ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.58;
}

.week-button,
.reference-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 16px;
  padding: 8px 13px;
  color: #06110d;
  background: var(--green);
  text-decoration: none;
  font-weight: 850;
}

.week-button:hover,
.reference-link:hover,
.reference-row a:hover {
  filter: brightness(1.08);
}

.training-board {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
  gap: 18px;
}

.field-panel {
  padding: 18px;
  background: rgba(16, 28, 43, 0.82);
}

.field {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 2px solid rgba(214, 255, 235, 0.55);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 50%, transparent 50%) 0 0 / 54px 54px,
    linear-gradient(180deg, #1f8d5c, #176344);
}

.center-line,
.center-circle,
.goal,
.zone {
  position: absolute;
}

.center-line {
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid rgba(255, 255, 255, 0.68);
}

.center-circle {
  left: 50%;
  top: 50%;
  width: 130px;
  height: 130px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
}

.goal {
  left: 50%;
  width: 120px;
  height: 22px;
  transform: translateX(-50%);
  border: 2px solid rgba(255,255,255,.78);
}

.goal-top {
  top: -2px;
  border-top: 0;
}

.goal-bottom {
  bottom: -2px;
  border-bottom: 0;
}

.zone {
  left: 22px;
  min-width: 118px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 17, 15, 0.42);
  font-weight: 850;
}

.zone-build {
  bottom: 64px;
}

.zone-connect {
  top: 50%;
  transform: translateY(-50%);
}

.zone-finish {
  top: 64px;
}

.field-badge {
  position: absolute;
  right: 18px;
  min-width: 118px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #07100d;
  background: var(--green);
  font-weight: 900;
  text-align: center;
}

.field-badge.mode {
  top: 18px;
}

.field-badge.focus {
  top: 62px;
  color: var(--ink);
  background: rgba(16, 28, 43, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.session-detail {
  padding: 22px;
  background: var(--panel-strong);
}

.session-list {
  display: grid;
  gap: 16px;
}

.session-card {
  box-shadow: none;
}

.detailed-session {
  border-left: 5px solid var(--green);
  background: rgba(255, 255, 255, 0.045);
}

.detailed-session h4,
.drawer h4 {
  margin: 16px 0 8px;
}

.detailed-session ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.58;
}

.detailed-session ol li::marker {
  color: var(--green);
  font-weight: 900;
}

.session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hall-note {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 13px;
  border: 1px solid rgba(232, 182, 77, 0.35);
  border-radius: 8px;
  color: #ffe8aa;
  background: rgba(232, 182, 77, 0.105);
}

.reference-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.reference-row a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #07100d;
  background: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.searchbox,
.selectbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.searchbox label,
.selectbox label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.searchbox input,
.selectbox select {
  width: 220px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.selectbox select {
  width: min(480px, 46vw);
}

.searchbox input::placeholder {
  color: var(--subtle);
}

.muted-line {
  margin-bottom: 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.exercise-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principle-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 22px;
}

.principle-card {
  min-height: 128px;
  padding: 17px;
  background:
    linear-gradient(180deg, rgba(57, 196, 127, 0.12), transparent),
    rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.principle-card span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 8px;
  color: #06110d;
  background: var(--green);
  font-weight: 950;
}

.athletics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.term-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.athletics-card,
.rhythm-card,
.term-card {
  padding: 20px;
}

.term-card {
  background:
    linear-gradient(180deg, rgba(57, 196, 127, 0.08), transparent 50%),
    var(--panel);
}

.athletics-card {
  border-left: 5px solid var(--green);
}

.athletics-card:nth-child(2) {
  border-left-color: var(--blue);
}

.athletics-card:nth-child(3) {
  border-left-color: var(--amber);
}

.athletics-card:nth-child(4) {
  border-left-color: var(--red);
}

.athletics-card ul,
.rhythm-card ul,
.term-card ul,
.drill-card ul,
.drill-card ol {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.58;
}

.athletics-card .hall-note {
  margin-top: 14px;
}

.avoid-note,
.mistake-note {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(224, 103, 95, 0.35);
  border-radius: 8px;
  color: #ffd4d1;
  background: rgba(224, 103, 95, 0.10);
}

.athletics-weekly {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rhythm-card {
  background:
    linear-gradient(180deg, rgba(77, 157, 224, 0.10), transparent 58%),
    var(--panel);
}

.drill-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.drill-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  min-height: 438px;
  background: var(--panel-strong);
}

.drill-content {
  padding: 20px;
}

.drill-card h4 {
  margin: 14px 0 6px;
}

.drill-figure {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(160deg, rgba(57, 196, 127, 0.22), rgba(16, 28, 43, 0.94) 58%),
    #123327;
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.drill-figure::before {
  position: absolute;
  inset: 22px;
  border: 2px solid rgba(214, 255, 235, 0.48);
  border-radius: 8px;
  content: "";
}

.drill-figure::after {
  position: absolute;
  left: 50%;
  top: 22px;
  bottom: 22px;
  border-left: 1px dashed rgba(214, 255, 235, 0.32);
  content: "";
}

.diagram-player,
.diagram-cone,
.diagram-ball,
.diagram-line,
.diagram-arrow,
.diagram-mat,
.diagram-label {
  position: absolute;
  z-index: 1;
}

.diagram-player {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(8, 17, 15, 0.85);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(57, 196, 127, 0.12);
}

.diagram-player::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #06110d;
  content: "";
}

.diagram-cone {
  width: 0;
  height: 0;
  border-right: 9px solid transparent;
  border-bottom: 22px solid var(--amber);
  border-left: 9px solid transparent;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

.diagram-ball {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(8, 17, 15, 0.8);
  border-radius: 50%;
  background: #f4fbf7;
}

.diagram-line {
  border-top: 3px solid rgba(238, 247, 242, 0.74);
}

.diagram-arrow {
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  transform-origin: left center;
}

.diagram-arrow::after {
  position: absolute;
  right: -2px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--blue);
  content: "";
}

.diagram-mat {
  width: 150px;
  height: 66px;
  border: 1px solid rgba(214, 255, 235, 0.28);
  border-radius: 8px;
  background: rgba(77, 157, 224, 0.18);
}

.diagram-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #06110d;
  background: rgba(238, 247, 242, 0.92);
  font-size: 11px;
  font-weight: 900;
}

.diagram-line-mobility .line-a,
.diagram-line-mobility .line-b {
  left: 34px;
  right: 34px;
}

.diagram-line-mobility .line-a {
  top: 34%;
}

.diagram-line-mobility .line-b {
  top: 66%;
}

.diagram-line-mobility .player-a {
  left: 22%;
  top: 44%;
}

.diagram-line-mobility .arrow-a {
  left: 34%;
  top: 52%;
  width: 36%;
}

.diagram-line-mobility .cone-a {
  right: 19%;
  top: 46%;
}

.diagram-line-mobility .label-a {
  left: 28px;
  bottom: 30px;
}

.diagram-line-mobility .label-a::before {
  content: "Hüfte öffnen";
}

.diagram-lunge .player-a {
  left: 45%;
  top: 37%;
}

.diagram-lunge .line-a {
  left: 35%;
  top: 58%;
  width: 32%;
  transform: rotate(-12deg);
}

.diagram-lunge .arrow-a {
  left: 50%;
  top: 30%;
  width: 25%;
  transform: rotate(-32deg);
}

.diagram-lunge .cone-a {
  left: 28%;
  top: 63%;
}

.diagram-lunge .label-a {
  left: 28px;
  bottom: 30px;
}

.diagram-lunge .label-a::before {
  content: "Rotation";
}

.diagram-reaction .player-a {
  left: 22%;
  top: 38%;
}

.diagram-reaction .player-b {
  left: 22%;
  top: 54%;
}

.diagram-reaction .arrow-a,
.diagram-reaction .arrow-b {
  left: 36%;
  width: 38%;
}

.diagram-reaction .arrow-a {
  top: 44%;
}

.diagram-reaction .arrow-b {
  top: 60%;
}

.diagram-reaction .cone-a {
  right: 20%;
  top: 39%;
}

.diagram-reaction .cone-b {
  right: 20%;
  top: 56%;
}

.diagram-reaction .label-a {
  left: 28px;
  bottom: 30px;
}

.diagram-reaction .label-a::before {
  content: "Signal";
}

.diagram-plank .diagram-mat {
  left: 24%;
  top: 41%;
}

.diagram-plank .player-a {
  left: 36%;
  top: 48%;
}

.diagram-plank .player-b {
  left: 54%;
  top: 48%;
  background: var(--blue);
}

.diagram-plank .arrow-a {
  left: 43%;
  top: 45%;
  width: 14%;
  transform: rotate(-18deg);
}

.diagram-plank .label-a {
  left: 28px;
  bottom: 30px;
}

.diagram-plank .label-a::before {
  content: "Becken ruhig";
}

.diagram-single-leg .player-a {
  left: 36%;
  top: 43%;
}

.diagram-single-leg .cone-a {
  left: 62%;
  top: 48%;
}

.diagram-single-leg .arrow-a {
  left: 45%;
  top: 50%;
  width: 18%;
  transform: rotate(12deg);
}

.diagram-single-leg .line-a {
  left: 34%;
  top: 66%;
  width: 38%;
}

.diagram-single-leg .label-a {
  left: 28px;
  bottom: 30px;
}

.diagram-single-leg .label-a::before {
  content: "Knieachse";
}

.diagram-landing .line-a {
  left: 28%;
  top: 50%;
  width: 45%;
}

.diagram-landing .player-a {
  left: 29%;
  top: 39%;
}

.diagram-landing .player-b {
  left: 62%;
  top: 39%;
  background: var(--amber);
}

.diagram-landing .arrow-a {
  left: 39%;
  top: 45%;
  width: 20%;
}

.diagram-landing .label-a {
  left: 28px;
  bottom: 30px;
}

.diagram-landing .label-a::before {
  content: "2 s halten";
}

.diagram-duel .player-a {
  left: 39%;
  top: 45%;
}

.diagram-duel .player-b {
  left: 52%;
  top: 45%;
  background: var(--red);
}

.diagram-duel .arrow-a {
  left: 32%;
  top: 51%;
  width: 16%;
}

.diagram-duel .arrow-b {
  left: 68%;
  top: 51%;
  width: 16%;
  transform: rotate(180deg);
}

.diagram-duel .label-a {
  left: 28px;
  bottom: 30px;
}

.diagram-duel .label-a::before {
  content: "fairer Druck";
}

.diagram-interval .player-a {
  left: 25%;
  top: 38%;
}

.diagram-interval .player-b {
  left: 58%;
  top: 58%;
  background: var(--blue);
}

.diagram-interval .ball-a {
  left: 37%;
  top: 46%;
}

.diagram-interval .arrow-a {
  left: 31%;
  top: 48%;
  width: 36%;
  transform: rotate(20deg);
}

.diagram-interval .arrow-b {
  left: 65%;
  top: 59%;
  width: 20%;
  transform: rotate(-116deg);
}

.diagram-interval .label-a {
  left: 28px;
  bottom: 30px;
}

.diagram-interval .label-a::before {
  content: "15 / 15";
}

.diagram-small-sided .line-a {
  left: 22px;
  right: 22px;
  top: 50%;
}

.diagram-small-sided .player-a {
  left: 28%;
  top: 33%;
}

.diagram-small-sided .player-b {
  left: 61%;
  top: 33%;
  background: var(--blue);
}

.diagram-small-sided .player-c {
  left: 44%;
  top: 62%;
  background: var(--amber);
}

.diagram-small-sided .ball-a {
  left: 48%;
  top: 46%;
}

.diagram-small-sided .cone-a {
  left: 25px;
  top: 45%;
}

.diagram-small-sided .cone-b {
  right: 25px;
  top: 45%;
}

.diagram-small-sided .label-a {
  left: 28px;
  bottom: 30px;
}

.diagram-small-sided .label-a::before {
  content: "4 x 3 min";
}

.diagram-stretch .diagram-mat {
  left: 27%;
  top: 43%;
}

.diagram-stretch .player-a {
  left: 34%;
  top: 47%;
}

.diagram-stretch .player-b {
  left: 51%;
  top: 47%;
  background: var(--blue);
}

.diagram-stretch .line-a {
  left: 38%;
  top: 59%;
  width: 30%;
  transform: rotate(18deg);
}

.diagram-stretch .label-a {
  left: 28px;
  bottom: 30px;
}

.diagram-stretch .label-a::before {
  content: "20-30 s";
}

.exercise-card {
  display: flex;
  flex-direction: column;
  min-height: 306px;
}

.exercise-card .tag-row {
  margin-bottom: 16px;
}

.reference-link {
  margin-top: auto;
}

.drawer {
  position: fixed;
  right: 20px;
  top: 20px;
  bottom: 20px;
  z-index: 5;
  width: min(460px, calc(100vw - 40px));
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(16, 28, 43, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  transform: translateX(calc(100% + 42px));
  transition: transform 180ms ease;
  overflow: auto;
}

.drawer.open {
  transform: translateX(0);
}

.icon-button {
  float: right;
  width: 34px;
  height: 34px;
  color: #07100d;
  background: var(--green);
}

.drawer h3 {
  padding-right: 42px;
}

.drawer a {
  color: #baf4d4;
}

.print-root {
  display: none;
}

@media (max-width: 1220px) {
  .week-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .exercise-grid,
  .principle-strip,
  .term-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drill-card {
    grid-template-columns: 1fr;
  }

  .drill-figure {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: auto;
    padding: 16px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }

  .season-card {
    display: none;
  }

  .summary-grid,
  .week-grid,
  .exercise-grid,
  .training-board,
  .athletics-grid,
  .athletics-weekly,
  .term-grid,
  .drill-grid {
    grid-template-columns: 1fr;
  }

  .field {
    min-height: 420px;
  }

  .selectbox select {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .main {
    padding: 18px;
  }

  .topbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    overflow-x: auto;
  }

  .nav-button {
    justify-content: center;
  }

  .nav-button span:last-child {
    display: none;
  }

  .searchbox input,
  .selectbox select {
    width: 100%;
  }

  .drill-figure {
    min-height: 230px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  :root {
    color-scheme: light;
  }

  body {
    color: #15201d;
    background: #ffffff;
    font-size: 10.5pt;
  }

  .app-shell,
  .drawer {
    display: none !important;
  }

  .print-root {
    display: block;
  }

  .print-page {
    page-break-after: always;
  }

  .print-page:last-child {
    page-break-after: auto;
  }

  .print-root h1 {
    margin-bottom: 4mm;
    color: #0b241b;
    font-size: 24pt;
  }

  .print-root h2 {
    margin: 8mm 0 3mm;
    color: #12315a;
    font-size: 15pt;
  }

  .print-root h3 {
    margin: 5mm 0 2mm;
    color: #0f281f;
    font-size: 12pt;
  }

  .print-meta,
  .print-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2mm;
    margin: 0 0 5mm;
  }

  .print-meta span,
  .print-tags span {
    padding: 1.5mm 2.5mm;
    border: 0.25mm solid #b8cec4;
    border-radius: 2mm;
    background: #eef7f2;
    font-size: 9pt;
    font-weight: 700;
  }

  .print-root table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 5mm;
    page-break-inside: auto;
  }

  .print-root tr {
    page-break-inside: avoid;
  }

  .print-root th,
  .print-root td {
    padding: 2.4mm;
    border: 0.25mm solid #c8d7d1;
    vertical-align: top;
    text-align: left;
  }

  .print-root th {
    color: #0b241b;
    background: #dceee6;
    font-size: 9pt;
  }

  .print-root td {
    font-size: 8.7pt;
    line-height: 1.35;
  }

  .print-card {
    margin-bottom: 4mm;
    padding: 3mm;
    border: 0.25mm solid #c8d7d1;
    border-left: 1.2mm solid #2f9d67;
    border-radius: 2mm;
    page-break-inside: avoid;
  }

  .print-drill-card .drill-figure {
    min-height: 44mm;
    margin-bottom: 3mm;
    border: 0.25mm solid #c8d7d1;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .print-drill-card .drill-figure::before {
    inset: 5mm;
    border-color: rgba(21, 32, 29, 0.35);
  }

  .print-card p,
  .print-card li,
  .print-root p,
  .print-root li {
    line-height: 1.38;
  }

  .print-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3mm;
  }

  .print-root ul,
  .print-root ol {
    margin: 2mm 0 0;
    padding-left: 5mm;
  }
}
