:root {
    --blue: #1554c0;
    --blue-dark: #0d2f82;
    --blue-soft: #eaf3ff;
    --yellow: #f5c542;
    --ink: #14213d;
    --muted: #3b4555; /* body text: darker for easier reading */
    --line: #e4ebf5;
    --soft: #f7faff;
    --white: #ffffff;
    --sans: "Source Sans 3", Arial, sans-serif;
    --serif: "Source Sans 3", Arial, sans-serif; /* smaller headings: same family as body text, medium weight */
    --display: "Playfair Display", Georgia, serif; /* main headlines (h1, h2) */
    --content-width: 1440px;
    

}

* { box-sizing: border-box; }

/* scroll-padding-top: in-page links stop below the sticky header instead of behind it */
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 77px; } /* exact header height is set by script.js */

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: var(--sans);
    font-size: 1.06rem;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

/* self-hosted fonts (files in /fonts, nothing is loaded from Google) */
@font-face {
    font-family: "Playfair Display";
    src: url("fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("fonts/SourceSans3-Variable.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
   /* padding: 10px 5vw;*/
    padding-left: max(6vw, calc((100vw - var(--content-width)) / 2));
    padding-right: max(6vw, calc((100vw - var(--content-width)) / 2));
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(228,235,245,.85);
}

/*.site-header {}*/

.brand img {
    height: 54px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: .88rem;
    font-weight: 500;
}

nav a {
    color: #344054;
}

/* header links in small spaced capitals (the booking button stays as it is) */
.site-header nav > a:not(.nav-cta) {
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

nav a:hover {
    color: var(--blue);
}

.nav-cta {
    padding: 10px 18px;
    border-radius: 999px;
    color: white !important;
    background: var(--blue);
}

.language-switch img {
    height: 30px;
    width: 30px;
    display: block;
   /* display: flex;
    align-items: center;
    gap: 8px;
    
    border: 1.5px solid #1f2937;
font-size: 10px;
    border-radius: 999px;
    padding: 10px 18px;
    background: transparent;
    flex-shrink: 0;
    white-space: nowrap; */
}
/*
.language-switchy a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.language-switchy a:hover {
    opacity: 0.6;
}

.language-switchy .active {
    font-weight: 600;
}
*/


.hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
    align-content: start;
    column-gap: 40px;
  /*  padding: 72px 6vw 62px;*/
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #fafdff 100%);

  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: 64px;
  padding-left: max(6vw, calc((100vw - var(--content-width)) / 2));
  padding-right: max(6vw, calc((100vw - var(--content-width)) / 2));

}

.hero-copy {
    grid-column: 1;
    grid-row: 2;
    max-width: 650px;
    padding-left: 2vw;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
}

h1, h2, h3 {
    font-weight: 500;
    line-height: 1.12;
}

h1 {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.8rem, 4.2vw, 4.7rem);
    letter-spacing: -.045em;
    color: var(--blue-dark);
}

.hero-header-en {
 margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(3rem, 4vw, 4.7rem);
    letter-spacing: -.045em;
    color: var(--blue-dark);

}

h1 span {
    display: block;
    color: var(--blue);
}

/* size the hero heading from its own column (cqi), so "Weiterentwickeln." never overflows into the image */
.hero-copy {
    container-type: inline-size;
}

.hero-copy h1 {
    font-size: clamp(1.8rem, 10.5cqi, 4.7rem);
}

h2 {
    margin: 0 0 20px;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    letter-spacing: -.03em;
    color: var(--blue-dark);
}

h3 {
    margin: 15px 0 8px;
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--blue-dark);
}

.section-heading > p,
.approach-copy > p,
.about-copy > p,
.future p,
.consultation p,
.contact p {
    color: var(--muted);
    font-size: 1.04rem;
    /*max-width: 650px;*/
}

.hero-text {
    max-width: 560px;
    margin: 24px 0 0;
    color:  #000b25;
    font-size: 1.04rem;

}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* hero quick start: the free checks as one line of links under the buttons */
.hero-quickstart-line {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.hero-quickstart-line a {
    white-space: nowrap;
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(21, 84, 192, .3);
    text-underline-offset: 3px;
}

.hero-quickstart-line a:hover {
    text-decoration-color: currentColor;
}

/* hero quiz: three quick questions right in the hero (hero-quiz.js) */
.hero-visual:has(.hero-quiz.is-live) {
    align-items: center;
}

.hero-visual:has(.hero-quiz.is-live):hover {
    transform: none;
}

/* fixed height, so the hero doesn't jump when feedback and the Next button appear */
.hero-quiz.is-live {
    display: flex;
    flex-direction: column;
    min-height: 680px;
    width: 100%;
    max-width: 480px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(160deg, #fff 55%, var(--blue-soft) 100%);
    box-shadow: 0 24px 60px rgba(13, 47, 130, .12);
}

/* track switch at the top of the card: English vs. communication */
.hq-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 14px 16px 0;
    padding: 4px;
    border-radius: 999px;
    background: var(--blue-soft);
}

.hq-switch-option {
    padding: 9px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--blue-dark);
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
}

.hq-switch-option small {
    display: block;
    font-size: .75rem;
    font-weight: 400;
    opacity: .8;
}

.hq-switch-option:not([aria-pressed="true"]):hover {
    background: rgba(255, 255, 255, .6);
}

.hq-switch-option[aria-pressed="true"] {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(21, 84, 192, .25);
}

.hq-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
}

.hq-dots {
    display: flex;
    gap: 6px;
}

.hq-dots span {
    width: 22px;
    height: 6px;
    border-radius: 3px;
    background: var(--line);
    transition: background .3s, width .3s;
}

.hq-dots .is-current {
    width: 34px;
    background: var(--blue);
}

.hq-dots .is-done {
    background: #1e9e5a;
}

.hq-xp {
    padding: 4px 12px;
    border-radius: 999px;
    background: #fff7dc;
    color: #8a6100;
    font-size: .85rem;
    font-weight: 700;
}

.hq-xp.is-bump {
    animation: hq-bump .4s ease;
}

@keyframes hq-bump {
    50% { transform: scale(1.18); }
}

.hq-body {
    padding: 22px 24px 8px;
}

.hq-label {
    margin: 0 0 4px;
    color: var(--blue);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hq-count {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: .8rem;
}

.hq-prompt {
    margin: 0 0 12px;
    color: var(--blue-dark);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
}

.hq-say {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 6px 16px 6px 6px;
    border: 2px solid #cfe0f7;
    border-radius: 999px;
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    font-size: 1.02rem;
    cursor: pointer;
}

.hq-say:disabled {
    cursor: default;
}

.hq-say-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
}

.hq-say:not(:disabled):hover {
    border-color: var(--blue);
}

.hq-options {
    display: grid;
    gap: 8px;
}

.hq-option {
    width: 100%;
    padding: 12px 18px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    font-size: .98rem;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
}

.hq-option:not(:disabled):hover {
    border-color: var(--blue);
    transform: translateY(-1px);
}

.hq-option:disabled {
    cursor: default;
}

.hq-option.is-right {
    border-color: #1e9e5a;
    background: #e3f5ea;
    color: #145c36;
    font-weight: 600;
}

.hq-option.is-wrong {
    border-color: #e5a3a3;
    background: #fdf0f0;
    color: #8f2f2f;
    animation: hq-shake .35s ease;
}

@keyframes hq-shake {
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.hq-feedback {
    min-height: 1.4em;
    margin: 12px 0 0;
    font-size: .9rem;
}

.hq-feedback.is-right { color: #145c36; }
.hq-feedback.is-wrong { color: #8f2f2f; }

.hq-actions:not(:empty) {
    margin-top: 12px;
}

.hq-footer {
    display: block;
    margin-top: auto;
    padding: 14px 24px 20px;
    color: var(--blue);
    font-size: .92rem;
    font-weight: 700;
    text-align: center;
}

.hq-footer:hover {
    text-decoration: underline;
}

.hq-done {
    margin: auto 0;
    padding-bottom: 24px;
    text-align: center;
}

.hq-trophy {
    margin: 0 0 4px;
    font-size: 2.4rem;
}

.hq-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.hq-text {
    margin: 0 auto 18px;
    max-width: 360px;
    color: var(--muted);
}

.hq-secondary {
    display: block;
    margin-top: 14px;
    color: var(--blue);
    font-size: .9rem;
    font-weight: 600;
}

.hq-again {
    margin-top: 10px;
    font-size: .85rem;
}

@media (prefers-reduced-motion: reduce) {
    .hq-xp.is-bump,
    .hq-option.is-wrong { animation: none; }
}

@media (max-width: 700px) {
    .hero-quiz.is-live {
        min-height: 0;
    }

    .hq-head,
    .hq-body { padding-left: 18px; padding-right: 18px; }
}

/* small personal introduction under the hero buttons */
.hero-person {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.4;
}

.hero-person img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 4px 14px rgba(11, 46, 131, .18);
}

.hero-person strong {
    display: block;
    color: var(--blue-dark);
    font-size: 1rem;
}

.hero-person em {
    font-style: normal;
    color: var(--blue);
    white-space: nowrap;
}

.hero-person:hover em {
    text-decoration: underline;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.button:hover {
    transform: translateY(-2px);
}

/* <button> elements don't inherit the page font and get a browser border */
button.button {
    border: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

button.button.secondary {
    border: 1px solid #bcd0f3;
}

.primary {
    color: white;
    background: var(--blue);
    box-shadow: 0 12px 28px rgba(21,84,192,.18);
}

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

.secondary {
    color: var(--blue);
    border: 1px solid #bcd0f3;
    background: white;
}

.secondary:hover {
    border-color: var(--blue);
}

.large {
    padding: 15px 28px;
}

.hero-feature svg,
.benefit svg {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-feature strong,
.benefit strong {
    display: block;
    color: var(--ink);
    font-size: .82rem;
    line-height: 1.25;
}

.hero-feature span,
.benefit span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.35;
}

/* audience links sit above both columns, so the image starts level with the h1 */
.hero-visual {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-visual img {
    width: 100%;
    max-width: 760px;
    height: auto;
    /* trim the empty space above and below the illustration */
    aspect-ratio: 1536 / 800;
    object-fit: cover;
    object-position: 50% 62%;
    display: block;
   /* margin: 0px 0px 0px 20px; */
}

.hero-heading {display: block;}

.section {
    padding: 80px 6vw;
}

.centered {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 42px;
}

.centered > p:last-child {
    margin: 0 auto;
}

.audiences {
    background: var(--soft);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1220px;
    margin: auto;
}

.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(20,33,61,.045);
}

/* Central statement between hero and offers */
.intro-statement {
    padding: 8px 6vw 72px;
    background: #fafdff; /* matches the bottom of the hero gradient */
}

.intro-statement p {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
    line-height: 1.45;
    letter-spacing: -.01em;
    color: var(--ink);
}

.intro-statement strong {
    color: var(--blue);
    font-weight: 700;
}

/* "Wie ich arbeite" – light band in the style of the former icon strip */
.method {
    background: #edf5ff;
    border-top: 1px solid #dce9fa;
    border-bottom: 1px solid #dce9fa;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1220px;
    margin: 0 auto;
}

.method-item {
    padding: 6px 28px;
    border-right: 1px solid #cdddf2;
}

.method-item:first-child {
    padding-left: 0;
}

.method-item:last-child {
    padding-right: 0;
    border-right: 0;
}

.method-item svg {
    display: block;
    width: 30px;
    height: 30px;
    margin-bottom: 16px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.method-item h3 {
    margin: 0 0 8px;
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    hyphens: manual;
    overflow-wrap: break-word;
}

.method-item p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

/* tablets: 2x2 grid with dividers between rows and columns */
@media (max-width: 900px) {
    .method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .method-item,
    .method-item:first-child,
    .method-item:last-child {
        padding: 22px 24px;
        border-right: 0;
        border-bottom: 1px solid #cdddf2;
    }

    .method-item:nth-child(odd) {
        border-right: 1px solid #cdddf2;
    }

    .method-item:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}

/* phones: stacked, lines only between items */
@media (max-width: 560px) {
    .method-grid {
        grid-template-columns: 1fr;
    }

    .method-item,
    .method-item:first-child,
    .method-item:last-child,
    .method-item:nth-child(odd) {
        padding: 20px 0;
        border-right: 0;
        border-bottom: 1px solid #cdddf2;
    }

    .method-item:last-child {
        border-bottom: 0;
    }
}

/* "Für wen?" section: soft background to separate it from the white "Über mich" below */
.audience-groups {
    background: var(--soft);
}

/* centred, so 2 or 3 audience cards both look balanced */
.audience-groups .cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 380px));
    justify-content: center;
}

.audience-card {
    border-top: 3px solid var(--blue);
}

/* long words like "Bildungseinrichtungen" must be able to wrap on phones */
.audience-card {
    min-width: 0;
}

.audience-card h3 {
    margin-bottom: 12px;
    /* break only at &shy; marks in the HTML, e.g. Bildungs-einrichtungen */
    hyphens: manual;
    overflow-wrap: break-word;
}

.card-number {
    color: var(--blue);
    font-weight: 700;
    letter-spacing: .12em;
    font-size: .78rem;
}

.card-lead {
    color: var(--blue-dark) !important;
    font-weight: 600;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
}

.card ul {
    padding: 0;
    margin: 22px 0;
    list-style: none;
}

/* small label above a card's list, e.g. "Schwerpunkte:" */
.card-subheading {
    margin: 22px 0 0;
    color: var(--ink);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.card-subheading + ul {
    margin-top: 10px;
}

.card li {
    padding: 9px 0;
    border-top: 1px solid var(--line);
    color: #344054;
    font-size: .92rem;
}

.card li::before {
    content: "→";
    color: var(--blue);
    margin-right: 9px;
}

.text-link {
    color: var(--blue);
    font-weight: 600;
    font-size: .9rem;
}

.text-link:hover {
    color: var(--blue-dark);
}

.banner-icon {

    background: #edf5ff;

}

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 32px 6vw;
    max-width: 1220px;
    width:100%;
    margin:auto;
    gap: 0;
    background: #edf5ff;
    border-top: 1px solid #dce9fa;
    border-bottom: 1px solid #dce9fa;
}

.benefit {
    display: flex;
    gap: 12px;
    padding: 8px 28px;
    border-right: 1px solid #cdddf2;
}

.benefit:first-child {
    padding-left: 0;
}

.benefit:last-child {
    border-right: 0;
}

.approach {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 80px;
    align-items: center;
    max-width: 1220px;
    margin: auto;
}

.approach-visual {
    display: grid;
    place-items: center;
    min-height: 320px;
}

.approach-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f9fcff, #e8f2ff);
    border: 1px solid #cfe0f7;
    box-shadow: 0 25px 55px rgba(21,84,192,.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 2000px;
    width:100%;
    margin: auto;
    gap: 35px;
    align-items: center;
    background: white;
    
}

.about-image {
    max-width: 340px;
    margin: 0 auto;
    overflow: hidden;
}
.about-image img {   
     width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 26px;
    display: block;
}

.portrait-placeholder {
    aspect-ratio: 4 / 5;
    width: min(100%, 380px);
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(145deg, #eef7ff, #ffffff);
    border: 1px solid #dce8f8;
    color: #91a4c4;
    font-weight: 700;
    letter-spacing: .18em;
    text-align: center;
}

.future {
    background: var(--soft);
    text-align: center;
}

.future > div {
    max-width: 800px;
    margin: auto;
}

.future p {
    margin: auto;
}

.contact {
    background: var(--white);
    text-align: center;
}

.contact .container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.section-intro {
    max-width: 720px;
    margin: 0 auto;
}

.section-intro .eyebrow {
    margin-bottom: 14px;
}

.section-intro p {
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.04rem;
    max-width: 620px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(240px, .75fr) minmax(420px, 1.25fr);
    gap: clamp(45px, 7vw, 90px);
    align-items: start;
    max-width: 1080px;
    margin: 58px auto 0;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 8px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}

.contact-item a,
.contact-item p {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.5;
}

.contact-item a {
    font-weight: 500;
    transition: color .2s ease;
}

.contact-item a:hover {
    color: var(--blue);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 34px;
    background: #f7faff;
    border: 1px solid #dfeaf8;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(20, 33, 61, .07);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink);
}

.form-group label span {
    color: var(--muted);
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #d5e0ef;
    border-radius: 11px;
    padding: 13px 15px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .94rem;
    line-height: 1.5;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-group input {
    min-height: 49px;
}

.form-group textarea {
    min-height: 145px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #667085; /* darker placeholder for readable contrast */
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #b9cbe4;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21, 84, 192, .10);
}

.contact-form button[type="submit"] {
    align-self: flex-start;
    margin-top: 4px;
    border: 0;
    cursor: pointer;
}

.contact-form button[type="submit"]:focus-visible {
    outline: 3px solid rgba(21, 84, 192, .22);
    outline-offset: 3px;
}

.contact-form::after {
    content: "Ich melde mich schnellstmöglich bei Ihnen zurück.";
    display: block;
    margin-top: -4px;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.5;
}

footer {
    padding: 22px 6vw;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: var(--muted);
    font-size: .8rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* email, location and LinkedIn next to the footer logo */
/* line 1: email + LinkedIn icon, line 2: location */
.footer-contact {
    display: grid;
    grid-template-columns: max-content max-content max-content 1fr;
    justify-items: start;
    align-items: center;
    gap: 4px 12px;
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.footer-contact .footer-linkedin {
    grid-column: 2;
    grid-row: 1;
}

.footer-contact .footer-instagram {
    grid-column: 3;
    grid-row: 1;
}

.footer-contact .footer-facebook {
    grid-column: 4;
    grid-row: 1;
}

.footer-brand .footer-contact span {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: .8rem;
    letter-spacing: normal;
}

.footer-contact a {
    color: var(--ink);
    font-weight: 600;
}

.footer-contact a:hover {
    color: var(--blue);
}

.footer-linkedin {
    display: inline-flex;
    color: #0a66c2 !important;
}

.footer-instagram {
    display: inline-flex;
    color: #e1306c !important;
}

.footer-facebook {
    display: inline-flex;
    color: #1877f2 !important;
}

.footer-brand strong {
    font-family: var(--serif);
    color: var(--blue);
    font-size: 1.4rem;
}

.footer-brand span {
    letter-spacing: .1em;
    font-size: .58rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--blue);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.footer-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-logo {
    width: 90px;
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    nav {
        gap: 14px;
    }

    nav > a:not(.nav-cta) {
        display: none;
    }

    /* the burger menu takes over from the language icon */
    .language-switch {
        display: none;
    }

    nav .menu-switch {
        display: block;
    }

    .hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        /*gap: 40px;*/
        align-items:start;
       /* padding-top: 55px;*/
    }

    .hero-copy {
        max-width: 760px;
        padding-left: 0;
    }

    .hero .hero-audiences {
        padding-left: 0;
    }

    .hero-visual {
        max-width: 760px;
        margin: 0 auto;
    }

    .cards {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 700px;
    }

    .benefits {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit {
        padding: 16px 20px;
        border-right: 0;
        border-bottom: 1px solid #cdddf2;
    }

    .benefit:nth-child(odd) {
        border-right: 1px solid #cdddf2;
    }

    .benefit:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .benefit:first-child {
        padding-left: 20px;
    }

    .approach {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 700px) {
    .site-header {
        min-height: 70px;
        padding: 8px 5vw;
    }

    .brand img {
        height: 48px;
    }

    .hero,
    .section {
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .hero-audiences,
    .hero-copy,
    .hero-visual {
        grid-column: 1;
        grid-row: auto;
    }

    .hero-visual {
        padding-top: 35px;
    }

    h1 {
        font-size: clamp(1.9rem, 8.5vw, 3.4rem);
        hyphens: auto;
        overflow-wrap: break-word;
    }

    .hero-audiences {
        flex-wrap: wrap;
        gap: 10px 24px;
    }

    /*.hero-image img {
    width: 100%;
    }*/

    /* benefits keep the 2x2 grid from the 900px breakpoint */
    .benefits {
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .benefit,
    .benefit:first-child {
        padding: 14px 14px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .about-image {
        width: 260px;
        height: 260px;
    }

    .about-image img {
        height: 260px;
    }

}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
        gap: 45px;
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 35px;
    }
}

@media (max-width: 700px) {
    .contact-form {
        padding: 24px;
        border-radius: 18px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-form button[type="submit"] {
        width: 100%;
    }
}

/*@media (max-width:584px){
  .hero {
  }  
  .hero-audience {}
}*/

.hero-audiences {
    grid-column: 1;
    padding-left: 2vw;
    display: flex;
    gap: clamp(16px, 3vw, 40px);
    margin-bottom: 25px;
}

.hero-audience {
    position: relative;
    color: #14213d;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding-bottom: 10px;
}

.hero-audience:hover {
    color: #1546b8;
}

.hero-audience.active {
    color: #1546b8;
}

.hero-audience.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #1546b8;
    border-radius: 2px;
}

/*.safespacing {

    padding: 100px 0px;
}*/

.linkedin-section {
    background: var(--soft);
}

.linkedin-consent {
    max-width: 620px;
    margin: 0 auto 32px;
    text-align: center;
}

.linkedin-consent p {
    color: var(--muted);
    margin-bottom: 20px;
}

.linkedin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.linkedin-grid:not(:empty) {
    margin-bottom: 36px;
}

/* LinkedIn posts have different lengths; longer ones scroll inside their card */
.linkedin-grid iframe {
    width: 100%;
    height: 480px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
}

.linkedin {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.linkedin-btn svg {
    flex: 0 0 16px;
}

/* =========================
   NEWSLETTER
   ========================= */
.newsletter {
  background: var(--soft);
}

.newsletter-inner {
  max-width: 1400px;
  /*min-width: 1200px;*/
  margin: 0 auto;
  /* vertical space comes from .section already */
  padding: 0 4vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: stretch;
}

.newsletter-copy h2 {
  margin-bottom: 18px;
}

.newsletter-copy > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0;
}

.newsletter-form {
  background: #ffffff;
  padding: 44px 40px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(20, 33, 61, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.newsletter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter-fields input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border: 1px solid #d8e0ec;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.newsletter-fields input[type="email"]::placeholder {
  color: #667085; /* darker placeholder for readable contrast */
}

.newsletter-fields input[type="email"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 70, 184, 0.10);
}

.newsletter-fields .button {
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
  cursor: pointer;
}

.newsletter-consent input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.newsletter-note {
  margin: 14px 0 0;
  color: #667085; /* darker placeholder for readable contrast */
  font-size: .75rem;
}

/* Overrides to beat Brevo's own remote stylesheet specificity */
.newsletter-form #sib-form-container .entry__field .input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d8e0ec;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  outline: none;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}

.newsletter-form #sib-form-container .entry__field .input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 70, 184, 0.10);
}

.newsletter-form #sib-form-container .sib-form-block__button.button.primary {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(21, 84, 192, .18);
  transition: transform .2s, background .2s;
}

.newsletter-form #sib-form-container .sib-form-block__button.button.primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}


/* =========================
   NEWSLETTER RESPONSIVE
   ========================= */

@media (max-width: 900px) {

  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }

}

@media (max-width: 600px) {

  .newsletter-inner {
    padding: 0;
  }

  .newsletter-form {
    padding: 24px;
  }

  .newsletter-fields {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-fields .sib-input {
    width: 100%;
  }

  .newsletter-fields .button {
    align-self: center;
  }
}
  /* =========================
   KOSTENLOSES ERSTGESPRÄCH
   ========================= */

.consultation {
  background: #ffffff;
}

.consultation-inner {
  max-width: 1180px;
  margin: 0 auto;
  /* vertical space comes from .section already */
  padding: 0 6vw;
}


/* ---------- Header ---------- */

.consultation-header {
  max-width: 1000px;
  margin: 0 auto 65px;
  text-align: center;
}

.consultation-header .eyebrow {
  margin-bottom: 20px;
}

.consultation-header h2 {
  margin: 0 auto 24px;
  max-width: 950px;
}

.consultation-header > p:last-child {
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}


/* ---------- Main grid ---------- */

.consultation-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}


/* ---------- Left side ---------- */

.consultation-info {
  padding-top: 10px;
}

.consultation-benefit {
  display: flex;
  gap: 18px;
  margin-bottom: 34px;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: #eef5ff;
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.consultation-benefit h3 {
  margin: 2px 0 7px;
  color: var(--ink);
  font-size: 1rem;
}

.consultation-benefit p {
  margin: 0;
  max-width: 330px;

  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}


/* ---------- Contact details ---------- */

.consultation-details {
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.consultation-detail {
  margin-bottom: 24px;
}

.consultation-label {
  display: block;
  margin-bottom: 6px;

  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.consultation-detail a,
.consultation-detail p {
  margin: 0;

  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}

.consultation-detail a:hover {
  color: var(--blue);
}


/* ---------- Form ---------- */

.consultation-form {
  padding: 34px;

  background: #f8fbff;
  border: 1px solid #dce8f8;
  border-radius: 22px;

  box-shadow: 0 14px 40px rgba(20, 33, 61, 0.07);
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;

  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.form-field label span {
  color: var(--muted);
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 14px 15px;

  border: 1px solid #d8e0ec;
  border-radius: 10px;

  background: #ffffff;
  color: var(--ink);

  font-family: var(--sans);
  font-size: 0.95rem;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-field input {
  height: 44px;
}

.form-field textarea {
  min-height: 135px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #667085; /* darker placeholder for readable contrast */
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 70, 184, 0.10);
}


/* ---------- Button ---------- */

.consultation-submit {
  width: 100%;
  border: none;
  cursor: pointer;

  margin-top: 4px;
}

.consultation-form-note {
  margin: 14px 0 0;

  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}


/* ---------- Tablet ---------- */

@media (max-width: 900px) {

  .consultation-inner {
    padding: 80px 6vw;
  }

  .consultation-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .consultation-info {
    max-width: 650px;
    margin: 0 auto;
  }

  .consultation-benefit p {
    max-width: none;
  }

  .consultation-form {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }
}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

  .consultation-inner {
    padding: 65px 6vw;
  }

  .consultation-header {
    margin-bottom: 45px;
  }

  .consultation-header h2 {
    font-size: 2.2rem;
  }

  .consultation-header > p:last-child {
    font-size: 1rem;
  }

  .consultation-form {
    padding: 24px;
    border-radius: 18px;
  }

  .consultation-benefit {
    gap: 14px;
  }

  .benefit-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}

  .language-switch {
    position: relative;
}

.language-toggle {
    display: flex;
    padding: 6px;
    border: 0;
    background: none;
    cursor: pointer;
}

.language-switch .language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    min-width: 140px;
    padding: 6px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(20, 33, 61, 0.12);
}

.language-switch .language-menu[hidden] {
    display: none;
}

.language-switch .language-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ink);
}

.language-switch .language-menu a:hover {
    background: var(--blue-soft);
    color: var(--blue);
}

.language-switch .language-menu .active {
    font-weight: 600;
}

/* =========================
   BURGER MENU (small screens)
   ========================= */
.menu-switch {
    display: none;
    position: relative;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    background: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2.5px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* turn the three lines into an X while open */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

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

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

.menu-switch .mobile-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 30;
    width: min(280px, calc(100vw - 32px));
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(20, 33, 61, 0.12);
}

.menu-switch .mobile-menu[hidden] {
    display: none;
}

.menu-switch .mobile-menu a {
    display: block;
    padding: 11px 14px;
    border-radius: 8px;
    color: var(--ink);
    font-size: .95rem;
}

.menu-switch .mobile-menu a:hover {
    background: var(--blue-soft);
    color: var(--blue);
}

.mobile-menu-languages {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.menu-switch .mobile-menu-languages a {
    flex: 1;
    text-align: center;
    color: var(--muted);
}

.menu-switch .mobile-menu-languages .active {
    color: var(--blue);
    font-weight: 600;
}

/* very small phones: stack the benefits, with lines only between items */
@media (max-width: 480px) {
    .benefits {
        grid-template-columns: 1fr;
    }

    .benefit,
    .benefit:first-child,
    .benefit:nth-child(odd) {
        padding: 14px 0;
        border-right: 0;
        border-bottom: 1px solid #cdddf2;
    }

    .benefit:last-child {
        border-bottom: 0;
    }
}

/* =========================
   SERVICE PAGES (e.g. englisch.html)
   ========================= */
.page-hero {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) 6vw 72px;
    text-align: center;
}

.page-back {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: .9rem;
}

.page-back:hover {
    color: var(--blue);
}

.page-hero h1 {
    margin-bottom: 18px;
}

.page-hero-tagline {
    margin: 0 0 18px;
    color: var(--blue);
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.page-hero-text {
    margin: 0 auto 32px;
    max-width: 680px;
    color: var(--muted);
    font-size: 1.05rem;
}

/* two intro paragraphs in a row: normal paragraph spacing between them */
.page-hero-text:has(+ .page-hero-text) {
    margin-bottom: 14px;
}

.page-hero .hero-actions {
    justify-content: center;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    max-width: 1220px;
    margin: 0 auto;
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: 30px 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(20, 33, 61, .045);
}

.price-card-featured {
    border-color: rgba(21, 84, 192, .45);
    box-shadow: 0 18px 45px rgba(21, 84, 192, .10);
}

.price-card h3 {
    margin: 0 0 14px;
    /* break long words only at &shy; marks, e.g. Programmier-grundlagen */
    hyphens: manual;
    overflow-wrap: break-word;
}

/* no automatic hyphenation in service-page titles ("di-gitale") */
.page-hero h1 {
    hyphens: manual;
}

.price {
    margin: 0;
    color: var(--blue-dark);
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.price-meta {
    margin: 8px 0 16px;
    color: var(--blue);
    font-size: .88rem;
    font-weight: 600;
}

.price-card > p:not(.price):not(.price-meta) {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: .95rem;
}

/* buttons line up at the bottom of every card */
.price-card .button {
    margin-top: auto;
}

.price-note {
    margin: 28px auto 0;
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
}

.cta-band {
    padding: 72px 6vw;
    text-align: center;
    background: #edf5ff;
    border-top: 1px solid #dce9fa;
}

.cta-band h2 {
    margin-bottom: 12px;
}

.cta-band p {
    margin: 0 auto 28px;
    max-width: 560px;
    color: var(--muted);
}

/* "book directly" link under the homepage contact form */
.consultation-book-direct {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: .92rem;
}

.consultation-book-direct a {
    display: inline-block;
    margin-left: 4px;
    color: var(--blue);
    font-weight: 600;
}

.consultation-book-direct a:hover {
    color: var(--blue-dark);
}

/* free 15-minute consultation, shown above the paid formats */
.consult-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1220px;
    margin: 0 auto;
    padding: 32px 36px;
    background: var(--blue-soft);
    border: 1px solid #cfe0f7;
    border-radius: 20px;
}

.consult-card h3 {
    margin: 0 0 4px;
}

.consult-tag {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--white);
    color: var(--blue);
    font-size: .8rem;
    font-weight: 700;
}

.consult-sub {
    margin: 0 0 10px;
    color: var(--blue-dark);
    font-weight: 600;
}

.consult-card p:last-child {
    margin: 0;
    max-width: 640px;
    color: var(--muted);
}

.consult-card .button {
    flex-shrink: 0;
}

/* second free tile (online course) under the free consultation */
.consult-card-course {
    margin-top: 16px;
    background: var(--white);
}

.consult-card-course .consult-tag {
    background: var(--blue-soft);
}

/* on pages with three formats, match the narrower price grid */
#formate:has(.price-grid-3) .consult-card {
    max-width: 960px;
}

/* separates the free consultation from the paid cards below */
.paid-label {
    max-width: 1220px;
    margin: 40px auto 18px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 760px) {
    .consult-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 22px;
    }
}

/* pages with three formats (KI, Programmieren) */
.price-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 960px;
}

.page-hero-note {
    display: inline-block;
    margin: -12px 0 30px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: .88rem;
    font-weight: 600;
}

/* focus areas as small tiles */
/* centred rows, so 5 tiles split as 3 + 2 instead of leaving one alone */
.focus-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.focus-item {
    flex: 0 1 310px;
    padding: 22px 22px 22px 48px;
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(20, 33, 61, .04);
}

.focus-item::before {
    content: "→";
    position: absolute;
    left: 22px;
    color: var(--blue);
}

/* "Für Unternehmen" block on service pages */
.corporate-band {
    padding: 0 6vw 80px;
}

.corporate-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 40px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(20, 33, 61, .045);
}

.corporate-inner .eyebrow {
    margin-bottom: 8px;
}

.corporate-inner h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.corporate-inner p:last-child {
    margin: 0;
    max-width: 620px;
    color: var(--muted);
}

.corporate-inner .button {
    flex-shrink: 0;
}

@media (max-width: 1000px) {
    .price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .price-grid-3 {
        grid-template-columns: minmax(0, 1fr);
        max-width: 480px;
    }

    .corporate-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
    }
}

