@font-face {
    font-family: "IBM Plex Sans";
    src: url("/fonts/ibm-plex-sans-300-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/fonts/ibm-plex-sans-600-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --ink: #000033;
    --blue: #336699;
    --sky: #33ccff;
    --linen: #f3efe8;
    --stone: #e6dfd3;
    --muted: #4d4d70;
    --line: #ccccd6;
    --white: #fff;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --gutter: clamp(1.25rem, 5vw, 4rem);
    color: var(--ink);
    font: 400 100%/1.55 "IBM Plex Sans", Arial, sans-serif;
    scroll-padding-block-start: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background: var(--white);
}

main { flex: 1; }
p, h1, h2, h3, figure, dl, dt, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: var(--blue); }
button, input { font: inherit; }
button { cursor: pointer; }
:where(a, button, input):focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}
strong, b, h3 { font-weight: 600; }
h1, h2 { font-weight: 300; }
h1, h2, h3 { text-wrap: balance; }
h1 strong, h2 strong { display: block; }

.wrap {
    width: min(100% - var(--gutter) * 2, 75rem);
    margin-inline: auto;
}

.skip {
    position: fixed;
    z-index: 3;
    top: .6rem;
    left: var(--gutter);
    padding: .6rem 1rem;
    transform: translateY(-180%);
    background: var(--white);
}
.skip:focus { transform: none; }
.masthead { background: var(--white); border-bottom: 1px solid var(--stone); }
.masthead-inner, .section-nav, .footer-inner, .footer nav {
    display: flex;
    align-items: center;
}
.masthead-inner { min-height: 5.2rem; gap: 2rem; }
.brand { width: 7.55rem; height: auto; margin-inline-start: -.25rem; }
.section-nav { gap: clamp(1rem, 3vw, 2.8rem); margin-left: auto; }
.section-nav a, .logout button {
    padding-block: .6rem;
    font-size: .95rem;
    font-weight: 600;
}
.section-nav a { text-decoration: none; }
.section-nav a:hover { text-decoration: underline; }
.logout { padding-left: 1.7rem; border-left: 1px solid var(--line); }
.logout button {
    margin: 0;
    padding-inline: 0;
    color: var(--muted);
    border: 0;
    background: none;
}
.logout button:hover { color: var(--blue); text-decoration: underline; }

.label {
    font: 400 .75rem/1.5 var(--mono);
    letter-spacing: .085em;
    text-transform: uppercase;
    color: var(--blue);
}
.signal {
    display: inline-block;
    width: .56rem;
    height: .56rem;
    margin-inline-end: .63rem;
    background: var(--blue);
    border-radius: 50%;
}
.button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 3.2rem;
    padding: .8rem 1.15rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    text-align: left;
    font-weight: 600;
    line-height: 1.4;
}
.button:hover { background: var(--ink); color: var(--white); }

