/* Screen-spezifische Stile: Heute, Stats, Ich. Alle Maße in px. */

/* Heute und Stats: große Überschrift */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}

.hero::before {
  content: "";
  display: var(--bracket);
  position: absolute;
  top: 0;
  left: -14px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  /* Auf schmalen Handys schrumpft die Überschrift, damit "KAMPFTAG" nie überläuft. */
  font-size: min(var(--headline-size), 15vw);
  line-height: var(--headline-line);
  letter-spacing: var(--headline-spacing);
  text-transform: uppercase;
}

.hero__sub {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
}

.progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Stats */
.stats {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}

.stat__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.stat__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.stat--soft .stat__name,
.stat--soft .stat__value {
  color: var(--soft-text);
}

.stat--soft .seg.on {
  background: var(--soft-bar);
}

/* Serie: Wochenübersicht */
.series {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.day {
  display: grid;
  place-items: center;
  height: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.day--done {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.day--shield {
  background: var(--soft);
  border-color: var(--soft);
  color: var(--soft-ink);
  font-weight: 600;
}

.day--missed {
  border-style: dashed;
  border-color: var(--dim);
}

.day--before {
  border-color: var(--hair);
  color: var(--faint);
}

.day--rest {
  border-color: var(--soft-bar);
  color: var(--soft-text);
}

/* Woche: Tageskarten */
.week-nav {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
}

.week-nav .label {
  text-align: center;
}

.plan-days {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-day {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
}

.plan-day.is-today {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.plan-day.is-rest {
  border-style: dashed;
  border-color: var(--soft-bar);
}

.plan-day__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.plan-day__label {
  flex: none;
  width: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.plan-day.is-rest .plan-day__label,
.plan-day.is-rest .plan-day__focus {
  color: var(--soft-text);
}

.plan-day__focus {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.plan-day__tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-day.is-today .plan-day__tag {
  color: var(--accent);
  font-weight: 600;
}

.plan-day__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0 0 0 40px;
  list-style: none;
}

.plan-day__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  line-height: 20px;
}

.plan-day__sets {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* Rotation der Wochen-Varianten */
.chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
}

.chip.is-current {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.chip__week {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}

.chip__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0px;
  text-transform: uppercase;
}

.day.is-today {
  box-shadow: 0 0 0 2px var(--ink);
  color: var(--ink);
}

.day--done.is-today,
.day--shield.is-today {
  color: inherit;
}

.day--done.is-today {
  color: var(--on-accent);
}

.day--shield.is-today {
  color: var(--soft-ink);
}

/* Ich: Einstellungen */
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-option {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.theme-option[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--accent);
  border-color: var(--accent);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.theme-option__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.theme-option__desc {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.note--error {
  color: var(--soft-text);
  font-weight: 600;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  resize: vertical;
}

.callout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
}

.callout__lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 18px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}
