:root {
    --navy: #111f37;
    --navy-2: #0a1427;
    --yellow: #f2d442;
    --yellow-soft: #fff1a1;
    --blue: #77b9e8;
    --paper: #f5f3eb;
    --white: #fff;
    --ink: #172238;
    --muted: #6b7280;
    --line: #d9d8d0;
    --shadow: 0 24px 70px rgba(15, 30, 55, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; }
.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; }
.container { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }
.narrow { width: min(850px, calc(100% - 44px)); }
.skip-link {
    position: fixed; z-index: 100; top: 0; left: 10px; padding: 9px 13px;
    color: var(--navy); background: var(--yellow); clip-path: inset(100%);
}
.skip-link:focus { top: 10px; clip-path: none; }

.site-header { color: white; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: white; text-decoration: none; font-size: 15px; font-weight: 620; }
.brand strong { color: var(--yellow); font-weight: 850; }
.brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center; color: var(--navy);
    background: var(--yellow); border-radius: 5px; font: 900 12px/1 "Courier New", monospace;
    box-shadow: 4px 4px 0 var(--blue);
}
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { color: #bec7d5; font-size: 12px; font-weight: 700; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--yellow); }
.header-link { display: inline-flex; align-items: center; gap: 7px; color: var(--yellow); font-size: 12px; font-weight: 750; }
.header-link .icon { width: 16px; }

.hero {
    position: relative; overflow: hidden; color: white; background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px), var(--navy);
    background-size: 38px 38px;
}
.hero::before {
    position: absolute; width: 410px; height: 410px; right: -170px; top: -200px;
    border: 70px solid rgba(242,212,66,.06); border-radius: 50%; content: "";
}
.hero-grid {
    min-height: 590px; display: grid; grid-template-columns: 1fr .92fr;
    align-items: center; gap: 80px; padding-block: 70px 80px;
}
.eyebrow {
    margin: 0 0 14px; color: #bc9f00; font: 800 10px/1.4 "Courier New", monospace;
    letter-spacing: .16em; text-transform: uppercase;
}
.hero .eyebrow { color: var(--yellow); }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .subhero h1, .not-found h1 {
    margin-bottom: 23px; font-size: clamp(58px, 7vw, 91px); font-weight: 850;
    letter-spacing: -.07em; line-height: .9;
}
.hero-copy > p:not(.eyebrow) { max-width: 580px; margin-bottom: 29px; color: #c4ccd8; font-size: 18px; }
.button {
    display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 20px; border: 0; text-decoration: none; font-size: 13px; font-weight: 800;
}
.button.dark { color: var(--navy); background: var(--yellow); box-shadow: 6px 6px 0 var(--blue); }
.button.dark:hover { transform: translate(2px,2px); box-shadow: 4px 4px 0 var(--blue); }

.current-week {
    position: relative; z-index: 2; padding: 31px; color: var(--navy); background: white;
    border-radius: 3px; box-shadow: 13px 13px 0 var(--yellow); transform: rotate(1.2deg);
}
.current-top { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 2px solid var(--navy); font: 800 10px "Courier New", monospace; text-transform: uppercase; }
.kw-number { display: flex; align-items: flex-start; justify-content: center; gap: 10px; padding: 20px 0 14px; }
.kw-number small { margin-top: 13px; color: var(--muted); font: 900 16px "Courier New", monospace; }
.kw-number strong { font-size: 94px; letter-spacing: -.08em; line-height: .85; }
.current-range { display: flex; align-items: center; gap: 12px; padding: 0 12px 22px; color: var(--muted); font-size: 12px; font-weight: 750; }
.current-range i { height: 1px; flex: 1; background: var(--line); }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding-top: 17px; border-top: 1px solid var(--line); }
.week-strip span { display: grid; place-items: center; gap: 5px; padding: 8px 2px; color: var(--muted); border: 1px solid transparent; }
.week-strip b { font: 800 8px "Courier New", monospace; }
.week-strip small { font-size: 13px; font-weight: 750; }
.week-strip .today { color: var(--navy); background: var(--yellow-soft); border-color: var(--yellow); }

