:root {
    --ink: #132026;
    --muted: #5d6d76;
    --line: #d8e4e8;
    --paper: #f7faf9;
    --white: #ffffff;
    --sea: #0f6d86;
    --sea-dark: #08495a;
    --signal: #d98a2b;
    --green: #2e7d5b;
    --shadow: 0 18px 45px rgba(15, 57, 70, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 14px clamp(18px, 4vw, 54px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(216, 228, 232, 0.9);
    backdrop-filter: blur(18px);
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    background: var(--sea-dark);
    border-radius: 8px;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--muted);
    font-weight: 650;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--sea-dark);
    background: #e6f2f4;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: min(780px, calc(100vh - 28px));
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--sea-dark);
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 34, 43, 0.78), rgba(6, 34, 43, 0.38) 42%, rgba(6, 34, 43, 0.08) 72%),
        url("/assets/images/hero-bootsschule.jpg") center / cover no-repeat;
}

.hero-content {
    position: relative;
    max-width: 740px;
    padding: clamp(68px, 10vw, 132px) clamp(22px, 7vw, 92px);
    color: var(--white);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--signal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(50px, 7vw, 104px);
    line-height: 0.95;
}

.hero-copy {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2.1vw, 26px);
}

.hero-actions,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions {
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    color: var(--white);
    background: var(--signal);
}

.button-primary:hover {
    background: #c6771b;
}

.button-secondary {
    color: var(--sea-dark);
    background: var(--white);
    border-color: var(--line);
}

.button-secondary:hover {
    background: #edf6f7;
}

.hero-status {
    position: absolute;
    right: clamp(18px, 4vw, 54px);
    bottom: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 1px;
    overflow: hidden;
    max-width: 720px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(15px);
}

.hero-status span {
    display: grid;
    min-height: 76px;
    align-content: center;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.84);
}

.hero-status strong {
    display: block;
    color: var(--white);
}

.section {
    padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.section h2,
.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.05;
}

.section-heading p:last-child,
.page-hero p:last-child {
    color: var(--muted);
}

.steps,
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.steps article,
.course-card,
.notice-panel,
.form-card,
.form-aside,
.progress-panel,
.module-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.steps article {
    padding: 26px;
}

.steps span {
    color: var(--sea);
    font-weight: 900;
}

.steps h3,
.course-card h3,
.notice-panel h3 {
    margin: 12px 0 8px;
    font-size: 22px;
}

.steps p,
.course-card span,
.notice-panel p,
.form-aside p,
.form-aside li,
.legal-text p,
.legal-text li,
.course-detail li,
.module-row p {
    color: var(--muted);
}

.section-courses {
    background: #eaf3f1;
}

.course-card {
    display: grid;
    min-height: 270px;
    align-content: start;
    padding: 26px;
}

.course-card p {
    margin: 0;
    color: var(--sea);
    font-weight: 800;
}

.course-card a {
    align-self: end;
    margin-top: 28px;
    color: var(--sea-dark);
    font-weight: 800;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
    gap: 28px;
    align-items: center;
}

.split > div:first-child {
    max-width: 820px;
}

.split p {
    color: var(--muted);
    font-size: 18px;
}

.notice-panel {
    padding: 26px;
}

.page-hero {
    padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 72px);
    background: #eaf3f1;
}

.page-hero.compact {
    min-height: 300px;
    display: grid;
    align-content: center;
}

.page-hero p {
    max-width: 760px;
    font-size: 18px;
}

.course-detail-list {
    display: grid;
    gap: 18px;
}

.course-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr) auto;
    gap: 22px;
    align-items: center;
    padding: 28px;
    border-bottom: 1px solid var(--line);
}

.course-detail h2,
.legal-text h2 {
    margin: 0 0 10px;
}

.course-detail ul {
    margin: 0;
    padding-left: 20px;
}

.form-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
    gap: 24px;
    align-items: start;
}

.form-shell.narrow {
    grid-template-columns: minmax(280px, 620px);
}

.form-card,
.form-aside {
    padding: 26px;
}

