/*
 * Startseite von nibo-ticket.de. Farben stammen nur aus dem Logo (NIBO-Orange), dazu Zink-Grau.
 * Überschriften in Saira (eckige Formen wie die Wortmarke N-I-B-O), Text in Archivo. Beide lokal, OFL.
 */

@font-face {
    font-family: "Saira";
    src: url("../fonts/saira-var.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 50% 125%;
    font-display: swap;
}

@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo-var.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --orange: #df6337;
    --orange-tief: #c2491d;
    --tinte: #18181b;
    --stein: #52525b;
    --linie: #e4e4e7;
    --flaeche: #f4f4f5;
    --weiss: #ffffff;
    --anzeige: "Saira", system-ui, sans-serif;
    --text: "Archivo", system-ui, sans-serif;
    --rand: 16px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--text);
    font-size: 17px;
    line-height: 1.6;
    color: var(--tinte);
    background: var(--weiss);
    text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

p { margin: 0 0 1em; }

h1, h2, h3 {
    font-family: var(--anzeige);
    font-weight: 800;
    line-height: 1;
    margin: 0;
    text-wrap: balance;
}

:focus-visible { outline: 2px solid var(--tinte); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--rand); }

.skip {
    position: absolute;
    left: 8px;
    top: -60px;
    padding: 10px 14px;
    background: var(--tinte);
    color: var(--weiss);
    border-radius: 6px;
    z-index: 10;
}

.skip:focus { top: 8px; }

/* Knöpfe einfarbig, einzeilig, 48 px hoch */

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}

.knopf-voll { background: var(--orange); color: var(--weiss); font-weight: 700; font-size: 18px; }
.knopf-voll:hover { background: var(--orange-tief); }

.knopf-rand { border: 1px solid var(--linie); color: var(--tinte); background: var(--weiss); }
.knopf-rand:hover { border-color: var(--tinte); }

.knopf-klein { min-height: 44px; padding: 0 16px; font-size: 16px; }

.textlink {
    color: var(--orange-tief);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color .15s;
}

.textlink:hover { color: var(--tinte); }

/* Kopf */

.kopf { border-bottom: 1px solid var(--linie); background: var(--weiss); }

.kopf-zeile { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.marke { display: inline-flex; padding: 6px 0; }
.marke img { height: 34px; width: auto; }

.kopf-nav { display: none; gap: 28px; margin-left: auto; }

.kopf-nav a {
    text-decoration: none;
    color: var(--stein);
    font-weight: 500;
    padding: 10px 0;
    transition: color .15s;
}

.kopf-nav a:hover { color: var(--tinte); }

.kopf-zeile > .knopf { margin-left: auto; }

/* Einstieg */

.einstieg { padding: 40px 0 56px; }

.einstieg-raster { display: grid; gap: 48px; }

.einstieg h1 {
    font-size: clamp(42px, 9.6vw, 84px);
    font-stretch: 87.5%;
    letter-spacing: -0.015em;
    line-height: .94;
    margin-bottom: 24px;
}

.einstieg .satz { display: block; }

.einleitung { font-size: 19px; line-height: 1.55; color: var(--stein); max-width: 34em; margin-bottom: 28px; }

.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 20px; }

.preis-hinweis { font-size: 15px; color: var(--stein); margin: 0; }

.paar { margin: 0; }

.paar-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }

.bildschirm { margin: 0; }

.bildschirm img,
.plan-bild img {
    width: 100%;
    border: 1px solid var(--linie);
    border-radius: 20px;
    background: var(--flaeche);
}

.bildschirm img { aspect-ratio: 39 / 64; object-fit: cover; }

.bildschirm figcaption { font-size: 14px; color: var(--stein); margin-top: 10px; }

.versetzt { margin-top: 40px; }

/* Ausschnitt der Screenshots, je nachdem ob das Wichtige oben, mittig oder unten steht */
img.oben { object-position: 50% 0; }
img.mitte { object-position: 50% 50%; }

.paar-hinweis { font-size: 13px; color: var(--stein); margin-top: 16px; }

/* Ablauf wie ein Ablaufplan, links die Phase und daneben, was passiert */

.ablauf { padding: 64px 0 24px; border-top: 1px solid var(--linie); }

.ablauf h2,
.fragen h2 {
    font-size: clamp(34px, 6.4vw, 56px);
    font-stretch: 87.5%;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}

.plan { list-style: none; margin: 0; padding: 0; }

.plan-zeile {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px 40px;
    padding: 32px 0 40px;
    border-top: 1px solid var(--linie);
}

.plan-zeit {
    margin: 0;
    font-family: var(--anzeige);
    font-stretch: 112.5%;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--orange-tief);
    padding-top: 6px;
}

.plan-text { max-width: 36em; }

.plan-text h3 { font-size: 28px; font-weight: 700; line-height: 1.1; margin-bottom: 14px; }

.plan-text p:last-child { margin-bottom: 0; }