.rechner-section { padding: 105px 0 0; }
.section-head { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 70px; margin-bottom: 45px; }
.section-head h2 { margin: 0; font-size: clamp(42px, 5vw, 66px); font-weight: 850; letter-spacing: -.055em; line-height: .92; }
.section-head > p { max-width: 440px; margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.calculator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calculator-card { padding: 34px; border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.week-card { color: white; background: var(--navy); border-color: var(--navy); }
.card-title { display: flex; align-items: center; gap: 13px; margin-bottom: 27px; }
.card-title > span { width: 43px; height: 43px; display: grid; place-items: center; color: var(--navy); background: var(--yellow); }
.card-title .icon { width: 24px; height: 24px; }
.card-title small { color: var(--muted); font: 800 9px "Courier New", monospace; text-transform: uppercase; }
.week-card .card-title small { color: #9eabbc; }
.card-title h3 { margin: 1px 0 0; font-size: 19px; }
.field { display: grid; gap: 7px; margin-bottom: 21px; }
.field > span { color: var(--muted); font-size: 10px; font-weight: 750; }
.week-card .field > span { color: #aab5c4; }
.field input {
    width: 100%; min-height: 53px; padding: 11px 14px; color: var(--ink); background: #f8f7f2;
    border: 1px solid var(--line); border-radius: 0; outline: 0; font-weight: 750;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(119,185,232,.22); }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.kw-result { display: grid; place-items: center; padding: 24px; background: var(--yellow-soft); border: 1px solid var(--yellow); }
.kw-result > span, .range-result > span { color: var(--muted); font: 800 9px "Courier New", monospace; text-transform: uppercase; }
.kw-result strong { font-size: 47px; letter-spacing: -.055em; }
.kw-result strong b { color: #ac8f00; }
.kw-result small { color: var(--muted); font-size: 11px; }
.facts { margin: 20px 0 0; }
.facts > div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 780; }
.edge-note { display: flex; align-items: flex-start; gap: 8px; margin: 15px 0 0; padding: 12px; color: #645300; background: #fff8c8; font-size: 10px; }
.edge-note .icon { color: #ac8f00; }
.range-result { padding: 22px 0; border-block: 1px solid rgba(255,255,255,.16); }
.range-result > span { color: #8f9aae; }
.range-result strong { display: block; margin: 5px 0; color: var(--yellow); font-size: clamp(25px, 3vw, 38px); letter-spacing: -.04em; }
.range-result small { color: #aab5c4; }
.seven-days { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 22px; border: 1px solid rgba(255,255,255,.14); }
.seven-days span { display: grid; gap: 4px; padding: 11px 3px; border-right: 1px solid rgba(255,255,255,.14); text-align: center; }
.seven-days span:last-child { border-right: 0; }
.seven-days b { color: var(--yellow); font: 800 8px "Courier New", monospace; }
.seven-days small { color: #bbc5d1; font-size: 8px; }
.week-error { min-height: 20px; margin: 13px 0 -5px; color: var(--yellow); font-size: 10px; }

.year-section { margin-top: 100px; padding: 85px 0 95px; background: white; border-block: 1px solid var(--line); }
.year-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.year-head h2 { margin: 0; font-size: clamp(38px, 5vw, 61px); letter-spacing: -.055em; line-height: 1; }
.year-head label { display: grid; gap: 6px; }
.year-head label span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.year-head input { width: 135px; height: 48px; padding: 0 12px; border: 2px solid var(--navy); font-weight: 850; }
.year-summary { display: flex; align-items: baseline; gap: 10px; margin: 32px 0 23px; padding: 18px 21px; color: white; background: var(--navy); }
.year-summary strong { color: var(--yellow); font-size: 33px; }
.year-summary span { font-weight: 800; }
.year-summary p { margin: 0 0 0 auto; color: #b8c2d0; font-size: 11px; }
.week-overview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.week-cell {
    min-height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3px;
    padding: 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); cursor: pointer; text-align: left;
}
.week-cell:hover, .week-cell.selected { background: var(--yellow-soft); border-color: #c5a900; }
.week-cell b { grid-column: 1 / -1; color: var(--navy); font: 850 10px "Courier New", monospace; }
.week-cell span { color: var(--muted); font-size: 8px; }
.week-cell i { color: #aaa; font-style: normal; }
.overview-note { margin: 18px 0 0; color: var(--muted); font-size: 10px; }
.overview-error { grid-column: 1 / -1; color: #9e3020; }

.rules-teaser { padding: 105px 0 115px; background: var(--yellow); }
.rules-teaser .section-head > a { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 4px; color: var(--navy); font-size: 12px; font-weight: 800; }
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--navy); background: var(--navy); gap: 2px; }
.rule-grid article { min-height: 245px; padding: 28px; background: var(--yellow); }
.rule-grid article > span { display: inline-block; padding: 4px 7px; color: white; background: var(--navy); font: 800 9px "Courier New", monospace; }
.rule-grid h3 { margin: 65px 0 10px; font-size: 24px; letter-spacing: -.04em; }
.rule-grid p { margin: 0; color: #5d5220; font-size: 12px; }

.subhero { padding: 100px 0; color: white; background: var(--navy); }
.subhero.compact { padding-block: 75px; }
.subhero h1 { max-width: 880px; }
.subhero > div > p:last-child { max-width: 700px; margin-bottom: 0; color: #bdc6d2; font-size: 18px; }
.prose { max-width: 880px; padding-block: 85px 115px; }
.prose section { display: grid; grid-template-columns: 48px 1fr; gap: 23px; margin-bottom: 68px; }
.prose section:last-child { margin-bottom: 0; }
.prose section > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--navy); background: var(--yellow); font: 850 10px "Courier New", monospace; }
.prose h2, .legal h2 { margin-bottom: 17px; font-size: 38px; letter-spacing: -.045em; line-height: 1.05; }
.prose p, .legal p { color: var(--muted); font-size: 17px; line-height: 1.75; }
.example { display: flex; align-items: center; gap: 15px; margin-top: 22px; padding: 20px; color: white; background: var(--navy); }
.example span { color: #b8c2d0; }
.example strong { margin-left: auto; color: var(--yellow); }
.legal { max-width: 800px; padding-block: 80px 110px; }
.legal section { margin-bottom: 44px; }
.legal h2 { font-size: 29px; }
.legal p { font-size: 16px; }
.legal a { color: #826e00; font-weight: 700; }
.not-found { min-height: 620px; display: grid; place-items: center; padding: 80px 0; color: white; background: var(--navy); text-align: center; }
.not-found span { color: var(--yellow); font: 850 11px "Courier New", monospace; text-transform: uppercase; }
.not-found h1 { margin-top: 17px; }
.not-found p { color: #bbc4d1; }
.not-found .button { margin-top: 12px; }

.site-footer { color: #b9c2ce; background: var(--navy-2); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr .8fr; gap: 70px; padding-block: 65px 50px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid p { margin: 10px 0 0; color: #727f92; font-size: 11px; }
.footer-grid b { margin-bottom: 8px; color: var(--yellow); font: 800 9px "Courier New", monospace; text-transform: uppercase; }
.footer-grid a:not(.brand) { color: #a8b2c1; font-size: 11px; text-decoration: none; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 18px; color: #667286; border-top: 1px solid rgba(255,255,255,.09); font-size: 9px; }

@media (max-width: 900px) {
    .hero-grid { gap: 35px; }
    .hero h1 { font-size: 65px; }
    .calculator-card { padding: 27px; }
    .week-overview { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
    .container, .narrow { width: min(100% - 30px, 1180px); }
    .header-inner { min-height: 68px; }
    .site-header nav { display: none; }
    .brand { font-size: 12px; }
    .brand-mark { width: 36px; height: 36px; }
    .header-link { font-size: 0; }
    .header-link .icon { width: 20px; }
    .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 55px 65px; }
    .hero h1, .subhero h1 { font-size: 52px; }
    .hero-copy > p:not(.eyebrow) { font-size: 16px; }
    .current-week { margin-top: 20px; padding: 24px; }
    .kw-number strong { font-size: 80px; }
    .rechner-section { padding-top: 72px; }
    .section-head { grid-template-columns: 1fr; gap: 18px; }
    .section-head h2 { font-size: 44px; }
    .calculator-grid { grid-template-columns: 1fr; }
    .year-section { margin-top: 72px; padding-block: 68px 75px; }
    .year-head { align-items: flex-start; flex-direction: column; }
    .year-summary { align-items: flex-start; flex-wrap: wrap; }
    .year-summary p { width: 100%; margin-left: 0; }
    .week-overview { grid-template-columns: repeat(2, 1fr); }
    .rules-teaser { padding-block: 72px 80px; }
    .rule-grid { grid-template-columns: 1fr; }
    .rule-grid article { min-height: 190px; }
    .rule-grid h3 { margin-top: 38px; }
    .subhero { padding-block: 70px; }
    .prose { padding-block: 65px 90px; }
    .prose section { grid-template-columns: 1fr; gap: 14px; margin-bottom: 53px; }
    .prose h2 { font-size: 33px; }
    .example { align-items: flex-start; flex-direction: column; }
    .example strong { margin-left: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 25px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 390px) {
    .brand > span:last-child { max-width: 120px; line-height: 1.1; }
    .hero h1, .subhero h1 { font-size: 46px; }
    .current-week { padding: 19px; }
    .week-strip span { padding-inline: 0; }
    .two-fields { grid-template-columns: 1fr; gap: 0; }
    .seven-days { grid-template-columns: repeat(4, 1fr); }
    .seven-days span { border-bottom: 1px solid rgba(255,255,255,.14); }
    .footer-bottom { flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