.hero { background: var(--linen); }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .89fr);
    gap: clamp(2rem, 5.5vw, 5rem);
    align-items: center;
    padding-block: clamp(2rem, 4.5vw, 4.2rem);
}
.hero-copy { display: grid; justify-items: start; gap: clamp(1.25rem, 2.2vw, 2rem); }
.hero h1, .login-cover h1 {
    font-size: clamp(3rem, 5.9vw, 5.65rem);
    line-height: .99;
    letter-spacing: -.055em;
}
.hero h1 { max-width: 100%; }
.lead { max-width: 32rem; font-size: clamp(1.06rem, 1.7vw, 1.31rem); color: var(--muted); line-height: 1.52; }
.hero-photo { min-width: 0; overflow: hidden; background: var(--ink); border-radius: .23rem; }
.hero-photo img { width: 100%; height: clamp(21rem, 32vw, 29rem); object-fit: cover; object-position: 50% 66%; }
.hero-photo figcaption {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    padding: .7rem 1rem;
    color: var(--white);
    font-size: .875rem;
}
.hero-photo figcaption span { font-family: var(--mono); color: var(--sky); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); padding-block: 1.75rem; }
.facts div { display: grid; gap: .36rem; align-content: start; padding-inline: clamp(1rem, 3.6vw, 3rem); border-left: 1px solid var(--line); }
.facts div:first-child { padding-left: 0; border-left: 0; }
.facts dt, .rates dd, .facts dd, .contact-address { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.facts dd { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.2; letter-spacing: -.055em; }
.facts small { display: inline-block; font: 400 .875rem/1.4 "IBM Plex Sans", Arial, sans-serif; letter-spacing: 0; color: var(--muted); }
.facts .fact-text { font: 600 clamp(1.15rem, 2.55vw, 2rem)/1.4 "IBM Plex Sans", Arial, sans-serif; letter-spacing: -.035em; }

.section { padding-block: clamp(3.4rem, 7vw, 6.6rem); }
.section-heading { display: grid; align-content: start; gap: 1rem; }
h2 { font-size: clamp(2.35rem, 4.5vw, 4.3rem); line-height: 1.04; letter-spacing: -.045em; }
h3, .details dt { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -.025em; }
.section-heading > p:not(.label), .terms-copy > p:not(.label) { max-width: 61ch; color: var(--muted); }
.split-section { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.details div { display: grid; gap: .4rem; border-block-start: 1px solid var(--line); padding-block: 1.26rem; }
.details div:first-child { padding-block-start: 0; border-block-start: 0; }
.details div:last-child { padding-block-end: 0; }
.details dt { font-weight: 600; }
.details dd, .device p, .pax-note p, .expand-note > p, .contact p { color: var(--muted); }

.beta-band { background: var(--ink); color: var(--white); }
.beta-band .label { color: var(--sky); }
.beta-band h2 strong { display: inline; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3.5vw, 3.6rem); margin-top: 2.8rem; }
.benefits > div { display: grid; align-content: start; gap: .65rem; border-top: 1px solid #4d4d70; padding-top: 1.2rem; }
.benefits p { color: #e6e5ec; }

.equipment { display: grid; gap: clamp(1.8rem, 3.6vw, 3rem); }
.equipment .section-heading > p:not(.label) { max-width: 56ch; }
.equipment .section-heading strong { display: inline; }
.equipment-grid, .sign-grid { display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); }
.equipment-grid { grid-template-columns: repeat(2, 1fr); }
.sign-grid { grid-template-columns: repeat(3, 1fr); }
.device { min-width: 0; }
.device-image { background: var(--linen); border-radius: .25rem; overflow: hidden; }
.device-image img { width: 100%; height: clamp(18rem, 31vw, 26rem); object-fit: contain; }
.device figcaption { display: grid; gap: .5rem; padding-top: 1rem; }
.device figcaption p { max-width: 54ch; }
.device small { font-size: .875rem; color: var(--muted); }
.sign .device-image img { aspect-ratio: 1.13; height: auto; object-fit: cover; }
.pax-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); align-items: start; gap: 1rem; border-block: 1px solid var(--line); padding-block: 1.4rem; }
.expand-note { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: clamp(1rem, 5vw, 4rem); padding: clamp(1.4rem, 3.3vw, 2.7rem); background: var(--linen); }
.expand-note .label { margin-bottom: .65rem; }
.expand-note h3 { max-width: 22ch; }

.viva-section { background: var(--linen); }
.viva-section .split-section { align-items: center; }
.viva-facts { background: var(--white); padding: clamp(1.3rem, 3.3vw, 2.6rem); border-top: .25rem solid var(--blue); }
.viva-facts > p:last-child { margin-block-start: 1rem; color: var(--muted); font-size: .94rem; }
.rates { margin-top: .75rem; }
.rates div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.rates dd { flex: none; font-size: clamp(.95rem, 1.5vw, 1.15rem); }
.terms { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 8vw, 7rem); align-items: center; }
.terms-copy, .contact { display: grid; align-content: start; gap: 1rem; }
.contact { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 5vw, 4rem); }
.contact-address { color: var(--muted); font-size: .875rem; }
.footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { min-height: 4.7rem; flex-wrap: wrap; justify-content: space-between; padding-block: 1rem; gap: 1rem; color: var(--muted); font-size: .875rem; }
.footer a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.footer-inner > span { font-weight: 600; }
.footer nav { gap: 1.2rem; }