.plan-bild { margin: 12px 0 0; max-width: 300px; }

.plan-bild img { aspect-ratio: 8 / 11; object-fit: cover; object-position: 50% 0; }
.plan-bild img.ganz { aspect-ratio: auto; }

/* Preis als der eine laute Block der Seite */

.preis { background: var(--orange); color: var(--tinte); padding: 56px 0 60px; margin-top: 40px; }

.preis-raster { display: grid; gap: 28px; }

.preis-titel {
    font-size: 13px;
    font-stretch: 112.5%;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.preis-zahl {
    font-family: var(--anzeige);
    font-weight: 800;
    font-stretch: 87.5%;
    font-size: clamp(96px, 30vw, 200px);
    line-height: .85;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
    font-variant-numeric: tabular-nums;
}

.preis-einheit { font-size: 19px; font-weight: 600; margin: 0; }

.preis-liste { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid rgba(24, 24, 27, .28); }

.preis-liste li { padding: 14px 0; border-bottom: 1px solid rgba(24, 24, 27, .28); font-size: 18px; line-height: 1.45; }

/* Beispielrechnung als weißer Beleg im Preisblock */

.beleg { grid-column: 1 / -1; background: var(--weiss); color: var(--tinte); border-radius: 12px; padding: 22px 18px 20px; }

.beleg-titel { font-size: 22px; font-weight: 700; margin-bottom: 8px; }

.beleg-tabelle { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }

.beleg-tabelle th,
.beleg-tabelle td { padding: 12px 0; border-bottom: 1px solid var(--linie); text-align: right; vertical-align: bottom; }

.beleg-tabelle th[scope="row"] { text-align: left; font-weight: 400; padding-right: 12px; text-wrap: balance; }

.beleg-tabelle td,
.beleg-tabelle thead th { padding-left: 12px; white-space: nowrap; }

.beleg-tabelle thead th { font-size: 14px; font-weight: 600; color: var(--stein); white-space: normal; }
.beleg-tabelle thead th + th { width: 1%; }

.beleg-tabelle tfoot tr:first-child > * { border-top: 2px solid var(--tinte); font-weight: 700; font-size: 18px; }

.beleg-tabelle .beleg-anteil > * { color: var(--stein); font-size: 15px; border-bottom: 0; }

.beleg-hinweis { font-size: 14px; line-height: 1.55; color: var(--stein); margin: 14px 0 0; max-width: 62em; }

.unsichtbar {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Fragen */

.fragen { padding: 72px 0 40px; }

.fragen-liste { margin: 0; }

.frage { display: grid; gap: 6px 40px; padding: 22px 0; border-top: 1px solid var(--linie); }

.frage dt { font-family: var(--anzeige); font-weight: 700; font-size: 20px; line-height: 1.25; }

.frage dd { margin: 0; color: var(--stein); max-width: 38em; }

/* Kontakt */

.kontakt { padding: 56px 0 72px; }

.kontakt-raster { display: grid; gap: 28px; border-top: 2px solid var(--tinte); padding-top: 40px; }

.kontakt h2 { font-size: clamp(34px, 6.4vw, 56px); font-stretch: 87.5%; letter-spacing: -0.01em; margin-bottom: 18px; }

.kontakt p { max-width: 34em; }

.herkunft { color: var(--stein); font-size: 16px; margin: 0; }

/* Fuß */

.fuss { background: var(--flaeche); border-top: 1px solid var(--linie); padding: 28px 0 36px; font-size: 15px; color: var(--stein); }

.fuss p { max-width: 40em; }

.fuss-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }

.fuss-links a { display: inline-block; padding: 10px 0; text-decoration: none; transition: color .15s; }

.fuss-links a:hover { color: var(--tinte); text-decoration: underline; text-underline-offset: 4px; }

/* Ab Tablet */

@media (min-width: 720px) {
    :root { --rand: 32px; }

    .kopf-nav { display: flex; }
    .kopf-zeile > .knopf { margin-left: 0; }

    .plan-zeile { grid-template-columns: 170px minmax(0, 1fr); }
    .plan-bild { grid-column: 2; }

    .frage { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

    .preis-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 48px; }

    .beleg-tabelle { font-size: 17px; }
    .beleg-tabelle thead th + th { width: 28%; }
}

/* Ab Desktop */

@media (min-width: 1040px) {
    .einstieg { padding: 72px 0 88px; }

    .einstieg-raster { grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); align-items: center; gap: 56px; }

    .paar-bilder { gap: 20px; }

    .plan-zeile { grid-template-columns: 190px minmax(0, 1fr) 280px; padding: 40px 0 48px; }
    .plan-bild { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
    .plan-text { grid-column: 2; }
    .breit .plan-text { grid-column: 2 / 4; max-width: 46em; }

    .preis { padding: 80px 0 88px; }

    .beleg { padding: 32px 36px 28px; margin-top: 16px; }

    .beleg-tabelle thead th + th { width: 22%; }

    .kontakt-raster { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