@media (max-width: 560px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
}

/* links to booking terms / withdrawal under the prices */
.price-note a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* =========================
   ACCESSIBILITY
   ========================= */

/* clear focus ring for keyboard users (mouse clicks don't show it) */
:where(a, button, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

/* "skip to content" link: hidden until someone presses Tab */
.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
    transform: translateY(-150%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* respect the "reduce motion" system setting */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* newsletter form (own markup, no Brevo styles) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.nl-trap {
    position: absolute;
    left: -9999px;
}

.nl-status {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #e7faf0;
    color: #085229;
    font-size: .9rem;
}

.nl-status--error {
    background: #ffeded;
    color: #661d1d;
}

.newsletter-note a {
    color: inherit;
    text-decoration: underline;
}

/* contact card with booking + email buttons (replaces the old form) */
.consultation-actions h3 {
    margin: 0 0 22px;
}

.contact-option {
    padding: 0 0 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.contact-option .button {
    width: 100%;
}

.contact-option p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .92rem;
    text-align: center;
}

.consultation-actions .consultation-form-note {
    margin: 0;
}

/* =========================
   PACKAGES (below the individual sessions)
   ========================= */
.price-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 700px;
}

.package-block {
    max-width: 960px;
    margin: 48px auto 0;
    padding: 34px 36px 38px;
    text-align: center;
    background: var(--blue-soft);
    border: 1px solid #cfe0f7;
    border-radius: 20px;
}

.package-block .paid-label {
    margin: 0 0 8px;
}

.package-block h3 {
    margin: 0 0 8px;
}

.package-intro {
    max-width: 560px;
    margin: 0 auto 24px;
    color: var(--muted);
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    text-align: left;
}

.package-card {
    display: flex;
    flex-direction: column;
    padding: 24px 24px 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.package-card h4 {
    margin: 0 0 10px;
    color: var(--blue-dark);
    font-family: var(--serif);
    font-size: 1.3rem;
}

.package-card .price {
    font-size: 2rem;
}

.package-card > p:not(.price):not(.price-meta) {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: .95rem;
}

.package-card .button {
    margin-top: auto;
}

@media (max-width: 760px) {
    .price-grid-2,
    .package-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .package-block {
        padding: 26px 18px 28px;
    }
}

/* link to the online withdrawal function (§ 356a BGB) inside the packages block */
.package-withdraw {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.package-withdraw a {
    color: var(--blue);
    font-weight: 600;
}

/* terms + withdrawal note directly below the package buttons */
.package-legal {
    margin: 22px auto 0;
    max-width: 640px;
    color: var(--muted);
    font-size: .88rem;
}

.package-legal a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.package-legal + .package-withdraw {
    margin-top: 8px;
}

/* same note directly below the individual-session cards */
.session-legal {
    text-align: center;
}

/* =========================
   FOOTER: brand | navigation | legal, copyright row below
   ========================= */
footer {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1fr);
    align-items: start;
    gap: 28px 48px;
    --footer-pad: max(6vw, calc((100vw - var(--content-width)) / 2));
    padding: 44px var(--footer-pad) 22px;
}

footer .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

footer .footer-contact {
    padding-left: 0;
    border-left: 0;
}

footer .footer-links,
footer .footer-legal {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
}

footer .footer-legal a {
    text-decoration: none;
}

footer .footer-links a:hover,
footer .footer-legal a:hover {
    color: var(--blue);
}

.footer-heading {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer-copy {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
    footer {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 28px 24px;
    }

    footer .footer-brand {
        grid-column: 1 / -1;
    }
}

/* the header rule that hides menu links on small screens must not hide footer links */
footer nav > a:not(.nav-cta) {
    display: inline;
}

/* same colour for both footer link columns */
footer .footer-links a,
footer .footer-legal a {
    color: var(--muted);
}

/* show visitors which page they are on: current menu item in blue with a small underline */
nav > a[aria-current="page"],
nav > a.is-current {
    position: relative;
    color: var(--blue);
    font-weight: 600;
}

nav > a[aria-current="page"]::after,
nav > a.is-current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
}

/* same in the burger menu on phones (language links keep their own style) */
.menu-switch .mobile-menu > a[aria-current="page"] {
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 600;
}

.footer-copy a {
    color: inherit;
}

.footer-copy a:hover {
    color: var(--blue);
}

/* short claim under the footer logo */
.footer-claim {
    max-width: 320px;
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.5;
}

/* phone availability in the contact section */
.consultation-hours {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: .85rem;
}

/* header button "Erstgespräch buchen": always one line */
.nav-cta {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .nav-cta {
        padding: 9px 14px;
        font-size: .82rem;
    }

    .brand img {
        height: 42px;
    }
}

@media (max-width: 360px) {
    .site-header {
        gap: 10px;
        padding-left: 4vw;
        padding-right: 4vw;
    }

    nav {
        gap: 6px;
    }

    .nav-cta {
        padding: 8px 11px;
        font-size: .78rem;
    }

    .brand img {
        height: 36px;
    }

    .menu-toggle {
        width: 38px;
        padding: 8px;
    }
}

/* offer section on the homepage: two equally wide, centred cards (Englisch, KI) */
#angebote .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1220px;
    margin: 0 auto;
}

@media (max-width: 760px) {
    #angebote .cards {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
    }
}

/* =========================
   STICKY BOOKING BUTTON (phones only)
   ========================= */
.sticky-cta {
    display: none;
}

@media (max-width: 760px) {
    .sticky-cta {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96);
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(20, 33, 61, .08);
        backdrop-filter: blur(10px);
    }

    .sticky-cta .button {
        width: 100%;
    }

    /* keep the footer readable above the bar */
    body:has(.sticky-cta) {
        padding-bottom: 76px;
    }
}

/* =========================
   BACK TO TOP BUTTON
   ========================= */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 45;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(21, 84, 192, .28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--blue-dark);
}

/* phones: sit above the sticky booking bar */
@media (max-width: 760px) {
    .back-to-top {
        right: 16px;
        bottom: 20px;
        width: 44px;
        height: 44px;
    }

    body:has(.sticky-cta) .back-to-top {
        bottom: calc(84px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 1000px) and (min-width: 761px) {
    #angebote .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   BUSINESS ENGLISH ASSESSMENT
   ========================= */
.assessment {
    background: var(--soft);
}

.assessment-card {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 44px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 34px rgba(20, 33, 61, .06);
}

.assessment-card h1 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
}

.as-lead {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 1.08rem;
}

.as-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.as-facts li {
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--ink);
}

.as-facts strong {
    color: var(--blue);
}

.as-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.as-areas li::before {
    content: "→ ";
    color: var(--blue);
}

.as-note {
    color: var(--muted);
    font-size: .9rem;
}

.as-note a {
    color: var(--blue);
    text-decoration: underline;
}

.as-disclaimer {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: .85rem;
}

.as-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

/* question screen */
.as-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: .9rem;
}

.as-counter {
    font-weight: 600;
    color: var(--ink);
}

.as-category {
    color: var(--blue);
    font-weight: 600;
}

.as-progress {
    height: 8px;
    margin-bottom: 26px;
    border-radius: 999px;
    background: var(--blue-soft);
    overflow: hidden;
}

.as-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--blue);
    transition: width .3s ease;
}

.as-passage {
    margin: 0 0 20px;
    padding: 16px 18px;
    border-left: 4px solid var(--blue);
    border-radius: 10px;
    background: var(--soft);
    color: var(--ink);
    white-space: pre-line;
}

.as-question {
    margin: 0;
    padding: 0;
    border: 0;
}

.as-question legend {
    margin-bottom: 18px;
    color: var(--blue-dark);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.45;
}

.as-options {
    display: grid;
    gap: 10px;
}

.as-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.as-option:hover {
    border-color: #b9cdee;
}

.as-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.as-option-letter {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 700;
    font-size: .85rem;
}

.as-option-text {
    color: var(--ink);
}

.as-option:has(input:checked) {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.as-option:has(input:checked) .as-option-letter {
    background: var(--blue);
    color: var(--white);
}

.as-option:has(input:focus-visible) {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.as-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}

.as-nav .button:disabled,
.button:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

/* result screen */
.as-score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 32px;
    margin: 10px 0 0;
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--blue-soft);
}

.as-score-number {
    margin: 0;
    color: var(--blue-dark);
    font-family: var(--serif);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
}

.as-score-number small {
    margin-left: 6px;
    font-size: 1.2rem;
    color: var(--muted);
}

.as-level-label {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: .85rem;
}

.as-level {
    margin: 0;
    color: var(--blue);
    font-size: 1.4rem;
    font-weight: 700;
}

.as-bars {
    display: grid;
    gap: 14px;
    margin: 28px 0;
}

.as-bar-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--ink);
}

.as-bar-track {
    height: 10px;
    border-radius: 999px;
    background: var(--blue-soft);
    overflow: hidden;
}

.as-bar-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--blue);
}

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

.as-insight {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.as-insight-label {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.as-insight h3 {
    margin: 0 0 8px;
}

.as-insight p:last-of-type {
    margin-bottom: 0;
    color: var(--muted);
}

.as-focus-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--ink);
}

.as-cta,
.as-email {
    margin-top: 26px;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
}

.as-cta {
    background: var(--blue-dark);
}

.as-cta h2 {
    color: var(--white);
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    margin: 0 0 8px;
}

.as-cta p {
    color: #d7e3f7;
    margin: 0 0 18px;
}

.as-cta .button.primary {
    background: var(--white);
    color: var(--blue-dark);
}

.as-email {
    border: 1px solid var(--line);
}

.as-email h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 0 0 8px;
}

.as-email p {
    color: var(--muted);
}

.as-review {
    margin-top: 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.as-review summary {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
}

.as-review > div {
    padding: 0 20px 12px;
}

.as-review-item {
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.as-review-q {
    margin: 0 0 4px;
    font-weight: 600;
    color: var(--ink);
}

.as-review-a {
    margin: 0;
}

.is-correct .as-review-a:first-of-type {
    color: #0a6b3b;
}

.is-wrong .as-review-a:first-of-type {
    color: #a1261b;
}

.as-review-exp {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .92rem;
}

@media (max-width: 640px) {
    .as-insights {
        grid-template-columns: minmax(0, 1fr);
    }

    .as-nav .button {
        flex: 1;
    }
}

/* elements hidden by the assessment script must stay hidden, even buttons with their own display */
.assessment-card [hidden] {
    display: none !important;
}

/* band linking to the free assessment */
.test-band {
    padding: 0 6vw;
    background: var(--white);
}

.test-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 34px 40px;
    border-radius: 20px;
    background: var(--blue-soft);
    border: 1px solid #cfe0f7;
}

.test-band .eyebrow {
    margin-bottom: 6px;
}

.test-band h2 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.test-band p:last-child {
    margin: 0;
    max-width: 620px;
    color: var(--muted);
}

.test-band .button {
    flex-shrink: 0;
}

/* full-width dark blue band (soft lighter-blue glow, yellow accents), so the free tests stand out */
.test-band {
    padding: 68px 6vw;
    background:
        radial-gradient(ellipse 50% 90% at 100% 0%, rgba(59, 130, 246, .38), transparent 70%),
        radial-gradient(ellipse 40% 80% at 0% 100%, rgba(59, 130, 246, .2), transparent 70%),
        var(--blue-dark);
}

/* short yellow line under the heading */
.test-band h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 14px;
    border-radius: 2px;
    background: var(--yellow);
}

.test-band-inner {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.test-band .eyebrow {
    color: var(--yellow);
}

.test-band h2 {
    color: var(--white);
}

.test-band-inner > div > p:last-child {
    color: #d7e3f7;
}

.test-band-inner > .button.primary {
    background: var(--white);
    color: var(--blue-dark);
}

/* homepage variant: two choices side by side */
.test-band-inner:has(.test-band-options) {
    display: block;
}

.test-band-head {
    margin-bottom: 22px;
}

.test-band-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 18px;
}

.test-band-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 26px;
    border: 1px solid transparent;
    border-top: 4px solid var(--yellow);
    border-radius: 16px;
    background: var(--white);
}

.test-band-option h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.test-band .test-band-option p {
    flex: 1;
    margin: 0 0 18px;
    color: var(--muted);
}

@media (max-width: 760px) {
    .test-band-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .test-band {
        padding: 52px 6vw;
    }

    .test-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ENGLISH COMMUNICATION CHECK (reuses the assessment styles above) */
.cc-areas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0;
}

.cc-areas div {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}

.cc-areas h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.cc-areas p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.cc-profile {
    margin-bottom: 14px;
    hyphens: none;
}

@media (max-width: 640px) {
    .cc-areas {
        grid-template-columns: 1fr;
    }
}

/* about section: calmer two-line headline (one sentence per line, second in blue) */
.about-copy .about-heading {
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.about-heading span {
    display: block;
    color: var(--blue);
}

/* about section: experience & qualification highlights (icon + two lines each) */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
    margin: 26px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.about-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .9rem;
    line-height: 1.4;
    color: var(--muted);
}

.about-highlights svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--blue);
}

.about-highlights strong {
    display: block;
    color: var(--blue-dark);
    font-size: .98rem;
}

@media (max-width: 520px) {
    .about-highlights {
        grid-template-columns: 1fr;
    }
}

/* about section: background line and closing slogan */
.about-background {
    font-size: .95rem;
}

.about-copy .about-signature {
    margin-top: 26px;
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--blue-dark);
}

/* bug report page */
.bug-list {
    margin: 0 0 24px;
    padding-left: 1.2em;
    color: var(--muted);
}

.bug-list li {
    margin: 4px 0;
}

/* hiring page (draft, not published yet) */
.jobs-heading {
    margin: 30px 0 12px;
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.job-card {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--yellow);
    border-radius: 14px;
    background: var(--soft);
}

.job-card h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
}

.job-meta {
    margin: 0 0 14px;
    font-size: .9rem;
    color: var(--muted);
}

/* ONLINE COURSE (kurs.html, lektion.html) – reuses the assessment card styles */
.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--blue);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.course-level {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
}

.course-start {
    padding: 14px 18px;
    border-left: 4px solid var(--yellow);
    border-radius: 8px;
    background: var(--soft);
    font-weight: 600;
    color: var(--blue-dark);
}

.course-level-line {
    margin: 4px 0 18px;
    color: var(--muted);
}

.course-progress-text {
    margin: 0 0 8px;
    font-size: .9rem;
    color: var(--muted);
}

.course-modules {
    display: grid;
    gap: 14px;
    margin: 28px 0 20px;
}

.course-module {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.course-module.is-recommended {
    border-color: var(--yellow);
    box-shadow: 0 0 0 2px rgba(245, 197, 66, .35);
}

.course-module-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-module-number {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}

.course-badge {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--blue-dark);
    font-size: .75rem;
    font-weight: 600;
}

.course-module h3 {
    margin: 4px 0 10px;
    font-size: 1.15rem;
}

.course-lessons {
    margin: 0;
    padding: 0;
    list-style: none;
}

.course-lessons li {
    padding: 6px 0;
    border-top: 1px solid var(--line);
    font-size: .95rem;
}

.course-lessons a {
    display: block;
    color: var(--blue-dark);
    font-weight: 600;
}

.course-lessons a:hover {
    color: var(--blue);
}

.course-lessons .is-soon {
    color: #8a94a6;
}

.course-lessons em {
    font-style: normal;
    font-size: .8rem;
}

.course-status {
    display: inline-block;
    width: 1.4em;
    color: var(--blue);
}

.course-lessons .is-done .course-status {
    color: #1e9e5a;
}

/* communication course: lessons unlock one after another */
.course-lessons .is-locked {
    color: #8a94a6;
}

.course-lessons .is-locked .course-status {
    font-size: .8rem;
}

.course-badge.is-done {
    background: #e3f5ea;
    color: #1e7a48;
}