.form-card {
    display: grid;
    gap: 18px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #bfccd2;
    border-radius: 8px;
    padding: 12px 13px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(15, 109, 134, 0.18);
    border-color: var(--sea);
}

.checkbox-line {
    grid-template-columns: 20px 1fr;
    align-items: start;
    color: var(--muted);
    font-weight: 650;
}

.checkbox-line input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.form-errors,
.flash {
    border-radius: 8px;
    padding: 14px 16px;
}

.form-errors {
    border: 1px solid #e0a3a1;
    color: #8a2420;
    background: #fff0ef;
}

.form-errors p,
.form-note {
    margin: 0;
}

.flash {
    margin: 18px clamp(20px, 5vw, 72px) 0;
    border: 1px solid var(--line);
    background: var(--white);
}

.flash-success {
    border-color: #b9d7c9;
    color: #1f684b;
    background: #edf8f2;
}

.flash-notice {
    border-color: #e6cfa7;
    color: #7c541a;
    background: #fff6e7;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.progress-panel {
    padding: 26px;
}

.progress-panel span {
    color: var(--sea-dark);
    font-size: 48px;
    font-weight: 900;
}

.progress-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce8ec;
}

.progress-bar i {
    display: block;
    height: 100%;
    background: var(--green);
}

.module-list {
    display: grid;
    gap: 12px;
}

.module-row {
    display: grid;
    grid-template-columns: 1fr 46px;
    gap: 18px;
    align-items: center;
    padding: 18px;
}

.module-row h3,
.module-row p {
    margin: 0;
}

.module-course {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--sea);
    font-size: 13px;
    font-weight: 900;
}

.module-row details {
    margin-top: 12px;
}

.module-row summary {
    color: var(--sea-dark);
    font-weight: 800;
    cursor: pointer;
}

.lesson-content {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7faf9;
}

.lesson-content h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.lesson-content ul {
    margin-bottom: 0;
}

.lesson-section {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.lesson-section h3 {
    margin: 0;
    font-size: 18px;
}

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

.lesson-callout,
.lesson-card,
.self-test {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: var(--white);
}

.lesson-callout {
    border-color: #e6cfa7;
    background: #fff8eb;
}

.lesson-callout strong,
.lesson-card strong {
    display: block;
    margin-bottom: 6px;
}

.lesson-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.lesson-table th,
.lesson-table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.lesson-table tr:last-child th,
.lesson-table tr:last-child td {
    border-bottom: 0;
}

.self-test details {
    margin-top: 8px;
}

.self-test summary {
    color: var(--sea-dark);
}

.lesson-graphic {
    position: relative;
    min-height: 260px;
    margin: 18px 0 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #d9eef3;
}

.lesson-graphic figcaption {
    position: absolute;
    right: 12px;
    bottom: 10px;
    left: 12px;
    padding: 9px 11px;
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
}

.graphic-sky {
    position: absolute;
    inset: 0 0 42%;
    background: #bfe3ec;
}

.graphic-water,
.graphic-river {
    position: absolute;
    inset: 34% 0 0;
    background:
        repeating-linear-gradient(170deg, rgba(255, 255, 255, 0.26) 0 2px, transparent 2px 24px),
        #6fb2c9;
}

.graphic-coast {
    position: absolute;
    top: 36%;
    right: -40px;
    width: 48%;
    height: 34%;
    border-radius: 60% 0 0 40%;
    background: #9fbf8c;
}

.graphic-coast span,
.graphic-bridge span,
.graphic-lock span {
    position: absolute;
    top: 10px;
    left: 16px;
    color: var(--sea-dark);
    font-size: 13px;
    font-weight: 900;
}

.graphic-channel {
    position: absolute;
    top: 48%;
    left: 8%;
    width: 56%;
    height: 38px;
    border: 2px dashed rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    transform: rotate(-8deg);
}

.graphic-channel span {
    position: absolute;
    top: -26px;
    left: 32%;
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
}

.graphic-boat,
.graphic-small-boat {
    position: absolute;
    width: 76px;
    height: 28px;
    border-radius: 8px 8px 18px 18px;
    background: var(--white);
    box-shadow: 0 10px 20px rgba(19, 32, 38, 0.18);
}

.graphic-boat {
    top: 49%;
    left: 34%;
    transform: rotate(-8deg);
}

.graphic-boat i,
.graphic-small-boat i {
    position: absolute;
    top: -16px;
    left: 24px;
    width: 30px;
    height: 18px;
    border-radius: 8px 8px 3px 3px;
    background: #163b48;
}

.graphic-buoy {
    position: absolute;
    width: 14px;
    height: 34px;
    border-radius: 8px 8px 4px 4px;
    box-shadow: 0 8px 12px rgba(19, 32, 38, 0.18);
}

.buoy-red {
    top: 51%;
    left: 18%;
    background: #b94438;
}

.buoy-green {
    top: 58%;
    left: 62%;
    background: #2e7d5b;
}

.graphic-label {
    position: absolute;
    max-width: 180px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--sea-dark);
    background: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(19, 32, 38, 0.12);
}

