/* Homepage only. Other pages keep site.css until they are redesigned. */
:root {
    --scale-1: #1a9850;
    --scale-2: #1a9850;
    --scale-3: #66bd63;
    --scale-4: #a6d96a;
    --scale-5: #fee08b;
    --scale-6: #fdae61;
    --scale-7: #f46d43;
    --scale-8: #d73027;
    --scale-9: #a50026;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
    color: var(--ink);
    font-family: "Inter Variable", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-feature-settings: "cv11", "ss01", "tnum" 0;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3, p, ol, dl, dd { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
section[id] { scroll-margin-top: 88px; }
[hidden] { display: none !important; }


/* Shared pieces */
.surface { background: var(--surface-2); }
.plain { background: #fff; }
.muted { color: var(--muted); }

.headline { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1.07; }
.subhead { color: var(--muted); font-size: 19px; letter-spacing: -.01em; line-height: 1.35; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--brand); }

.btn, .btn-white, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-inline: 24px;
    border-radius: var(--radius);
    font-size: 17px;
    font-weight: 500;
    transition: background-color .15s, color .15s;
}
.btn { background: var(--brand); color: #fff; }
.btn:hover { background: var(--brand-hover); }
.btn-white { background: #fff; color: var(--brand); min-height: 52px; padding-inline: 28px; font-size: 16px; }
.btn-white:hover { background: #e9f3ee; }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-large { min-height: 48px; padding-inline: 28px; }
.btn-compact { min-height: 42px; font-size: 14px; }
.btn.is-disabled { background: var(--line); color: var(--ink); cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(10, 92, 51, .35); outline-offset: 2px; }

.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 500; color: var(--brand); }
.link-more::after { content: "›"; font-size: 1.2em; line-height: 1; }
.link-more:hover { text-decoration: underline; }
.link-small { font-size: 14px; }

.action-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; }

.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; background: var(--line); color: #fff; overflow: hidden; }
.avatar-64 { width: 64px; height: 64px; }
.avatar-44 { width: 44px; height: 44px; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero { background: #fff; }
.hero-text { display: flex; flex-direction: column; align-items: center; padding-top: 80px; text-align: center; }
.hero-title { max-width: 16ch; font-size: 48px; }
.hero-lead { max-width: 40ch; margin-top: 24px; }
.hero-actions { margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.hero-sheet-wrap { position: relative; width: 100%; max-width: 1000px; margin: 56px auto 0; padding-inline: 16px; }
.hero-fade { position: absolute; inset: auto 0 0 0; z-index: 10; height: 160px; pointer-events: none; background: linear-gradient(to top, #fff, transparent); }
.hero-sheet-frame { overflow: hidden; border-radius: 12px 12px 0 0; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .35); }

/* Quick check */
.check-pad { padding-block: 80px; }
.check-card { overflow: hidden; border-radius: 28px; background: #fff; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .05); }
.check-grid { display: grid; }
.check-form { display: flex; flex-direction: column; gap: 24px; padding: 28px; }
.check-title { margin-top: 8px; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field-label { font-size: 15px; font-weight: 500; }
.input { width: 100%; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10, 92, 51, .15); }
.check-year { min-height: 60px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.check-year::placeholder { color: #8e8e93; font-weight: 600; }
.we-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.we-button { min-height: 56px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 18px; font-weight: 600; transition: all .15s; }
.we-button:hover { border-color: rgba(29, 29, 31, .4); }
.we-button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(10, 92, 51, .8); }
.check-hint { font-size: 13px; color: var(--muted); }
.check-side { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 28px; background: var(--surface-2); transition: background-color .5s, color .5s; }
.check-side.is-result { background: var(--ink); color: #fff; }
.check-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: var(--muted); }
.check-empty p { max-width: 28ch; font-size: 15px; }
.check-thumb { width: 150px; overflow: hidden; border-radius: 6px; opacity: .6; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); }
.check-result { display: flex; flex-direction: column; gap: 20px; animation: rise .4s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.check-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.check-kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7fe0a8; }
.check-product { margin-top: 4px; font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.check-reason { max-width: 34ch; margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.check-result-thumb { flex-shrink: 0; overflow: hidden; border-radius: 6px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.check-class-box { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .1); }
.check-class-letter { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 24px; font-weight: 600; }
.check-class-body { flex: 1; min-width: 0; }
.check-class-text { font-size: 12px; color: rgba(255, 255, 255, .6); }
.scale-tiles { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; margin-top: 8px; }
.scale-tile { height: 12px; border-radius: 4px; }
.s1 { background: var(--scale-1); } .s2 { background: var(--scale-2); } .s3 { background: var(--scale-3); }
.s4 { background: var(--scale-4); } .s5 { background: var(--scale-5); } .s6 { background: var(--scale-6); }
.s7 { background: var(--scale-7); } .s8 { background: var(--scale-8); } .s9 { background: var(--scale-9); }
.check-actions { display: flex; flex-direction: column; gap: 12px; }
.check-actions span, .check-footnote { font-size: 13px; color: rgba(255, 255, 255, .6); }

/* Centered sections */
.section-center { display: flex; flex-direction: column; align-items: center; padding-block: 96px; text-align: center; }
.section-pad { padding-block: 96px; }
.section-head { max-width: 60ch; margin-inline: auto; text-align: center; }
.section-head .subhead { margin-top: 20px; }
.narrow-20 { max-width: 20ch; }
.lead-46 { max-width: 46ch; margin-top: 20px; }
.result-sheet-frame { width: 100%; max-width: 860px; margin-top: 56px; overflow: hidden; border-radius: 12px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .35); }

/* Certificates */
.price-grid { display: grid; gap: 16px; margin-top: 56px; }
.price-card { display: flex; flex-direction: column; align-items: center; padding: 48px 32px 40px; border-radius: var(--radius-lg); background: var(--surface-2); text-align: center; }
.price-card h3 { font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; }
.price-lead { max-width: 36ch; margin-top: 8px; font-size: 17px; color: var(--muted); }
.price-amount { margin-top: 24px; font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1.5; }
.price-sub { font-size: 14px; color: var(--muted); }
.price-actions { margin-top: 28px; gap: 8px 24px; }
.price-facts { display: grid; grid-template-columns: 110px 1fr; gap: 12px 0; width: 100%; max-width: 420px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(0, 0, 0, .1); text-align: left; font-size: 15px; }
.price-facts dt { color: var(--muted); }

/* Steps */
.steps { display: grid; gap: 48px; max-width: 1000px; margin: 64px auto 0; }
.steps li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-number { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 22px; font-weight: 600; }
.steps h3 { margin-top: 20px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.steps p { max-width: 32ch; margin-top: 8px; font-size: 17px; color: var(--muted); }

/* Dark section */
.dark { background: var(--ink); color: #fff; }
.dark-grid { display: grid; align-items: center; gap: 48px; padding-block: 96px; }
.dark-lead { max-width: 42ch; margin-top: 20px; color: rgba(255, 255, 255, .7); }
.dark-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.dark-pills span { display: inline-flex; align-items: center; min-height: 54px; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; }
.dark-logo { display: block; height: 34px; width: auto; max-width: 100%; }
.demo-note { display: block; width: fit-content; max-width: 100%; margin: 14px auto 0; padding: 3px 10px; border-radius: 8px; background: #fff5d6; color: #6b5310; font-size: 12px; line-height: 1.4; }
.scale-tile.is-marked { outline: 2px solid #fff; outline-offset: 1px; }
.check-hint a { color: var(--brand); }
.check-hint a:hover { text-decoration: underline; }
.check-footnote a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.price-title-link { color: inherit; text-decoration: none; }
.price-title-link:hover { color: var(--brand); }
.dark-person { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.dark-person .avatar { background: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .7); }
.dark-person div { display: flex; flex-direction: column; }
.dark-person strong { font-size: 17px; }
.dark-person span:not(.avatar) { font-size: 15px; color: rgba(255, 255, 255, .6); }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 28px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); }
.stat-value { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; overflow-wrap: anywhere; }
.stat-label { margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, .6); }

/* Occasions */
.occasion-grid { display: grid; gap: 16px; margin-top: 56px; }
.occasion { padding: 32px; border-radius: var(--radius-lg); background: var(--surface-2); }
.occasion strong { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.occasion p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.occasion .link-more { margin-top: 20px; font-size: 15px; }
.occasion:hover .link-more { text-decoration: underline; }

/* Statement */
.statement { max-width: 30ch; font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.statement-by { display: flex; align-items: center; gap: 12px; margin-top: 32px; font-size: 15px; text-align: left; }

/* Help */
.faq-grid { display: grid; gap: 40px; margin-top: 56px; }
.faq-tools { display: flex; flex-direction: column; gap: 16px; }
.faq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--surface-2); color: rgba(29, 29, 31, .7); font-size: 13px; font-weight: 500; transition: all .15s; }
.chip:hover { color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; }
.faq-search { position: relative; display: block; }
.faq-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.faq-search .input { min-height: 38px; padding-left: 36px; border-radius: 999px; font-size: 14px; }
.faq-list { display: flex; flex-direction: column; margin-top: 24px; }
.faq-item { border-top: 1px solid rgba(0, 0, 0, .1); }
.faq-item.is-last { border-bottom: 1px solid rgba(0, 0, 0, .1); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-question { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.faq-plus { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); transition: transform .3s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p { max-width: 68ch; padding-bottom: 24px; font-size: 16px; line-height: 1.625; color: var(--muted); }
.faq-none { padding-block: 20px; color: var(--muted); }
.faq-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface-2); }
.aside-person { display: flex; align-items: center; gap: 12px; }
.aside-title { font-size: 14px; font-weight: 600; }
.aside-small { font-size: 12px; color: var(--muted); }
.aside-phone { margin-top: 20px; font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.aside-text { margin-top: 4px; font-size: 13px; color: var(--muted); }
.aside-buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.aside-card .link-more { margin-top: 12px; }

.cta-lead { margin-top: 16px; }
.cta-actions { margin-top: 32px; }

@media (max-width: 359px) {
    .hero-title { font-size: 40px; }
}
@media (max-width: 399px) {
    .price-card { padding-inline: 20px; }
    .price-card h3 { font-size: 26px; }
    .price-facts { grid-template-columns: 96px 1fr; }
}

/* 640 px */
@media (min-width: 40rem) {
    .headline { font-size: 48px; }
    .subhead { font-size: 21px; }
    .hero-title { font-size: 64px; }
    .ea-sheet { --s: 1.20907; }
    .sheet-hero { height: 620px; }
    .sheet-result { --s: 1.08312; height: 560px; }
    .sheet-thumb { --s: .18892; height: 110px; }
    .sheet-mini { --s: .13854; height: 80px; }
    .check-form, .check-side { padding: 40px; }
    .check-title { font-size: 34px; }
    .check-actions { flex-direction: row; align-items: center; }
    .faq-question { font-size: 19px; }
    .faq-tools { flex-direction: row; align-items: center; justify-content: space-between; }
    .faq-search { flex: 0 0 240px; }
    .statement { font-size: 34px; }
    .occasion-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 768 px */
@media (min-width: 48rem) {
    .steps { grid-template-columns: repeat(3, 1fr); }
}

/* 1024 px */
@media (min-width: 64rem) {
    .headline { font-size: 56px; }
    .subhead { font-size: 24px; }
    .hero-title { font-size: 80px; }
    .hero-text { padding-top: 112px; }
    .hero-sheet-wrap { margin-top: 80px; }
    .check-pad { padding-block: 112px; }
    .check-grid { grid-template-columns: 1fr 1fr; }
    .section-center, .section-pad { padding-block: 128px; }
    .price-grid { grid-template-columns: repeat(2, 1fr); }
    .dark-grid { grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 128px; }
    .stat-value { font-size: 40px; }
    .occasion-grid { grid-template-columns: repeat(4, 1fr); }
    .statement { font-size: 40px; }
    .faq-grid { grid-template-columns: 1fr 340px; gap: 64px; }
    .faq-aside { position: sticky; top: 96px; align-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .check-result { animation: none; }
    .faq-plus, .check-side { transition: none; }
}

/* The longest words (headline, "Registriernummer") must fit the narrowest phones. */
@media (max-width: 359px) {
    .hero-title { font-size: 34px; }
    .stat-grid { grid-template-columns: 1fr; }
}
