/* Fonts are hosted locally (no connection to Google servers, GDPR-friendly). */
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --teal: #01a4a1;
  --green: #3c5b15;
  --blue: #0166d0;
  --sun: #e6ac27;
  --ink: #1b3a6b;
  --ink-soft: #43566a;
  --paper: #f5f9f7;
  --yellow: #83c130;
  --mint: #e8f4e0;   /* light tone of the logo green */
  --leaf: linear-gradient(135deg, #00817d 0%, #2f9a63 55%, #4f9a2a 100%);   /* both logo leaves, deep enough for white text */
  --line: #dbe5e2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #00857e; outline-offset: 6px; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; line-height: 1.7; }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -.055em; text-wrap: balance; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 14px 20px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Navigation */
.header { position: sticky; top: 0; z-index: 20; background: #f5f9f7f5; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 10px 30px #1b3a6b12; }
.nav { display: flex; justify-content: space-between; align-items: center; min-height: 144px; gap: 24px; transition: min-height .3s; }
.nav > .nav-button { margin-left: auto; } /* "Zur Startseite" on sub pages stays right, even when it wraps below the logo */
.header.scrolled .nav { min-height: 74px; }
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 3px; background: linear-gradient(90deg, #01a4a1, #83c130); transform: scaleX(0); transform-origin: left; }
.logo { display: inline-block; }
.brand { display: flex; align-items: center; }

/* New FOKUS logo (book, two leaves, letters). Each part is animated on its own. */
.logo-img { display: block; width: auto; height: 116px; transition: height .3s; }
.logo2 { height: 92px; overflow: visible; }
.header.scrolled .logo2 { height: 58px; }
.logo2 .lg-book { fill: #0166d0; }
.logo2 .lg-teal { fill: #01a4a1; }
.logo2 .lg-green { fill: #83c130; }
.logo2 .lg-letter, .logo2 .lg-lern { fill: var(--logo-text, #2f579c); }
.logo2 .lg-line { fill: #e6ac27; }
.logo2 .lg-seed { fill: #c98a1b; transform: scale(0); }
.logo2 * { transform-box: fill-box; }
.lg-book { transform-origin: 50% 100%; }
.lg-seed, .lg-seed-in { transform-origin: 50% 80%; }
.lg-sway-t, .lg-sway-t *, .lg-teal { transform-origin: 91% 100%; }
.lg-sway-g, .lg-sway-g *, .lg-green { transform-origin: 5% 100%; }
.lg-hop, .lg-letter { transform-origin: 50% 100%; }
.lg-line { transform-origin: 0 50%; }
/* Hover: the leaves rustle and the letters hop one after another. */
.lg-rustle { transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.logo:hover .lg-sway-t .lg-rustle { transform: rotate(-9deg); }
.logo:hover .lg-sway-g .lg-rustle { transform: rotate(10deg) scale(1.05); }
.logo:hover .lg-hop { animation: lg-hop .55s cubic-bezier(.34,1.56,.64,1) calc(var(--i) * .06s); }

/* Leaf from the logo: a leaf rides the progress bar, small leaves sprout at section labels. */
.progress-leaf svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4px 6px #1b3a6b33); }
.progress-leaf { position: fixed; top: 1px; left: 0; z-index: 31; width: 20px; height: 20px; margin-left: -18px; color: #83c130; pointer-events: none; }
main section:not(.hero) .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
main section:not(.hero) .eyebrow::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M16 86C10 46 40 14 88 12c3 46-28 76-72 74Z' fill='%2383c130'/%3E%3Cpath d='M20 82C38 60 56 42 80 20' fill='none' stroke='%23ffffff' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.but .eyebrow::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M16 86C10 46 40 14 88 12c3 46-28 76-72 74Z' fill='%2383c130'/%3E%3Cpath d='M20 82C38 60 56 42 80 20' fill='none' stroke='%231b3a6b' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") !important; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 15.5px; font-weight: 700; padding-block: 12px; }
.nav-links .nav-sub a { font-size: 14.5px; }
.nav-links .lang-switch a { font-size: 11px; }
.nav-links .nav-button { font-size: 14px; }
.nav-links a:not(.nav-button) { position: relative; }
.nav-links a:not(.nav-button)::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 2px; background: #00857e; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
/* Dropdown groups in the main navigation (Nachhilfe, Kurse, Projekte). */
.nav-group { position: relative; }
.nav-group-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; border: 0; background: none; color: inherit; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.nav-group-toggle svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.5; transition: transform .25s; }
.nav-group.is-open .nav-group-toggle svg { transform: rotate(180deg); }
.nav-sub { position: absolute; top: 100%; left: -16px; z-index: 30; display: grid; min-width: 250px; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px #1b3a6b18; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.nav-group.is-open .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-links .nav-sub a { padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.nav-links .nav-sub a::after { display: none; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--paper); color: #00857e; }
@media (hover: hover) and (min-width: 1251px) {
  .nav-group:hover .nav-sub { opacity: 1; visibility: visible; transform: none; }
  .nav-group:hover .nav-group-toggle svg { transform: rotate(180deg); }
}

.nav-links a, .nav-group-toggle { white-space: nowrap; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft); }
.nav-links .lang-switch a::after { display: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--ink); color: white; }
.nav-button, .primary-link, .closing a { background: var(--ink); color: white; border-radius: 6px; font-size: 13px; font-weight: 700; transition: background .2s, transform .2s; }
.nav-links .nav-button { padding: 14px 22px; }
.nav-button:hover, .primary-link:hover, .closing a:hover { background: #0166d0; transform: translateY(-2px); }
.menu-toggle { border: 1px solid var(--line); border-radius: 6px; background: transparent; padding: 11px 14px; color: var(--ink); }

/* Opening */
.hero { padding: 76px 0 96px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 76px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero-copy .eyebrow::before { content: ""; width: 25px; height: 2px; flex-shrink: 0; background: #00857e; }
h1 { font-size: clamp(58px, 6.5vw, 88px); line-height: 1.07; font-weight: 800; margin: 0 0 24px; }
h1 .accent { color: #00857e; background: linear-gradient(90deg, #01a4a1, #6fb52b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy > p { max-width: 460px; color: var(--ink-soft); font-size: 16px; line-height: 1.85; margin-bottom: 24px; }
.learning-mode { background: white; }
.learning-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; }
.learning-option { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; gap: 24px; padding: 36px; min-height: 360px; border-radius: 10px; background: var(--ink); color: white; }
.learning-option:last-child { background: #00817d; color: white; }
.learning-option img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.16,1,.3,1); }
.learning-option::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--ink) 12%, #1b3a6b00 70%); }
.learning-option:last-child::before { background: linear-gradient(to top, #00817d 12%, #2f9a6399 45%, #00817d00 72%); }
.learning-option:hover img { transform: scale(1.07); }
.learning-option p { margin: 8px 0 0; max-width: 320px; font-size: 14px; line-height: 1.6; opacity: .85; }
.learning-option small { display: block; font-size: 11px; margin-bottom: 4px; letter-spacing: .04em; }
.learning-option strong { display: block; font-family: "Manrope", sans-serif; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.learning-option svg { width: 40px; height: 40px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.headline-line { display: block; overflow: hidden; padding-bottom: .22em; margin-bottom: -.22em; }   /* room for descenders like g, ğ, y */
.headline-line > span { display: block; padding-bottom: .14em; margin-bottom: -.14em; }   /* the gradient text is painted inside this box */
.primary-link { display: inline-flex; align-items: center; gap: 32px; padding: 18px 24px; }
.primary-link span { display: inline-flex; font-size: 20px; transition: transform .2s; }
.arrow { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }
.primary-link:hover span { transform: translate(3px, -3px); }
.hero-visual { position: relative; margin: 0 0 12px; }
.hero-visual::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid #a9d8d2; border-radius: 100px 12px 12px 12px; }
.hero-visual img { position: relative; width: 100%; height: 550px; object-fit: cover; border-radius: 100px 12px 12px 12px; filter: saturate(.75); }
.photo-label { position: absolute; left: -30px; bottom: 28px; width: 205px; background: var(--leaf); color: white; padding: 25px 28px; border-radius: 6px; box-shadow: 0 16px 36px #00817d40; }
.photo-label strong { display: block; font-family: "Manrope", sans-serif; font-size: 43px; line-height: 1; letter-spacing: -.06em; }
.photo-label small { display: block; margin-top: 10px; font-size: 12px; line-height: 1.6; font-weight: 700; }

/* Summary and sections */
.intro-strip { background: var(--ink); color: white; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { padding: 30px 40px; border-right: 1px solid #ffffff30; }
.strip-item:first-child { padding-left: 0; }
.strip-item:last-child { border: 0; }
.strip-item strong { display: block; font-family: "Manrope", sans-serif; font-size: 26px; margin-bottom: 7px; letter-spacing: -.04em; }
.strip-item span { color: #b9c8d5; font-size: 12px; }
.section { padding: 100px 0; }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.section-top h2 { max-width: 740px; margin: 14px 0 0; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.16; }
.section-top > p { max-width: 290px; color: var(--ink-soft); line-height: 1.8; font-size: 14px; }
.subjects { background: white; }
.subject-list { border-top: 1px solid var(--line); }
.subject-row { position: relative; display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 0 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.subject-row::before { content: ""; position: absolute; inset: 0 -20px; z-index: -1; background: var(--paper); transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.subjects .subject-list { position: relative; z-index: 0; }
.subject-row .number { color: #697580; font-size: 12px; }
.subject-row h3 { margin: 0; font-size: clamp(25px, 3vw, 36px); font-weight: 600; transition: transform .45s cubic-bezier(.16,1,.3,1), color .3s; }
.subject-row p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.subject-row img { position: absolute; right: 30%; top: 50%; z-index: 2; width: 220px; height: 150px; object-fit: cover; border-radius: 10px; box-shadow: 0 20px 40px #1b3a6b25; opacity: 0; pointer-events: none; transform: translateY(-50%) scale(.7) rotate(-6deg); transition: opacity .3s, transform .5s cubic-bezier(.16,1,.3,1); }
.subject-row.is-active::before { transform: scaleY(1); }
.subject-row.is-active h3 { transform: translateX(16px); color: #00857e; }
.subject-row.is-active img { opacity: 1; transform: translateY(-50%) scale(1) rotate(-3deg); }
.bubble { position: absolute; right: 30%; bottom: 60%; z-index: 2; padding: 14px 20px; border-radius: 20px 20px 20px 4px; background: var(--ink); color: white; font-family: "Manrope", sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; box-shadow: 0 18px 36px #1b3a6b25; opacity: 0; pointer-events: none; transform: scale(.4) rotate(-8deg); transform-origin: bottom left; transition: opacity .25s, transform .5s cubic-bezier(.34,1.56,.64,1); }
.bubble::after { content: ""; position: absolute; left: 0; bottom: -10px; border: 10px solid transparent; border-left-color: var(--bubble, var(--ink)); border-bottom: 0; }
.subject-row:nth-child(3) .bubble { --bubble: var(--yellow); background: var(--yellow); color: var(--ink); }
.subject-row:nth-child(4) .bubble { --bubble: #00857e; background: #00857e; }
.subject-row.is-active .bubble { opacity: 1; transform: none; }
/* Real hover only: on touch screens a tapped row would otherwise stay open. */
@media (hover: hover) {
  .subject-row:hover::before { transform: scaleY(1); }
  .subject-row:hover h3 { transform: translateX(16px); color: #00857e; }
  .subject-row:hover img { opacity: 1; transform: translateY(-50%) scale(1) rotate(-3deg); }
  .subject-row:hover .bubble { opacity: 1; transform: none; }
}
.approach-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: center; }
.approach-photo img { width: 100%; height: 610px; object-fit: cover; filter: saturate(.75); border-radius: 12px 12px 100px 12px; }
.approach-copy h2 { font-size: clamp(36px, 4vw, 54px); line-height: 1.18; margin: 18px 0 24px; }
.approach-copy > p { color: var(--ink-soft); line-height: 1.85; margin-bottom: 30px; }
.feature { display: grid; grid-template-columns: 32px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.feature-number { color: #00756f; font-size: 12px; font-weight: 700; padding-top: 4px; }
.feature h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -.03em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }

/* Offers */
.pricing { background: #eaf4f1; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.price-card { background: white; padding: 36px 30px; min-height: 360px; display: flex; flex-direction: column; border: 1px solid #1b3a6b0d; border-radius: 10px; }
.price-card.highlight { background: var(--ink); color: white; border-top: 4px solid var(--yellow); padding-top: 33px; }
.price-card .category { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; color: #00756f; }
.price-card.highlight .category { color: var(--yellow); }
.price-card h3 { font-size: 25px; margin: 25px 0 14px; letter-spacing: -.04em; }
.price-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.9; margin: 0 0 26px; }
.price-card.highlight p, .price-card.highlight .price-bottom span { color: #c3d0dc; }
.price-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.price-perks p { margin: 0; padding: 22px 26px; border-radius: 10px; background: #dcefc666; border: 1px solid #83c13080; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.price-perks strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: "Manrope", sans-serif; font-size: 18px; letter-spacing: -.03em; }
.price-bottom { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.price-card.highlight .price-bottom { border-color: #ffffff35; }
.price-bottom strong { font-family: "Manrope", sans-serif; font-size: 46px; letter-spacing: -.06em; }
.price-bottom span { font-size: 12px; color: var(--ink-soft); }
.closing { background: var(--leaf); color: white; padding: 90px 0; }
.closing .eyebrow { color: white; }
main section.closing .eyebrow::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M16 86C10 46 40 14 88 12c3 46-28 76-72 74Z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.closing a { box-shadow: 0 14px 30px #0d2a2240; }
.closing { overflow: clip; }
.closing-grid { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 60px; }
.closing h2 { max-width: 780px; font-size: clamp(42px, 5.3vw, 72px); line-height: 1.12; margin: 15px 0 32px; }
.closing a { display: inline-block; padding: 18px 24px; }
.closing-photo { width: 100%; height: 340px; object-fit: cover; border-radius: 100px 12px 100px 12px; box-shadow: 0 30px 60px #0d2a2259; }

/* FAQ */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.about h1 { margin: 14px 0 36px; font-size: clamp(40px, 5vw, 64px); line-height: 1.1; }
.about h1 span { color: #00857e; }
.about-facts { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: minmax(0, 240px); gap: 14px; }
.about-facts li { padding: 22px; background: white; border: 1px solid #1b3a6b0d; border-radius: 10px; }
.about-facts strong { display: block; margin-bottom: 6px; font-family: "Manrope", sans-serif; font-size: 26px; letter-spacing: -.05em; }
.about-grid > * { min-width: 0; }
.about-facts li { min-width: 0; }
.about-facts span { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.about-parent { display: inline-flex; align-items: center; gap: 16px; padding: 16px 22px; background: var(--ink); color: #c3d0dc; border-radius: 10px; font-size: 13px; line-height: 1.45; text-decoration: none; transition: transform .3s; }
.about-parent:hover { transform: translateY(-3px); }
.about-parent img { height: 28px; width: auto; }
.about-parent strong { color: white; }
.about-copy p { margin: 0 0 22px; color: var(--ink-soft); font-size: 16px; line-height: 1.85; }
.topics-page h1 { margin: 14px 0 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.1; }
.topics { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.topics li { padding: 28px; background: white; border: 1px solid #1b3a6b0d; border-radius: 12px; }
/* The course or project picked in the menu is outlined for a moment (the page itself opens at the top). */
.topics li:target { animation: topic-picked 2.4s ease-out; }
@keyframes topic-picked { 0%, 40% { box-shadow: 0 0 0 3px var(--teal), 0 18px 40px #01a4a126; } 100% { box-shadow: 0 0 0 0 transparent; } }
.topics li > span { color: #00857e; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
/* "Coming soon" on Kurse and Projekte: squares light up one by one with a leaf in front, then start again. */
.soon { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; max-width: 760px; margin-top: 32px; padding: 22px 26px; background: white; border: 1px solid #1b3a6b0d; border-radius: 14px; }
.soon small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #00857e; }
.soon p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }
.soon-squares { position: relative; display: flex; gap: 6px; padding-right: 28px; }
.soon-squares i { width: 18px; height: 18px; border-radius: 4px; background: #1b3a6b14; transition: background .25s; }
/* Without script (or with reduced motion) eight of twelve squares are filled: not finished yet. */
.soon-squares:not(.is-running) i:nth-child(-n+8), .soon-squares i.on { background: var(--yellow); }
.soon-squares i.on { animation: square-pop .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes square-pop { from { transform: scale(.4); } }
/* A leaf from the logo moves just ahead of the last lit square. */
.soon-leaf { position: absolute; left: 0; top: 50%; width: 26px; height: 26px; margin-top: -13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M16 86C10 46 40 14 88 12c3 46-28 76-72 74Z' fill='%2383c130'/%3E%3Cpath d='M20 82C38 60 56 42 80 20' fill='none' stroke='%23ffffff' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 3px 4px #1b3a6b33); transition: translate .35s cubic-bezier(.16,1,.3,1), opacity .3s; }
.soon-squares:not(.is-running) .soon-leaf { display: none; }
.topics h2 { margin: 14px 0 8px; font-size: 22px; letter-spacing: -.03em; }
.topics p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.faq { background: white; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq .section-top { position: sticky; top: 120px; flex-direction: column; align-items: flex-start; gap: 16px; margin: 0; }
.faq .section-top > p { margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; cursor: pointer; list-style: none; font-family: "Manrope", sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--paper); font-size: 20px; transition: transform .35s, background .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq-item summary:focus-visible { outline: 3px solid #00857e; outline-offset: 4px; }
.faq-item p { margin: 0; padding: 0 56px 26px 0; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
footer { background: #132c55; color: white; padding: 48px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
footer .logo-img { height: 84px; }
/* Logo and slogan share one centre line; the slogan is wider than the logo. */
.footer-brand { display: inline-flex; flex-direction: column; align-items: center; }
.footer-slogan img { display: block; width: 210px; max-width: 100%; height: auto; margin-top: 8px; }
footer p { margin: 10px 0 0; color: #b9c8d5; font-size: 12px; line-height: 1.8; }
.footer-right { text-align: right; }
.footer-parent { margin-top: 34px; padding-top: 22px; border-top: 1px solid #ffffff1f; }
.footer-parent a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #b9c8d5; font-size: 12px; transition: color .25s; }
.footer-parent img { width: auto; height: 28px; opacity: .85; transition: opacity .25s, transform .3s; }
.footer-parent a:hover { color: white; }
.footer-parent a:hover img { opacity: 1; transform: scale(1.06); }

/* Contact details: a compact band, not a full-size section. */
.contact-info { background: white; padding: 64px 0; }
.contact-info .section-top { margin-bottom: 28px; }
.contact-info .section-top h2 { font-size: clamp(28px, 3vw, 38px); }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 18px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); transition: transform .35s, box-shadow .35s, border-color .35s; }
.info-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px #1b3a6b12; border-color: transparent; }
.info-card:hover::after { transform: scaleX(1); }
.info-icon { grid-row: span 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.info-card:hover .info-icon { transform: rotate(-10deg) scale(1.08); }
.info-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-card small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #00756f; }
.info-card strong { font-family: "Manrope", sans-serif; font-size: 18px; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
.info-note { font-size: 12px; color: var(--ink-soft); }
.info-card .route-link { font-size: 12px; }

/* Legal pages */
.header > .nav > .nav-button { padding: 14px 22px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.1; margin: 14px 0 40px; }
.legal h2 { font-size: 20px; letter-spacing: -.03em; margin: 40px 0 12px; }
.legal p { color: var(--ink-soft); font-size: 15px; line-height: 1.85; margin: 0 0 14px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-draft { padding: 14px 18px; border-left: 3px solid var(--yellow); background: #dcefc64d; font-weight: 600; margin-bottom: 40px !important; }
.legal-lead { font-size: 17px !important; color: var(--ink) !important; font-weight: 600; }
.legal-date { margin-top: 40px !important; font-size: 13px !important; }

/* Consultation */
.contact { background: #eef6f0; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.contact-copy h2 { font-size: clamp(38px, 4.3vw, 58px); line-height: 1.15; margin: 20px 0 24px; }
.contact-copy h2 span { color: #00756f; }
.contact-copy > p { color: var(--ink-soft); font-size: 16px; line-height: 1.85; max-width: 430px; }
.route-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #00756f; text-decoration: underline; text-underline-offset: 3px; }
.contact-steps { list-style: none; padding: 0; margin: 38px 0 0; }
.contact-steps li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid #d3e3dc; }
.contact-steps li > span { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--yellow); font-size: 12px; font-weight: 700; }
.contact-steps h3 { font-size: 17px; letter-spacing: -.025em; margin: 0 0 8px; }
.contact-steps p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.contact-form { min-width: 0; padding: 36px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px #1b3a6b08; }
.contact-form > h3 { margin: 0; font-size: 28px; }
.form-intro { font-size: 12px; color: var(--ink-soft); margin: 10px 0 28px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form label:not(.choice) { display: block; font-size: 12px; font-weight: 600; line-height: 1.6; margin-bottom: 20px; }
.contact-form input:not([type="checkbox"]):not([type="radio"]), .contact-form select, .contact-form textarea { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 12px; border: 1px solid #bac2c7; border-radius: 6px; font: inherit; font-size: 16px; color: var(--ink); background: #fcfcfa; transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid #00756f; outline-offset: 3px; border-color: #00756f; }
.contact-form fieldset { min-width: 0; margin: 4px 0 24px; padding: 0; border: 0; }
.contact-form legend { margin-bottom: 12px; padding: 0; font-size: 13px; font-weight: 600; line-height: 1.6; }
.choice-list { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice span { display: block; padding: 10px 13px; border: 1px solid #bac2c7; border-radius: 6px; font-size: 12px; transition: background .2s, color .2s, transform .2s; }
.choice input:checked + span { background: var(--ink); color: white; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid #00756f; outline-offset: 3px; }
.form-note { font-size: 12px; color: var(--ink-soft); line-height: 1.7; padding: 12px 14px; background: var(--paper); border-left: 3px solid var(--yellow); }
.contact-form label.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; font-size: 12px; font-weight: 500; line-height: 1.6; cursor: pointer; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.consent a, .footer-links a { text-decoration: underline; text-underline-offset: 3px; }
.footer-links a, .route-link { padding-block: 6px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.form-status:empty { display: none; }
.footer-links { display: flex; gap: 18px; justify-content: flex-end; }
.contact-form button { width: 100%; justify-content: space-between; border: 0; margin-top: 10px; }
.contact-form button:disabled { background: #dce1e4; color: #43566a; cursor: not-allowed; transform: none; }

/* Hero decoration and marquee */
.hero { position: relative; }
.hero-grid { position: relative; z-index: 1; }
/* Wide screens: a vine grows up the left edge as you read; leaves open along it. It replaces the top progress bar there. */
.vine { display: none; }
@media (min-width: 1380px) {
  .vine { position: fixed; left: 10px; top: 0; bottom: 0; z-index: 5; display: block; width: 80px; pointer-events: none; }
  .vine svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .vine-stem { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--grow, 0)); opacity: .75; }
  .vine-leaf { position: absolute; width: 24px; height: 24px; margin: -22px 0 0 -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M16 86C10 46 40 14 88 12c3 46-28 76-72 74Z' fill='%2383c130'/%3E%3Cpath d='M20 82C38 60 56 42 80 20' fill='none' stroke='%23ffffff' stroke-width='5' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(var(--r)) scale(0); transform-origin: 8% 92%; transition: transform .6s cubic-bezier(.34,1.56,.64,1); }
  .vine-leaf:nth-child(odd) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M16 86C10 46 40 14 88 12c3 46-28 76-72 74Z' fill='%2301a4a1'/%3E%3Cpath d='M20 82C38 60 56 42 80 20' fill='none' stroke='%23ffffff' stroke-width='5' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E"); }
  .vine-leaf.on { transform: rotate(var(--r)) scale(1); }
  .progress, .progress-leaf { display: none; }
}
.blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; }
.blobs span:nth-child(1) { width: 420px; height: 420px; top: -120px; right: 10%; background: #9ee0dc; }
.blobs span:nth-child(2) { width: 360px; height: 360px; bottom: -120px; left: -80px; background: #b7d3f5; }
.blobs span:nth-child(3) { width: 260px; height: 260px; top: 40%; left: 40%; background: #d6ecb8; }
.chip { position: absolute; z-index: 2; padding: 12px 18px; border-radius: 999px; background: white; box-shadow: 0 14px 30px #1b3a6b1c; font-family: "Manrope", sans-serif; font-size: 14px; font-weight: 800; white-space: nowrap; }
.chip-1 { top: 36px; right: -18px; }
.chip-2 { top: 42%; right: -34px; background: var(--ink); color: white; }
.chip-3 { top: 120px; left: -40px; }
.stamp { position: absolute; right: -36px; bottom: -36px; z-index: 3; display: grid; place-items: center; width: 140px; height: 140px; border-radius: 50%; background: var(--ink); color: white; box-shadow: 0 18px 40px #1b3a6b35; transition: transform .3s; }
.stamp:hover { transform: scale(1.08); }
.stamp svg { position: absolute; inset: 0; fill: var(--yellow); font-size: 8.6px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stamp span { font-size: 11px; font-weight: 700; text-align: center; line-height: 1.2; }
.stamp strong { display: block; font-family: "Manrope", sans-serif; font-size: 28px; letter-spacing: -.05em; }

/* Free tutoring via BuT */
.but { background: var(--ink); color: white; overflow: clip; }
.but-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.but .eyebrow { color: var(--yellow); }
.but h2 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.12; margin: 16px 0 24px; }
.but h2 span { color: var(--yellow); }
.but-copy > p { color: #c3d0dc; line-height: 1.85; max-width: 480px; margin-bottom: 32px; }
.but .primary-link { background: var(--leaf); color: white; }
.but .primary-link:hover { background: white; color: var(--ink); }
.but-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.but-steps li { display: flex; gap: 20px; padding: 24px; border: 1px solid #ffffff22; border-radius: 12px; background: #ffffff08; transition: background .3s, transform .3s; }
.but-steps li:hover { background: #ffffff14; transform: translateX(8px); }
.but-steps li > span { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 700; }
.but-steps h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.03em; }
.but-steps p { margin: 0; color: #c3d0dc; font-size: 14px; line-height: 1.7; }
.marquee { overflow: hidden; background: var(--leaf); color: white; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; }
.marquee-track span { font-family: "Manrope", sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.03em; padding-inline: 28px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; margin-left: 56px; color: #e6ac27; }

/* Entrance, scroll and hover motion; no animation library needed. */
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes float { from { translate: 0 0; } to { translate: 0 -14px; } }
@keyframes bob { from { transform: rotate(-2deg) translateY(0); } to { transform: rotate(2deg) translateY(-12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes lg-book { from { opacity: 0; transform: translateY(30%) scaleY(.2); } }
@keyframes lg-seed-drop { from { opacity: 0; transform: translateY(-260%); } }
@keyframes lg-seed { 0%, 9%, 14% { transform: scale(1); } 3% { transform: scale(1.18, .86); } 6% { transform: scale(.92, 1.1); } 19%, 88% { transform: scale(0); } 96% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes lg-grow-t { 0%, 8% { transform: scale(0) rotate(-12deg); } 18% { transform: scale(1.06) rotate(1deg); } 21%, 86% { transform: scale(1) rotate(0); } 95%, 100% { transform: scale(0) rotate(-12deg); } }
@keyframes lg-grow-g { 0%, 13% { transform: scale(0) rotate(-60deg); } 23% { transform: scale(1.07) rotate(4deg); } 26%, 84% { transform: scale(1) rotate(0); } 93%, 100% { transform: scale(0) rotate(-60deg); } }
@keyframes lg-drop { from { opacity: 0; transform: translateY(-70%) scaleY(1.2); } }
@keyframes lg-slide { from { opacity: 0; transform: translateX(-6%); } }
@keyframes lg-draw { from { transform: scaleX(0); } }
@keyframes lg-sway-t { from { transform: rotate(2deg); } to { transform: rotate(-3.5deg); } }
@keyframes lg-sway-g { from { transform: rotate(-3deg); } to { transform: rotate(5deg); } }
@keyframes lg-hop { 40% { transform: translateY(-14%); } }
@keyframes leaf-sprout { from { opacity: 0; transform: scale(0) rotate(-60deg); } 60% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes trial-in { from { opacity: 0; translate: 0 32px; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes word-in { from { transform: translateY(110%) rotate(3deg); } to { transform: none; } }
@keyframes photo-in { from { opacity: 0; clip-path: inset(0 0 100% 0 round 100px 12px 12px 12px); transform: translateY(24px); } to { opacity: 1; clip-path: inset(0 round 100px 12px 12px 12px); transform: none; } }
@keyframes label-in { from { opacity: 0; transform: translateX(-30px) rotate(-5deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > .eyebrow, .hero-copy > p, .hero-copy .primary-link { animation: fade-up .85s both; }
  .headline-line > span { animation: word-in 1s cubic-bezier(.16,1,.3,1) .15s both; }
  .headline-line:nth-child(2) > span { animation-delay: .3s; }
  .headline-line:nth-child(3) > span { animation-delay: .45s; }
  .hero-copy > p { animation-delay: .45s; }
  .hero-copy .primary-link { animation-delay: .9s; }
  /* The free trial label slides in last, like the rest of the hero (uses translate, so its hover lift still works). */
  .hero-copy .hero-trial { animation: trial-in .85s cubic-bezier(.16,1,.3,1) 1.15s both; }
  .hero-visual img { animation: photo-in 1.3s cubic-bezier(.16,1,.3,1) .2s both; }
  .photo-label { animation: label-in .9s 1s both; }
  /* Logo intro: the book opens, the stem sprouts, the leaf unfolds, the letters drop in, the line is drawn. Then the leaves sway. */
  .header .lg-book { animation: lg-book .8s cubic-bezier(.16,1,.3,1) .1s backwards; }
  /* A seed drops into the book, sprouts into the stem and both leaves, stays a while and folds back into the seed: on repeat. */
  .header .lg-seed-in { animation: lg-seed-drop .6s cubic-bezier(.34,1.56,.64,1) .3s backwards; }
  .header .lg-seed { animation: lg-seed 11s ease-in-out .6s infinite backwards; }
  .header .lg-teal { animation: lg-grow-t 11s ease-in-out .6s infinite backwards; }
  .header .lg-green { animation: lg-grow-g 11s ease-in-out .6s infinite backwards; }
  .header .lg-letter { animation: lg-drop .7s cubic-bezier(.34,1.56,.64,1) calc(.5s + var(--i) * .08s) backwards; }
  .header .lg-lern { animation: lg-slide .8s cubic-bezier(.16,1,.3,1) 1.05s backwards; }
  .header .lg-line { animation: lg-draw .9s cubic-bezier(.65,0,.35,1) 1.3s backwards; }
  .lg-sway-t { animation: lg-sway-t 4.2s ease-in-out 2s infinite alternate; }
  .lg-sway-g { animation: lg-sway-g 3.4s ease-in-out 2.2s infinite alternate; }
  /* A small leaf sprouts next to each section label as the section appears. */
  main section:not(.hero) .reveal:not(.visible) .eyebrow::before { opacity: 0; }
  main section:not(.hero) .visible .eyebrow::before { animation: leaf-sprout .9s cubic-bezier(.34,1.56,.64,1) .2s backwards; transform-origin: 15% 85%; }
  .blobs span { animation: drift 14s ease-in-out infinite alternate; }
  .blobs span:nth-child(2) { animation-duration: 18s; animation-direction: alternate-reverse; }
  .blobs span:nth-child(3) { animation-duration: 11s; }
  .chip { animation: fade-up .8s 1.2s both, float 3.5s ease-in-out 2s infinite alternate; }
  .chip-2 { animation-delay: 1.35s, 2.6s; }
  .chip-3 { animation-delay: 1.5s, 2.3s; }
  .stamp { animation: fade-up .8s 1.4s both; }
  .stamp svg { animation: spin 16s linear infinite; }
  .marquee-track { animation: marquee 32s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .faq-item[open] p { animation: fade-up .5s both; }
  .reveal { opacity: 0; transform: translateY(38px); transition: opacity .85s var(--reveal-delay, 0s), transform .85s cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0s); }
  .approach-photo.reveal { transform: translateY(38px) scale(.96); }
  .reveal.visible { opacity: 1; transform: none; }
  .info-card { transition: opacity .85s var(--reveal-delay, 0s), transform .85s cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0s), box-shadow .35s, border-color .35s; }
  .info-card.visible:hover { transition: transform .35s, box-shadow .35s, border-color .35s; }
  .price-card { transition: opacity .85s var(--reveal-delay, 0s), transform .85s cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0s), box-shadow .3s; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .price-card.visible:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px); box-shadow: 0 24px 46px #1b3a6b20; transition: transform .15s, box-shadow .3s; }
  .choice:hover span { transform: translateY(-2px); }
  .closing-photo { animation: bob 6s ease-in-out infinite alternate; }
  .contact-steps li > span { transition: transform .3s; }
  .contact-steps li:hover > span { transform: rotate(-12deg) scale(1.12); }
  .learning-option svg { transition: transform .35s; }
  .learning-option:hover svg { transform: translateY(-4px) rotate(-6deg); }
}

@media (max-width: 1050px) {
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: 40px; }
  .hero-visual img { height: 510px; }
  .approach-grid { gap: 40px; }
  .nav-links { gap: 18px; }
  .price-card { padding-inline: 22px; }
  .faq-grid { gap: 40px; }
  .about-grid { gap: 48px; }
}
@media (max-width: 1250px) {
  .logo2 { height: 80px; }
  .nav { min-height: 116px; flex-wrap: wrap; gap: 0; }
  .header.scrolled .nav { min-height: 64px; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 10px; }
  .nav-links { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 20px; }
  .js .nav-links:not(.is-open) { display: none; }
  .nav-links.is-open { animation: fade-up .35s both; }
  .nav-links a:not(.nav-button) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links a:not(.nav-button)::after { display: none; }
  .nav-links .nav-button { display: flex; justify-content: center; gap: 8px; margin-top: 18px; padding: 16px; font-size: 14px; }
  .nav-group { border-bottom: 1px solid var(--line); }
  .lang-switch { align-self: flex-start; margin-top: 18px; }
  .nav-links .lang-switch a { padding: 8px 14px; border-bottom: 0; font-size: 13px; }
  .nav-group-toggle { width: 100%; justify-content: space-between; padding: 15px 0; font-size: 16px; }
  .nav-sub { position: static; display: none; min-width: 0; padding: 0 0 10px 14px; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-group.is-open .nav-sub { display: grid; }
  .nav-links .nav-sub a { padding: 10px 0; border-bottom: 0; font-size: 15px; color: var(--ink-soft); }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 40px); }
  .logo2 { height: 72px; }
  .info-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-info { padding: 52px 0; }
  .header.scrolled .logo2 { height: 50px; }

  .hero { padding: 40px 0 56px; }
  .hero-grid, .approach-grid { grid-template-columns: 1fr; gap: 40px; }
  h1 { font-size: clamp(48px, 13vw, 76px); margin-bottom: 18px; }
  .hero-copy > p { max-width: 540px; font-size: 15px; line-height: 1.75; }
  .hero-visual { margin-right: 16px; }
  .hero-visual img { height: 360px; border-top-left-radius: 70px; }
  .hero-visual::before { inset: 16px -16px -16px 16px; border-top-left-radius: 70px; }
  .photo-label { left: 16px; bottom: 18px; width: 160px; padding: 16px 18px; }
  .photo-label strong { font-size: 32px; }
  .photo-label small { margin-top: 6px; font-size: 11px; }
  .chip { padding: 9px 14px; font-size: 12px; }
  .chip-1 { right: -8px; }
  .chip-2 { right: -12px; }
  .chip-3 { top: 96px; left: -8px; }
  .stamp { right: -8px; bottom: -24px; width: 110px; height: 110px; }
  .stamp strong { font-size: 22px; }

  .strip-item, .strip-item:first-child { padding: 20px 8px; text-align: center; }
  .strip-item strong { font-size: 18px; margin-bottom: 4px; }
  .strip-item span { font-size: 11px; }
  .marquee { padding: 12px 0; }
  .marquee-track span { font-size: 17px; padding-inline: 18px; }
  .marquee-track span::after { margin-left: 36px; }

  .section { padding: 64px 0; }
  .section-top { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 30px; }
  .section-top > p { max-width: 480px; margin: 0; }

  /* Subjects: no hover on phones, so the row in the middle of the screen becomes active (see script.js). */
  .subject-row { grid-template-columns: 44px 1fr; padding: 20px 0; }
  .subject-row::before { inset: 0 -20px; }
  .subject-row p { grid-column: 2; margin-top: 6px; }
  .subject-row p { font-size: 13px; transition: opacity .25s; }
  .subject-row:has(img) p { padding-right: 96px; }
  .subject-row img { right: 0; width: 88px; height: 66px; }
  .bubble { left: 64px; right: auto; bottom: 12px; padding: 8px 14px; font-size: 14px; border-radius: 16px 16px 16px 4px; }
  .bubble::after { bottom: -8px; border-width: 8px; }
  .subject-row:has(.bubble).is-active p { opacity: 0; }

  .approach-photo img { height: 300px; }

  .learning-options { grid-template-columns: 1fr; gap: 14px; }

  /* Price cards become a swipeable row instead of a long stack. */
  .price-grid { display: flex; gap: 14px; margin-inline: -20px; padding: 8px 20px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; }
  .price-grid::-webkit-scrollbar { display: none; }
  .price-card { flex: 0 0 78%; min-height: auto; padding: 26px 24px; scroll-snap-align: start; }
  .price-card.highlight { padding-top: 23px; }
  .price-card h3 { margin-top: 18px; }
  .price-bottom strong { font-size: 38px; }

  .but-grid { grid-template-columns: 1fr; gap: 36px; }
  .but-steps li { padding: 18px; }

  .closing { padding: 60px 0; }
  .closing-grid, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about h1 { margin-bottom: 26px; }
    .about-copy p { font-size: 15px; }
  .about-facts { gap: 10px; }
  .about-facts li { padding: 18px 16px; }
  .about-facts strong { font-size: 21px; }
  .about-facts span { hyphens: auto; }
  .soon { grid-template-columns: 1fr; gap: 14px; }
  .soon-squares { gap: 4px; }
  .soon-squares i { width: 15px; height: 15px; border-radius: 3px; }
  .closing-photo { height: 200px; border-radius: 60px 12px 60px 12px; }
  .faq .section-top { position: static; }
  .faq-item summary { padding: 20px 0; font-size: 17px; }
  .faq-item p { padding-right: 0; font-size: 14px; }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-copy > p { max-width: 600px; }
}
@media (max-width: 480px) {
  .contact-form { padding: 24px 20px; }
  .logo2 { height: 62px; }
  .menu-label { display: none; }
  .js .menu-toggle { padding: 8px 14px; font-size: 24px; line-height: 1; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .learning-option { padding: 24px; min-height: 240px; }
  .hero-copy .eyebrow { font-size: 10px; letter-spacing: .1em; }
  .subject-row { grid-template-columns: 36px 1fr; }
  .bubble { left: 56px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer-right { text-align: left; }
  .footer-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Page changes: the header stays in place while the content fades and slides (cross-document view transitions). */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .3s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: vt-in .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; } }
/* After the first page of a visit the logo skips its intro; only the seed keeps growing. */
.seen .header .lg-book, .seen .header .lg-seed-in, .seen .header .lg-letter, .seen .header .lg-lern, .seen .header .lg-line { animation: none; }

/* Headings: words slide up from under a mask, line by line (script.js splits them). */
/* Headings stay hidden until script.js has split them, so they never show first and then jump. */
@media (prefers-reduced-motion: no-preference) {
  .js main h2:not(.topics h2):not(.split), .js .about h1:not(.split), .js .topics-page h1:not(.split) { opacity: 0; }
}
.split .w, .split .w > i { display: inline-block; font-style: inherit; }
.split .w { overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split .w > i { transform: translateY(115%); transition: transform 1s cubic-bezier(.16,1,.3,1) var(--d, 0s); }
.split.lines-in .w > i { transform: none; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Free trial lesson: a pill under the hero button and a banner above the prices. */
.hero-trial { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; width: fit-content; margin-top: 22px; padding: 12px 22px 12px 12px; border-radius: 14px; background: var(--leaf); color: white; box-shadow: 0 14px 30px #00817d40; transition: transform .3s, box-shadow .3s; }
.hero-trial:hover { transform: translateY(-3px); box-shadow: 0 18px 38px #00817d55; }
.hero-trial::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, #ffffff55 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.hero-trial-badge { display: grid; place-items: center; padding: 10px 12px; border-radius: 10px; background: white; color: #00817d; font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero-trial-text strong { display: block; font-family: "Manrope", sans-serif; font-size: 19px; letter-spacing: -.03em; }
.hero-trial-text small { display: block; margin-top: 2px; font-size: 13px; color: #ffffffd9; }
.hero-trial .arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.trial-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; margin-top: 24px; padding: 26px 30px; border-radius: 14px; background: var(--leaf); color: white; box-shadow: 0 18px 40px #00817d33; }
.trial-banner h3 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.04em; }
.trial-banner p { margin: 0; color: #ffffffd9; font-size: 15px; line-height: 1.6; }
.trial-banner > div { flex: 1; }
.trial-badge { display: grid; place-items: center; width: 76px; height: 76px; flex: none; border-radius: 50%; background: white; color: #00817d; font-family: "Manrope", sans-serif; font-size: 15px; font-weight: 800; letter-spacing: -.02em; transform: rotate(-10deg); }
.trial-button { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 16px 22px; border-radius: 8px; background: white; color: var(--ink); font-size: 14px; font-weight: 700; transition: transform .2s, background .2s; }
.trial-button:hover { transform: translateY(-2px); background: var(--mint); }
.info-card strong a { color: inherit; text-decoration: none; }
.info-card strong a:hover { color: #00857e; }
@media (prefers-reduced-motion: no-preference) {
  .hero-trial::after { animation: trial-shine 4s ease-in-out 2s infinite; }
  .trial-badge { animation: trial-wobble 4s ease-in-out infinite; }
}
@keyframes trial-shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes trial-wobble { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(4deg) scale(1.05); } }
@media (max-width: 800px) {
  .trial-banner { flex-wrap: wrap; gap: 16px; padding: 22px; }
  .trial-badge { width: 60px; height: 60px; font-size: 13px; }
  .trial-banner h3 { font-size: 22px; }
  .trial-button { width: 100%; justify-content: center; }
  .hero-trial { gap: 12px; padding-right: 16px; }
  .hero-trial-text strong { font-size: 17px; }
}

/* Contract term: chosen first, before the prices. 12 months are highlighted with the 10 % discount. */
.term-choice { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; align-items: stretch; margin-bottom: 24px; }
.term-intro { align-self: center; padding-right: 12px; }
.term-step { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #00756f; }
.term-intro h3 { margin: 8px 0 8px; font-size: 26px; line-height: 1.2; letter-spacing: -.04em; }
.term-intro p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.term-option { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 26px 28px; border-radius: 14px; background: white; border: 2px solid #1b3a6b1f; }
.term-option strong { font-family: "Manrope", sans-serif; font-size: 34px; letter-spacing: -.05em; line-height: 1; }
.term-option span { color: var(--ink-soft); font-size: 14px; }
.term-best { background: var(--leaf); border-color: transparent; color: white; box-shadow: 0 18px 40px #00817d33; }
.term-best span { color: #ffffffe0; font-weight: 600; }
.term-save { position: absolute; top: -14px; right: 18px; padding: 7px 12px; border-radius: 999px; background: #e6ac27; color: var(--ink); font-family: "Manrope", sans-serif; font-size: 15px; font-style: normal; font-weight: 800; box-shadow: 0 8px 18px #e6ac2755; }
.price-year { margin: 12px 0 0 !important; padding: 8px 12px; border-radius: 8px; background: #e8f4e0; color: #1f5b3a !important; font-size: 13px !important; line-height: 1.4 !important; }
.price-year b { font-family: "Manrope", sans-serif; font-size: 15px; }
.price-card.highlight .price-year { background: #ffffff1f; color: white !important; }
@media (max-width: 1050px) {
  .term-choice { grid-template-columns: 1fr 1fr; }
  .term-intro { grid-column: 1 / -1; padding: 0; }
}
@media (max-width: 480px) {
  .term-option { padding: 20px; }
  .term-option strong { font-size: 26px; }
}

/* Homework support and further help: right after the learning concept, homework support as the large feature. */
.support { padding-top: 20px; }
.support-grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; }
.support-main { position: relative; grid-row: span 2; display: flex; align-items: flex-end; min-height: 460px; overflow: hidden; border-radius: 16px; color: white; }
.support-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.16,1,.3,1); }
.support-main:hover img { transform: scale(1.04); }
.support-main::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, #0b4f4cf2 8%, #00817daa 38%, transparent 70%); }
.support-main-copy { position: relative; z-index: 2; padding: 36px; }
.support-tag { display: inline-block; margin-bottom: 14px; padding: 7px 12px; border-radius: 999px; background: #e6ac27; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.support-main h3 { margin: 0 0 8px; font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -.05em; }
.support-main p { margin: 0 0 22px; max-width: 420px; color: #ffffffe0; font-size: 16px; line-height: 1.6; }
.support-main .primary-link { background: white; color: var(--ink); }
.support-main .primary-link:hover { background: var(--mint); }
.support-card { display: flex; flex-direction: column; justify-content: center; padding: 30px; border-radius: 16px; background: white; border: 1px solid #1b3a6b14; transition: transform .3s, box-shadow .3s; }
.support-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px #1b3a6b14; }
.support-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 12px; background: #e8f4e0; color: #00817d; }
.support-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-card h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.035em; }
.support-card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
@media (max-width: 800px) {
  .support-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 14px; }
  .support-main { grid-row: auto; min-height: 380px; }
  .support-main-copy { padding: 24px; }
  .support-main h3 { font-size: clamp(22px, 6.6vw, 32px); overflow-wrap: break-word; hyphens: auto; }
}

/* "Zentral in Darmstadt" as a readable pin on the in-person card. */
.learning-option .mode-pin { position: absolute; top: 22px; right: 22px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; background: white; color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px #0b4f4c33; }
.learning-option .mode-pin svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #00817d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Phones: the e-mail address never breaks mid-word, the two contract terms stack. */
.info-card strong a[href^="mailto:"] { overflow-wrap: normal; word-break: keep-all; }   /* may only break after the @ */
.term-option strong { white-space: nowrap; }
@media (max-width: 480px) {
  .info-card strong a[href^="mailto:"] { font-size: 15.5px; }
  .info-card { padding-inline: 18px; gap: 2px 14px; }
  .term-choice { grid-template-columns: 1fr; gap: 12px; }
  .term-option { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
}

/* Main menu items in capitals (dropdown links, language switch and the button stay as they are). */
.nav-links > a:not(.nav-button), .nav-group-toggle { text-transform: uppercase; letter-spacing: .02em; }
@media (min-width: 1251px) and (max-width: 1420px) {
  .nav-links { gap: 17px; }
  .nav-links > a:not(.nav-button), .nav-group-toggle { font-size: 13.5px; letter-spacing: 0; }
  .nav-links .nav-button { padding: 13px 15px; font-size: 13px; }
  .nav-links .lang-switch a { padding: 5px 7px; }
}