.label-area {
    top: 18px;
    left: 16px;
}

.label-power,
.label-rule {
    top: 18px;
    right: 16px;
}

.binnen-graphic {
    background: #dcefdc;
}

.graphic-river {
    inset: 0 18%;
    transform: skewX(-7deg);
}

.graphic-bank {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24%;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.28) 0 10px, transparent 10px 22px),
        #9fbd80;
}

.bank-left {
    left: 0;
}

.bank-right {
    right: 0;
}

.graphic-bridge {
    position: absolute;
    top: 34%;
    left: 10%;
    right: 10%;
    height: 26px;
    border-radius: 8px;
    background: #6f7d83;
    box-shadow: 0 8px 16px rgba(19, 32, 38, 0.18);
}

.graphic-lock {
    position: absolute;
    right: 19%;
    bottom: 58px;
    width: 90px;
    height: 74px;
    border: 4px solid #58717c;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
}

.graphic-cargo {
    position: absolute;
    top: 50%;
    left: 28%;
    width: 124px;
    height: 34px;
    border-radius: 7px 7px 14px 14px;
    background: #495c63;
}

.graphic-cargo span {
    position: absolute;
    top: 7px;
    left: 13px;
    width: 96px;
    height: 12px;
    border-radius: 4px;
    background: #e5bd67;
}

.graphic-small-boat {
    right: 36%;
    bottom: 88px;
    transform: rotate(8deg);
}

.graphic-sign {
    position: absolute;
    left: 14%;
    bottom: 78px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 4px solid #b94438;
    border-radius: 50%;
    color: var(--ink);
    background: var(--white);
    font-weight: 900;
}

.module-row.is-done {
    border-color: #acd4c2;
    background: #f1faf5;
}

.icon-check {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: var(--sea);
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

.legal-text {
    max-width: 900px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(20px, 5vw, 72px);
    color: rgba(255, 255, 255, 0.78);
    background: #0c2a33;
}

.site-footer p {
    max-width: 520px;
    margin: 8px 0 0;
}

.footer-links a {
    color: var(--white);
}

@media (max-width: 920px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 76px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-bottom: 170px;
    }

    .hero-content {
        padding-top: 88px;
    }

    .hero-status,
    .steps,
    .course-grid,
    .split,
    .form-shell,
    .dashboard-grid,
    .course-detail,
    .lesson-grid {
        grid-template-columns: 1fr;
    }

    .lesson-graphic {
        min-height: 310px;
    }

    .graphic-label {
        max-width: 150px;
    }

    .hero-status {
        right: 18px;
        left: 18px;
        bottom: 18px;
    }

    .course-detail {
        align-items: start;
    }
}

@media (max-width: 620px) {
    .site-header {
        min-height: 70px;
        padding: 12px 16px;
    }

    .brand small {
        display: none;
    }

    .main-nav {
        top: 70px;
    }

    .hero {
        padding-bottom: 250px;
    }

    .hero-media {
        background:
            linear-gradient(180deg, rgba(6, 34, 43, 0.82), rgba(6, 34, 43, 0.48)),
            url("/assets/images/hero-bootsschule.jpg") center right 34% / cover no-repeat;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero-status {
        grid-template-columns: 1fr;
    }

    .field-row,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-footer {
        display: grid;
    }
}