/* lesson page */
.lesson-back {
    display: inline-block;
    margin-bottom: 18px;
    font-size: .9rem;
    color: var(--blue);
}

.lesson-goal {
    padding: 14px 18px;
    border-left: 4px solid var(--yellow);
    border-radius: 8px;
    background: var(--soft);
}

.lesson-h {
    margin: 32px 0 12px;
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.lesson-phrases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lesson-phrases li {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.lesson-phrases span {
    display: block;
    font-weight: 600;
    color: var(--blue-dark);
}

.lesson-phrases small {
    color: var(--muted);
}

.lesson-exercises {
    display: grid;
    gap: 16px;
}

.exercise {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}

.exercise-number {
    margin: 0 0 4px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}

.exercise-prompt {
    margin: 0 0 12px;
    font-weight: 600;
    color: var(--ink);
}

.exercise-choice {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.exercise-choice.is-right {
    border-color: #1e9e5a;
    background: #e8f7ee;
}

.exercise-choice.is-wrong {
    border-color: #d64545;
    background: #fdecec;
}

.exercise-gap {
    font-size: 1.1rem;
    color: var(--blue-dark);
}

.exercise-gap input {
    width: 8em;
    margin: 0 6px;
    padding: 4px 8px;
    border: 0;
    border-bottom: 2px solid var(--blue);
    background: var(--white);
    font: inherit;
}

.exercise-gap input.is-right {
    border-bottom-color: #1e9e5a;
}

.exercise-check {
    margin-top: 4px;
}

.exercise-order-target {
    min-height: 1.6em;
    padding: 10px 14px;
    border: 1px dashed var(--blue);
    border-radius: 10px;
    background: var(--white);
    font-size: 1.05rem;
    color: var(--blue-dark);
}

.exercise-order-target.is-empty {
    color: #8a94a6;
    font-size: .95rem;
}

.exercise-order-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.exercise-chip {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font: inherit;
    color: var(--blue-dark);
    cursor: pointer;
}

.exercise-chip:disabled {
    opacity: .35;
    cursor: default;
}

.exercise-write {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
}

.exercise-feedback {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .95rem;
}

.exercise-feedback.is-right {
    background: #e8f7ee;
    color: #155c36;
}

.exercise-feedback.is-wrong {
    background: #fdecec;
    color: #8c2b2b;
}

.exercise-feedback.is-model {
    background: var(--white);
    border: 1px solid var(--line);
}

.lesson-mistake,
.lesson-mission {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 14px;
}

.lesson-mistake {
    background: #fff8e1;
    border: 1px solid #f3dc8e;
}

.lesson-mission {
    background: var(--blue-dark);
    color: var(--white);
}

.lesson-mission p {
    color: #d7e3f7;
}

.lesson-mistake-label {
    margin: 0 0 6px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.lesson-mission .lesson-mistake-label {
    color: var(--yellow);
}

.lesson-finish {
    margin-top: 28px;
}

.lesson-done {
    font-weight: 700;
    color: #1e9e5a;
}

@media (max-width: 640px) {
    .lesson-phrases {
        grid-template-columns: 1fr;
    }
}

/* small "new" label on the course card */
.test-band-new {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--blue-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    vertical-align: middle;
}

/* MISSION PAGE */
.mission {
    max-width: 760px;
    margin: 0 auto;
    padding: 72px 6vw 90px;
    box-sizing: content-box;
}

.mission-hero {
    margin-bottom: 44px;
}

.mission-hero h1 {
    margin-bottom: 18px;
}

.mission-lead {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    line-height: 1.55;
    color: var(--muted);
}

.mission-block {
    margin-top: 40px;
}

.mission-block h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 14px;
}

.mission-quote {
    margin: 0 0 20px;
    padding: 6px 0 6px 22px;
    border-left: 4px solid var(--yellow);
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--blue-dark);
}

.mission-steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.mission-steps li {
    position: relative;
    padding: 18px 20px 18px 64px;
    border: 1px solid var(--line);
    border-radius: 14px;
    counter-increment: step;
}

.mission-steps li::before {
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 18px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue-dark);
    color: var(--white);
    font-weight: 700;
}

/* the step under the mouse is highlighted */
.mission-steps li {
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.mission-steps li:hover {
    border-color: var(--yellow);
    box-shadow: 0 0 0 2px rgba(245, 197, 66, .3);
    transform: translateY(-2px);
}

.mission-steps p {
    margin: 0;
}

.mission-step-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}

.mission-sign {
    margin-top: 36px;
    font-family: var(--display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--blue-dark);
}

.mission-cta {
    margin-top: 40px;
    padding: 36px 28px;
}

.mission-cta .as-actions {
    justify-content: center;
}

.mission-outline {
    border: 1px solid rgba(255, 255, 255, .6);
    color: var(--white);
    background: transparent;
}

.mission-outline:hover {
    background: rgba(255, 255, 255, .1);
}

/* language box: asks first-time visitors with a different browser language once */
.lang-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(11, 46, 131, .45);
}

.lang-modal-box {
    width: min(100%, 380px);
    box-sizing: border-box;
    padding: 30px 28px 26px;
    border-top: 5px solid var(--yellow);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 24px 60px rgba(11, 46, 131, .3);
    text-align: center;
}

.lang-modal-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lang-modal-title {
    margin: 0 0 20px;
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue-dark);
}

.lang-modal-box p {
    margin: 0 0 22px;
    color: var(--muted);
}

.lang-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lang-modal-actions .button {
    justify-content: center;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

/* link from the About Me section to the mission page */
.about-more {
    display: inline-block;
    margin-top: 6px;
    color: var(--blue);
    font-weight: 600;
}

.about-more:hover {
    text-decoration: underline;
}

/* course: checklist exercise and course completion box */
.exercise-checklist {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.exercise-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
}

.exercise-checklist input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

.lesson-complete {
    margin-top: 0;
}

.lesson-complete .as-actions {
    justify-content: center;
}

/* links inside lesson texts */
.lesson p a:not(.button) {
    color: var(--blue);
    text-decoration: underline;
}

/* YELLOW ACCENTS – low-key touches of the brand yellow across the site */

/* 2. current page in the menu: yellow underline */
nav > a[aria-current="page"]::after,
nav > a.is-current::after {
    background: var(--yellow);
}

/* 3. highlighted words in the central statement: thin yellow underline with some space below the letters */
.intro-statement strong {
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 9px;
    text-decoration-skip-ink: none;
}

/* 4. offer and audience cards: yellow edge on hover */
.card {
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.card:hover {
    border-color: var(--yellow);
    box-shadow: 0 0 0 2px rgba(245, 197, 66, .3), 0 8px 30px rgba(20, 33, 61, .06);
    transform: translateY(-2px);
}

/* "Wie ich arbeite": each heading opens a short box showing what the principle looks like in practice */
.method-toggle {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
    text-decoration-skip-ink: none;
    transition: text-decoration-thickness .15s;
}

.method-toggle:hover,
.method-toggle:focus-visible {
    text-decoration-thickness: 3px;
}

/* small arrow next to the heading: points down when closed, up when open */
.method-chevron {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: translateY(-4px) rotate(45deg);
    transition: transform .2s;
}

.method-toggle:hover .method-chevron {
    transform: translateY(-1px) rotate(45deg);
}

.method-toggle[aria-expanded="true"] .method-chevron {
    transform: translateY(1px) rotate(-135deg);
}

.method-more-body {
    margin-top: 18px;
    padding: 14px 16px;
    border-left: 3px solid var(--yellow);
    border-radius: 0 10px 10px 0;
    background: rgba(255, 255, 255, .7);
}

.method-more-body p {
    margin: 0 0 10px;
    font-size: .92rem;
    color: var(--ink);
}

.method-item .method-more-body p.method-more-example {
    color: var(--muted);
    font-style: italic;
}

.method-more-body a {
    font-size: .92rem;
    font-weight: 600;
    color: var(--blue);
}

.method-more-body a:hover {
    text-decoration: underline;
}

/* "Wie ich arbeite" as four tiles; the selected tile opens a wide panel below the row */
.method-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1220px;
    margin: 0 auto;
}

.method-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 26px 24px;
    border: 1px solid #cdddf2;
    border-top: 3px solid transparent;
    border-radius: 16px;
    background: rgba(255, 255, 255, .45);
    color: var(--blue-dark);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, border-color .2s, transform .2s;
}

.method-tab:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.method-tab[aria-expanded="true"] {
    background: var(--white);
    border-top-color: var(--yellow);
    box-shadow: 0 12px 30px rgba(11, 46, 131, .1);
}

.method-tab svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.method-tab-title {
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
    font-weight: 600;
    line-height: 1.2;
    hyphens: manual;
}

.method-tab .method-chevron {
    position: absolute;
    top: 30px;
    right: 24px;
    margin: 0;
}

.method-tab:hover .method-chevron {
    transform: translateY(3px) rotate(45deg);
}

.method-tab[aria-expanded="true"] .method-chevron {
    transform: translateY(4px) rotate(-135deg);
}

.method-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    max-width: 1220px;
    margin: 18px auto 0;
    padding: 30px 34px;
    box-sizing: border-box;
    border-left: 4px solid var(--yellow);
    border-radius: 0 16px 16px 0;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(11, 46, 131, .08);
}

.method-panel[hidden] {
    display: none;
}

.method-panel-lead {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--blue-dark);
}

.method-panel-example {
    margin: 0 0 14px;
    color: var(--muted);
    font-style: italic;
}

@media (max-width: 900px) {
    .method-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .method-panel {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 24px;
    }
}

/* free-tests cards: yellow top line, soft yellow glow and a slight lift only on hover */
.test-band-option {
    border-top-color: transparent;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.test-band-option:hover {
    border-top-color: var(--yellow);
    box-shadow: 0 16px 36px rgba(245, 197, 66, .28);
    transform: translateY(-4px);
}

/* TROPHIES – cabinet in the course overview and the "trophy unlocked" message */
.trophy-cabinet {
    margin-top: 34px;
}

.trophy-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
}

.trophy-head .lesson-h {
    margin-bottom: 4px;
}

.trophy-count {
    margin: 0;
    font-weight: 700;
    color: var(--blue-dark);
}

.trophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 10px;
    margin: 14px 0 12px;
}

.trophy {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}

.trophy:not(.is-unlocked) {
    opacity: .55;
}

.trophy:not(.is-unlocked) .trophy-medal {
    filter: grayscale(1);
}

.trophy.is-unlocked {
    background: var(--white);
    box-shadow: 0 6px 18px rgba(11, 46, 131, .07);
}

.trophy-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.trophy-text strong {
    font-size: .95rem;
    color: var(--blue-dark);
}

.trophy-text small {
    font-size: .78rem;
    line-height: 1.35;
    color: var(--muted);
}

/* round medal with a trophy cup, colored by level */
.trophy-medal {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--medal);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), 0 2px 6px rgba(0, 0, 0, .12);
}

.trophy-medal svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--white);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.is-bronze { --medal: linear-gradient(145deg, #e0a06a, #a8622d); }
.is-silver { --medal: linear-gradient(145deg, #d9dfe6, #8e9aa8); }
.is-gold { --medal: linear-gradient(145deg, #ffe08a, #e0a82e); }
.is-platinum { --medal: linear-gradient(145deg, #c9e6ff, #5b8fd6 60%, #3a63b8); }

/* message that slides in when a trophy is unlocked */
.trophy-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100% - 40px);
    padding: 14px 20px 14px 14px;
    border-left: 4px solid var(--yellow);
    border-radius: 14px;
    background: var(--blue-dark);
    color: var(--white);
    box-shadow: 0 18px 40px rgba(11, 46, 131, .35);
    transform: translateY(140%);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
}

.trophy-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.trophy-toast span:last-child {
    display: grid;
}

.trophy-toast small {
    font-size: .78rem;
    color: var(--yellow);
}

.trophy-toast strong {
    font-size: 1.05rem;
}

@media (max-width: 560px) {
    .trophy-toast {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* sound on/off switch in the course */
.course-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 4px 0 18px;
}

.course-meta .course-level-line {
    margin: 0;
}

.sound-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--muted);
    font: inherit;
    font-size: .82rem;
    cursor: pointer;
}

.sound-toggle:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* lesson pages: floating switch, always visible at the bottom left */
.sound-toggle.is-floating {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 90;
    padding: 8px 14px;
    box-shadow: 0 8px 22px rgba(11, 46, 131, .15);
}

@media (max-width: 560px) {
    .sound-toggle.is-floating {
        left: 12px;
        bottom: 12px;
    }
}

/* lesson phrases: the tile under the mouse stands out, the others fade a little */
.lesson-phrases li {
    transition: border-color .2s, box-shadow .2s, transform .2s, opacity .2s;
}

.lesson-phrases li:hover {
    border-color: var(--yellow);
    box-shadow: 0 0 0 2px rgba(245, 197, 66, .3), 0 10px 24px rgba(11, 46, 131, .08);
    transform: translateY(-2px);
}

@media (hover: hover) {
    .lesson-phrases:hover li:not(:hover) {
        opacity: .55;
    }
}

/* Communication Coaching: workshop list in the company box */
.workshop-list {
    margin: 0 0 14px;
    padding-left: 1.2em;
}

.workshop-list li {
    margin: 6px 0;
}

/* Communication Coaching: the three "Why with me?" cards in one row on wider screens */
#why .cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    max-width: 1100px;
    margin: 0 auto;
}

/* homepage: box introducing the second pillar, Communication Coaching */
.pillar-band {
    padding: 0 6vw 80px;
    background: var(--soft); /* continues the offers section above */
}

.pillar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 34px 40px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--yellow);
    border-radius: 0 20px 20px 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(11, 46, 131, .06);
}

.pillar-inner h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.pillar-inner p:last-child {
    margin: 0;
    max-width: 640px;
    color: var(--muted);
}

.pillar-inner .button {
    flex-shrink: 0;
}

@media (max-width: 760px) {
    .pillar-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 22px;
    }
}

/* copyright line: full-width navy strip at the very bottom (same blue as the free-tests band) */
footer .footer-copy {
    margin: 10px calc(-1 * var(--footer-pad, 6vw)) -22px;
    padding: 18px var(--footer-pad, 6vw);
    border-top: 0;
    background: var(--blue-dark);
    color: #d7e3f7;
}

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

footer .footer-copy a:hover {
    color: var(--yellow);
}

/* navy strip at the very bottom with the copyright line */
footer .footer-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

footer .footer-copy p {
    margin: 0;
}

/* ACCOUNTS – login, sign-up and account page */
.account-form {
    display: grid;
    gap: 6px;
    max-width: 420px;
    margin: 22px 0 10px;
}

.account-label {
    margin-top: 10px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--blue-dark);
}

.account-input {
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    font: inherit;
}

.account-input:focus {
    outline: 2px solid var(--blue);
    outline-offset: 1px;
    border-color: var(--blue);
}

.account-form .button {
    justify-self: start;
    margin-top: 14px;
}

.account-hint-text {
    margin: 0;
    font-size: .8rem;
    color: var(--muted);
}

.account-links {
    font-size: .92rem;
    color: var(--muted);
}

.account-message {
    margin: 10px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .92rem;
}

.account-message.is-error {
    background: #fdecec;
    color: #8c2b2b;
}

.account-message.is-success {
    background: #e8f7ee;
    color: #155c36;
}

.account-meta {
    color: var(--muted);
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 12px;
    margin: 18px 0 12px;
}

.account-stats div {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}

.account-stats span {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.account-stats strong {
    color: var(--blue-dark);
}

.account-danger {
    margin-top: 96px; /* far away from "Log out", so nobody opens it by a misclick */
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: .92rem;
    color: var(--muted);
}

.account-danger summary {
    display: inline-block;
    cursor: pointer;
    color: #8c2b2b;
    font-size: .88rem;
    font-weight: 600;
}

.account-delete-confirm {
    display: grid;
    gap: 8px;
    max-width: 460px;
    margin-top: 14px;
    padding: 16px 18px;
    border: 1.5px solid #e7b4b4;
    border-radius: 14px;
    background: #fdf3f3;
}

.account-delete-confirm p {
    margin: 0;
    color: #8c2b2b;
}

.account-delete-confirm input {
    padding: 9px 12px;
    border: 1.5px solid #e7b4b4;
    border-radius: 10px;
    background: var(--white);
    font: inherit;
    letter-spacing: .06em;
}

.account-delete-final {
    border: 0;
    background: #b42318;
    color: #fff;
}

.account-delete-final:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

/* course overview: small hint about saving progress in an account */
.account-hint {
    margin: 4px 0 6px;
    font-size: .9rem;
    color: var(--muted);
}

.account-hint a {
    color: var(--blue);
    font-weight: 600;
}

/* Communication Course: optional account offer (no sign-up needed to learn) */
.cc-account-note {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--soft);
    font-size: .9rem;
    color: var(--muted);
}

.cc-account-note a {
    color: var(--blue);
    font-weight: 600;
}

.account-stats a {
    font-size: .85rem;
    font-weight: 600;
    color: var(--blue);
}

/* LOGO – feels like a button: lifts, grows and tilts slightly on hover, "presses" on click */
.brand img {
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), filter .25s;
}

.brand:hover img,
.brand:focus-visible img {
    transform: translateY(-2px) scale(1.07) rotate(-2deg);
    filter: drop-shadow(0 6px 10px rgba(22, 82, 196, .25));
}

.brand:active img {
    transform: scale(.95);
}

/* HERO – elements glide in one after another on load
   (switched off for visitors who prefer reduced motion) */
@keyframes hero-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes hero-fade {
    from { opacity: 0; transform: scale(.97); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-audiences { animation: hero-in .6s ease backwards; }
    .hero-copy h1 { animation: hero-in .7s .1s ease backwards; }
    .hero-copy .hero-text { animation: hero-in .7s .25s ease backwards; }
    .hero-copy .hero-actions { animation: hero-in .7s .4s ease backwards; }
    .hero-copy .hero-person { animation: hero-in .7s .55s ease backwards; }

    .hero-visual { animation: hero-fade .9s .3s ease backwards; }
}

.hero-visual {
    transition: transform .4s ease;
}

.hero-visual:hover {
    transform: scale(1.02);
}

.hero-person img {
    transition: transform .25s ease;
}

.hero-person:hover img {
    transform: scale(1.08);
}

/* offer card selected via the hero tabs: lights up briefly */
@keyframes card-highlight {
    0%, 100% { box-shadow: 0 8px 30px rgba(20, 33, 61, .045); }
    20%, 70% { box-shadow: 0 0 0 3px rgba(245, 197, 66, .55), 0 12px 32px rgba(11, 46, 131, .1); }
}

.card.is-highlight {
    border-color: var(--yellow);
    animation: card-highlight 2.2s ease;
}

/* hero tabs: names never break inside; if space runs out, a tab moves to the next line */
.hero-audiences {
    flex-wrap: wrap;
    row-gap: 8px;
}

.hero-audience {
    white-space: nowrap;
}

/* NEWSLETTER – "ideas that move you forward": heading glides in with momentum, a yellow line draws
   forward ending in an arrowhead, the form follows, the button arrow nudges forward.
   Only with JavaScript (class "js" on <html>) and when visitors don't prefer reduced motion. */
.nl-momentum {
    position: relative;
    display: block;
    width: 140px;
    height: 4px;
    margin: -4px 0 20px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(245, 197, 66, 0), var(--yellow));
}

.nl-momentum::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid var(--yellow);
    transform: translateY(-50%);
}

.nl-arrow {
    display: inline-block;
    transition: transform .25s ease;
}

.newsletter-fields .button:hover .nl-arrow {
    transform: translateX(4px);
}

@keyframes nl-forward {
    0% { opacity: 0; transform: translateX(-48px); }
    70% { opacity: 1; transform: translateX(6px); }
    100% { opacity: 1; transform: none; }
}

@keyframes nl-draw {
    from { width: 0; opacity: 0; }
    to { width: 140px; opacity: 1; }
}

@keyframes nl-nudge {
    0%, 100% { transform: none; }
    50% { transform: translateX(6px); }
}

@media (prefers-reduced-motion: no-preference) {
    .js .newsletter .newsletter-copy > *,
    .js .newsletter .newsletter-form {
        opacity: 0;
    }

    .js .newsletter.in-view .newsletter-copy > * {
        animation: nl-forward .8s cubic-bezier(.22, 1, .36, 1) forwards;
    }

    .js .newsletter.in-view .newsletter-copy h2 { animation-delay: .1s; }
    .js .newsletter.in-view .newsletter-copy .nl-momentum { animation: nl-draw 1s .45s cubic-bezier(.22, 1, .36, 1) forwards; }
    .js .newsletter.in-view .newsletter-copy > p:last-child { animation-delay: .6s; }

    .js .newsletter.in-view .newsletter-form {
        animation: nl-forward .9s .5s cubic-bezier(.22, 1, .36, 1) forwards;
    }

    .js .newsletter.in-view .nl-arrow {
        animation: nl-nudge .6s 1.6s ease-in-out 2;
    }

    /* "News from Nawee": heading, posts box and follow buttons pop toward the viewer, one after another */
    .js .linkedin-section .section-heading > *,
    .js .linkedin-section .linkedin-consent,
    .js .linkedin-section .linkedin-grid,
    .js .linkedin-section .linkedin {
        opacity: 0;
    }

    .js .linkedin-section.in-view .section-heading > *,
    .js .linkedin-section.in-view .linkedin-consent,
    .js .linkedin-section.in-view .linkedin-grid,
    .js .linkedin-section.in-view .linkedin {
        animation: news-pop .75s cubic-bezier(.34, 1.56, .64, 1) forwards;
    }

    .js .linkedin-section.in-view .section-heading > :nth-child(2) { animation-delay: .12s; }
    .js .linkedin-section.in-view .linkedin-consent,
    .js .linkedin-section.in-view .linkedin-grid { animation-delay: .25s; }
    .js .linkedin-section.in-view .linkedin { animation-delay: .4s; }
}

@keyframes news-pop {
    from { opacity: 0; transform: translateY(26px) scale(.9); }
    to { opacity: 1; transform: none; }
}

.hero-audiences {
    column-gap: clamp(14px, 1.8vw, 28px);
}

.hero-audience {
    font-size: 15px;
}

/* "Aktuelles von Nawee" / follow section: navy like the free-tests band, white follow buttons with brand icons */
.linkedin-section {
    background:
        radial-gradient(ellipse 50% 90% at 100% 0%, rgba(59, 130, 246, .38), transparent 70%),
        radial-gradient(ellipse 40% 80% at 0% 100%, rgba(59, 130, 246, .2), transparent 70%),
        var(--blue-dark);
}

.linkedin-section .section-heading .eyebrow {
    color: var(--yellow);
}

.linkedin-section h2 {
    color: var(--white);
}

.linkedin-section .section-heading p,
.linkedin-section .linkedin-consent p {
    color: #d7e3f7;
}

.linkedin-section .linkedin-consent a {
    color: var(--white);
}

.linkedin-section #linkedin-load {
    background: var(--white);
    color: var(--blue-dark);
}

.linkedin-section .linkedin-btn {
    border-color: transparent;
    background: var(--white);
    color: var(--blue-dark);
    transition: transform .2s, box-shadow .2s;
}

.linkedin-section .linkedin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(245, 197, 66, .35);
}