.login-page { background: var(--linen); }
.login-page main { display: grid; align-items: center; }
.login-wrap { padding-block: clamp(2.3rem, 9vh, 6rem); }
.login-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); max-width: 66rem; margin-inline: auto; overflow: hidden; border-radius: .35rem; background: var(--white); }
.login-cover { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 3rem; padding: clamp(2rem, 4.6vw, 4.5rem); min-height: clamp(19rem, 35vw, 29rem); background: var(--ink); color: var(--white); }
.login-cover h1 { font-size: clamp(2.5rem, 4.95vw, 4.6rem); }
.lock-mark { position: relative; display: block; width: 1.6rem; height: 1.28rem; margin-top: .55rem; border: 2px solid var(--sky); border-radius: .18rem; }
.lock-mark::before { content: ""; position: absolute; width: .9rem; height: .76rem; left: 50%; bottom: 100%; transform: translateX(-50%); border: 2px solid var(--sky); border-bottom: 0; border-radius: .65rem .65rem 0 0; }
.login-form { display: grid; align-content: center; padding: clamp(2rem, 4.6vw, 4.3rem); }
.login-form label[for="password"] { margin-bottom: .6rem; font-size: 1.1rem; font-weight: 600; }
.login-form input[type="password"] { width: 100%; min-width: 0; color: var(--ink); padding: .8rem .9rem; border: 1px solid #7f7f99; border-radius: .2rem; background: var(--white); }
.login-form input[aria-invalid="true"] { border-color: #8a1d1d; }
.login-form .button { margin-top: 1rem; }
.form-error { margin-top: .5rem; color: #8a1d1d; font-size: .94rem; }
.statistics-note { margin-top: 1rem; color: var(--muted); font-size: .88rem; }

@media (max-width: 47rem) {
    .masthead-inner { gap: 1rem; min-height: 4.4rem; }
    .brand { width: 6.3rem; }
    .section-nav { gap: 1rem; }
    .logout { padding-left: 1rem; }
    .section-nav a, .logout button { font-size: .875rem; }
    .hero-grid, .split-section, .terms, .login-panel { grid-template-columns: 1fr; }
    .hero-grid { gap: 2rem; }
    .hero-copy { max-width: 33rem; }
    .hero h1 { max-width: 15ch; font-size: clamp(3.15rem, 10.4vw, 4.7rem); }
    .hero-photo img { height: clamp(18rem, 75vw, 30rem); object-position: 50% 65%; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; padding-block: 1.2rem; }
    .facts div { padding-inline: .8rem; }
    .facts div:nth-child(odd) { padding-left: 0; border-left: 0; }
    .facts div:nth-child(even) { padding-right: 0; }
    .facts small { display: block; }
    .facts .fact-text { font-size: 1.15rem; line-height: 1.2; }
    .benefits, .sign-grid { grid-template-columns: 1fr; }
    .benefits { gap: 1.4rem; margin-top: 1.8rem; }
    .benefits p { max-width: 56ch; }
    .device-image img { height: clamp(12rem, 34vw, 17rem); }
    .sign-grid { gap: 1.4rem; }
    .sign { display: grid; grid-template-columns: minmax(6rem, .72fr) minmax(0, 1.4fr); gap: 1.1rem; align-items: center; }
    .sign .device-image img { aspect-ratio: .95; }
    .sign figcaption { padding-top: 0; }
    .expand-note { grid-template-columns: 1fr; }
    .expand-note h3 { max-width: none; }
    .contact { padding: 1.3rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .login-wrap { max-width: 33rem; }
    .login-cover { min-height: 14rem; gap: 2.5rem; }
    .login-cover h1 { font-size: clamp(2.9rem, 9vw, 4rem); }
}

@media (max-width: 33rem) {
    .masthead-inner { flex-wrap: wrap; row-gap: 0; }
    .section-nav { order: 2; width: 100%; margin: 0; border-top: 1px solid var(--stone); gap: 1.4rem; }
    .section-nav a { padding-block: .65rem; }
    .logout { margin-left: auto; border: 0; }
    .offer-page .brand { margin-block: .4rem; }
    .equipment-grid, .pax-note { grid-template-columns: 1fr; }
    .device-image img { height: clamp(16rem, 72vw, 22rem); }
    .equipment-grid { gap: 2rem; }
    .sign p { font-size: .95rem; }
    .sign h3 { font-size: 1.09rem; }
    .sign .device-image img { height: auto; aspect-ratio: .73; }
    .rates div { gap: .7rem; }
    .rates dt { font-size: .94rem; }
}

/* Kostenvergleich „BETA lohnt sich“ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.compare-link a { display: inline-block; padding-block: .35rem; color: var(--blue); }
.compare-link a:hover { color: var(--ink); }
.compare-intro { display: grid; justify-items: start; gap: clamp(1.1rem, 2vw, 1.7rem); padding-block: clamp(2.6rem, 6vw, 5rem); }
.compare-intro h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: 1; letter-spacing: -.05em; }
.compare-intro h1 strong { display: inline; }
.compare-intro .lead { max-width: 44rem; }
.compare-block { display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); }
.compare-block + .compare-block { padding-block-start: 0; }
.compare-block h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.compare-chart { display: grid; gap: 1.1rem; padding: clamp(1rem, 2.6vw, 1.8rem); border: 1px solid var(--line); border-radius: .25rem; }
.compare-legend, .compare-rows, .compare-sources { margin: 0; padding: 0; list-style: none; }
.compare-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; color: var(--muted); font-size: .875rem; }
.swatch { display: inline-block; width: .8rem; height: .8rem; margin-inline-end: .45rem; border-radius: 2px; vertical-align: -1px; }
.compare-rows { display: grid; gap: .35rem; }
.compare-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 17rem; align-items: center; gap: .3rem 1rem; padding: .45rem .6rem; border-radius: .2rem; }
.compare-row.own { background: #e6edf3; font-weight: 600; }
.compare-track { display: flex; gap: 2px; height: 1.5rem; background: linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 25% 100%; }
.segment { min-width: 2px; height: 100%; }
.segment:last-child { border-radius: 0 4px 4px 0; }
.software { background: #2a6cb8; }
.card { background: #12a5cf; }
.addons { background: #c07f1c; }
.devices { background: #7a5bb5; }
.unknown { background: repeating-linear-gradient(135deg, var(--muted) 0 2px, transparent 2px 7px); outline: 1px dashed var(--muted); outline-offset: -1px; }
.compare-total, .compare-table .amount { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.compare-total { display: grid; font-size: .94rem; }
.compare-total small { color: var(--muted); font-size: .78rem; font-weight: 400; }
.compare-note { max-width: 70ch; color: var(--muted); font-size: .875rem; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: .25rem; }
.compare-table { width: 100%; min-width: 58rem; border-collapse: collapse; font-size: .9rem; }
.compare-table th, .compare-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.compare-table thead th { font: 400 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.compare-table tbody th { font-weight: 600; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table .amount { text-align: right; white-space: nowrap; }
.compare-table small { display: block; font: 400 .8rem/1.4 "IBM Plex Sans", Arial, sans-serif; color: var(--muted); white-space: normal; }
.compare-table tr.own > * { background: #e6edf3; }
.compare-method { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.6rem clamp(1.4rem, 3.5vw, 3rem); }
.compare-method div { display: grid; align-content: start; gap: .4rem; min-width: 0; border-top: 2px solid var(--ink); padding-top: .7rem; }
.compare-method dt { font-weight: 600; }
.compare-method dd { color: var(--muted); font-size: .94rem; }
.compare-sources { display: grid; gap: .4rem; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }

@media (max-width: 47rem) {
    .compare-row { grid-template-columns: minmax(0, 1fr); }
}
