/* Sprachwerk Bern, Demo-Website für KettenKI.
   Ein Stylesheet für alle vier Seiten, mobile first, ohne Abhängigkeiten
   ausser den beiden Schriften von Google Fonts.
   Schweizer Schreibweise: ss, nie ß. */

:root {
  /* Vertrauen kommt vom Tintenblau, die Wärme vom Bernstein. Das Papierweiss
     hält beides zusammen, damit nichts nach Behörde aussieht. */
  --ink: #12283a;
  --ink-2: #4a6072;
  --ink-3: #7f8d9a;

  --navy: #0e3a5c;
  --navy-dark: #0a2b45;
  --navy-50: #eaf1f7;

  --amber: #d4832b;
  --amber-50: #fdf2e3;

  --green: #2e7d5b;
  --green-50: #e8f3ed;

  --cream: #fbf7f1;
  --white: #ffffff;
  --line: #e7e1d7;
  --line-cool: #dbe4ec;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r: 14px;
  --r-sm: 10px;
  --pill: 999px;

  --shadow: 0 1px 2px rgba(18, 40, 58, 0.04), 0 8px 24px rgba(18, 40, 58, 0.06);
  --shadow-lg: 0 2px 4px rgba(18, 40, 58, 0.05), 0 20px 48px rgba(18, 40, 58, 0.1);

  --page: clamp(1.15rem, 5vw, 4rem);
  --band: clamp(3.5rem, 8vw, 7rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1, h2, h3, h4, p, figure, ul, ol, dl, dd, blockquote, fieldset, legend {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe {
  display: block;
  max-width: 100%;
}

/* Klassen wie .done setzen display und gewinnen sonst gegen das
   hidden-Attribut. Dann steht die Bestätigung schon da, bevor jemand
   gebucht hat. */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--page);
}

.shell--tight {
  max-width: 880px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Schrift ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.h-xl {
  font-size: clamp(2.2rem, 5.5vw, 3.9rem);
}

.h-lg {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}

.h-md {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
}

.muted {
  color: var(--ink-2);
}

.section {
  padding-block: var(--band);
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section-head {
  max-width: 44ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  margin-top: 0.75rem;
}

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--navy-dark);
}

.btn--amber {
  background: var(--amber);
  color: var(--white);
}

.btn--amber:hover {
  background: #bf742222;
  background: #bd7423;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-cool);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--navy);
  background: var(--navy-50);
}

.btn--light {
  background: var(--white);
  color: var(--navy);
}

.btn--wide {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.link-arrow::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ---------- Kopfzeile ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.masthead[data-stuck] {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(18, 40, 58, 0.05);
}

.masthead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__tag {
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

/* Die Knopf-Links in der Leiste sind ausgenommen: sonst überschreibt die
   Linkfarbe hier das Weiss des Knopfes, und die Beschriftung verschwindet
   im dunklen Blau. */
.nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

.nav a:not(.btn):hover,
.nav a:not(.btn)[aria-current] {
  color: var(--navy);
}

.nav__cta {
  margin-left: 0.5rem;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.burger span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  display: grid;
  gap: 0.25rem;
  padding: 0 var(--page) 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer a:not(.btn) {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  text-decoration: none;
}

.nav-drawer .btn {
  margin-top: 0.9rem;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .burger,
  .nav-drawer {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero__title {
  margin-top: 1rem;
}


.hero__text {
  margin-top: 1.25rem;
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__media {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* ---------- Vertrauensleiste ---------- */

.trust {
  border-block: 1px solid var(--line);
  background: var(--cream);
}

.trust__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust__item {
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem 1rem;
  background: var(--cream);
  text-align: center;
}

.trust__value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.trust__label {
  font-size: 0.78rem;
  color: var(--ink-2);
}

@media (min-width: 760px) {
  .trust__row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Kurse ---------- */

.courses {
  display: grid;
  gap: 1.1rem;
}

.course {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              transform 0.25s var(--ease);
}

.course:hover {
  border-color: var(--navy-50);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.course__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.level {
  display: inline-grid;
  place-items: center;
  min-width: 3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.course--adv .level {
  background: var(--amber);
}

.course__price {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.course__name {
  font-size: 1.2rem;
}

.course__text {
  font-size: 0.93rem;
  color: var(--ink-2);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.2rem 0.6rem;
  border-radius: var(--pill);
  background: var(--navy-50);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
}

.tag--amber {
  background: var(--amber-50);
  color: #a9631b;
}

.tag--green {
  background: var(--green-50);
  color: var(--green);
}

@media (min-width: 680px) {
  .courses {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .courses {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Ablauf ---------- */

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  display: grid;
  gap: 0.4rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--line-cool);
}

.step::before {
  counter-increment: step;
  content: '0' counter(step);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--amber);
}

.step h3 {
  font-size: 1.1rem;
}

.step p {
  font-size: 0.93rem;
  color: var(--ink-2);
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* ---------- Lehrerin ---------- */

.teacher {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.teacher__media {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.teacher__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.teacher__quote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  margin-block: 1rem;
}

.teacher__name {
  font-weight: 600;
}

.teacher__role {
  font-size: 0.9rem;
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .teacher {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* ---------- Stimmen ---------- */

.voices {
  display: grid;
  gap: 1.1rem;
}

.voice {
  display: grid;
  gap: 0.85rem;
  padding: 1.6rem;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--line);
}

.stars {
  display: flex;
  gap: 0.15rem;
  color: var(--amber);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.voice__text {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.5;
}

.voice__who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}

.voice__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.voice__meta {
  font-size: 0.82rem;
  color: var(--ink-3);
}

@media (min-width: 860px) {
  .voices {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Standort ---------- */

.place {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.place__map {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
}

.place__map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.facts {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.fact {
  display: grid;
  gap: 0.1rem;
}

.fact dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fact dd {
  font-size: 1rem;
}

@media (min-width: 900px) {
  .place {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
  }
}

/* ---------- Abschluss-Aufruf ---------- */

.closer {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  justify-items: center;
}

.closer p {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Fuss ---------- */

.foot {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.9rem;
}

.foot a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.foot a:hover {
  color: var(--white);
}

.foot__grid {
  display: grid;
  gap: 2rem;
}

.foot__brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--white);
}

.foot__nav {
  display: grid;
  gap: 0.5rem;
}

.foot__title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.3rem;
}

.foot__demo {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.foot__demo a {
  color: var(--white);
  text-decoration: underline;
}

@media (min-width: 760px) {
  .foot__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* ---------- Seitenkopf der Unterseiten ---------- */

.page-head {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.page-head p {
  margin-top: 0.6rem;
  max-width: 52ch;
}

/* ---------- Buchung ---------- */

.booking {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: var(--band);
  align-items: start;
}

/* Rasterspalten sind von Haus aus so breit wie ihr Inhalt. Ohne das hier
   schiebt die Tagesleiste die ganze Seite auf dem Telefon nach rechts,
   statt selbst zu scrollen. */
.booking > *,
.dash__grid > * {
  min-width: 0;
}

@media (min-width: 980px) {
  .booking {
    grid-template-columns: minmax(0, 1fr) 21rem;
  }
}

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-3);
}

.stepper li[data-active] {
  color: var(--ink);
  font-weight: 600;
}

.stepper li[data-done] {
  color: var(--green);
}

.stepper__dot {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 600;
}

.stepper li[data-active] .stepper__dot {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.stepper li[data-done] .stepper__dot {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}

.panel + .panel {
  margin-top: 1.25rem;
}

.panel__title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* Art der Lektion */
.kinds {
  display: grid;
  gap: 0.75rem;
}

.kind {
  display: grid;
  grid-template-columns: 1.2rem 1fr auto;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  text-align: left;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.kind:hover {
  border-color: var(--navy-50);
  background: var(--cream);
}

.kind[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy-50);
}

.kind__radio {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
}

.kind[aria-pressed="true"] .kind__radio {
  border: 5px solid var(--navy);
}

.kind__name {
  font-weight: 600;
}

.kind__meta {
  font-size: 0.85rem;
  color: var(--ink-2);
}

.kind__price {
  font-family: var(--serif);
  font-weight: 600;
  white-space: nowrap;
}

/* Wochenwahl */
.weekbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.weekbar__label {
  font-weight: 600;
}

.weekbar__nav {
  display: flex;
  gap: 0.4rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.icon-btn:hover:not([disabled]) {
  border-color: var(--navy);
  background: var(--navy-50);
}

.icon-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.days {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(4.2rem, 1fr);
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}

.day {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  text-align: center;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.day:hover:not([disabled]) {
  border-color: var(--navy);
}

.day[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.day[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.day__name {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.day[aria-pressed="true"] .day__name {
  color: rgba(255, 255, 255, 0.75);
}

.day__num {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.day__free {
  font-size: 0.68rem;
  color: var(--green);
}

.day[aria-pressed="true"] .day__free {
  color: rgba(255, 255, 255, 0.8);
}

.day[disabled] .day__free {
  color: var(--ink-3);
}

.slots-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1.5rem 0 0.75rem;
}

.slots-head h3 {
  font-size: 1rem;
}

.slots-head span {
  font-size: 0.82rem;
  color: var(--ink-3);
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr));
  gap: 0.5rem;
}

.slot {
  padding: 0.65rem 0.4rem;
  border: 1px solid var(--line-cool);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease);
}

.slot:hover:not([disabled]) {
  border-color: var(--navy);
  background: var(--navy-50);
}

.slot[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.slot[disabled] {
  background: var(--cream);
  color: var(--ink-3);
  text-decoration: line-through;
  cursor: not-allowed;
}

.slots-empty {
  padding: 1.5rem 0;
  color: var(--ink-2);
  font-size: 0.93rem;
}

/* Zusammenfassung */
.summary {
  position: sticky;
  top: 6rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--cream);
}

.summary__title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.summary__rows {
  display: grid;
  gap: 0.7rem;
}

.summary__rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.summary__rows dt {
  color: var(--ink-2);
}

.summary__rows dd {
  font-weight: 600;
  text-align: right;
}

.summary__hint {
  margin: 1rem 0;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.summary .btn {
  margin-top: 0.25rem;
}

/* Formular */
.fields {
  display: grid;
  gap: 1rem;
}

@media (min-width: 620px) {
  .fields--two {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field > span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-cool);
  border-radius: var(--r-sm);
  background: var(--white);
  font: inherit;
  color: var(--ink);
}

.field textarea {
  min-height: 6rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-50);
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.check input {
  margin-top: 0.25rem;
}

/* Bestätigung */
.done {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--green);
  border-radius: var(--r);
  background: var(--green-50);
}

.done__mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 1.4rem;
}

.done__list {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  max-width: 30rem;
}

.done__list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(46, 125, 91, 0.25);
  font-size: 0.93rem;
}

.done__list dt {
  color: var(--ink-2);
}

.done__list dd {
  font-weight: 600;
}

.done__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Anmeldung ---------- */

.login {
  display: grid;
  min-height: calc(100vh - 4.5rem);
  align-items: center;
}

.login__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: var(--band);
}

.login__card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--shadow);
}

.login__card h1 {
  font-size: 1.6rem;
}

.login__card .fields {
  margin-top: 1.5rem;
}

.login__note {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  background: var(--amber-50);
  font-size: 0.85rem;
  color: #8a5514;
}

.login__aside img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}

.login__points {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.login__points li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  color: var(--ink-2);
}

.login__points li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

@media (min-width: 900px) {
  .login__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Lernbereich ---------- */

.dash {
  padding-block: clamp(1.5rem, 4vw, 2.5rem) var(--band);
}

.dash__welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.dash__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .dash__grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}

.card + .card {
  margin-top: 1.25rem;
}

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.card__title {
  font-size: 1.15rem;
}

.next {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--r);
  background: var(--navy);
  color: var(--white);
}

.next__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.next__when {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}

.next__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.next .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.next .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* Fortschritt */
.progress__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.progress__level {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
}

.progress__pct {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.bar {
  height: 10px;
  border-radius: var(--pill);
  background: var(--navy-50);
  overflow: hidden;
}

.bar__fill {
  /* span ist von Haus aus inline und ignoriert die Höhe. */
  display: block;
  height: 100%;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--navy), #2f7fb8);
  transition: width 1.1s var(--ease);
}

.scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-3);
}

.scale span[data-now] {
  color: var(--navy);
  font-weight: 700;
}

/* Material */
.files {
  display: grid;
  gap: 0.6rem;
}

.file {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.file:hover {
  border-color: var(--navy);
  background: var(--navy-50);
}

.file__type {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: var(--navy-50);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.file__type--audio {
  background: var(--amber-50);
  color: #a9631b;
}

.file__name {
  font-weight: 500;
  font-size: 0.95rem;
}

.file__meta {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.file__go {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* Aufgaben */
.tasks {
  display: grid;
  gap: 0.75rem;
}

.task {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.task:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.task__name {
  font-size: 0.95rem;
  font-weight: 500;
}

.task__due {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: var(--pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--open {
  background: var(--amber-50);
  color: #a9631b;
}

.badge--done {
  background: var(--green-50);
  color: var(--green);
}

.badge--graded {
  background: var(--navy-50);
  color: var(--navy);
}

/* Wort der Woche */
.word {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: var(--r);
  background: var(--amber-50);
  border: 1px solid #f0dcc0;
}

.word__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a9631b;
}

.word__term {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.word__sense {
  font-size: 0.93rem;
  color: var(--ink-2);
}

.word__example {
  font-style: italic;
  font-size: 0.93rem;
  color: var(--ink-2);
}

/* ---------- Hinweisstreifen der Demo ---------- */

.demo-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  padding: 0.7rem var(--page);
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.demo-note strong {
  color: var(--white);
}

.demo-note a {
  color: var(--white);
}

/* ---------- Auftauchen ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Kleine Helfer ----------
   Abstände, die sonst als style-Attribut im HTML stehen würden. */

.fields + .fields {
  margin-top: 1rem;
}

.u-mt-1 { margin-top: 0.5rem; }
.u-mt-2 { margin-top: 1rem; }
.u-mt-3 { margin-top: 1.25rem; }
.u-mt-4 { margin-top: 1.5rem; }
.u-mt-5 { margin-top: 1.75rem; }

.u-narrow { max-width: 46ch; }
.u-small { font-size: 0.88rem; }
.u-xs { font-size: 0.82rem; }
.star-off { opacity: 0.35; }