.linkedin-btn-linkedin svg { color: #0a66c2; }
.linkedin-btn-instagram svg { color: #e1306c; }
.linkedin-btn-facebook svg { color: #1877f2; }

.linkedin-section .linkedin-grid iframe {
    border-color: transparent;
}

/* Communication Coaching box lights up when chosen via the hero tabs */
.pillar-inner.is-highlight {
    animation: card-highlight 2.2s ease;
}

/* the box sits at the very top of its section; leave a little air when a tab jumps to it */
#communication {
    padding-top: 40px;
}

/* course pages are only shown with an account: hidden until account.js has checked the login.
   Safety net: if the check never runs (script blocked), the content appears after 6 seconds. */
@keyframes account-failsafe {
    to { visibility: visible; }
}

.js [data-requires-account]:not(.account-ok) {
    visibility: hidden;
    animation: account-failsafe 0s 6s forwards;
}

.account-gate {
    text-align: left;
}

/* end of the tests: two ways to continue */
.as-cta-actions {
    justify-content: center;
}

.as-cta-note {
    margin: 14px 0 0;
    font-size: .85rem;
}

/* header: "Anmelden" / "Mein Konto" link with a person icon */
.nav-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-account svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* course announcement bar above the header */
.course-bar {
    position: relative;
    padding: 9px 48px 9px 16px;
    background: var(--blue-dark);
    color: #d7e3f7;
    font-size: .9rem;
    text-align: center;
}

.course-bar strong {
    color: var(--white);
}

.course-bar a {
    margin-left: 4px;
    color: var(--yellow);
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.course-bar button {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    padding: 2px 8px;
    border: 0;
    background: none;
    color: var(--white);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

/* sign-up: what the free account includes */
.account-benefits {
    margin: 4px 0 6px;
    padding: 0;
    list-style: none;
}

.account-benefits li {
    position: relative;
    margin: 6px 0;
    padding-left: 26px;
    color: var(--ink);
}

.account-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1e9e5a;
    font-weight: 700;
}

/* =========================
   LEARNING HUB (learn.html / lernen.html): courses, practice and content in one place
   ========================= */
.learn-hero {
    padding-bottom: 40px;
}

/* jump links to the sections of the page */
.learn-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* "nav.learn-jump > a" outranks the header rule that hides menu links on small screens */
nav.learn-jump > a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--blue-dark);
    font-size: .9rem;
    font-weight: 600;
    transition: border-color .2s, background .2s;
}

.learn-jump a:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.learn-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.learn-section-soft {
    background: var(--soft);
}

.learn-section .section-heading {
    margin-bottom: 36px;
}

/* three numbered steps */
.learn-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.learn-steps li {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
}

.learn-step-number {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
}

.learn-steps h3 {
    margin: 0 0 8px;
}

.learn-steps p {
    margin: 0 0 12px;
    color: var(--muted);
}

.learn-step-links {
    display: grid;
    gap: 4px;
    font-size: .92rem;
}

.learn-step-links a {
    color: var(--blue);
    font-weight: 600;
}

/* cards */
.learn-grid {
    display: grid;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.learn-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.learn-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.learn-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    color: inherit;
    box-shadow: 0 8px 30px rgba(20, 33, 61, .045);
}

.learn-card h3 {
    margin: 0 0 8px;
}

.learn-card p {
    margin: 0 0 12px;
    color: var(--muted);
}

.learn-card .button {
    align-self: flex-start;
    margin-top: auto;
}

.learn-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.learn-tags span {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: .78rem;
    font-weight: 700;
}

.learn-card .learn-card-sub {
    color: var(--blue-dark);
    font-weight: 600;
}

.learn-card .learn-meta {
    font-size: .88rem;
}

.learn-progress {
    margin: 4px 0 16px;
}

.learn-progress p {
    margin: 6px 0 0;
    color: #1e7a48;
    font-size: .88rem;
    font-weight: 600;
}

/* whole card is a link */
.learn-link-card {
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.learn-link-card:hover {
    border-color: var(--yellow);
    box-shadow: 0 0 0 2px rgba(245, 197, 66, .3), 0 8px 30px rgba(20, 33, 61, .06);
    transform: translateY(-2px);
}

.learn-card-arrow {
    position: absolute;
    top: 26px;
    right: 26px;
    color: var(--blue);
    font-size: 1.2rem;
}

.learn-card-cta {
    margin-top: auto;
    color: var(--blue);
    font-weight: 700;
}

.learn-duration {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff7dc;
    color: #8a6100;
    font-size: .78rem;
    font-weight: 700;
}

.learn-soon {
    border-style: dashed;
    background: transparent;
    box-shadow: none;
}

.learn-soon-badge {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--line);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

/* practice: quiz card next to the checks */
.learn-practice {
    display: grid;
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.learn-quiz.is-live {
    max-width: none;
    margin-top: 0;
}

.learn-practice-list {
    display: grid;
    gap: 16px;
}

#coaching .consult-card {
    max-width: 1100px;
}

#coaching .consult-card a:not(.button) {
    color: var(--blue);
    font-weight: 600;
}

@media (max-width: 1000px) {
    .learn-steps,
    .learn-grid-2,
    .learn-practice {
        grid-template-columns: 1fr;
    }

    .learn-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .learn-quiz.is-live {
        max-width: 560px;
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .learn-grid-4 {
        grid-template-columns: 1fr;
    }

    .learn-card,
    .learn-steps li {
        padding: 22px;
    }
}

/* popup after confirming the email address (account.js) */
.account-popup {
    width: min(440px, calc(100vw - 32px));
    padding: 32px 28px 28px;
    border: 0;
    border-radius: 24px;
    background: var(--white);
    color: var(--ink, #1d2433);
    text-align: center;
    box-shadow: 0 30px 80px rgba(13, 47, 130, .25);
}

.account-popup::backdrop {
    background: rgba(13, 47, 130, .35);
    backdrop-filter: blur(3px);
}

.account-popup[open] {
    animation: account-popup-in .45s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes account-popup-in {
    from { opacity: 0; transform: translateY(16px) scale(.94); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .account-popup[open] { animation: none; }
}

.account-popup .account-popup-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #e3f5ea;
    color: #1e9e5a;
    font-size: 2rem;
    font-weight: 700;
}

.account-popup h2 {
    margin: 0 0 10px;
    font-size: 1.6rem;
}

.account-popup p {
    margin: 0 0 20px;
    color: var(--muted);
}

.account-popup .as-actions {
    justify-content: center;
}

/* sign-up: required-field asterisks and live password rules */
.account-required {
    color: #c0392b;
}

.account-required-note {
    margin-bottom: 2px;
}

.account-pw-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .8rem;
    color: var(--muted);
}

.account-pw-rules li::before {
    content: "○ ";
}

.account-pw-rules li.is-ok {
    color: #1e7a48;
}

.account-pw-rules li.is-ok::before {
    content: "✓ ";
}

.account-pw-match {
    margin: 0;
    color: #1e7a48;
    font-size: .8rem;
    font-weight: 600;
}

/* Free consultation box: pops in when it scrolls into view, then the booking button glows and its arrow nudges */
@media (prefers-reduced-motion: no-preference) {
    .js .consult-card {
        opacity: 0;
    }

    .js .consult-card.in-view {
        animation: news-pop .8s cubic-bezier(.34, 1.56, .64, 1) forwards;
    }

    .js .consult-card > div > * {
        opacity: 0;
    }

    .js .consult-card.in-view > div > * {
        animation: consult-rise .6s cubic-bezier(.22, 1, .36, 1) forwards;
    }

    .js .consult-card.in-view > div > :nth-child(1) { animation-delay: .25s; }
    .js .consult-card.in-view > div > :nth-child(2) { animation-delay: .35s; }
    .js .consult-card.in-view > div > :nth-child(3) { animation-delay: .45s; }
    .js .consult-card.in-view > div > :nth-child(4) { animation-delay: .55s; }

    .js .consult-card.in-view > .button {
        animation: consult-glow 1.4s .9s ease-in-out 2;
    }

    .js .consult-card.in-view > .button span {
        display: inline-block;
        animation: nl-nudge .6s 1.1s ease-in-out 3;
    }
}

@keyframes consult-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes consult-glow {
    0%, 100% { box-shadow: 0 12px 26px rgba(21, 84, 192, .22); }
    50% { box-shadow: 0 0 0 8px rgba(21, 84, 192, .14), 0 14px 30px rgba(21, 84, 192, .3); }
}

/* Communication Coaching: the free course band as a rounded tile instead of a full-width band */
#free-course {
    padding: 56px 6vw;
    background: none;
}

#free-course .test-band-inner {
    max-width: 1100px;
    padding: 44px 48px;
    border-radius: 28px;
    background:
        radial-gradient(ellipse 50% 90% at 100% 0%, rgba(59, 130, 246, .38), transparent 70%),
        radial-gradient(ellipse 40% 80% at 0% 100%, rgba(59, 130, 246, .2), transparent 70%),
        var(--blue-dark);
    box-shadow: 0 24px 60px rgba(13, 47, 130, .18);
}

@media (max-width: 700px) {
    #free-course .test-band-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        border-radius: 22px;
    }
}

/* =========================
   HEADLINES: yellow marker on the key word + words rise in on scroll (script.js)
   ========================= */
/* a thin yellow line just under the key word */
mark.hl {
    --hl-size: .09em;
    background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 100%;
    background-size: 100% var(--hl-size);
    color: inherit;
}

/* on dark bands the key word turns yellow instead (a marker would look muddy on navy) */
.test-band mark.hl,
.linkedin-section mark.hl {
    background: none;
    color: var(--yellow);
}

.reveal-words .hw {
    display: inline-block;
    opacity: 0;
    transform: translateY(.45em);
    transition: opacity .5s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
    transition-delay: calc(var(--i) * 70ms);
}

.reveal-words.is-revealed .hw {
    opacity: 1;
    transform: none;
}

/* the marker draws in from the left after the words have arrived */
.reveal-words mark.hl {
    background-size: 0% var(--hl-size);
    transition: background-size .7s cubic-bezier(.65, 0, .35, 1);
    transition-delay: calc(var(--words) * 70ms + .45s);
}

.reveal-words.is-revealed mark.hl {
    background-size: 100% var(--hl-size);
}

/* dark bands: the word arrives white, then turns yellow */
.test-band .reveal-words mark.hl,
.linkedin-section .reveal-words mark.hl {
    color: inherit;
    transition: color .6s ease;
    transition-delay: calc(var(--words) * 70ms + .45s);
}

.test-band .reveal-words.is-revealed mark.hl,
.linkedin-section .reveal-words.is-revealed mark.hl {
    color: var(--yellow);
}

/* "Let's find out what you need." (homepage #kontakt): intro rises, benefits from the left, contact panel from the right */
@media (prefers-reduced-motion: no-preference) {
    .js .consultation .consultation-header > p,
    .js .consultation .consultation-benefit,
    .js .consultation .consultation-details,
    .js .consultation .consultation-actions {
        opacity: 0;
    }

    .js .consultation.in-view .consultation-header > p {
        animation: consult-rise .6s cubic-bezier(.22, 1, .36, 1) forwards;
    }

    .js .consultation.in-view .consultation-header > p:last-child { animation-delay: .5s; }

    .js .consultation.in-view .consultation-benefit,
    .js .consultation.in-view .consultation-details {
        animation: contact-from-left .7s cubic-bezier(.22, 1, .36, 1) forwards;
    }

    .js .consultation.in-view .consultation-benefit:nth-child(1) { animation-delay: .55s; }
    .js .consultation.in-view .consultation-benefit:nth-child(2) { animation-delay: .7s; }
    .js .consultation.in-view .consultation-benefit:nth-child(3) { animation-delay: .85s; }
    .js .consultation.in-view .consultation-details { animation-delay: 1s; }

    .js .consultation.in-view .benefit-icon {
        animation: contact-icon-pop .6s cubic-bezier(.34, 1.56, .64, 1) backwards;
    }

    .js .consultation.in-view .consultation-benefit:nth-child(1) .benefit-icon { animation-delay: .75s; }
    .js .consultation.in-view .consultation-benefit:nth-child(2) .benefit-icon { animation-delay: .9s; }
    .js .consultation.in-view .consultation-benefit:nth-child(3) .benefit-icon { animation-delay: 1.05s; }

    .js .consultation.in-view .consultation-actions {
        animation: contact-from-right .8s .65s cubic-bezier(.22, 1, .36, 1) forwards;
    }

    .js .consultation.in-view .consultation-actions .button.primary {
        animation: consult-glow 1.4s 1.5s ease-in-out 2;
    }
}

@keyframes contact-from-left {
    from { opacity: 0; transform: translateX(-28px); }
    to { opacity: 1; transform: none; }
}

@keyframes contact-from-right {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: none; }
}

@keyframes contact-icon-pop {
    from { transform: scale(.4); }
    to { transform: none; }
}

/* hero headline: the marker on the key word draws in shortly after the page loads */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy h1 mark.hl {
        animation: hero-marker .8s 1s cubic-bezier(.65, 0, .35, 1) backwards;
    }
}

@keyframes hero-marker {
    from { background-size: 0% var(--hl-size); }
    to { background-size: 100% var(--hl-size); }
}

/* "Continue with Google" on the login and sign-up forms */
.account-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin-top: 6px;
    border: 1px solid var(--line);
    background: var(--white);
    color: #1f1f1f;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(20, 33, 61, .06);
}

.account-google:hover {
    border-color: #c6d3e6;
    background: #f8fafd;
}

.account-google:disabled {
    opacity: .6;
    cursor: default;
}

.account-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    margin: 18px 0 4px;
    color: var(--muted);
    font-size: .85rem;
}

.account-divider::before,
.account-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* =========================
   LEARNING PATHS: chooser on the homepage hero and Learn page, path pages
   ========================= */
.hero-paths {
    align-items: center;
}

.path-chooser {
    width: 100%;
    max-width: 500px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(160deg, #fff 55%, var(--blue-soft) 100%);
    box-shadow: 0 24px 60px rgba(13, 47, 130, .12);
}

.learn-paths .path-chooser {
    margin: 0 auto;
}

.path-chooser-label {
    margin: 0 0 16px;
    color: var(--blue-dark);
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.path-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    color: var(--blue-dark);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.path-card:hover,
.path-card:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 10px 24px rgba(21, 84, 192, .12);
    transform: translateY(-2px);
}

.path-card-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--blue);
}

.path-card-icon svg,
.path-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.path-card-text {
    display: grid;
    flex: 1;
    gap: 2px;
    line-height: 1.25;
}

.path-card-text strong {
    font-size: 1.08rem;
}

.path-card-text small {
    color: var(--muted);
    font-size: .88rem;
}

.path-card-arrow {
    color: var(--blue);
    font-size: 1.2rem;
    transition: transform .2s;
}

.path-card:hover .path-card-arrow {
    transform: translateX(4px);
}

/* the path this visitor chose before */
.path-card.is-chosen {
    border-color: var(--yellow);
    box-shadow: 0 0 0 2px rgba(245, 197, 66, .35);
}

.path-card-badge {
    justify-self: start;
    padding: 1px 9px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--blue-dark);
    font-size: .72rem;
    font-weight: 700;
}

.path-chooser-note {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
}

/* path pages */
.path-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 20px;
    background: var(--blue-soft);
    color: var(--blue);
}

.path-icon svg {
    width: 32px;
    height: 32px;
}

.path-other {
    color: var(--muted);
    font-size: .92rem;
}

.path-other a {
    color: var(--blue);
    font-weight: 600;
}

.path-quiz {
    max-width: 480px;
    margin: 0 auto;
}

.path-quiz .learn-quiz.is-live {
    min-height: 0;
}

.learn-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.path-coaching-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 28px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: var(--muted);
}

.path-coaching-note p {
    margin: 0;
    max-width: 720px;
}

.path-coaching-note strong {
    color: var(--blue-dark);
}

.path-coaching-note .text-link {
    color: var(--blue);
    font-weight: 700;
}

.learn-steps-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1000px) {
    .learn-steps-4,
    .learn-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .learn-steps-4,
    .learn-grid-3 {
        grid-template-columns: 1fr;
    }

    .path-chooser {
        padding: 20px 16px;
    }
}

/* path pages: back link on its own line above the path icon */
.path-hero .page-back {
    display: table;
    margin: 0 auto 18px;
}

/* =========================
   LISTENING & SPEAKING LESSONS (speak-lesson.js)
   ========================= */
.sl-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 18px 0 6px;
    padding: 0;
    list-style: none;
    counter-reset: sl;
}

.sl-steps li {
    counter-increment: sl;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-size: .82rem;
    font-weight: 600;
}

.sl-steps li::before {
    content: counter(sl) " · ";
    color: var(--blue);
}

.sl-section {
    margin-top: 40px;
}

.sl-h {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-size: 1.6rem;
}

.sl-step {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-family: var(--sans);
    font-size: 1rem;
}

.sl-note {
    color: var(--muted);
    font-size: .88rem;
}

.sl-beta {
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff7dc;
    color: #6b4e00;
}

.sl-situation {
    padding: 10px 14px;
    border-left: 3px solid var(--yellow);
    background: var(--soft);
    color: var(--blue-dark);
    font-style: italic;
}

.sl-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.sl-btn:hover:not(:disabled) {
    border-color: var(--blue);
}

.sl-btn.sl-play {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
}

.sl-btn.sl-big {
    padding: 12px 22px;
    font-size: 1rem;
}

.sl-btn.sl-record {
    border-color: #e5a3a3;
    color: #b42318;
}

.sl-btn.sl-record.is-recording {
    border-color: #b42318;
    background: #b42318;
    color: var(--white);
    animation: sl-pulse 1.2s infinite;
}

@keyframes sl-pulse {
    50% { box-shadow: 0 0 0 6px rgba(180, 35, 24, .15); }
}

.sl-btn.sl-link {
    border: 0;
    background: none;
    color: var(--blue);
    padding-left: 0;
    text-decoration: underline;
}

.sl-btn.button {
    padding: 13px 22px;
    border: 0;
    background: var(--blue);
    color: var(--white);
}

