:root {
    color-scheme: light;
    --primary: oklch(52% 0.22 277);
    --primary-700: oklch(46% 0.2 277);
    --primary-50: oklch(97% 0.02 277);
    --primary-100: oklch(94% 0.04 277);
    --ink: #111827;
    --muted: #4b5563;
    --soft: #6b7280;
    --line: #e5e7eb;
    --line-soft: #f3f4f6;
    --bg: #ffffff;
    --bg-soft: #f9fafb;
    --danger: #9f1239;
    --danger-bg: #fff1f2;
    --ok: #166534;
    --ok-bg: #f0fdf4;
    --shadow: 0 18px 40px rgba(83, 70, 214, 0.08);
    --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font: 16px/1.6 Inter, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
}

img { max-width: 100%; height: auto; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); }

code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.92em;
}

.wrap {
    width: min(var(--max), calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.top {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

.bar {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: flex; align-items: center; color: inherit; }
.brand img { height: 48px; width: auto; }

#nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle { display: none; }

nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav a {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
}

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

nav form { margin: 0; }

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    padding: 12px 18px;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 28%, transparent);
    text-decoration: none;
}

button:hover, .button:hover { background: var(--primary-700); color: white; }

.button.quiet, button.quiet, nav button {
    background: white;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}

.button.quiet:hover, button.quiet:hover, nav button:hover {
    background: white;
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 35%, white);
}

nav a.button {
    color: white;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 28%, transparent);
}

nav a.button:hover { color: white; }

.button.light {
    background: white;
    color: var(--primary);
    box-shadow: none;
}

.button.light:hover { background: var(--primary-50); color: var(--primary-700); }

.button.ghost {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.button.ghost:hover { background: rgba(255, 255, 255, 0.1); color: white; }

main { flex: 1; }

main:not(.wide) {
    width: min(680px, calc(100% - 40px));
    margin: 104px auto 64px;
}

main:has(.customers) {
    width: min(1120px, calc(100% - 48px));
}

main.wide { margin-top: 72px; }

.hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(520px 280px at 88% 10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
        linear-gradient(135deg, var(--primary-50), white 55%, #f8fafc);
}

.hero h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.hero h1 span { color: var(--primary); }

.lead { color: var(--muted); max-width: 62ch; font-size: 1.08rem; }

.hero .lead { margin-top: 22px; font-size: 1.2rem; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 48px;
    align-items: center;
}

.hero-download {
    background: white;
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    padding: 26px 26px 18px;
    box-shadow: var(--shadow);
}

.hero-download h2 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero-download h2 + p { margin: 10px 0 0; color: var(--muted); }
.hero-download .actions { margin-top: 18px; }
.hero-download .button span { opacity: 0.75; font-size: 0.78rem; }

.hero-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--line-soft);
    margin-top: 16px;
}

.hero-app + .hero-app { margin-top: 0; }

.hero-app strong { display: block; }
.hero-app span { color: var(--soft); font-size: 0.88rem; }
.hero-app .actions { margin-top: 0; flex-shrink: 0; }
.hero-app .button { padding: 10px 14px; font-size: 0.9rem; }
.hero-app .button span { color: inherit; opacity: 0.75; font-size: 0.78rem; }

.hero-download .more {
    display: inline-block;
    margin: 4px 0 8px;
    font-size: 0.92rem;
    font-weight: 600;
}

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

.stats {
    background: white;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: 28px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    text-align: center;
}

.stats strong {
    display: block;
    color: var(--primary);
    font-size: 1.7rem;
    letter-spacing: -0.03em;
}

.stats span { color: var(--soft); font-size: 0.92rem; }

.band { padding: 84px 0; }
.band.soft { background: var(--bg-soft); }

.section-head { max-width: 40rem; margin-bottom: 36px; }
.section-head h2, .cta h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.035em;
    line-height: 1.15;
}
.section-head p, .cta p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.grid, .steps {
    display: grid;
    gap: 16px;
}

.grid { grid-template-columns: repeat(3, 1fr); }
.steps { grid-template-columns: repeat(4, 1fr); }

.grid article {
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    padding: 28px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.grid article:hover {
    border-color: color-mix(in srgb, var(--primary) 28%, white);
    box-shadow: var(--shadow);
}

.grid h3, .steps h3, .plans h3 { margin: 0 0 8px; font-size: 1.15rem; }
.grid p, .steps p, .plans p, .hint { color: var(--muted); margin: 0; }

.icon, .step {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    font-weight: 700;
    background: var(--primary-100);
    color: var(--primary);
}

.step {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--primary);
    color: white;
    font-size: 1.15rem;
}

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.plans article {
    background: white;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    padding: 26px;
}

