/* The public entrance and the learner workspace share the station palette. */
:root {
  --bahn-blue: #244bc9;
  --bahn-navy: #172950;
  --bahn-lavender: #eeedff;
  --bahn-border: #d8ddea;
  --bahn-yellow: #ffd16d;
  --ink: var(--bahn-navy);
  --muted: #475873;
  --forest: var(--bahn-blue);
  --forest-hover: #193aa1;
  --line: var(--bahn-border);
}
body#top { background: #fff; }
.home-header, .site-header { border-block-end-color: var(--bahn-border); }
.masthead .account, .home-menu-toggle { color: var(--bahn-blue); border-color: #cdd6ee; background: #f4f6ff; }
.masthead nav a:hover { color: var(--bahn-blue); }
.shell.hero {
  grid-template-columns: minmax(0,1fr) minmax(0,1.04fr);
  grid-template-areas: "copy poster";
  align-items: center;
  gap: clamp(24px,5vw,82px);
  overflow: visible;
  background: #fff;
  color: var(--bahn-navy);
  margin-block: clamp(30px,5vw,78px);
  min-block-size: 0;
}
.hero-copy { grid-area: copy; padding: 0; }
.hero .eyebrow { color: #45547b; font-weight: 650; }
.hero .eyebrow::before {
  width: 21px; height: 15px; border-radius: 3px;
  background: linear-gradient(#202534 0 33.33%,#db4346 33.33% 66.66%,#f7be45 66.66%);
}
.hero h1 { margin-block: 16px; line-height: 1.45; font-size: clamp(2.5rem,4.3vw,4.25rem); }
.hero h1 em { color: var(--bahn-blue); }
.hero .hero-description { color: #45546c; max-inline-size: 42ch; font-size: 1.075rem; }
.hero .hero-actions { gap: 12px; }
.hero .cta, .hero .hero-courses {
  border-radius: 15px;
  min-block-size: 50px;
  padding-inline: clamp(14px,2vw,24px);
}
.hero .cta {
  background: var(--bahn-blue); color: #fff;
  box-shadow: 0 4px 0 #142e82;
}
.hero .cta:hover { background: #1c40b4; }
.hero .hero-courses { color: var(--bahn-navy); border: 1.5px solid #c6cede; background: #fff; box-shadow: 0 3px 0 #dee2ed; }
.hero .hero-courses:hover { background: #f1f3fc; }
.hero-actions a:active { transform: translateY(2px); box-shadow: none; }
.hero :focus-visible, body :focus-visible { outline: 3px solid #aa4a12; outline-offset: 3px; }
.journey-poster {
  grid-area: poster; min-inline-size: 0; overflow: clip;
  border: 2px solid var(--bahn-navy); border-radius: clamp(20px,2.8vw,34px);
  background: var(--bahn-navy); box-shadow: 0 5px 0 var(--bahn-navy);
}
.journey-poster img { inline-size: 100%; aspect-ratio: 1.53; block-size: auto; object-fit: cover; }
.journey-word { color: #fff; background: var(--bahn-navy); }
.journey-word summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px clamp(14px,2vw,26px); min-block-size: 57px; list-style: none; cursor: pointer;
}
.journey-word summary::-webkit-details-marker { display: none; }
.journey-word summary:focus-visible { outline-color: var(--bahn-yellow); outline-offset: -5px; }
.journey-word summary span { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; }
.journey-word summary span::after { content: "+"; font: 700 1.25rem/1 system-ui; color: var(--bahn-yellow); }
.journey-word[open] summary span::after { content: "−"; }
.journey-word summary b { font: 700 clamp(1.25rem,2.6vw,1.85rem)/1.15 system-ui,sans-serif; }
.journey-word p { padding: 10px 20px 15px; border-block-start: 1px solid #516089; line-height: 1.75; }
.journey-word p bdi { display: block; color: #ffe19c; text-align: end; }
.journey-word p small { font-size: .96rem; }
.course-section, .course-dialog { --course-ink: var(--bahn-navy); --course-line: var(--bahn-border); --course-wash: #f2f4ff; }
.course-feature, .course-dialog-head { background-color: var(--bahn-navy); }
.course-feature-copy .course-eyebrow, .course-rate strong { color: var(--bahn-yellow); }
.course-level-links a { border-block-end-width: 3px; }
.course-level-links a:focus-visible, .course-level-links a:hover { border-color: var(--bahn-blue); }
body.chat-workspace { --background: #f4f6fc; --text: #253955; --moss: #e6eaff; --lime: #ffda82; --paper: #fff; }
.studio-coach-mark { color: var(--bahn-yellow); background: var(--bahn-blue); }
.studio-work-nav .work-link[aria-current] { background: var(--bahn-blue); color: #fff; border-radius: 12px; }
.studio-work-nav .work-link:not([aria-current]):hover { background: #eff1fc; }
.chat-workspace .chat-heading { background: #f6f7ff; border-block-end-color: var(--bahn-border); }
.chat-room .studio-bubble-learner { background: #e9edff; color: var(--bahn-navy); }
#studio-welcome::before {
  content: ""; inline-size: 96px; block-size: 76px; border-radius: 24px;
  border: 2px solid var(--bahn-navy); box-shadow: 0 3px 0 var(--bahn-navy);
  background: #dad7fc url("/static/berlin-train-small.webp") center / cover;
  margin-block: 3px 8px;
}
.coach-starters button {
  border-radius: 14px; border: 1px solid #bbc7ed; border-block-end-width: 3px;
  color: #253e9f; background: #f1f3ff;
}
.coach-starters button:hover, .coach-starters button:focus-visible { background: #e1e7ff; }
.chat-workspace .button.primary, .chat-entry .chat-send:not(:disabled) { background: var(--bahn-blue); color: #fff; }
.studio-placement-steps [data-state="done"] { background: var(--bahn-blue); border-color: var(--bahn-blue); }
.studio-placement-steps [data-state="current"] { background: var(--bahn-yellow); border-color: #9b6815; }
.studio-placement-options label:has(input:checked) { background: #edf0ff; border-color: var(--bahn-blue); }
@media (max-width: 720px) {
  .shell.hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "copy" "poster"; gap: 24px; margin-block: 26px 34px; }
  .hero h1 { font-size: clamp(2.25rem,8.6vw,3.25rem); margin-block: 10px; }
  .hero .hero-description { font-size: 1rem; }
  .hero .hero-actions { display: flex; }
  .hero-actions a { white-space: normal; }
  .journey-poster img { aspect-ratio: 1.9; object-position: center 58%; }
}
@media (max-height: 560px) { #studio-welcome::before { display: none; } }
.home-courses {
  --courses-ink: #172950; --courses-muted: #465770;
  --online-color: #2445aa; --flex-color: #80521a;
}
.home-course-track.home-course-online { --track-wash: #edf0ff; --track-border: #bdc8f1; --track-color: #2445aa; }
.home-course-track.home-course-flex { --track-wash: #fff3d8; --track-border: #e4c987; --track-color: #754713; }
.home-course-track { border-block-end-width: 3px; border-radius: 20px; }

/* Illustrations accompany the action or story in each section. */
.station-art { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 18px; }
.home-courses-intro {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(18px,4vw,58px); padding: clamp(18px,3vw,40px);
  border-radius: 26px; background: #f0efff;
}
.home-courses-intro .home-courses-jump { margin-top: 10px; }
.home-courses-intro .art-class { max-height: 300px; }
.telegram-feature { background: #1d326b; border-color: #394d82; }
.telegram-feature h2 em, .telegram-access-note { color: #ffd16d; }
.telegram-demo { background: #f5f5ff; }
.telegram-demo .art-bot { aspect-ratio: 2.6; object-position: 50% 45%; margin-bottom: 20px; }
.telegram-tabs [role="tab"][aria-selected="true"] { color: white; background: #244bc9; }
.media-library { grid-template-columns: minmax(0,1fr) minmax(0,.92fr); gap: 22px clamp(24px,4vw,62px); background: #f5f4ff; }
.media-library .art-books { grid-column: 2; grid-row: 1 / 3; }
.media-library-content, .library-prices { grid-column: 1; }
.media-library-content { grid-row: 1; }
.library-prices { background: #fff; }
.chat-preview .art-cafe { border-radius: 0; aspect-ratio: 2.7; object-position: center 48%; }
.benefit:nth-child(2) .benefit-icon, .benefit:nth-child(3) .benefit-icon { background: #fff0cf; color: #814416; }
.home-updates-feature { background: #1d326b; }
.home-updates-feature .art-map { aspect-ratio: 2.2; }
.home-app {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  grid-template-areas: "art copy" "art action";
  gap: 10px clamp(22px,4vw,60px); background: #fff1de; border-color: #e7ceb0;
}
.home-app .art-commute { grid-area: art; max-height: 300px; }
.home-app > div:not(.home-app-actions) { grid-area: copy; align-self: end; }
.home-app .home-app-actions { grid-area: action; align-self: start; margin-top: 8px; }
.home-footer { background: #172950; border-block-start: 6px solid #ffd16d; }
.library-heading { background: #20386d; border-block-end-color: #ffd16d; }
.library-shelves button[aria-selected="true"] { color: #fff; background: #244bc9; }
@media (max-width: 720px) {
  .home-courses-intro, .media-library, .home-app { grid-template-columns: minmax(0,1fr); }
  .media-library .art-books, .media-library-content, .library-prices { grid-column: 1; grid-row: auto; }
  .media-library .art-books, .home-app .art-commute, .home-courses-intro .art-class { aspect-ratio: 1.95; }
  .home-app { grid-template-areas: "art" "copy" "action"; }
  .telegram-demo .art-bot { aspect-ratio: 2.15; }
}