.sl-rec {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sl-rec .sl-note {
    margin: 4px 0 0;
}

.sl-question {
    display: block;
    margin: 4px 0 12px;
    color: var(--blue-dark);
    font-size: 1.15rem;
    font-weight: 700;
}

/* show-text button + clickable words */
.sl-btn.sl-text-toggle {
    border-color: var(--blue);
    color: var(--blue-dark);
}

.sl-word-tip {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.sl-word {
    display: inline;
    margin: 0;
    padding: 0 1px;
    border: 0;
    border-radius: 4px;
    background: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.sl-word:hover,
.sl-word:focus-visible {
    background: var(--blue-soft);
    color: var(--blue-dark);
    text-decoration: underline dotted;
    outline: none;
}

.sl-word.is-spoken {
    background: var(--blue-soft);
    color: var(--blue-dark);
    text-decoration: underline 2px var(--blue);
    text-underline-offset: 3px;
}

.is-hidden-text .sl-word {
    color: transparent;
    pointer-events: none;
}

/* dialogue tempo */
.sl-tempo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 12px 0 0;
}

.sl-tempo-label {
    margin-right: 4px;
    color: var(--muted, #5b6675);
    font-size: .9rem;
    font-weight: 600;
}

.sl-btn.sl-tempo-btn {
    padding: 6px 12px;
    font-size: .85rem;
}

.sl-btn.sl-tempo-btn[aria-pressed="true"] {
    border-color: var(--blue);
    background: var(--blue-soft);
    color: var(--blue-dark);
}

/* dialogue */
.sl-dialogue {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.sl-line {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    transition: background .2s, border-color .2s;
}

.sl-line .sl-btn.sl-play {
    padding: 6px 12px;
}

.sl-line.is-playing {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.sl-who {
    margin: 0;
    color: var(--blue);
    font-size: .85rem;
    font-weight: 700;
}

.sl-voice-b .sl-who {
    color: #b45309;
}

.is-hidden-text .sl-text {
    color: transparent;
    background: var(--line);
    border-radius: 6px;
    user-select: none;
}

.sl-card {
    margin-top: 12px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.sl-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.sl-btn.sl-option.is-right {
    border-color: #1e9e5a;
    background: #e3f5ea;
    color: #145c36;
}

.sl-btn.sl-option.is-wrong {
    border-color: #e5a3a3;
    background: #fdf0f0;
    color: #8f2f2f;
}

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

.sl-phrase-en {
    margin: 0;
    color: var(--blue-dark);
    font-size: 1.2rem;
    font-weight: 700;
}

.sl-phrase-de {
    margin: 2px 0 0;
    color: var(--muted);
}

.sl-tip {
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: .88rem;
}

/* sound pairs */
.sl-pairs {
    display: grid;
    gap: 8px;
}

.sl-pair {
    display: flex;
    gap: 8px;
}

/* role-play */
.sl-roleplay {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.sl-turn {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.sl-turn p {
    margin: 0 0 6px;
}

.sl-turn-you {
    justify-self: end;
    border-color: #cfe0f7;
    background: var(--blue-soft);
}

.sl-model {
    color: var(--blue-dark);
    font-weight: 600;
}

.speak-lesson .lesson-mission {
    margin-top: 40px;
}

@media (max-width: 700px) {
    .sl-phrases {
        grid-template-columns: 1fr;
    }

    .sl-line {
        grid-template-columns: 1fr auto;
    }

    .sl-line .sl-who {
        grid-column: 1 / -1;
    }

    .sl-turn {
        max-width: 92%;
    }
}

/* =========================
   PICTURE CARDS (vocab.js): spaced repetition like Anki
   ========================= */
.vc-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
}

.vc-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    border-radius: 999px;
    background: var(--blue-soft);
}

.vc-tab {
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--blue-dark);
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
}

.vc-tab[aria-selected="true"] {
    background: var(--blue);
    color: var(--white);
}

.vc-card,
.vc-listen,
.vc-done {
    max-width: 520px;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    text-align: center;
    box-shadow: 0 18px 44px rgba(13, 47, 130, .1);
}

.vc-img {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 14px;
    border-radius: 18px;
}

.vc-ask {
    margin: 0 0 6px;
    color: var(--blue-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.vc-front .sl-btn {
    margin-top: 8px;
}

.vc-word {
    margin: 0;
    color: var(--blue-dark);
    font-family: var(--display);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.vc-de {
    margin: 4px 0 0;
    color: var(--muted);
}

.vc-row {
    justify-content: center;
    margin: 14px 0 6px;
}

.vc-example {
    margin: 8px 0 16px;
    color: var(--blue-dark);
    font-style: italic;
}

.vc-example span {
    color: var(--muted);
    font-style: normal;
    font-size: .85rem;
}

.vc-rate {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.sl-btn.vc-grade {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 10px 6px;
    border-radius: 14px;
}

.vc-grade small {
    color: var(--muted);
    font-weight: 500;
    font-size: .78rem;
}

.sl-btn.vc-grade-0 { border-color: #e5a3a3; }
.sl-btn.vc-grade-2 { border-color: var(--blue); }
.sl-btn.vc-grade-3 { border-color: #1e9e5a; }

.vc-done-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #e3f5ea;
    color: #1e9e5a;
    font-size: 1.8rem;
    font-weight: 700;
}

.vc-listen .sl-row {
    justify-content: center;
    margin: 10px 0 14px;
}

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

.sl-btn.vc-pick {
    display: block;
    padding: 6px;
    border-radius: 18px;
}

.vc-pick img {
    display: block;
    width: 100%;
    border-radius: 14px;
}

.sl-btn.vc-pick.is-right { border-color: #1e9e5a; box-shadow: 0 0 0 3px rgba(30, 158, 90, .25); }
.sl-btn.vc-pick.is-wrong { border-color: #e5a3a3; opacity: .7; }

.vc-listen .exercise-feedback + .sl-btn {
    margin-top: 10px;
}

.vc-all {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.sl-btn.vc-item {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 8px 8px 12px;
    border-radius: 18px;
}

.vc-item img {
    width: 100%;
    border-radius: 12px;
}

.vc-item small {
    color: var(--muted);
    font-weight: 500;
}

@media (max-width: 500px) {
    .vc-rate {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* homepage "who's behind Nawee": quiet pointer to David's coaching site */
.about-coaching {
    margin: 14px 0 0;
    font-size: .92rem;
}

.about-coaching a {
    color: var(--muted);
    text-decoration: underline;
    text-decoration-color: rgba(21, 84, 192, .3);
    text-underline-offset: 3px;
}

/* header: small "Coaching ↗" link next to the learning items */
.site-header nav > a.nav-coaching {
    color: var(--muted);
}

/* =========================
   HOMEPAGE HERO (phone version, currently unused): what Nawee is at a glance + one button to start
   ========================= */
.hero.hero-simple {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 80px);
    max-width: 1100px;
    min-height: min(78vh, 720px);
    margin: 0 auto;
    padding: clamp(32px, 6vw, 72px) 6vw;
}

.hs-visual {
    position: relative;
    display: grid;
    place-items: center;
}

.hs-phone {
    width: min(300px, 70vw);
    padding: 14px;
    border-radius: 42px;
    background: var(--blue-dark);
    box-shadow: 0 34px 70px rgba(13, 47, 130, .25);
    transform: rotate(-6deg);
}

.hs-screen {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 18px 18px 22px;
    border-radius: 30px;
    background: var(--white);
}

.hs-top {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.hs-progress {
    flex: 1;
    height: 8px;
    border-radius: 99px;
    background: var(--line);
}

.hs-progress span {
    display: block;
    width: 15%;
    height: 100%;
    border-radius: 99px;
    background: #1e9e5a;
}

.hs-count {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
}

.hs-screen img {
    width: 100%;
    border-radius: 18px;
}

.hs-ask {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
}

.hs-word {
    margin: 0;
    color: var(--blue-dark);
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.hs-play {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-size: .9rem;
}

.hs-rate {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    margin-top: 4px;
}

.hs-rate span {
    padding: 7px 4px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    color: var(--blue-dark);
    font-size: .72rem;
    font-weight: 700;
    text-align: center;
}

.hs-rate span:nth-child(2) { border-color: var(--blue); }
.hs-rate span:nth-child(3) { border-color: #1e9e5a; }

.hs-badge {
    position: absolute;
    right: max(0px, calc(50% - 210px));
    bottom: 8%;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--blue-dark);
    font-size: .85rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(13, 47, 130, .18);
}

.hs-copy {
    text-align: center;
}

.hs-copy h1 {
    margin: 0 0 28px;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.15;
}

.hs-actions {
    display: grid;
    gap: 12px;
    max-width: 360px;
    margin: 0 auto;
}

.hs-actions .button {
    justify-content: center;
    padding: 16px 22px;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hs-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.hs-note a {
    color: var(--blue);
    font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
    .hs-phone { animation: hs-float 6s ease-in-out infinite; }
    .hs-copy { animation: hero-in .7s ease backwards; }
}

@keyframes hs-float {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-6deg) translateY(-10px); }
}

@media (max-width: 820px) {
    .hero.hero-simple {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 28px;
    }

    .hs-phone {
        width: min(220px, 60vw);
    }

    .hs-badge {
        right: 8%;
    }
}

.hero.hero-simple {
    background: none;
}

.hs-copy h1 {
    margin-bottom: 12px;
}

.hs-sub {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 1.02rem;
    font-weight: 600;
}

/* badge sits at the phone's top right corner, clear of the buttons */
.hs-badge {
    top: 6%;
    bottom: auto;
    right: max(0px, calc(50% - 200px));
    transform: rotate(4deg);
}

@media (max-width: 820px) {
    .hs-badge {
        right: 6%;
    }
}

.hs-badge {
    top: -2%;
}

/* hero phone: upright, larger text, the whole phone is a link to the picture cards */
a.hs-visual {
    display: grid;
    justify-items: center;
    gap: 16px;
    color: inherit;
    text-decoration: none;
}

.hs-phone,
.hs-phone:hover {
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .hs-phone { animation: hs-float-up 6s ease-in-out infinite; }
}

@keyframes hs-float-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

a.hs-visual .hs-phone {
    transition: box-shadow .2s;
}

a.hs-visual:hover .hs-phone,
a.hs-visual:focus-visible .hs-phone {
    box-shadow: 0 0 0 4px var(--yellow), 0 34px 70px rgba(13, 47, 130, .25);
}

.hs-count {
    font-size: .85rem;
}

.hs-ask {
    font-size: 1rem;
}

.hs-word {
    font-size: 2.6rem;
}

.hs-play {
    width: 52px;
    height: 52px;
    font-size: 1.05rem;
}

.hs-rate span {
    padding: 9px 4px;
    font-size: .9rem;
}

.hs-caption {
    color: var(--blue);
    font-size: .95rem;
    font-weight: 700;
}

a.hs-visual:hover .hs-caption {
    text-decoration: underline;
}

/* hero demo inside the phone (hero-demo.js) */
.hs-visual {
    gap: 16px;
}

.hs-screen {
    min-height: 440px;
    align-content: start;
}

.hd-ask {
    margin: 4px 0 0;
    color: var(--blue-dark);
    font-size: 1.15rem;
    font-weight: 700;
}

.hd-options {
    display: grid;
    gap: 8px;
    width: 100%;
}

.hd-option {
    padding: 11px 12px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.hd-option:hover:not(:disabled) {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.hd-option:disabled {
    cursor: default;
}

.hd-option.is-right {
    border-color: #1e9e5a;
    background: #e3f5ea;
    color: #145c36;
}

.hd-option.is-wrong {
    border-color: #e5a3a3;
    background: #fdf0f0;
    color: #8f2f2f;
}

.hd-result {
    width: 100%;
}

.hd-feedback {
    margin: 2px 0 8px;
    font-weight: 700;
    text-align: center;
}

.hd-feedback.is-right { color: #145c36; }
.hd-feedback.is-wrong { color: #8f2f2f; }

.hd-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.hd-row button {
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hd-play {
    width: 40px;
    height: 40px;
    background: var(--blue-soft);
    color: var(--blue);
}

.hd-example {
    padding: 9px 12px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: .85rem;
}

.hd-next {
    padding: 9px 14px;
    background: var(--blue);
    color: var(--white);
    font-size: .9rem;
}

.hd-done {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding-top: 40px;
    text-align: center;
}

.hd-done-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0;
    border-radius: 50%;
    background: #e3f5ea;
    color: #1e9e5a;
    font-size: 1.9rem;
    font-weight: 700;
}

.hd-done-title {
    margin: 6px 0 0;
    color: var(--blue-dark);
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 700;
}

.hd-done-text {
    margin: 0 0 10px;
    color: var(--muted);
}

.hd-more {
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
}

a.hs-caption {
    color: var(--blue);
    font-weight: 700;
}

a.hs-caption:hover {
    text-decoration: underline;
}

@media (max-width: 820px) {
    .hs-screen {
        min-height: 400px;
    }
}

/* hero demo: fixed screen height so the phone doesn't jump; everything fits inside it */
.hs-screen[data-hero-demo] {
    grid-template-columns: minmax(0, 1fr);
    min-height: 500px;
}

.hs-screen[data-hero-demo] img {
    width: auto;
    max-width: 100%;
    height: 130px;
    object-fit: contain;
}

.hd-option {
    padding: 9px 10px;
    font-size: 1rem;
}

.hd-row button {
    white-space: nowrap;
}

.hd-play {
    flex: none;
    width: 38px;
    height: 38px;
}

.hd-example,
.hd-next {
    padding: 9px 12px;
    font-size: .85rem;
}

@media (max-width: 820px) {
    .hs-phone {
        width: min(290px, 82vw);
    }

    .hs-screen[data-hero-demo] {
        min-height: 450px;
        padding: 16px 14px 18px;
    }

    .hs-screen[data-hero-demo] img {
        height: 110px;
    }
}

/* homepage path card: start and sign-in buttons under the path */
.path-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.path-actions .button {
    width: 100%;
    text-align: center;
}

/* hero headline: the second line ("past its limits." / "kann mehr.") springs in after the first,
   then the key word pushes outward once and the marker draws under it */
.hero-copy h1 > span {
    display: inline-block;
    transform-origin: 0 70%;
}

.hero-copy h1 mark.hl {
    display: inline-block;
    transform-origin: 0 70%;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-copy h1 > span {
        animation: hero-pop .75s .45s cubic-bezier(.34, 1.56, .64, 1) backwards;
    }

    .hero-copy h1 mark.hl {
        animation:
            hero-push .7s 1.1s cubic-bezier(.34, 1.56, .64, 1) both,
            hero-marker .6s 1.35s cubic-bezier(.65, 0, .35, 1) backwards;
    }
}

@keyframes hero-pop {
    from { opacity: 0; transform: translateY(.35em) scale(.7); }
    to { opacity: 1; transform: none; }
}

@keyframes hero-push {
    0% { transform: none; }
    45% { transform: scale(1.14) rotate(-2deg); }
    100% { transform: none; }
}

.about-coaching strong {
    color: var(--blue-dark);
}

/* =========================
   "Get started" questions (start.html / get-started.html, onboarding.js)
   ========================= */
.ob-section {
    padding: clamp(20px, 4vw, 44px) 16px 0;
}

.ob {
    max-width: 860px;
    margin: 0 auto;
}

.ob-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.ob-back,
.ob-back-space {
    flex: none;
    width: 36px;
    height: 36px;
}

.ob-back {
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.ob-back:hover {
    background: var(--blue-soft);
    color: var(--blue);
}

.ob-progress {
    flex: 1;
    height: 8px;
    border-radius: 99px;
    background: var(--line);
    overflow: hidden;
}

.ob-progress span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), #3d7be0);
    transition: width .4s cubic-bezier(.22, 1, .36, 1);
}

.ob-speaker {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.ob-speaker img {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(13, 47, 130, .18);
}

.ob-bubble {
    position: relative;
    margin: 0;
    padding: 14px 20px;
    border: 2px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    color: var(--ink, #1c2633);
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    font-weight: 600;
}

.ob-bubble::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -9px;
    width: 14px;
    height: 14px;
    border-left: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    background: var(--white);
    transform: translateY(-50%) rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
    .ob-bubble { animation: ob-in .35s ease both; }
    .ob-option { animation: ob-in .35s ease both; }
    .ob-option:nth-child(2) { animation-delay: .03s; }
    .ob-option:nth-child(3) { animation-delay: .06s; }
    .ob-option:nth-child(4) { animation-delay: .09s; }
    .ob-option:nth-child(5) { animation-delay: .12s; }
    .ob-option:nth-child(6) { animation-delay: .15s; }
    .ob-option:nth-child(7) { animation-delay: .18s; }
}

@keyframes ob-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

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

.ob-options-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
    margin: 0 auto;
}

.ob-option {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 68px;
    padding: 12px 18px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(13, 47, 130, .05);
    color: var(--ink, #1c2633);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .1s;
}

.ob-option:hover {
    background: #f7f9fc;
}

.ob-option:active {
    transform: translateY(2px);
}

.ob-option.is-picked {
    border-color: var(--blue);
    background: var(--blue-soft);
    color: var(--blue-dark);
    box-shadow: inset 4px 0 0 var(--yellow), 0 2px 8px rgba(13, 47, 130, .08);
}

.ob-icon {
    flex: none;
    width: 40px;
    font-size: 1.9rem;
    line-height: 1;
    text-align: center;
}

.ob-label small {
    display: block;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600;
}

/* level question: a small level tag (Neu, A1, A2, B1–B2, C1+) instead of an icon */
.ob-level {
    flex: none;
    min-width: 58px;
    padding: 5px 8px;
    border-radius: 8px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: .82rem;
    font-weight: 800;
    text-align: center;
}

.ob-option.is-picked .ob-level {
    background: var(--blue);
    color: var(--white);
}

.ob-bottom {
    display: flex;
    justify-content: center;
    margin: 28px 0 70px;
}

.ob-next {
    min-width: 180px;
}

.ob-next:disabled {
    background: var(--line);
    box-shadow: none;
    color: var(--muted);
    cursor: default;
}

/* the plan at the end */
.ob-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.ob-summary li {
    padding: 8px 14px;
    border-radius: 99px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-weight: 700;
    font-size: .92rem;
}

.ob-summary li span {
    margin-right: 6px;
    color: var(--muted);
    font-weight: 600;
}

.ob-rec {
    padding: clamp(22px, 4vw, 34px);
    border: 2px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 18px 40px rgba(13, 47, 130, .08);
}

.ob-rec-label {
    margin: 0 0 6px;
    color: var(--blue);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ob-rec h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.ob-rec > p:not(.ob-rec-label) {
    margin: 0 0 20px;
    color: var(--muted);
}

.ob-rec .button {
    margin-right: 14px;
}

.ob-rec-extra {
    display: inline-block;
    margin-top: 12px;
    color: var(--blue);
    font-weight: 700;
}

.ob-daily {
    margin: 18px 0 0;
    color: var(--muted);
    font-weight: 600;
}

.ob-save {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--soft, #f6f8fb);
}

.ob-save p {
    margin: 0;
}

.ob-save a {
    color: var(--blue);
    font-weight: 700;
}

.ob-small {
    margin-top: 4px !important;
    color: var(--muted);
    font-size: .88rem;
}

.ob-links {
    margin: 22px 0 60px;
    color: var(--muted);
}

.ob-links a {
    color: var(--blue);
    font-weight: 700;
}

.ob-redo {
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 640px) {
    .ob-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .ob-speaker img {
        width: 56px;
        height: 56px;
    }

    .ob-next {
        width: 100%;
    }
}

/* get-started questions: Nawee blue + yellow */
.ob-section {
    background: linear-gradient(180deg, var(--blue-soft) 0, rgba(255, 255, 255, 0) 260px);
}

.ob-progress span {
    position: relative;
    background: var(--blue);
    box-shadow: inset -14px 0 0 var(--yellow); /* yellow tip on the blue bar */
}

.ob-speaker img {
    border: 3px solid var(--yellow);
}

.ob-bubble {
    border-color: var(--blue);
    color: var(--blue-dark);
}

.ob-bubble::before {
    border-color: var(--blue);
}

.ob-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff6d6;
    font-size: 1.6rem;
}

.ob-option:hover {
    border-color: var(--blue);
    background: var(--white);
}

.ob-option.is-picked {
    border-color: var(--blue);
    background: var(--blue-soft);
    box-shadow: inset 5px 0 0 var(--yellow), 0 6px 16px rgba(13, 47, 130, .12);
}

.ob-option.is-picked .ob-icon {
    background: var(--yellow);
}

.ob-level {
    background: var(--blue);
    color: var(--white);
}

.ob-option.is-picked .ob-level {
    background: var(--yellow);
    color: var(--blue-dark);
}

.ob-next:not(:disabled) {
    box-shadow: 0 5px 0 var(--yellow);
}

.ob-next:not(:disabled):hover {
    transform: translateY(-1px);
}

/* the plan */
.ob-summary li {
    background: var(--blue);
    color: var(--white);
}

.ob-summary li span {
    color: var(--yellow);
}

.ob-rec {
    border: 2px solid var(--blue);
    border-top: 8px solid var(--yellow);
}

.ob-rec-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--yellow);
    color: var(--blue-dark);
}

.ob-rec .button {
    box-shadow: 0 5px 0 var(--yellow);
}

.ob-save {
    border-left: 5px solid var(--yellow);
    background: var(--blue-soft);
}

/* account page: the learner's plan from the get-started questions */
.account-plan {
    margin: 26px 0 8px;
    padding: 20px 22px;
    border-left: 5px solid var(--yellow);
    border-radius: 14px;
    background: var(--blue-soft);
}

.account-plan .lesson-h {
    margin-top: 0;
}

.account-plan .ob-summary {
    margin-bottom: 12px;
}

.account-plan a {
    color: var(--blue);
    font-weight: 700;
}

/* homepage "Did you know?" strip (facts.js): low key, one fact at a time */
.facts {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(36px, 5vw, 56px) 16px;
    text-align: center;
}

.facts-label {
    display: inline-block;
    margin: 0 0 14px;
    padding: 4px 12px;
    border-radius: 99px;
    background: var(--yellow);
    color: var(--blue-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.facts-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.facts-text {
    flex: 1;
    min-height: 3.2em;
    margin: 0;
    display: grid;
    place-items: center;
    color: var(--blue-dark);
    font-family: var(--display);
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    line-height: 1.4;
}

.facts-text.is-in {
    animation: facts-in .6s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .facts-text.is-in { animation: none; }
}

@keyframes facts-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.facts-arrow {
    flex: none;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--blue);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s, border-color .2s;
}

.facts-arrow:hover,
.facts-arrow:focus-visible {
    border-color: var(--blue);
    opacity: 1;
}

.facts-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.facts-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: background .2s, width .2s;
}

.facts-dots button[aria-current="true"] {
    width: 18px;
    border-radius: 99px;
    background: var(--blue);
}

/* footer: the navigation links in two columns, so the links form three columns with the legal links */
footer {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, .7fr);
}

footer .footer-links {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 10px 36px;
    align-items: start;
}

footer .footer-links .footer-heading {
    grid-column: 1 / -1;
}

@media (max-width: 760px) {
    footer {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }

    footer .footer-links {
        gap: 10px 24px;
    }
}

@media (max-width: 420px) {
    footer .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
    }
}

/* footer navigation: read down the first column, then the second (7 links → 4 + 3) */
footer .footer-links {
    grid-template-rows: auto repeat(4, auto);
    grid-auto-flow: column;
}

footer .footer-links .footer-heading {
    grid-row: 1;
}

@media (max-width: 560px) {
    footer {
        column-gap: 16px;
    }

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

    footer .footer-links a,
    footer .footer-legal a {
        min-width: 0;
        font-size: .82rem;
        overflow-wrap: anywhere;
    }

    footer .footer-links,
    footer .footer-legal {
        min-width: 0;
    }
}

/* picture cards: traffic-light progress for the whole topic (green = mastered, yellow = practiced, red = last answer wrong, grey = new) */
.vc-progress {
    margin: 4px 0 18px;
}

.vc-bar {
    display: flex;
    height: 16px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--line);
}

.vc-bar span {
    height: 100%;
    transition: width .5s cubic-bezier(.22, 1, .36, 1);
}

.vc-bar-green,
.vc-dot-green { background: #1e9e5a; }
.vc-bar-yellow,
.vc-dot-yellow { background: var(--yellow); }
.vc-bar-red,
.vc-dot-red { background: #d64545; }
.vc-bar-grey,
.vc-dot-grey { background: #d5dbe5; }

.vc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: .88rem;
}

.vc-legend li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vc-legend strong {
    color: var(--ink, #1c2633);
}

.vc-dot {
    display: inline-block;
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.vc-item {
    position: relative;
}

.vc-item > .vc-dot {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* picture cards overview: one card per topic with its bar */
.vc-overall {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--blue-soft);
}

.vc-overall-label {
    margin: 0 0 8px;
    color: var(--blue-dark);
    font-weight: 700;
}

.vc-topics {
    display: grid;
    gap: 14px;
    margin: 22px 0;
}

.vc-topic {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}

.vc-topic:hover {
    border-color: var(--blue);
    box-shadow: 0 10px 24px rgba(13, 47, 130, .08);
}

.vc-topic img {
    width: 100%;
    border-radius: 12px;
}

.vc-topic h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.vc-topic-meta {
    margin: 0 0 2px;
    color: var(--blue);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.vc-topic .vc-legend {
    font-size: .8rem;
}

.vc-topic-go {
    display: inline-block;
    margin-top: 10px;
    color: var(--blue);
    font-weight: 700;
}

@media (max-width: 560px) {
    .vc-topic {
        grid-template-columns: 1fr;
    }

    .vc-topic img {
        max-width: 220px;
    }
}

/* =========================
   Reading practice (lesen.html / reading.html, reading.js)
   ========================= */
.rd-group {
    margin: 28px 0 12px;
    font-size: 1.35rem;
}

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

.rd-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}

.rd-card:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 20px rgba(13, 47, 130, .08);
}

.rd-card.is-done {
    border-left: 5px solid #1e9e5a;
}

.rd-card-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff6d6;
    font-size: 1.7rem;
}

.rd-card-body {
    display: grid;
    gap: 2px;
}

.rd-card-meta {
    color: var(--blue);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rd-card strong {
    color: var(--blue-dark);
    font-size: 1.1rem;
}

.rd-card-status {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 600;
}

.rd-card.is-done .rd-card-status {
    color: #1e7a48;
}

.rd-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 8px 0 4px;
}

.rd-slow {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
}

.rd-text {
    margin: 18px 0;
    color: var(--ink, #1c2633);
    font-size: 1.2rem;
    line-height: 1.75;
}

.rd-text p {
    margin: 0 0 16px;
}

.rd-s {
    border-radius: 6px;
    transition: background .2s;
}

.rd-s.is-reading {
    background: #fff1bf;
    box-shadow: 0 0 0 3px #fff1bf;
}

.rd-word {
    padding: 0;
    border: 0;
    border-bottom: 2px dotted var(--blue);
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.rd-word:hover,
.rd-word.is-open {
    color: var(--blue);
    border-bottom-style: solid;
}

.rd-gloss {
    display: inline-block;
    margin: 4px 0 4px 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--blue-dark);
    color: var(--white);
    font-size: .9rem;
    line-height: 1.4;
}

.rd-gloss strong {
    color: var(--yellow);
}

.rd-source {
    color: var(--muted);
    font-size: .88rem;
}

.rd-source a {
    color: var(--blue);
    font-weight: 600;
}

.rd-section {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.rd-section h2 {
    margin: 0 0 14px;
    font-size: 1.4rem;
}

.rd-q {
    margin-bottom: 18px;
}

.rd-q-text {
    margin: 0 0 8px;
    font-weight: 700;
}

.rd-options {
    display: grid;
    gap: 8px;
}

.rd-option {
    padding: 11px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink, #1c2633);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.rd-option:hover:not(:disabled) {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.rd-option:disabled {
    cursor: default;
}

.rd-option.is-right {
    border-color: #1e9e5a;
    background: #e3f5ea;
    color: #145c36;
}

.rd-option.is-wrong {
    border-color: #e5a3a3;
    background: #fdf0f0;
    color: #8f2f2f;
}

.rd-fb {
    margin: 6px 0 0;
    font-weight: 700;
}

.rd-fb.is-right { color: #145c36; }
.rd-fb.is-wrong { color: #8f2f2f; }

.rd-result {
    padding: 12px 16px;
    border-radius: 12px;
    background: #e3f5ea;
    color: #145c36;
    font-weight: 700;
}

.rd-speak-q {
    margin: 0 0 6px;
    color: var(--blue-dark);
    font-size: 1.15rem;
    font-weight: 700;
}

.rd-model {
    padding: 12px 16px;
    border-left: 4px solid var(--yellow);
    border-radius: 8px;
    background: var(--blue-soft);
    font-style: italic;
}

.rd-next {
    margin-top: 26px;
}

/* =========================
   Account overview (dashboard, account.js): courses, level, activity, today, picture cards
   ========================= */
.dash-hello {
    margin: 0 0 6px;
    font-size: clamp(2rem, 5vw, 3rem);
}

.dash-hello span {
    color: var(--blue); /* was light grey – David wanted the greeting more emphasized */
    font-weight: 700;
}

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 18px;
    margin: 22px 0 18px;
}

.dash-main,
.dash-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

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

.dash-card {
    padding: 20px;
    border: 1.5px solid var(--line);
    border-radius: 22px;
    background: var(--white);
}

.dash-h {
    margin: 0 0 14px;
    color: var(--blue-dark);
    font-size: 1.25rem;
}

.dash-feature {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(13, 47, 130, .25);
    transition: transform .15s;
}

.dash-feature:hover {
    transform: translateY(-2px);
}

.dash-feature-tag {
    justify-self: start;
    padding: 2px 10px;
    border-radius: 99px;
    background: var(--yellow);
    color: var(--blue-dark);
    font-size: .75rem;
    font-weight: 800;
}

.dash-feature strong {
    font-size: 1.15rem;
}

.dash-feature .dash-bar {
    background: rgba(255, 255, 255, .25);
}

.dash-feature .dash-bar span {
    background: var(--yellow);
}

.dash-feature-foot {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    font-weight: 700;
    opacity: .9;
}

.dash-bar {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--blue-soft);
}

.dash-bar span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--blue);
}

.dash-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f6f8fc;
    color: var(--ink, #1c2633);
    font-weight: 600;
    text-decoration: none;
}

.dash-row + .dash-row {
    margin-top: 8px;
}

.dash-row:hover {
    background: var(--blue-soft);
}

.dash-row-count {
    color: var(--muted);
    font-size: .85rem;
}

.dash-big {
    margin: 0;
    color: var(--blue-dark);
    font-family: var(--display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.dash-sub {
    margin: 6px 0 10px;
    color: var(--muted);
    font-size: .88rem;
}

.dash-level .account-plan {
    margin: 10px 0;
    padding: 12px 14px;
}

.dash-level .account-plan .lesson-h {
    display: none;
}

.dash-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--blue);
    font-weight: 700;
}

.dash-streak {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 12px;
}

.dash-streak strong {
    color: var(--blue-dark);
    font-family: var(--display);
    font-size: 3rem;
    line-height: 1;
}

.dash-streak span {
    color: var(--muted);
    font-weight: 600;
}

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

.dash-day {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 10px;
    background: #f1f3f7;
    color: #9aa6b8;
    font-size: .8rem;
    font-weight: 700;
}

.dash-day.is-on {
    background: var(--blue);
    color: var(--yellow);
    font-size: 1rem;
}

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

.dash-task {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    color: var(--ink, #1c2633);
    font-weight: 700;
    text-decoration: none;
}

.dash-task + .dash-task {
    border-top: 1px solid var(--line);
}

.dash-task:hover .dash-task-text {
    color: var(--blue);
}

.dash-task-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff6d6;
    font-size: 1.2rem;
}

.dash-task-text small {
    display: block;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
}

.dash-task-min {
    padding: 4px 10px;
    border-radius: 8px;
    background: #f1f3f7;
    color: var(--blue-dark);
    font-size: .85rem;
}

.dash-go {
    width: 100%;
    margin-top: 14px;
    text-align: center;
}

.dash .trophy-cabinet {
    margin-top: 0;
}

@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .dash-pair {
        grid-template-columns: minmax(0, 1fr);
    }

    .dash-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dash-row .dash-bar {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

/* the account card gets wider and a soft background when it shows the overview */
.assessment-card.account-card:has(.dash) {
    max-width: 1120px;
    background: #f6f8fc;
}

.dash-level .ob-summary {
    gap: 6px;
}

.dash-level .ob-summary li {
    padding: 4px 10px;
    font-size: .8rem;
}

/* phones: today's tasks and the streak first */
@media (max-width: 900px) {
    .dash-side {
        order: -1;
    }
}

/* footer navigation now has 9 links: 5 + 4 */
footer .footer-links {
    grid-template-rows: auto repeat(5, auto);
}

/* =========================
   Typing games (spiele.html / games.html, games.js)
   ========================= */
.gm-tiles {
    display: grid;
    gap: 14px;
    margin: 22px 0;
}

.gm-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1.5px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}

.gm-tile:hover {
    border-color: var(--blue);
    box-shadow: 0 10px 24px rgba(13, 47, 130, .1);
    transform: translateY(-2px);
}

.gm-tile-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    font-size: 2rem;
}

.gm-tile-body {
    display: grid;
    gap: 4px;
    color: var(--muted);
}

.gm-tile-body strong {
    color: var(--blue-dark);
    font-size: 1.25rem;
}

.gm-tile-best {
    color: var(--blue);
    font-weight: 700;
    font-size: .9rem;
}

.gm-tile-go {
    color: var(--blue);
    font-weight: 800;
}

.gm-label {
    margin: 18px 0 8px;
    color: var(--blue-dark);
    font-weight: 700;
}

.gm-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gm-choice {
    display: grid;
    gap: 2px;
    padding: 10px 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.gm-choice small {
    color: var(--muted);
    font-weight: 600;
}

.gm-choice.is-on {
    border-color: var(--blue);
    background: var(--blue-soft);
    box-shadow: inset 0 -4px 0 var(--yellow);
}

.gm-start {
    margin: 22px 0 8px;
}

.gm-best {
    color: var(--blue-dark);
}

.gm-track {
    display: grid;
    gap: 8px;
    margin: 12px 0 16px;
    padding: 14px;
    border-radius: 16px;
    background: #2f3b4f;
}

.gm-lane {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}

.gm-road {
    position: relative;
    height: 34px;
    border-bottom: 2px dashed rgba(255, 255, 255, .35);
}

.gm-car {
    position: absolute;
    left: 0;
    bottom: 0;
    font-size: 1.7rem;
    line-height: 1;
    transform: scaleX(-1);
    transition: left .15s linear;
}

.gm-flag {
    position: absolute;
    right: 0;
    bottom: 2px;
    font-size: 1.3rem;
}

.gm-lane:first-child .gm-name {
    color: var(--yellow);
}

.gm-count {
    margin: 0 0 8px;
    color: var(--blue);
    font-weight: 800;
    font-size: 1.1rem;
}

.gm-text {
    padding: 16px 18px;
    border-radius: 14px;
    background: #f6f8fc;
    color: #8a94a6;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 1.1rem;
    line-height: 1.7;
}

.gm-done {
    color: #1e7a48;
}

.gm-wrong {
    background: #f8c9c9;
    color: #8f2f2f;
}

.gm-cur {
    border-bottom: 3px solid var(--blue);
    color: var(--blue-dark);
}

.gm-from {
    margin: 6px 0 12px;
    color: var(--muted);
    font-size: .85rem;
}

.gm-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--blue);
    border-radius: 14px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 1.15rem;
    outline: none;
}

.gm-input:focus {
    box-shadow: 0 0 0 4px rgba(245, 197, 66, .45);
}

.gm-input:disabled {
    border-color: var(--line);
    background: #f6f8fc;
}

.gm-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 14px;
    color: var(--muted);
    font-weight: 600;
}

.gm-stats strong {
    color: var(--blue-dark);
    font-size: 1.4rem;
}

.gm-result,
.gm-over {
    width: 100%;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--blue-soft);
    border-left: 5px solid var(--yellow);
    color: var(--ink, #1c2633);
}

.gm-place {
    margin: 0 0 6px;
    color: var(--blue-dark);
    font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 700;
}

.gm-new {
    color: #1e7a48;
    font-weight: 800;
}

.gm-hud {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--blue-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.gm-sky {
    position: relative;
    height: 380px;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, #0d2f82 0%, #1554c0 70%, #3d7be0 100%);
    transition: box-shadow .2s;
}

.gm-sky.is-hit {
    box-shadow: inset 0 0 0 6px #d64545;
}

.gm-ground {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 30px;
    background: repeating-linear-gradient(90deg, #f5c542 0 20px, #e9b52f 20px 40px);
}

.gm-drop {
    position: absolute;
    padding: 6px 12px;
    border-radius: 99px;
    background: #fff;
    color: var(--blue-dark);
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .2);
}

.gm-drop.is-match {
    background: var(--yellow);
}

.gm-drop.is-pop {
    animation: gm-pop .3s ease forwards;
}

@keyframes gm-pop {
    to { opacity: 0; transform: scale(1.6); }
}

.gm-over {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(90%, 360px);
    text-align: center;
    transform: translate(-50%, -50%);
}

.gm-missed {
    color: var(--muted);
    font-size: .9rem;
}

@media (max-width: 560px) {
    .gm-tile {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .gm-tile-go {
        display: none;
    }

    .gm-sky {
        height: 300px;
    }
}

/* typing race: word meanings after the race */
.gm-words {
    margin-top: 16px;
    padding: 18px 20px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.gm-words h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.gm-words dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin: 0;
}

.gm-words dl > div {
    padding: 8px 12px;
    border-radius: 10px;
    background: #f6f8fc;
    color: var(--muted);
}

.gm-words dl > div.is-typed {
    background: var(--blue-soft);
    box-shadow: inset 4px 0 0 var(--yellow);
}

.gm-words dt {
    color: var(--blue-dark);
    font-weight: 800;
}

.gm-words dd {
    margin: 2px 0 0;
    font-size: .92rem;
}

.gm-read {
    display: inline-block;
    margin-top: 12px;
    color: var(--blue);
    font-weight: 700;
}

@media (max-width: 560px) {
    .gm-words dl {
        grid-template-columns: minmax(0, 1fr);
    }
}

.gm-stats > .gm-words {
    flex-basis: 100%;
}

/* Word & Meaning */
.gm-def {
    display: grid;
    gap: 12px;
}

.gm-def-count {
    margin: 0;
    color: var(--blue);
    font-weight: 800;
}

.gm-def-bar span {
    transition: width .3s ease;
}

.gm-def-img {
    justify-self: center;
    width: min(220px, 60vw);
    border-radius: 16px;
}

.gm-def-line {
    font-size: 1.25rem;
    text-align: center;
}

.gm-def-de {
    min-height: 1.5em;
    margin: 0;
    color: #1e7a48;
    font-weight: 700;
    text-align: center;
}

.gm-say {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 0;
    border-radius: 99px;
    background: var(--blue);
    color: var(--white);
    font: inherit;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--yellow);
}

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

/* support page (unterstuetzen.html / support.html) */
.support {
    max-width: 880px;
    margin: 0 auto;
}

.support h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.support-thanks {
    padding: 14px 18px;
    border-left: 5px solid var(--yellow);
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue-dark);
}

.support-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.support-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.support-list li span {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff6d6;
    font-size: 1.2rem;
}

.support-list a {
    color: var(--blue);
}

.support-box {
    margin: 24px 0 14px;
    padding: 22px;
    border: 2px solid var(--blue);
    border-top: 8px solid var(--yellow);
    border-radius: 20px;
    background: var(--white);
    text-align: center;
}

.support-box [hidden] {
    display: none;
}

.support-box .button {
    box-shadow: 0 5px 0 var(--yellow);
}

.support-small {
    color: var(--muted);
    font-size: .88rem;
}

.support-small a {
    color: var(--blue);
}

.support-h {
    margin-top: 34px;
    font-size: 1.5rem;
}

/* support page: the three planned projects the money goes to */
.support-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0 10px;
}

.support-project {
    padding: 20px 18px;
    border: 1px solid #dbe5f5;
    border-top: 5px solid var(--yellow);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(13, 47, 130, .07);
}

.support-project-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff6d6;
    font-size: 1.5rem;
}

.support-badge {
    display: inline-block;
    margin: 12px 0 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.support-project h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.support-project p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.support-running {
    margin-top: 8px;
}

@media (max-width: 760px) {
    .support-projects {
        grid-template-columns: 1fr;
    }
}

/* account overview: finished tasks keep their place with a green check */
.dash-task.is-done .dash-task-text {
    color: var(--muted);
}

.dash-task.is-done .dash-task-icon {
    background: #e3f5ea;
}

.dash-task-check {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1e9e5a;
    color: #fff;
    font-weight: 800;
}

.dash-alldone {
    margin: 14px 0 0;
    padding: 12px;
    border-radius: 12px;
    background: #e3f5ea;
    color: #145c36;
    font-weight: 800;
    text-align: center;
}

/* =========================
   Seasonal: fall theme on the homepage (seasonal.js adds .theme-fall from Sept 22 to Nov 30)
   ========================= */
.theme-fall .hero {
    position: relative;
    background:
        radial-gradient(circle at 12% 0%, rgba(242, 177, 52, .22), transparent 45%),
        radial-gradient(circle at 92% 20%, rgba(212, 87, 42, .14), transparent 40%),
        linear-gradient(180deg, #fffaf2 0%, #fff 100%);
}

.theme-fall .hero > :not(.fall-leaves):not(.hw-layer) {
    position: relative;
    z-index: 1;
}

.fall-leaves {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.fall-leaf {
    position: absolute;
    top: -40px;
    width: var(--size, 24px);
    height: var(--size, 24px);
    opacity: .85;
}

.fall-leaf svg {
    width: 100%;
    height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    .fall-leaf {
        animation: leaf-fall var(--dur, 12s) linear var(--delay, 0s) infinite;
    }

    .fall-leaf svg {
        animation: leaf-sway calc(var(--dur, 12s) / 4) ease-in-out var(--delay, 0s) infinite alternate;
    }
}

@keyframes leaf-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    8% { opacity: .85; }
    90% { opacity: .85; }
    100% { transform: translateY(var(--fall, 640px)) rotate(calc(var(--spin, 1) * 300deg)); opacity: 0; }
}

@keyframes leaf-sway {
    from { transform: translateX(calc(var(--sway, 30px) * -1)); }
    to { transform: translateX(var(--sway, 30px)); }
}

/* warm accents */
.theme-fall .hero-copy h1 mark.hl {
    --yellow: #e8892b;
}

.theme-fall .path-chooser {
    border-top: 6px solid #e8892b;
}

/* hero subtext: bigger, darker, easier to read (and clear of the fall leaves) */
.hero-copy .hero-text {
    max-width: 560px;
    color: var(--blue-dark);
    font-size: clamp(1.08rem, 1.6vw, 1.22rem);
    font-weight: 600;
    line-height: 1.6;
}

.theme-fall .hero-copy .hero-text {
    padding: 14px 18px;
    border-left: 4px solid #e8892b;
    border-radius: 14px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 24px rgba(184, 69, 42, .08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.theme-fall .fall-leaf {
    opacity: .7;
}

/* Halloween (seasonal.js adds .theme-halloween Oct 25–31): bats, a waving skeleton, pumpkins among the leaves, word chips */
.theme-halloween .hero {
    background:
        radial-gradient(circle at 12% 0%, rgba(242, 140, 46, .24), transparent 45%),
        radial-gradient(circle at 90% 18%, rgba(124, 77, 191, .14), transparent 42%),
        linear-gradient(180deg, #fff7ee 0%, #fff 100%);
}

.theme-halloween .path-chooser {
    border-top-color: #f08c2e;
    box-shadow: 0 -2px 0 #7c4dbf inset, 0 18px 40px rgba(13, 47, 130, .1);
}

.hw-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.hw-bat {
    position: absolute;
    left: -60px;
    width: var(--size, 40px);
    color: #4a3a6b;
}

.hw-bat svg {
    display: block;
    width: 100%;
    fill: currentColor;
}

.hw-wing {
    transform-box: fill-box;
    transform-origin: center;
}

.hw-skeleton {
    position: absolute;
    top: 0;
    right: 4%;
    width: 58px;
    transform-origin: 50% 0;
}

.hw-skeleton svg {
    display: block;
    width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    .hw-bat {
        animation: bat-fly 16s linear var(--delay, 0s) infinite;
    }

    .hw-wing {
        animation: bat-flap .32s ease-in-out infinite alternate;
    }

    .hw-skeleton {
        animation: skeleton-swing 3.2s ease-in-out infinite alternate;
    }
}

@keyframes bat-fly {
    0% { transform: translate(0, 0); }
    25% { transform: translate(30vw, -26px); }
    50% { transform: translate(60vw, 18px); }
    75% { transform: translate(90vw, -14px); }
    100% { transform: translate(calc(100vw + 120px), 10px); }
}

@keyframes bat-flap {
    from { transform: scaleY(1); }
    to { transform: scaleY(.35); }
}

@keyframes skeleton-swing {
    from { transform: rotate(-7deg); }
    to { transform: rotate(7deg); }
}

.hw-words {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 560px;
    margin: 14px 0 4px;
}

.hw-words p {
    flex-basis: 100%;
    margin: 0 0 2px;
    color: var(--blue-dark);
    font-weight: 600;
}

.hw-words p strong {
    color: #c4621a;
}

.hw-words button {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 7px 12px;
    border: 1.5px solid #f2b47a;
    border-radius: 999px;
    background: #fff4e8;
    color: var(--blue-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hw-words button:hover,
.hw-words button:focus-visible {
    border-color: #7c4dbf;
    background: #f6efff;
}

.hw-words small {
    color: var(--muted);
    font-weight: 500;
}

@media (max-width: 700px) {
    .hw-skeleton {
        width: 34px;
        right: 2%;
    }
}

/* footer navigation: 13 links (incl. reviews, support, app) → 7 + 6 */
footer .footer-links {
    grid-template-rows: auto repeat(7, auto);
}

/* =========================
   Learn on your own (selbst-lernen.html / learn-on-your-own.html)
   ========================= */
.ss {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) 16px 48px;
}

.ss-hero h1 {
    font-size: clamp(2rem, 5vw, 3.1rem);
}

.ss-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.ss-toc a {
    padding: 7px 14px;
    border-radius: 99px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
}

.ss-toc a:hover {
    background: var(--blue);
    color: var(--white);
}

.ss-block {
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 90px;
}

.ss-block h2 {
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.ss-block h2 span {
    margin-right: 6px;
}

.ss-block > p,
.ss-list li,
.ss-steps li {
    font-size: 1.06rem;
    line-height: 1.7;
}

.ss-video {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    aspect-ratio: 16 / 9;
    margin: 6px 0 20px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--white);
    text-align: center;
}

.ss-video-play {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    font-size: 1.6rem;
}

.ss-video-soon {
    padding: 3px 12px;
    border-radius: 99px;
    background: var(--yellow);
    color: var(--blue-dark);
    font-size: .8rem;
    font-weight: 800;
}

.ss-video-text {
    max-width: 480px;
    opacity: .9;
}

.ss-steps,
.ss-list {
    display: grid;
    gap: 8px;
    padding-left: 22px;
}

.ss-tip {
    padding: 14px 18px;
    border-left: 4px solid var(--yellow);
    border-radius: 12px;
    background: var(--blue-soft);
}

.ss-tip a,
.ss-moments a {
    color: var(--blue);
    font-weight: 700;
}

.ss-two,
.ss-moments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.ss-two > div,
.ss-moments > div {
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.ss-two h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.ss-two p {
    margin: 0;
    color: var(--muted);
}

.ss-moments strong {
    display: block;
    margin-bottom: 4px;
    color: var(--blue-dark);
}

.ss-prompt {
    position: relative;
    margin: 12px 0;
    padding: 14px 16px 14px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #f6f8fc;
}

.ss-prompt-label {
    margin: 0 0 4px;
    color: var(--blue);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ss-prompt-text {
    margin: 0 0 10px;
    padding-right: 6px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: .95rem;
    line-height: 1.6;
}

.ss-copy {
    padding: 6px 14px;
    border: 0;
    border-radius: 99px;
    background: var(--blue);
    color: var(--white);
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
}

.ss-cta {
    margin-top: 48px;
}

@media (max-width: 560px) {
    .ss-two,
    .ss-moments {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ss-block h2 {
    word-spacing: normal;
    letter-spacing: -.01em;
}

.ss-hero h1 {
    margin-bottom: 18px;
}

/* placeholder until the video is recorded (real videos: 16:9) */
.ss-video {
    aspect-ratio: 21 / 9;
}

/* Rhyme Time */
.gm-rhyme {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 26px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, var(--blue-soft), #fff);
    text-align: center;
}

.gm-rhyme-bar {
    justify-self: stretch;
    height: 10px;
}

.gm-rhyme-bar span {
    background: var(--yellow);
    transition: width .1s linear;
}

.gm-rhyme-word {
    padding: 14px 30px;
    border: 0;
    border-radius: 22px;
    background: var(--blue);
    color: var(--white);
    font-family: var(--display);
    font-size: clamp(2.6rem, 9vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    box-shadow: 0 6px 0 var(--yellow);
}

.gm-rhyme-label {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .8rem;
}

.gm-rhyme-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gm-rhyme-chip {
    padding: 8px 16px;
    border: 1.5px solid var(--line);
    border-radius: 99px;
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

.gm-rhyme-chip:hover {
    border-color: var(--blue);
    background: #fff6d6;
}

.gm-rhyme-task {
    max-width: 480px;
    margin: 6px 0 0;
    color: var(--blue-dark);
    font-weight: 600;
}

.gm-rhyme-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gm-rhyme-count {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.gm-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
    font-size: .9rem;
}

.gm-volume input {
    accent-color: var(--blue);
}

/* lesson dialogue: background sounds on/off */
.sl-ambience {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
}

.sl-ambience input {
    accent-color: var(--blue);
}

/* combined "Über Nawee" page: mission → who's behind it → our path */
.mission-after {
    padding-top: 0;
}

/* picture cards: personal "weakest words" deck */
.vc-weak {
    grid-template-columns: 70px minmax(0, 1fr);
    margin-top: 22px;
    border: 2px solid #d64545;
    background: linear-gradient(135deg, #fff, #fdf0f0);
}

.vc-weak-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #fdf0f0;
    font-size: 2rem;
}

.vc-weak-text {
    margin: 0 0 10px;
    color: var(--muted);
}

/* logged-in stats line in the top bar */
.cb-stats {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    margin-right: 12px;
}

.cb-stats strong {
    color: var(--yellow);
}

.cb-fact {
    opacity: .9;
}

@media (max-width: 760px) {
    .cb-fact {
        display: none;
    }
}

/* =========================
   Live web seminar (webseminar.html / web-seminar.html, webinar.js) + account card
   ========================= */
.wb {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) 16px 48px;
}

.wb h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 18px;
}

.wb h1:has(+ .wb-sub) {
    margin-bottom: 6px;
}

.wb-sub {
    margin: 0 0 20px;
    font-size: clamp(1.15rem, 2.6vw, 1.45rem);
    font-weight: 600;
    color: var(--muted);
}

.wb h2 {
    margin-top: 36px;
    font-size: 1.6rem;
}

.wb-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.wb-facts li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--blue-dark);
}

.wb-facts span {
    font-size: 1.3rem;
}

.wb-box {
    margin: 22px 0;
    padding: 22px;
    border: 2px solid var(--blue);
    border-top: 8px solid var(--yellow);
    border-radius: 20px;
    background: var(--white);
}

.wb-box p {
    margin: 0 0 12px;
}

.wb-seats {
    color: var(--blue-dark);
    font-weight: 800;
}

.wb-seats.is-full {
    color: #8f2f2f;
}

.wb-in {
    color: #1e7a48;
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 700;
}

.wb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.wb-cancel {
    margin-top: 14px;
    color: var(--muted);
}

.wb-msg {
    color: #8f2f2f;
    font-weight: 700;
}

.wb-list,
.wb-steps {
    display: grid;
    gap: 10px;
    padding-left: 22px;
    font-size: 1.06rem;
    line-height: 1.6;
}

.wb-note {
    margin-top: 26px;
    color: var(--muted);
    font-size: .92rem;
}

.wb-note a {
    color: var(--blue);
}

.dash-webinar {
    margin-bottom: 18px;
    border: 2px solid var(--blue);
    border-left: 8px solid var(--yellow);
}

.dash-webinar-tag {
    margin: 0 0 4px;
    color: var(--blue);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
}

@media (max-width: 560px) {
    .wb-facts {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Word & Meaning: tap a word to hear it */
.gm-def-line {
    cursor: pointer;
}

.gm-def-hint {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
}

.gm-say-word,
.gm-say-def {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gm-say-word {
    color: var(--blue-dark);
    font-weight: 800;
}

.gm-say-def:hover,
.gm-say-word:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* "Über Nawee": quiet pointer to David's paid lessons/coaching on davidnawee.com */
.hire-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin: 30px 0 10px;
    padding: 22px;
    border-left: 5px solid var(--yellow);
    border-radius: 18px;
    background: var(--blue-soft);
}

.hire-box img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.hire-box h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}

.hire-box p {
    margin: 0 0 10px;
}

.hire-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hire-links a {
    padding: 8px 16px;
    border: 1.5px solid var(--blue);
    border-radius: 99px;
    background: var(--white);
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.hire-links a:hover {
    background: var(--blue);
    color: var(--white);
}

.hire-note {
    color: var(--muted);
    font-size: .88rem;
}

@media (max-width: 560px) {
    .hire-box {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* language switch lives in the footer now; the header ends with "My account" */
@media (min-width: 901px) {
    .site-header nav > .language-switch {
        display: none;
    }
}

.footer-lang {
    margin: 0 0 8px;
    font-weight: 700;
}

.footer-lang a {
    color: inherit;
    opacity: .75;
    text-decoration: none;
}

.footer-lang a[aria-current="true"] {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* header, logged in: username with an initial badge (replaces "Log in" / "Create account") */
.site-header nav > a.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 5px;
    border: 1.5px solid var(--line);
    border-radius: 99px;
    background: var(--white);
    color: var(--blue-dark);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}

.site-header nav > a.nav-user:hover,
.site-header nav > a.nav-user[aria-current="page"] {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-soft);
}

.nav-user-badge {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    box-shadow: inset 0 -3px 0 var(--yellow);
    font-weight: 800;
}

.nav-user-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .site-header nav > a.nav-user {
        display: inline-flex;
    }
}

@media (max-width: 420px) {
    .nav-user-name {
        display: none;
    }

    .site-header nav > a.nav-user {
        padding-right: 5px;
    }
}

/* homepage hero tile: simple start (logged out) / progress (logged in, hero-tile.js) */
.path-chooser-lead {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.path-start {
    display: block;
    width: 100%;
    text-align: center;
}

.path-login {
    display: block;
    margin-top: 12px;
    color: var(--blue);
    font-weight: 700;
    text-align: center;
}

.ht-hello {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--blue-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.ht-streak {
    padding: 4px 12px;
    border-radius: 99px;
    background: #fff6d6;
    font-size: .9rem;
}

.ht-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    margin-bottom: 12px;
    color: var(--ink, #1c2633);
    font-weight: 700;
    text-decoration: none;
}

.ht-row:hover .ht-label {
    color: var(--blue);
}

.ht-count {
    color: var(--muted);
    font-size: .9rem;
}

.ht-bar {
    grid-column: 1 / -1;
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--blue-soft);
}

.ht-bar span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--blue);
}

.path-chooser.is-progress .path-start {
    margin-top: 6px;
}

/* header profile menu (logged in) */
.nav-user-wrap {
    position: relative;
}

.site-header nav .nav-user-wrap > .nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border: 1.5px solid var(--line);
    border-radius: 99px;
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.nav-user:hover,
.nav-user[aria-expanded="true"],
.nav-user.is-current {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-soft);
}

.nav-user-caret {
    color: var(--muted);
    font-size: .75rem;
}

.nav-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    width: 270px;
    padding: 16px;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 18px 40px rgba(13, 47, 130, .16);
    text-align: left;
}

.num-name {
    margin: 0 0 10px;
    color: var(--blue-dark);
    font-weight: 800;
}

.num-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.num-stats li {
    display: grid;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.num-stats strong {
    color: var(--blue-dark);
    font-size: .95rem;
}

.site-header nav .nav-user-menu a {
    display: block;
    padding: 10px 4px;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.site-header nav .nav-user-menu .num-link {
    color: var(--blue);
}

.site-header nav .nav-user-menu .num-logout {
    border-top: 1px solid var(--line);
    color: #8f2f2f;
}

@media (max-width: 420px) {
    .nav-user-caret {
        display: none;
    }
}

/* =========================
   Homepage carousel under the hero (carousel.js)
   ========================= */
.carousel {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 8px;
    overflow: hidden;
}

.cs-track {
    display: flex;
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
    touch-action: pan-y;
}

@media (prefers-reduced-motion: reduce) {
    .cs-track { transition: none; }
}

.cs-slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    min-height: 260px;
    padding: clamp(22px, 4vw, 40px);
    border-radius: 26px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: var(--white);
    box-sizing: border-box;
}

.cs-tag {
    margin: 0 0 8px;
    color: var(--yellow);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.cs-copy h2 {
    margin: 0 0 10px;
    color: var(--white);
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

.cs-copy p:not(.cs-tag) {
    margin: 0 0 18px;
    opacity: .92;
    line-height: 1.6;
}

.cs-copy .button {
    background: var(--white);
    color: var(--blue-dark);
    box-shadow: 0 5px 0 var(--yellow);
}

.cs-visual {
    display: grid;
    place-items: center;
    min-height: 180px;
}

.cs-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.cs-arrow {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--blue);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.cs-arrow:hover {
    border-color: var(--blue);
}

.cs-dots {
    display: flex;
    gap: 6px;
}

.cs-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: var(--line);
    cursor: pointer;
    transition: width .2s, background .2s;
}

.cs-dots button[aria-current="true"] {
    width: 22px;
    background: var(--blue);
}

/* slide visuals */
.cs-date {
    display: grid;
    justify-items: center;
    width: 130px;
    padding: 14px 0 12px;
    border-radius: 20px;
    background: var(--white);
    color: var(--blue-dark);
    box-shadow: 0 8px 0 var(--yellow);
}

.cs-date span { color: #d64545; font-weight: 800; letter-spacing: .1em; }
.cs-date strong { font-family: var(--display); font-size: 3.2rem; line-height: 1; }
.cs-date em { font-style: normal; font-weight: 700; color: var(--muted); }

.cs-seats {
    display: grid;
    justify-items: center;
    margin-top: 14px;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.cs-seats small { font-size: .85rem; letter-spacing: 0; opacity: .9; }

.cs-chat {
    position: relative;
    display: grid;
    gap: 8px;
    width: min(300px, 100%);
}

.cs-chat p {
    margin: 0;
    padding: 10px 14px;
    border-radius: 16px;
    background: var(--white);
    color: var(--blue-dark);
    font-weight: 600;
    font-size: .95rem;
}

.cs-chat .b { border-bottom-left-radius: 4px; }
.cs-chat .t { justify-self: end; border-bottom-right-radius: 4px; background: var(--yellow); }

.cs-play {
    position: absolute;
    right: -12px;
    top: -14px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--blue-dark);
}

.cs-card {
    display: grid;
    justify-items: center;
    gap: 6px;
    width: 220px;
    padding: 12px;
    border-radius: 20px;
    background: var(--white);
    color: var(--blue-dark);
}

.cs-card img { width: 100%; border-radius: 14px; }
.cs-card strong { font-size: 1.3rem; }
.cs-bar { display: flex; width: 100%; height: 10px; overflow: hidden; border-radius: 99px; background: #d5dbe5; }
.cs-bar i { height: 100%; }

.cs-news {
    width: min(300px, 100%);
    padding: 18px;
    border-radius: 18px;
    background: var(--white);
    color: var(--blue-dark);
}

.cs-news small { color: var(--blue); font-weight: 800; letter-spacing: .08em; }
.cs-news strong { display: block; margin: 6px 0; font-family: var(--display); font-size: 1.3rem; }
.cs-news p { margin: 0; color: var(--muted); }
.cs-news u { text-decoration-style: dotted; text-decoration-color: var(--blue); color: var(--ink, #1c2633); }

.cs-race {
    display: grid;
    gap: 6px;
    width: min(320px, 100%);
    padding: 12px;
    border-radius: 16px;
    background: #2f3b4f;
}

.cs-race p {
    position: relative;
    height: 30px;
    margin: 0;
    border-bottom: 2px dashed rgba(255, 255, 255, .35);
}

.cs-race span { font-size: .8rem; font-weight: 700; }
.cs-race i { position: absolute; bottom: 0; font-style: normal; font-size: 1.4rem; transform: scaleX(-1); }

.cs-icons {
    display: grid;
    grid-template-columns: repeat(3, 64px);
    gap: 12px;
}

.cs-icons span {
    display: grid;
    place-items: center;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .15);
    font-size: 1.8rem;
}

@media (max-width: 700px) {
    .cs-slide {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .cs-visual {
        order: -1;
        min-height: 0;
    }
}

/* carousel: exactly one slide visible */
.carousel {
    width: min(1100px, calc(100% - 32px));
    margin: 20px auto 8px;
    padding: 0;
    overflow: visible;
}

.cs-viewport {
    overflow: hidden;
    border-radius: 26px;
}

.cs-slide {
    min-width: 0;
    overflow: hidden;
}

/* =========================
   History of English (geschichte-englisch.html / history-of-english.html)
   ========================= */
.hx {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) 16px 48px;
}

.hx h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 18px;
}

.hx-tip {
    padding: 14px 18px;
    border-left: 4px solid var(--yellow);
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-weight: 600;
}

.hx-timeline {
    position: relative;
    margin: 34px 0;
    padding: 0;
    list-style: none;
}

.hx-timeline::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 118px;
    width: 4px;
    border-radius: 99px;
    background: linear-gradient(var(--blue), var(--yellow));
}

.hx-era {
    position: relative;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 40px;
    margin-bottom: 22px;
}

.hx-era::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 112px;
    width: 16px;
    height: 16px;
    border: 4px solid var(--white);
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 2px var(--blue);
}

.hx-year {
    margin: 12px 0 0;
    color: var(--blue);
    font-weight: 800;
    text-align: right;
}

.hx-card {
    padding: 18px 20px;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}

.hx-card h2 {
    margin: 2px 0 8px;
    font-size: 1.35rem;
}

.hx-card > p {
    margin: 0 0 10px;
    line-height: 1.65;
}

.hx-from {
    color: var(--muted);
    font-size: .82rem;
    letter-spacing: .04em;
}

.hx-from strong {
    padding: 2px 8px;
    border-radius: 99px;
    background: #fff6d6;
    color: var(--blue-dark);
}

.hx-quote {
    padding: 8px 12px;
    border-left: 3px solid var(--blue);
    color: var(--blue-dark);
    font-family: var(--display);
    font-style: italic;
}

.hx-words {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hx-word {
    padding: 6px 12px;
    border: 1.5px solid var(--line);
    border-radius: 99px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hx-word:hover {
    border-color: var(--blue);
    background: #fff6d6;
}

.rd-special {
    margin-top: 22px;
    border: 2px solid var(--yellow);
}

@media (max-width: 640px) {
    .hx-timeline::before {
        left: 8px;
    }

    .hx-era {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding-left: 30px;
    }

    .hx-era::before {
        top: 2px;
        left: 2px;
    }

    .hx-year {
        margin: 0;
        text-align: left;
    }
}

/* carousel: "who's behind Nawee" slide */
.cs-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}

.cs-link2 {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-underline-offset: 4px;
}

.cs-david {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.cs-david img {
    width: 170px;
    height: 170px;
    border: 5px solid var(--white);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 0 var(--yellow), 0 18px 40px rgba(0, 0, 0, .25);
}

.cs-david span {
    padding: 4px 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .15);
    font-size: 1.1rem;
}

/* header language switch (compact) */
.site-header nav > a.nav-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1.5px solid var(--line);
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.site-header nav > a.nav-lang:hover {
    border-color: var(--blue);
    color: var(--blue);
}

@media (max-width: 900px) {
    .site-header nav > a.nav-lang {
        display: none;
    }
}

/* keep menu items on one line; tighter spacing on mid-size screens */
.site-header nav > a {
    white-space: nowrap;
}

@media (min-width: 901px) and (max-width: 1150px) {
    .site-header nav {
        gap: 16px;
    }

    .site-header nav > a:not(.nav-cta):not(.nav-lang) {
        font-size: .78rem;
        letter-spacing: .08em;
    }
}

/* History of English: horizontal timeline (history.js) */
.hx-slider {
    margin: 30px 0 10px;
}

.hx-years {
    position: relative;
    display: flex;
    gap: 6px;
    padding: 6px 2px 14px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.hx-years::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 22px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--yellow));
    min-width: 100%;
}

.hx-dot {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 88px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

.hx-dot::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-top: 7px;
    border: 4px solid var(--white);
    border-radius: 50%;
    background: var(--line);
    box-shadow: 0 0 0 2px var(--line);
    transition: background .2s, box-shadow .2s, transform .2s;
}

.hx-dot.is-past::before {
    background: var(--blue);
    box-shadow: 0 0 0 2px var(--blue);
}

.hx-dot[aria-selected="true"] {
    color: var(--blue-dark);
}

.hx-dot[aria-selected="true"]::before {
    background: var(--yellow);
    box-shadow: 0 0 0 3px var(--blue);
    transform: scale(1.3);
}

.hx-dot span {
    white-space: nowrap;
}

.hx-timeline.is-slider {
    margin: 10px 0 0;
}

.hx-timeline.is-slider::before {
    display: none;
}

.hx-timeline.is-slider .hx-era {
    display: block;
    margin: 0;
}

.hx-timeline.is-slider .hx-era::before {
    display: none;
}

.hx-timeline.is-slider .hx-year {
    margin: 0 0 8px;
    color: var(--blue);
    font-family: var(--display);
    font-size: 2.2rem;
    text-align: left;
}

.hx-timeline.is-slider .hx-card {
    min-height: 300px;
    padding: 24px 26px;
    border-top: 6px solid var(--yellow);
    box-shadow: 0 14px 34px rgba(13, 47, 130, .08);
}

.hx-card.is-in {
    animation: hx-in .4s ease both;
}

@keyframes hx-in {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hx-card.is-in { animation: none; }
}

.hx-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.hx-arrow {
    padding: 10px 18px;
    border: 1.5px solid var(--blue);
    border-radius: 99px;
    background: var(--white);
    color: var(--blue);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.hx-arrow:hover:not(:disabled) {
    background: var(--blue);
    color: var(--white);
}

.hx-arrow:disabled {
    border-color: var(--line);
    color: var(--line);
    cursor: default;
}

.hx-count {
    color: var(--muted);
    font-weight: 700;
}

.hx-timeline.is-slider .hx-era[hidden] {
    display: none;
}

.hx-timeline.is-slider .hx-era {
    padding-left: 0;
}

/* header language dropdown "🌐 DE ▾" – always the last item on the right (desktop) */
@media (min-width: 901px) {
    .site-header nav > .language-switch {
        display: block;
    }
}

.site-header .language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1.5px solid var(--line);
    border-radius: 99px;
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    cursor: pointer;
}

.site-header .language-toggle:hover,
.site-header .language-toggle[aria-expanded="true"] {
    border-color: var(--blue);
    color: var(--blue);
}

.lang-caret {
    color: var(--muted);
    font-size: .7rem;
}

.hx-words-label {
    margin: 14px 0 8px !important;
    color: var(--blue-dark);
    font-size: .9rem;
    font-weight: 700;
}

/* history words: word + meaning on the button */
.hx-word {
    display: grid;
    justify-items: start;
    gap: 2px;
    border-radius: 14px;
    text-align: left;
}

.hx-word small {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
}

/* history words: meaning hidden until hover (computer) or tap (phone) – guess first */
.hx-word {
    position: relative;
}

.hx-word small {
    transition: opacity .2s;
}

.hx-word:not(.is-shown) small {
    opacity: 0;
}

.hx-word:not(.is-shown)::after {
    content: "?";
    position: absolute;
    left: 12px;
    bottom: 6px;
    color: var(--blue);
    font-weight: 800;
    font-size: .8rem;
    transition: opacity .2s;
}

@media (hover: hover) {
    .hx-word:hover small,
    .hx-word:focus-visible small {
        opacity: 1;
    }

    .hx-word:hover::after,
    .hx-word:focus-visible::after {
        opacity: 0;
    }
}

.hx-hint {
    margin: -2px 0 10px;
    color: var(--muted);
    font-size: .82rem;
}

/* Rhyme Time: links to instrumentals on YouTube (links only, no embeds) */
.gm-yt {
    margin: 10px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--blue-soft);
}

.gm-yt p {
    margin: 0 0 8px;
}

.gm-yt-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gm-yt-links a {
    padding: 6px 14px;
    border: 1.5px solid var(--blue);
    border-radius: 99px;
    background: var(--white);
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.gm-yt-links a:hover {
    background: var(--blue);
    color: var(--white);
}

.gm-yt-note {
    margin: 0 !important;
    color: var(--muted);
    font-size: .85rem;
}

/* Rhyme Time: beat player bar */
.gm-player {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    width: min(100%, 560px);
    margin-top: 8px;
    padding: 10px 16px;
    border-radius: 99px;
    background: var(--blue-dark);
    color: var(--white);
}

.gm-pl-btn,
.gm-pl-play {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

.gm-pl-btn {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .12);
    color: var(--white);
}

.gm-pl-play {
    width: 44px;
    height: 44px;
    background: var(--yellow);
    color: var(--blue-dark);
    font-size: 1.1rem;
}

.gm-pl-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.gm-pl-info small {
    opacity: .75;
}

.gm-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.gm-eq i {
    width: 3px;
    height: 4px;
    border-radius: 2px;
    background: var(--yellow);
}

@media (prefers-reduced-motion: no-preference) {
    .gm-player.is-playing .gm-eq i { animation: gm-eq .8s ease-in-out infinite alternate; }
    .gm-player.is-playing .gm-eq i:nth-child(2) { animation-delay: .2s; }
    .gm-player.is-playing .gm-eq i:nth-child(3) { animation-delay: .4s; }
    .gm-player.is-playing .gm-eq i:nth-child(4) { animation-delay: .1s; }
}

@keyframes gm-eq {
    from { height: 4px; }
    to { height: 16px; }
}

.gm-pl-vol {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gm-pl-vol input {
    width: 90px;
    accent-color: var(--yellow);
}

/* Rhyme Time: memorable rhyme line */
.gm-rhyme-line {
    display: grid;
    gap: 2px;
    max-width: 520px;
    padding: 12px 18px;
    border: 0;
    border-left: 5px solid var(--yellow);
    border-radius: 14px;
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    font-family: var(--display);
    font-size: 1.2rem;
    font-style: italic;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(13, 47, 130, .08);
}

.gm-rhyme-line small {
    color: var(--blue);
    font-family: var(--sans, inherit);
    font-size: .75rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Rhyme Time: meaning under each rhyme word, hidden until hover (computer) or tap (phone) */
.gm-rhyme-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.gm-rhyme-chip small {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 600;
    transition: opacity .2s, max-height .2s;
}

.gm-rhyme-chip.is-shown small {
    max-height: 3em;
    opacity: 1;
}

@media (hover: hover) {
    .gm-rhyme-chip:hover small,
    .gm-rhyme-chip:focus-visible small {
        max-height: 3em;
        opacity: 1;
    }
}

/* Sentence Detective (games.js ?g=parts): mark the word classes in a sentence */
.gm-parts {
    max-width: 760px;
    margin-top: 18px;
    padding: 24px;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}

.gm-pt-steps {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}

.gm-pt-steps span {
    flex: 1;
    height: 8px;
    border-radius: 99px;
    background: var(--line);
}

.gm-pt-steps .is-done { background: #1e9e5a; }
.gm-pt-steps .is-on { background: var(--blue); }

.gm-pt-task {
    margin: 0 0 4px;
    color: var(--blue-dark);
    font-size: 1.25rem;
}

.gm-pt-hint {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: .95rem;
}

.gm-pt-sentence {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 6px;
    margin: 0 0 20px;
}

.gm-pt-word {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 12px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.gm-pt-word:hover { border-color: var(--blue); }
.gm-pt-word[aria-pressed="true"] { border-color: var(--blue); background: #fff1b8; }
.gm-pt-word.is-right { border-color: #1e9e5a; background: #dff5e8; }
.gm-pt-word.is-wrong { border-color: #d64545; background: #fde3e3; }
.gm-pt-word.is-missed { border: 2px dashed #d64545; background: var(--white); }

.gm-pt-punct {
    align-self: center;
    margin-left: -4px;
    color: var(--blue-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.gm-pt-feedback { min-height: 1.5em; margin: 14px 0 0; font-weight: 600; }
.gm-pt-feedback.is-ok { color: #1e7a48; }
.gm-pt-feedback.is-no { color: var(--blue-dark); }

.gm-pt-key { padding: 1px 6px; border: 2px solid; border-radius: 6px; }
.gm-pt-key.is-right { border-color: #1e9e5a; background: #dff5e8; }
.gm-pt-key.is-wrong { border-color: #d64545; background: #fde3e3; }
.gm-pt-key.is-missed { border-style: dashed; border-color: #d64545; }

/* breakdown: one color per word class */
.gm-pt-word small { color: var(--blue-dark); font-size: .7rem; font-weight: 700; opacity: .75; }
.gm-pt-word.is-n, .gm-pt-legend .is-n { border-color: #3b7dd8; background: #e3eefc; }
.gm-pt-word.is-v, .gm-pt-legend .is-v { border-color: #d64545; background: #fde3e3; }
.gm-pt-word.is-adj, .gm-pt-legend .is-adj { border-color: #1e9e5a; background: #dff5e8; }
.gm-pt-word.is-adv, .gm-pt-legend .is-adv { border-color: #8a5cd6; background: #efe6fc; }
.gm-pt-word.is-pr, .gm-pt-legend .is-pr { border-color: #e08a1e; background: #fdeedb; }
.gm-pt-word.is-d, .gm-pt-legend .is-d { border-color: #7a8699; background: #eef0f4; }
.gm-pt-word.is-prep, .gm-pt-legend .is-prep { border-color: #1c9aa0; background: #dcf3f4; }
.gm-pt-word.is-conj, .gm-pt-legend .is-conj { border-color: #c94f9b; background: #fbe4f2; }

.gm-pt-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.gm-pt-legend li {
    padding: 4px 10px;
    border: 2px solid;
    border-radius: 99px;
    color: var(--blue-dark);
    font-size: .9rem;
    font-weight: 600;
}

.gm-pt-legend em { font-weight: 400; }

.gm-pt-score { margin: 0 0 16px; color: var(--blue-dark); font-weight: 700; }

@media (max-width: 560px) {
    .gm-parts { padding: 16px; }
    .gm-pt-word, .gm-pt-punct { font-size: 1.1rem; }
    .gm-pt-word { padding: 5px 9px; }
}

/* Lernen page: Business English course (coming soon, .learn-be*) under the two course cards */
.learn-be {
    max-width: 1100px;
    margin: 20px auto 0;
    border-style: dashed;
    border-width: 2px;
}

.learn-be-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.learn-be-badge {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--blue-dark);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.learn-be-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 14px;
    padding: 0;
    list-style: none;
}

.learn-be-list li {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-weight: 600;
}

.learn-be .text-link {
    align-self: flex-start;
}

/* account dashboard: personal coaching with David (davidnawee.com) */
.dash-coach {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.dash-coach-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.dash-coach .dash-h {
    margin-bottom: 6px;
}

.dash-coach p:last-child {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 700px) {
    .dash-coach {
        grid-template-columns: auto 1fr;
    }

    .dash-coach .button {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

/* carousel: "learn with David" slide visual */
.cs-coach {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 28px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(15, 40, 90, .12);
    text-align: center;
}

.cs-coach img {
    width: 96px;
    height: 96px;
    margin-bottom: 8px;
    border: 4px solid var(--yellow);
    border-radius: 50%;
    object-fit: cover;
}

.cs-coach strong {
    color: var(--blue-dark);
    font-size: 1.1rem;
}

.cs-coach small {
    color: var(--muted);
}

.cs-coach span {
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: .8rem;
    font-weight: 700;
}

/* THEME BUTTON (sun/moon) – added to the header by script.js */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--blue-dark);
    cursor: pointer;
    flex: none;
    transition: transform .2s, border-color .2s;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    transform: rotate(-15deg);
    border-color: var(--blue);
}

.site-header > .theme-toggle {
    margin-left: auto;
}

/* web seminar sign-up: which language can you follow? */
.wb-lang { border: 0; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.wb-lang legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.wb-lang label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; }
.wb-lang input[type="text"] { flex: 1; min-width: 160px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--white); color: var(--ink); }

/* ENGLISH BY LEVEL (levels.js) – Khan-Academy-style map: levels left, themes with % right */
.lv-box { max-width: 1080px; margin: 0 auto; }
.lv-map { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(11, 46, 131, .08); }
.lv-levels { list-style: none; margin: 0; padding: 12px; border-right: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.lv-levels button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; text-align: left; padding: 12px 14px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.lv-levels button:hover { background: var(--soft); }
.lv-levels button.on { background: var(--blue-soft); }
.lv-code { grid-row: span 1; min-width: 52px; text-align: center; padding: 4px 8px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 800; font-size: .9rem; }
.lv-name { font-weight: 600; line-height: 1.3; }
.lv-pct { padding: 2px 9px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); font-weight: 700; font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lv-pct.lv-full { background: #e3f5ec; border-color: #9fd8b9; color: #17734a; }
.lv-pct.lv-soon { color: var(--muted); font-weight: 600; }
.lv-themes { padding: 18px 22px 22px; min-width: 0; }
.lv-head { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--blue-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; }
.lv-head strong { color: var(--blue-dark); letter-spacing: .02em; }
.lv-head span { color: var(--muted); font-size: .9rem; }
.lv-note { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.lv-modules { list-style: none; margin: 0; padding: 0; }
.lv-modules > li { border-bottom: 1px solid var(--line); }
.lv-module { width: 100%; display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "t m p" "b b b"; gap: 6px 12px; align-items: center; padding: 12px 4px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.lv-module:hover .lv-mtitle { color: var(--blue); }
.lv-mtitle { grid-area: t; font-size: 1.08rem; font-weight: 600; }
.lv-mmeta { grid-area: m; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.lv-module .lv-pct { grid-area: p; }
.lv-bar { grid-area: b; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.lv-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #4f8ff7); border-radius: 99px; }
.lv-lessons { list-style: none; margin: 0 0 12px; padding: 0 0 0 4px; display: grid; gap: 2px; }
.lv-lessons a, .lv-lessons .lv-later { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.lv-lessons a:hover { background: var(--soft); }
.lv-later { color: var(--muted); }
.lv-later em { font-size: .85rem; }
.lv-check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.lv-check.is-done { background: #2e9d63; border-color: #2e9d63; color: #fff; }
.lv-go { margin-left: auto; color: var(--blue); font-weight: 600; font-size: .9rem; white-space: nowrap; }
@media (max-width: 760px) {
    .lv-map { grid-template-columns: minmax(0, 1fr); }
    .lv-levels { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lv-levels button { grid-template-columns: auto 1fr; padding: 10px; }
    .lv-levels .lv-name { display: none; }
    .lv-levels .lv-pct { justify-self: end; }
    .lv-themes { padding: 14px; }
    .lv-module { grid-template-areas: "t p" "m m" "b b"; grid-template-columns: 1fr auto; }
}

/* trophy cabinet: fold / unfold (trophies.js) */
.trophy-toggle { display: block; margin: 0 auto 12px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; }
.trophy-toggle:hover { border-color: var(--blue); }

/* AVATARS (account page picker + header badge) */
.nav-user-badge.has-avatar { box-shadow: none; font-size: 1.05rem; }
.dash-top { display: flex; align-items: center; gap: 16px; }
.dash-top .dash-hello { margin: 0; }
.dash-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--white); background: var(--blue); color: var(--white); font: inherit; font-size: 1.6rem; font-weight: 800; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(11, 46, 131, .18); position: relative; transition: transform .2s; }
.dash-avatar.has-avatar { font-size: 2.1rem; }
.dash-avatar:hover { transform: scale(1.06); }
.dash-avatar::after { content: "✎"; position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: .8rem; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.avatar-picker { margin: 14px 0 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.avatar-picker-h { margin: 0 0 10px; font-weight: 700; color: var(--blue-dark); }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
.avatar-opt { width: 48px; height: 48px; border-radius: 50%; border: 2px solid transparent; font-size: 1.5rem; display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.avatar-opt:hover { transform: scale(1.1); }
.avatar-opt.is-on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.avatar-none { background: var(--blue); color: var(--white); font: inherit; font-weight: 800; }
.avatar-msg { margin: 8px 0 0; min-height: 1.2em; font-size: .9rem; color: var(--blue); font-weight: 600; }

/* Typing Race: word list under the text while racing (tap to hear) */
.gm-words-tap { margin: -6px 0 10px; color: var(--muted); font-size: .9rem; }
.gm-words-live dt button { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--blue-dark); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.gm-words-live dt button:hover { color: var(--blue); }

/* TYPING COURSE (typing.js) – finger colours, keyboard, lesson line */
:root { --f-lp: #e8a0b4; --f-lr: #f2c27b; --f-lm: #9dd49b; --f-li: #8fc1f2; --f-ri: #b9a6f0; --f-rm: #9fded8; --f-rr: #f5d48a; --f-rp: #f0a99a; --f-th: #c9d2de; }
.tk-layout { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 14px 0; font-size: .9rem; color: var(--muted); }
.tk-layout button { padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.tk-layout button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tk-modules { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.tk-module { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.tk-module.is-soon { background: var(--soft); }
.tk-mhead { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tk-mhead strong { flex: 1; font-size: 1.1rem; color: var(--blue-dark); }
.tk-module .lv-bar { display: block; margin-bottom: 8px; }
.tk-soon-list { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.tk-stars { color: #e3a008; letter-spacing: 1px; font-size: .95rem; white-space: nowrap; }
.tk-h1 { margin-bottom: 8px; }
.tk-intro { margin-bottom: 16px; }
.tk-line { margin: 10px 0 12px; padding: 16px 18px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); font: 600 1.6rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; word-break: break-word; }
.tk-line.is-wrong { border-color: #e05a5a; box-shadow: 0 0 0 3px rgba(224, 90, 90, .18); }
.tk-done { color: #2e9d63; }
.tk-cur { background: var(--yellow); color: #14213d; border-radius: 4px; padding: 0 2px; }
.tk-rest { color: var(--muted); }
.tk-words { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.tk-word { display: grid; gap: 1px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.tk-word strong { color: var(--blue-dark); }
.tk-word span { font-size: .82rem; color: var(--muted); }
.tk-word.is-now { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.tk-word.is-done { opacity: .6; }
.tk-meaning { margin: 0 0 10px; color: var(--muted); }
.tk-hear { border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--blue); font: inherit; font-weight: 700; padding: 3px 10px; cursor: pointer; margin-right: 6px; }
.tk-finger { min-height: 1.5em; margin: 0 0 8px; }
.tk-kb { display: grid; gap: 5px; justify-content: center; margin: 6px 0 14px; user-select: none; }
.tk-row { display: flex; gap: 5px; justify-content: center; }
.tk-row-1 { padding-left: 14px; } .tk-row-2 { padding-left: 34px; }
.tk-key { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; font: 700 .95rem/1 ui-monospace, Menlo, monospace; color: #14213d; border-bottom: 3px solid rgba(0, 0, 0, .14); position: relative; opacity: .8; }
.tk-key.has-bump::after { content: ""; position: absolute; bottom: 7px; width: 10px; height: 2px; border-radius: 2px; background: rgba(20, 33, 61, .55); }
.tk-key.is-next { opacity: 1; transform: translateY(-2px); box-shadow: 0 0 0 3px #14213d, 0 6px 14px rgba(0, 0, 0, .2); }
.tk-space { width: 300px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.f-lp { background: var(--f-lp); } .f-lr { background: var(--f-lr); } .f-lm { background: var(--f-lm); } .f-li { background: var(--f-li); }
.f-ri { background: var(--f-ri); } .f-rm { background: var(--f-rm); } .f-rr { background: var(--f-rr); } .f-rp { background: var(--f-rp); } .f-th { background: var(--f-th); }
[class^="f-text-"] { padding: 1px 8px; border-radius: 6px; color: #14213d; }
.f-text-lp { background: var(--f-lp); } .f-text-lr { background: var(--f-lr); } .f-text-lm { background: var(--f-lm); } .f-text-li { background: var(--f-li); }
.f-text-ri { background: var(--f-ri); } .f-text-rm { background: var(--f-rm); } .f-text-rr { background: var(--f-rr); } .f-text-rp { background: var(--f-rp); } .f-text-th { background: var(--f-th); }
.tk-input { margin-bottom: 4px; }
.tk-result { margin: 4px 0 14px; }
.gm-tile-course { border-color: var(--blue); box-shadow: inset 4px 0 0 var(--yellow); }
@media (max-width: 640px) {
    .tk-key { width: 26px; height: 32px; font-size: .75rem; border-radius: 6px; }
    .tk-row, .tk-kb { gap: 3px; } .tk-row-1 { padding-left: 8px; } .tk-row-2 { padding-left: 18px; }
    .tk-space { width: 170px; }
    .tk-line { font-size: 1.2rem; }
}

/* web seminar: step 2 – confirm date and commitment */
.wb-confirm { margin: 0 0 16px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 12px; background: var(--soft); }
.wb-confirm-h { margin: 0 0 8px; font-weight: 800; color: var(--blue-dark); }
.wb-confirm-when { margin: 0 0 12px; }
.wb-confirm-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; line-height: 1.45; }
.wb-confirm-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }

/* Typing Race tracks: mountains, park, underwater (each with an SVG scenery layer, so dark mode keeps the colours) */
.gm-track[class*="trk-"] { position: relative; overflow: hidden; }
.gm-track[class*="trk-"] .gm-name { justify-self: start; padding: 2px 8px; border-radius: 99px; background: rgba(10, 20, 40, .45); color: #fff; }
.gm-track[class*="trk-"] .gm-lane:first-child .gm-name { color: var(--yellow); }
.gm-track[class*="trk-"] .gm-road { border-bottom-color: rgba(255, 255, 255, .7); }
.gm-deco { position: absolute; bottom: 4px; font-size: 1rem; opacity: .7; pointer-events: none; }
.gm-car { z-index: 1; }
.gm-mask { position: absolute; top: -6px; left: 50%; transform: translateX(-30%); font-size: .95rem; font-style: normal; }
.trk-mountains { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80 L45 30 L80 55 L135 8 L185 50 L235 20 L295 58 L345 25 L400 52 L400 80Z' fill='%237d9cc4'/%3E%3Cpath d='M135 8 L150 22 L120 22Z M235 20 L247 31 L223 31Z M345 25 L356 35 L334 35Z' fill='%23ffffff'/%3E%3C/svg%3E") bottom / 100% 70% no-repeat, linear-gradient(#8fc0ec, #d7ecfb); }
.trk-park { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cpath d='M4 20 L6 12 L8 20 M18 20 L20 10 L22 20 M31 20 L33 13 L35 20' fill='%235fa64f'/%3E%3C/svg%3E") bottom / 40px 20px repeat-x, linear-gradient(#bfe8ff 0%, #bfe8ff 18%, #9bd486 18%, #6fb85e 100%); }
.trk-underwater { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.35'%3E%3Ccircle cx='20' cy='30' r='4'/%3E%3Ccircle cx='90' cy='15' r='3'/%3E%3Ccircle cx='60' cy='80' r='5'/%3E%3Ccircle cx='105' cy='95' r='2.5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px, linear-gradient(#0e6aa3, #063a5e); }
.gm-tracks .gm-choice { font-weight: 700; }

/* NEWSLETTER BOX (nawee.net) – what you get, a preview of an issue, optional first name */
.nl-lead { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin: 0 0 20px; }
.nl-perks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; max-width: 520px; }
.nl-perks li { display: flex; gap: 14px; align-items: flex-start; }
.nl-perks li > span { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.25rem; box-shadow: 0 4px 12px rgba(20, 33, 61, .06); }
.nl-perks strong { display: block; color: var(--blue-dark); }
.nl-perks div { color: var(--muted); line-height: 1.45; }
.nl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.nl-meta span { padding: 5px 12px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink); }
.nl-preview { margin: 0 0 22px; padding: 18px 20px; border-radius: 14px; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; border-left: 5px solid var(--yellow); box-shadow: 0 12px 28px rgba(13, 47, 130, .25); transform: rotate(-1deg); }
.nl-preview-tag { margin: 0 0 6px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; color: var(--yellow); }
.nl-preview-phrase { margin: 0 0 4px; font-family: var(--display); font-size: 1.45rem; line-height: 1.25; }
.nl-preview-de { margin: 0; font-style: italic; opacity: .85; }
.nl-form-h { margin: 0 0 12px; font-weight: 800; color: var(--blue-dark); font-size: 1.1rem; }
.newsletter-fields input[type="text"]#VORNAME { flex: 1 1 100%; padding: 14px 16px; border: 1px solid #d8e0ec; border-radius: 10px; background: #ffffff; color: var(--ink); font-family: var(--sans); font-size: 1rem; outline: none; }
.newsletter-fields input#VORNAME:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 70, 184, .1); }
.nl-status:not(.nl-status--error) { padding: 12px 14px; border-radius: 12px; background: #e6f6ee; border: 1px solid #a8dcc0; color: #17603f; font-weight: 600; }
@media (max-width: 640px) {
  .newsletter-fields input#VORNAME, .newsletter-fields input[type="email"], .newsletter-fields .button { flex: 1 1 100%; width: 100%; min-width: 0; }
  .newsletter-form { padding: 28px 20px; }
  .nl-preview { transform: none; }
}

/* newsletter confirmed page */
.nl-preview-flat { transform: none; margin: 18px 0 24px; }
.nl-start { list-style: none; margin: 10px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nl-start a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); transition: border-color .2s, transform .2s; }
.nl-start a:hover { border-color: var(--blue); transform: translateY(-2px); }
.nl-start span { grid-row: span 2; font-size: 1.6rem; }
.nl-start strong { color: var(--blue-dark); }
.nl-start small { color: var(--muted); }
@media (max-width: 640px) { .nl-start { grid-template-columns: minmax(0, 1fr); } }

/* learn page: compact top – headline, one clear call, then straight to the level map */
.learn-top { padding-top: clamp(28px, 4vw, 48px); }
.learn-top .section-heading { margin-bottom: 22px; }
.learn-top h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 8px; }
.learn-top .section-heading .learn-top-sub { margin: 0; color: var(--blue); font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
.lv-guest-note { max-width: 680px; margin: 16px auto 0; text-align: center; color: var(--muted); font-size: .95rem; }
.lv-guest-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* =========================
   Feedback box at the end of content pages (feedback.js)
   ========================= */
.fb {
    max-width: 640px;
    margin: 48px auto 24px;
    padding: 20px 22px;
    border: 1px solid #dbe5f5;
    border-radius: 18px;
    background: var(--blue-soft);
    text-align: center;
}

.fb-q {
    margin: 0 0 12px;
    color: var(--blue-dark);
    font-size: 1.08rem;
    font-weight: 700;
}

.fb-votes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.fb-votes button {
    padding: 9px 18px;
    border: 1.5px solid #c9d7ee;
    border-radius: 999px;
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.fb-votes button:hover,
.fb-votes button:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 3px 0 var(--yellow);
}

.fb-form {
    display: grid;
    gap: 8px;
    text-align: left;
}

.fb-form label {
    color: var(--blue-dark);
    font-weight: 600;
}

.fb-form textarea,
.review-form input:not([type="checkbox"]),
.review-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #c9d7ee;
    border-radius: 12px;
    background: var(--white);
    color: var(--text, #14213d);
    font: inherit;
    resize: vertical;
}

.fb-form .button {
    justify-self: start;
}

.fb-hint,
.fb-review,
.fb-sent,
.fb-error {
    margin: 0;
    font-size: .9rem;
}

.fb-hint {
    color: var(--muted);
}

.fb-review {
    margin-top: 12px;
}

.fb-review a {
    color: var(--blue);
    font-weight: 700;
}

.fb-sent {
    color: #145c36;
    font-weight: 700;
}

.fb-error {
    color: #b42318;
}

/* =========================
   Reviews (reviews.js): list, homepage strip, form
   ========================= */
.reviews {
    max-width: 880px;
    margin: 0 auto;
}

.reviews h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.review-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin: 20px 0 12px;
}

.review-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding: 20px;
    border: 1px solid #dbe5f5;
    border-left: 5px solid var(--yellow);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(13, 47, 130, .06);
}

.review-card blockquote {
    margin: 0;
    color: var(--blue-dark);
    font-size: 1.02rem;
    line-height: 1.6;
}

.review-card figcaption {
    color: var(--muted);
    font-size: .92rem;
}

.review-card figcaption strong {
    color: var(--blue-dark);
}

.review-card figcaption span {
    display: block;
    font-size: .82rem;
}

.review-empty {
    grid-column: 1 / -1;
    color: var(--muted);
}

.review-form {
    max-width: 640px;
}

.review-form fieldset {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.review-form label {
    margin-top: 6px;
    color: var(--blue-dark);
    font-weight: 600;
}

.review-form label span {
    color: var(--muted);
    font-weight: 400;
}

.review-form .review-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    line-height: 1.5;
}

.review-consent input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.review-consent a {
    color: var(--blue);
}

.review-form .button {
    justify-self: start;
    margin-top: 8px;
}

.review-form fieldset:disabled {
    opacity: .6;
}

.review-status {
    min-height: 1.2em;
    color: #145c36;
    font-weight: 700;
}

.review-status.is-error {
    color: #b42318;
}

.review-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.reviews-home {
    max-width: 1100px;
    margin: 0 auto;
}

.reviews-home .review-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.reviews-home-more {
    font-weight: 700;
}

.reviews-home-more a {
    color: var(--blue);
}

/* support page: thank-you list (names David adds in Supabase) */
.supporter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 8px;
    padding: 0;
    list-style: none;
}

.supporter-list li {
    padding: 8px 14px;
    border: 1px solid #f1dc9a;
    border-radius: 999px;
    background: #fffaf0;
    color: var(--blue-dark);
}

.supporter-list li small {
    margin-left: 4px;
    color: var(--muted);
}

.supporter-list .supporter-empty {
    border-style: dashed;
    background: transparent;
    color: var(--muted);
}

/* About page: small support line under the closing call to action */
.mission-support {
    margin: 18px 0 0;
    font-size: .95rem;
}

.mission-support a {
    font-weight: 700;
}

.account-danger summary::before {
    content: "▸ ";
}

.account-danger[open] summary::before {
    content: "▾ ";
}

/* =========================
   Nawee as an app (app.html / app-en.html; install logic in script.js)
   ========================= */
.app-page {
    max-width: 880px;
    margin: 0 auto;
}

.app-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.app-install {
    margin: 4px 0 8px;
    font-size: 1.05rem;
}

.app-installed {
    padding: 12px 16px;
    border-radius: 12px;
    background: #e3f5ea;
    color: #145c36;
    font-weight: 700;
}

.app-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.app-step {
    padding: 18px 18px 8px;
    border: 1px solid #dbe5f5;
    border-radius: 18px;
    background: var(--white);
}

.app-step.is-yours {
    border: 2px solid var(--blue);
    box-shadow: 0 0 0 4px rgba(245, 197, 66, .45);
    order: -1;
}

.app-step h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.app-step ol {
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
}

.app-step li {
    margin-bottom: 8px;
}

.app-key {
    display: inline-block;
    min-width: 1.6em;
    padding: 0 4px;
    border: 1px solid #c9d7ee;
    border-radius: 6px;
    text-align: center;
    font-size: .9em;
}

.app-tip a {
    color: var(--blue);
    font-weight: 700;
}

@media (max-width: 760px) {
    .app-steps {
        grid-template-columns: 1fr;
    }
}

.app-page [hidden] {
    display: none;
}

/* feedback box (2026-10-29): direct question + text field + send button */
.fb {
    text-align: left;
}

.fb-q {
    margin-bottom: 4px;
}

.fb-lead {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.55;
}

.fb-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.fb-actions .fb-hint {
    font-size: .85rem;
}

.fb-more {
    padding: 0;
    border: 0;
    background: none;
    color: var(--blue);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

/* =========================
   English through music (musik.html / music.html, music.js)
   ========================= */
.music-page {
    max-width: 820px;
    margin: 0 auto;
}

.music-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.music-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: mstep;
}

.music-steps li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-weight: 700;
    font-size: .92rem;
}

.mu-list {
    display: grid;
    gap: 12px;
    margin: 14px 0;
}

.mu-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #dbe5f5;
    border-left: 5px solid var(--yellow);
    border-radius: 16px;
    background: var(--white);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(13, 47, 130, .06);
    transition: transform .15s, border-color .15s;
}

.mu-card:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
}

.mu-emoji {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff6d6;
    font-size: 1.5rem;
}

.mu-emoji--big {
    width: 64px;
    height: 64px;
    font-size: 2rem;
}

.mu-card-text {
    display: grid;
    flex: 1;
}

.mu-card-text strong {
    color: var(--blue-dark);
    font-size: 1.1rem;
}

.mu-card-text span {
    color: var(--muted);
    font-size: .92rem;
}

.mu-badge {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: .8rem;
    font-weight: 800;
}

.mu-done,
.mu-done-msg {
    color: #145c36;
    font-weight: 700;
}

.mu-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
}

.mu-head h2 {
    margin: 0;
}

.mu-meta {
    margin: 2px 0 0;
    color: var(--muted);
}

.mu-intro {
    font-size: 1.05rem;
    line-height: 1.6;
}

.mu-step {
    margin: 18px 0;
    padding: 18px 20px;
    border: 1px solid #dbe5f5;
    border-radius: 18px;
    background: var(--white);
}

.mu-step h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.mu-step > p {
    margin: 0 0 12px;
    color: var(--muted);
}

.mu-hunt {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mu-chip {
    padding: 9px 14px;
    border: 1.5px solid #c9d7ee;
    border-radius: 999px;
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.mu-chip[aria-pressed="true"] {
    border-color: #2f9e5b;
    background: #e3f5ea;
    color: #145c36;
}

.mu-chip[aria-pressed="true"]::before {
    content: "✓ ";
}

.mu-count {
    min-height: 1.2em;
    margin: 10px 0 0;
    color: var(--blue-dark);
    font-weight: 700;
}

.mu-phrases,
.mu-speak {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mu-phrases li {
    padding-bottom: 12px;
    border-bottom: 1px solid #e8eef8;
}

.mu-phrases li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mu-phrase,
.mu-example {
    margin: 0;
}

.mu-phrase span {
    color: var(--muted);
}

.mu-example {
    margin-top: 6px;
    color: var(--blue-dark);
}

.mu-say {
    width: 34px;
    height: 34px;
    margin-right: 4px;
    border: 1px solid #c9d7ee;
    border-radius: 50%;
    background: var(--blue-soft);
    cursor: pointer;
    vertical-align: middle;
}

.mu-q {
    margin-bottom: 14px;
}

.mu-q > p:first-child {
    margin: 0 0 8px;
    font-weight: 700;
    color: var(--blue-dark);
}

.mu-answers {
    display: grid;
    gap: 8px;
}

.mu-answers button {
    padding: 10px 14px;
    border: 1.5px solid #c9d7ee;
    border-radius: 12px;
    background: var(--white);
    color: var(--blue-dark);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.mu-answers button.is-right {
    border-color: #2f9e5b;
    background: #e3f5ea;
    color: #145c36;
}

.mu-answers button.is-wrong {
    border-color: #d64545;
    background: #fdecec;
    color: #8c2b2b;
}

.mu-feedback {
    min-height: 1.2em;
    margin: 6px 0 0;
    font-weight: 700;
}

.mu-speak li {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue-dark);
}

.mu-finish {
    margin: 22px 0 8px;
    text-align: center;
}

.mu-note,
.music-more {
    color: var(--muted);
    font-size: .85rem;
}

/* Harvest (seasonal.js adds .theme-harvest Nov 1–30): cornucopia at the bottom right of the hero, acorns among the leaves */
.theme-harvest .hero {
    background:
        radial-gradient(circle at 12% 0%, rgba(242, 177, 52, .24), transparent 45%),
        radial-gradient(circle at 88% 90%, rgba(201, 122, 45, .16), transparent 45%),
        linear-gradient(180deg, #fff8ec 0%, #fff 100%);
}

.hv-cornucopia {
    position: absolute;
    right: 3%;
    bottom: 10px;
    width: clamp(220px, 26vw, 330px);
    filter: drop-shadow(0 10px 18px rgba(122, 74, 28, .18));
}

.hv-cornucopia svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (prefers-reduced-motion: no-preference) {
    .hv-cornucopia {
        animation: hv-sway 6s ease-in-out infinite alternate;
        transform-origin: 60% 100%;
    }
}

@keyframes hv-sway {
    from { transform: rotate(-1.5deg); }
    to { transform: rotate(1.5deg); }
}

@media (max-width: 900px) {
    .theme-harvest .hero {
        padding-bottom: 120px; /* room for the cornucopia below the start card */
    }

    .hv-cornucopia {
        width: 150px;
        right: 12px;
        bottom: 8px;
    }
}

/* Winter (seasonal.js adds .theme-winter Dec 1 – Jan 6): snow, fairy lights, Christmas tree */
.theme-winter .hero {
    position: relative;
    background:
        radial-gradient(circle at 15% 0%, rgba(77, 143, 224, .18), transparent 45%),
        radial-gradient(circle at 90% 85%, rgba(230, 57, 70, .08), transparent 40%),
        linear-gradient(180deg, #eef5ff 0%, #fff 100%);
}

.theme-winter .hero > :not(.fall-leaves):not(.hw-layer) {
    position: relative;
    z-index: 1;
}

.snow-flake svg {
    filter: drop-shadow(0 0 2px rgba(60, 110, 180, .55));
}

.theme-winter .fall-leaf {
    opacity: .85;
}

.xm-lights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
}

.xm-lights svg {
    display: block;
    width: 100%;
    height: 100%;
}

.xm-tree {
    position: absolute;
    right: 4%;
    bottom: 8px;
    width: clamp(170px, 18vw, 240px);
    filter: drop-shadow(0 10px 16px rgba(20, 40, 60, .18));
}

.xm-tree svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (prefers-reduced-motion: no-preference) {
    .xm-bulb {
        animation: xm-twinkle 1.8s ease-in-out infinite alternate;
    }

    .xm-star {
        transform-box: fill-box;
        transform-origin: center;
        animation: xm-star 2.4s ease-in-out infinite alternate;
    }
}

@keyframes xm-twinkle {
    from { opacity: 1; }
    to { opacity: .35; }
}

@keyframes xm-star {
    from { transform: scale(1); filter: drop-shadow(0 0 0 rgba(244, 197, 66, 0)); }
    to { transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(244, 197, 66, .9)); }
}

.theme-winter .hero-copy h1 mark.hl {
    --yellow: #e63946;
}

.theme-winter .path-chooser {
    border-top: 6px solid #2f7d4a;
}

@media (max-width: 900px) {
    .theme-winter .hero {
        padding-bottom: 150px; /* room for the tree below the start card */
    }

    .xm-tree {
        width: 130px;
        right: 12px;
    }
}