.band.soft .plans article, .panel .plans article { background: white; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.price {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.price span { font-size: 1rem; font-weight: 500; color: var(--soft); }

.plans .button { margin-top: 16px; }

.section-head h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.downloads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.downloads article {
    background: white;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    padding: 28px;
}

.downloads h2 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -0.03em; }
.downloads p { margin: 0; color: var(--muted); }
.downloads .actions { margin-top: 22px; }
.downloads .button { min-width: 148px; }
.downloads .button span {
    font-weight: 500;
    opacity: 0.8;
    font-size: 0.82rem;
}

.download-notes {
    margin-top: 28px;
    display: grid;
    gap: 8px;
    max-width: 46rem;
}

.download-notes p { margin: 0; color: var(--soft); font-size: 0.95rem; }

.cta {
    padding: 72px 0;
    background: var(--primary);
    color: white;
    text-align: center;
}

.cta p { color: color-mix(in srgb, white 82%, var(--primary)); }
.cta .actions { justify-content: center; }

footer {
    background: #111827;
    color: #d1d5db;
    padding: 64px 0 28px;
}

.foot {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

.foot img { height: 56px; width: auto; }
.foot p { color: #9ca3af; font-size: 0.92rem; max-width: 32ch; }
.foot h2 {
    margin: 8px 0 14px;
    color: white;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.foot a, .foot span { display: block; color: #9ca3af; font-size: 0.92rem; margin: 8px 0; }
.foot a:hover { color: white; }

.copy {
    width: min(var(--max), calc(100% - 48px));
    margin: 36px auto 0;
    padding-top: 22px;
    border-top: 1px solid #1f2937;
    text-align: center;
    color: #6b7280;
    font-size: 0.88rem;
}

.panel {
    background: white;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.panel h1, .panel h2 {
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 12px;
}

.panel h1 { font-size: 2rem; }
.panel + .panel { margin-top: 18px; }

form { display: grid; gap: 14px; margin-top: 18px; }
nav form { display: block; }

label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 600; }

input {
    width: 100%;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-weight: 400;
}

input:focus {
    outline: 2px solid color-mix(in srgb, var(--primary) 45%, white);
    border-color: transparent;
}

.errors {
    margin: 16px 0 0;
    padding: 12px 16px 12px 32px;
    border-radius: 12px;
    background: var(--danger-bg);
    color: var(--danger);
}

.flash {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--ok-bg);
    color: var(--ok);
}

main.wide .flash { margin-top: 24px; }

.tabbar {
    display: flex;
    flex-flow: row wrap;
    gap: 8px;
    margin-top: 8px;
}

.tabbar input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.tabbar label {
    display: inline-flex;
    width: auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--muted);
    background: white;
    cursor: pointer;
    font-weight: 600;
}

.tabbar input:focus-visible + label {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.tabs:has(#tab-konto:checked) label[for="tab-konto"],
.tabs:has(#tab-abo:checked) label[for="tab-abo"],
.tabs:has(#tab-favoriten:checked) label[for="tab-favoriten"],
.tabs:has(#tab-passwort:checked) label[for="tab-passwort"],
.tabs:has(#tab-daten:checked) label[for="tab-daten"] {
    background: var(--primary);
    border-color: transparent;
    color: white;
}

.tab-panel { display: none; }
.tabs:has(#tab-konto:checked) #panel-konto,
.tabs:has(#tab-abo:checked) #panel-abo,
.tabs:has(#tab-favoriten:checked) #panel-favoriten,
.tabs:has(#tab-passwort:checked) #panel-passwort,
.tabs:has(#tab-daten:checked) #panel-daten { display: block; }

.inquiry { margin-top: 28px; max-width: 420px; }
.inquiry h2 { margin-bottom: 8px; }
.tab-panel .plans { margin-top: 18px; }

.panel .plans { grid-template-columns: 1fr 1fr; }

.facts { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; }
.facts div, .facts li { display: grid; gap: 2px; }
.facts dt { color: var(--soft); font-size: 0.85rem; }
.facts dd { margin: 0; }

.hint { margin-top: 14px; }
.panel ul:not(.errors) { color: var(--muted); padding-left: 1.2rem; }
.panel li { margin: 6px 0; }

.table-wrap { overflow-x: auto; margin-top: 18px; }

.customers { width: 100%; border-collapse: collapse; }

.customers th, .customers td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}

.customers th {
    color: var(--soft);
    font-size: 0.82rem;
    font-weight: 600;
}

.customers form, .row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.row-actions button {
    padding: 6px 10px;
    font-size: 0.82rem;
    border-radius: 999px;
    box-shadow: none;
}

@media (max-width: 900px) {
    .grid, .plans, .steps, .stats-grid, .foot, .downloads, .hero-grid { grid-template-columns: 1fr; }
    .hero-app { align-items: flex-start; flex-direction: column; }
    .panel .plans { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .bar { min-height: 64px; }
    .brand img { height: 40px; }
    .nav-toggle {
        display: inline-flex;
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 8px 12px;
        font-weight: 600;
        color: var(--ink);
    }
    nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 20px 20px;
        background: white;
        border-bottom: 1px solid var(--line-soft);
    }
    #nav-toggle:checked ~ nav { display: flex; }
    nav a.button, nav button { width: 100%; }
    .grid, .plans, .steps, .stats-grid, .foot, .downloads { grid-template-columns: 1fr; }
    .hero { padding-top: 36px; }
    .wrap, .bar { width: min(var(--max), calc(100% - 32px)); }
    main:not(.wide) { width: min(760px, calc(100% - 32px)); }
}
