:root {
    --blue-950: #082f49;
    --blue-900: #0b4f7a;
    --blue-800: #0868a6;
    --blue-700: #0877bd;
    --blue-100: #e8f4fb;
    --blue-050: #f4f9fc;
    --ink: #17212b;
    --muted: #64717d;
    --line: #dbe4ea;
    --surface: #ffffff;
    --surface-soft: #f5f7f9;
    --green: #247a52;
    --green-soft: #e8f7ef;
    --amber: #996515;
    --amber-soft: #fff5da;
    --red: #a93b3b;
    --red-soft: #fff0f0;
    --shadow: 0 16px 42px rgba(22, 55, 76, .10);
    --radius: 18px;
    --radius-sm: 11px;
    --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: #f7f9fb;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
}
a { color: inherit; }
button, input { font: inherit; }
.shell { width: min(calc(100% - 36px), var(--shell)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(219,228,234,.9);
    backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center;
    border-radius: 12px; color: white; background: linear-gradient(145deg, var(--blue-800), var(--blue-950));
    font-weight: 800; font-size: 24px; box-shadow: 0 8px 18px rgba(8,104,166,.23);
}
.brand strong, .brand small { display: block; }
.brand strong { color: var(--blue-950); font-size: 17px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 12px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { text-decoration: none; color: #53616d; padding: 10px 13px; border-radius: 9px; font-weight: 650; font-size: 14px; }
.main-nav a:hover, .main-nav a.active { color: var(--blue-800); background: var(--blue-100); }

.page-shell { padding-block: 34px 70px; }
.site-footer { border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: 13px; }
.footer-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.eyebrow { display: inline-block; color: var(--blue-800); text-transform: uppercase; letter-spacing: .11em; font-size: 12px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.045em; margin-bottom: 20px; }
h2 { letter-spacing: -.025em; }

.hero {
    min-height: 460px;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr);
    gap: 50px;
    align-items: center;
    padding: 54px;
    color: white;
    background:
        radial-gradient(circle at 82% 18%, rgba(99, 196, 255, .25), transparent 27%),
        linear-gradient(135deg, #06466f 0%, #0876b8 62%, #0b89c9 100%);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero .eyebrow { color: #bfe8ff; }
.hero h1 span { color: #bce9ff; }
.hero-copy > p { max-width: 720px; color: rgba(255,255,255,.86); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .button-secondary { color: white; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.hero .button-secondary:hover { background: rgba(255,255,255,.17); }
.hero-stats {
    padding: 28px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px;
    background: rgba(3,42,66,.25);
    backdrop-filter: blur(10px);
}
.hero-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.hero-stats strong { font-size: 29px; }
.hero-stats span { color: rgba(255,255,255,.75); font-size: 13px; }
.text-button { border: 0; padding: 16px 0 0; color: #c8ecff; background: transparent; cursor: pointer; text-decoration: underline; }

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px; border-radius: 10px;
    border: 1px solid transparent; text-decoration: none; cursor: pointer; font-weight: 750;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--blue-800); box-shadow: 0 9px 22px rgba(8,104,166,.22); }
.button-primary:hover { background: var(--blue-900); }
.button-secondary { color: var(--blue-900); background: white; border-color: var(--line); }
.button-secondary:hover { border-color: #aac8d9; background: var(--blue-050); }
.button-large { min-height: 50px; padding-inline: 23px; }

.section-heading { margin-bottom: 22px; }
.section-heading h2 { margin: 4px 0 5px; font-size: 32px; }
.section-heading p { color: var(--muted); }
.weights-section, .modules-section { margin-top: 54px; }
.weight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.weight-card {
    position: relative; min-height: 150px; padding: 24px; border-radius: var(--radius);
    background: white; border: 1px solid var(--line); box-shadow: 0 8px 25px rgba(22,55,76,.06);
}
.weight-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 17px; border-radius: var(--radius) 0 0 var(--radius); background: var(--blue-700); }
.weight-card > span { color: var(--muted); font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.weight-card strong { display: block; margin: 8px 0 4px; color: var(--blue-900); font-size: 35px; letter-spacing: -.04em; }
.weight-card p { margin: 0; color: var(--muted); }
.weight-b::before { background: #e39b00; }
.weight-c::before { background: #54a56f; }
.weight-grid.compact .weight-card { min-height: 140px; }
.result-weight-grid { margin-bottom: 40px; }

.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.module-card {
    display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 18px; align-items: center;
    padding: 24px; color: inherit; text-decoration: none; border-radius: var(--radius); background: white;
    border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.module-card:hover { transform: translateY(-2px); border-color: #a9ccde; box-shadow: var(--shadow); }
.module-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 15px; color: white; background: var(--blue-800); font-size: 20px; font-weight: 800; }
.module-text_de .module-icon, .module-text_en .module-icon { background: #d78a00; }
.module-logic .module-icon, .module-story .module-icon { background: #3b8c60; }
.module-card h3 { margin: 0 0 5px; font-size: 20px; }
.module-card p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.module-card small { color: var(--blue-800); font-weight: 700; }
.module-arrow { color: var(--blue-700); font-size: 25px; }
.info-strip { margin-top: 30px; padding: 25px 30px; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; border-radius: var(--radius); background: var(--blue-950); color: white; }
.info-strip div { display: flex; flex-direction: column; }
.info-strip strong { font-size: 18px; }
.info-strip span { color: rgba(255,255,255,.67); font-size: 13px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--blue-800); text-decoration: none; }
.page-intro, .practice-header, .simulation-question-head {
    display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 28px;
}
.page-intro h1, .practice-header h1, .simulation-question-head h1 { margin: 4px 0 8px; font-size: clamp(31px, 4vw, 47px); }
.page-intro p, .practice-header p { color: var(--muted); margin-bottom: 0; max-width: 760px; }

.set-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.set-card { min-height: 205px; display: flex; flex-direction: column; padding: 22px; color: inherit; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: var(--radius); transition: .17s ease; }
.set-card:hover { transform: translateY(-2px); border-color: #a7c9da; box-shadow: var(--shadow); }
.set-card-top { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.set-card h2 { margin: 23px 0 7px; font-size: 20px; }
.set-card p { color: var(--muted); }
.card-link { margin-top: auto; color: var(--blue-800); font-weight: 750; }
.badge { display: inline-flex; width: max-content; align-items: center; padding: 5px 9px; border-radius: 999px; color: #426170; background: #eaf0f3; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.badge-official { color: #7a5200; background: #fff1c9; }
.difficulty { color: var(--blue-700); letter-spacing: 2px; font-size: 12px; }

.score-pill, .overall-score { min-width: 155px; padding: 17px 20px; border-radius: 15px; color: white; background: var(--blue-900); text-align: right; }
.score-pill span, .overall-score span { display: block; color: rgba(255,255,255,.7); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.score-pill strong, .overall-score strong { display: block; font-size: 30px; }
.context-box { margin: 18px 0; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: white; }
.context-box p:last-child, .context-box ul:last-child { margin-bottom: 0; }
.context-logic { border-left: 5px solid var(--blue-700); font-size: 18px; font-weight: 680; }
.passage { max-height: 480px; overflow: auto; background: #fff; line-height: 1.7; }
.passage p { margin-bottom: 17px; }

.practice-form { margin-top: 20px; }
.question-tabs { display: flex; gap: 6px; padding: 8px 8px 0; overflow-x: auto; background: white; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.question-tab { min-width: 110px; padding: 13px 14px; border: 0; border-radius: 9px 9px 0 0; color: var(--blue-800); background: transparent; cursor: pointer; font-weight: 800; }
.question-tab.active { color: white; background: var(--blue-800); }
.question-panel { display: none; padding: 0 0 24px; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(22,55,76,.06); }
.practice-form.has-tabs .question-panel {
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
}
.question-panel.active { display: block; }
.question-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 20px; color: white; background: #6d9ec5; }
.question-heading span { font-weight: 800; }
.question-heading small { color: rgba(255,255,255,.78); }
.question-prompt { margin: 0; padding: 24px 26px 18px; font-size: clamp(20px, 2.5vw, 27px); }
.options-list { margin: 0 20px; border: 1px solid #e5ebef; border-radius: 11px; overflow: hidden; }
.option-row {
    display: grid;
    grid-template-columns: 22px 32px minmax(0,1fr);
    gap: 10px;
    align-items: start;
    padding: 15px 17px;
    background: #f7f8f9;
    cursor: pointer;
    border-bottom: 1px solid #e8edf0;
}
.option-row:last-child { border-bottom: 0; }
.option-row:hover { background: var(--blue-050); }
.option-row input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--blue-800); }
.option-key {
    min-width: 0;
    color: var(--blue-900);
    font-weight: 800;
    white-space: nowrap;
}
.option-row > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}
.option-correct { background: var(--green-soft); color: #145c3c; }
.option-selected-wrong { background: var(--red-soft); color: #7f2929; }
.result-box { margin: 22px 20px 0; padding: 19px; border-radius: 12px; border-left: 5px solid; }
.result-box p:last-child { margin-bottom: 0; }
.result-title { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.result-correct { background: var(--green-soft); border-color: var(--green); }
.result-partial { background: var(--amber-soft); border-color: var(--amber); }
.result-wrong { background: var(--red-soft); border-color: var(--red); }
.source-note { color: var(--muted); font-size: 13px; }
.form-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 24px; }

.simulation-start { max-width: 950px; margin: 20px auto; padding: 45px; border-radius: 24px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.simulation-start h1 { font-size: 48px; margin: 5px 0 12px; }
.simulation-start > p { color: var(--muted); max-width: 650px; margin-inline: auto; }
.simulation-start .weight-grid { margin: 30px 0; text-align: left; }
.progress-caption { color: var(--blue-800); font-size: 26px; font-weight: 800; }
.progress-bar { height: 8px; margin: -10px 0 28px; overflow: hidden; border-radius: 99px; background: #dde8ee; }
.progress-bar span { display: block; height: 100%; background: var(--blue-700); border-radius: inherit; }
.simulation-form .question-panel { display: block; }
.simulation-result-head { align-items: center; }
.result-details { margin-top: 38px; }
.result-details > h2 { font-size: 28px; }
.result-detail-card { margin: 12px 0; padding: 20px; border-radius: 13px; border-left: 5px solid; }
.result-detail-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 9px; color: var(--muted); font-size: 13px; }
.result-question { font-weight: 780; }
.overall-score { min-width: 210px; padding: 22px; }
.overall-score strong { font-size: 42px; }

.document-grid { display: grid; gap: 14px; }
.document-card { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 20px; align-items: center; padding: 22px; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: var(--radius); transition: .16s ease; }
.document-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: #aacbdc; }
.document-card h2 { margin: 0 0 4px; font-size: 19px; }
.document-card p { margin: 0; color: var(--muted); }
.document-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 13px; color: white; background: #b44747; font-size: 12px; font-weight: 900; }
.info-panel { margin-top: 25px; padding: 24px; border-radius: var(--radius); background: var(--blue-100); }
.info-panel h2 { margin-bottom: 7px; }
.info-panel p { margin-bottom: 0; }
.empty-state { padding: 70px 20px; text-align: center; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 38px; }
    .hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
    .hero-stats > div { display: block; border: 0; padding: 0; }
    .hero-stats strong, .hero-stats span { display: block; }
    .hero-stats .text-button { grid-column: 1 / -1; }
    .weight-grid, .set-grid { grid-template-columns: repeat(2,1fr); }
    .module-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .shell { width: min(calc(100% - 22px), var(--shell)); }
    .header-inner { min-height: 66px; }
    .brand small { display: none; }
    .main-nav a { padding: 9px 8px; font-size: 12px; }
    .main-nav a:nth-child(3) { display: none; }
    .page-shell { padding-top: 22px; }
    .hero { min-height: 0; padding: 28px 22px; border-radius: 20px; }
    .hero-copy > p { font-size: 16px; }
    .hero-actions, .form-actions { flex-direction: column; }
    .hero-actions .button, .form-actions .button { width: 100%; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .weight-grid, .set-grid, .info-strip { grid-template-columns: 1fr; }
    .weight-card, .weight-grid.compact .weight-card {
        min-height: 0;
        padding: 18px 20px;
    }
    .weight-card strong {
        margin-block: 5px 2px;
        font-size: 30px;
    }
    .weight-card p { font-size: 14px; }
    .info-strip { gap: 15px; }
    .module-card { grid-template-columns: 48px minmax(0,1fr); padding: 18px; }
    .module-icon { width: 46px; height: 46px; }
    .module-arrow { display: none; }
    .page-intro, .practice-header, .simulation-question-head { display: block; }
    .page-intro .button, .score-pill, .overall-score { margin-top: 18px; width: 100%; text-align: left; }
    .context-box { padding: 19px; }
    .passage { max-height: 420px; }
    .question-heading { display: block; }
    .question-heading small { display: block; margin-top: 3px; }
    .question-prompt { padding: 20px 16px 14px; }
    .options-list { margin-inline: 10px; }
    .option-row { grid-template-columns: 20px 28px minmax(0,1fr); padding: 13px 11px; }
    .result-box { margin-inline: 10px; }
    .simulation-start { padding: 28px 18px; }
    .simulation-start h1 { font-size: 38px; }
    .result-detail-head { display: block; }
    .document-card { grid-template-columns: 50px minmax(0,1fr); }
    .document-card > span:last-child { display: none; }
    .document-icon { width: 48px; height: 48px; }
    .footer-inner { display: block; padding-block: 18px; }
    .footer-inner span { display: block; }
}