/* =====================================================
   titus-hildebrand.de: Gestaltungssystem (Stufe 1)
   Gilt für Kopf- und Fußbereich aller Seiten sowie die
   Startseite. Die Studien- und Admin-Seiten behalten ihre
   Bausteine aus style.css.
   ===================================================== */

@font-face {
    font-family: "Platypi";
    src: url("/assets/fonts/platypi-variable.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Manrope";
    src: url("/assets/fonts/manrope-variable.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --th-tinte:     #13202e;
    --th-nacht:     #1a2e4a;
    --th-nacht-2:   #223b5d;
    --th-papier:    #f7f8fa;
    --th-weiss:     #ffffff;
    --th-nebel:     #ecf0f4;
    --th-linie:     #dce2e9;
    --th-linie-kraeftig: #b3bdc9;
    --th-schiefer:  #4a596b;
    --th-bernstein: #b7791f;
    --th-bernstein-hell: #e3a857;

    --th-serif: "Platypi", Georgia, "Times New Roman", serif;
    --th-sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* fünf Textstufen, dazu die Überschriften */
    --th-fs-klein: .8125rem;
    --th-fs-fein:  .875rem;
    --th-fs-basis: 1rem;
    --th-fs-text:  1.125rem;
    --th-fs-lead:  1.25rem;

    --th-schatten-1: 0 1px 2px rgba(19, 32, 46, 0.05), 0 12px 28px -20px rgba(19, 32, 46, 0.35);
    --th-schatten-2: 0 34px 60px -40px rgba(19, 32, 46, 0.5);

    --th-breite:  72.5rem;
    --th-rand:    clamp(1.25rem, 4vw, 2.5rem);
    --th-abstand: clamp(4.5rem, 9vw, 7.5rem);
    --th-spalt:   clamp(1.25rem, 4vw, 3.5rem);
    --th-kurve:   cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--th-sans);
    color: var(--th-tinte);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

/* Tastaturfokus: outline folgt dem Radius des Elements von selbst */
a:focus-visible { outline: 2px solid var(--th-bernstein); outline-offset: 2px; }
.site-nav a:focus-visible, .site-nav button:focus-visible,
.page-home a:focus-visible, .page-home button:focus-visible,
.site-foot a:focus-visible {
    outline: 2px solid var(--th-bernstein);
    outline-offset: 3px;
}
/* Bootstrap-Bausteine der älteren Seiten (Anmeldung, Lebenslauf, Delphi, Studie, Admin): dieselbe
   Bernstein-Kante statt des blassen Bootstrap-Schimmers (1,4:1). Der Kundenbereich hat eigene Regeln. */
.btn:focus-visible, body:not(.page-portal) .form-control:focus, .form-select:focus,
.form-check-input:focus-visible, .accordion-button:focus-visible, .btn-close:focus-visible {
    outline: 2px solid var(--th-bernstein);
    outline-offset: 2px;
    box-shadow: none;
}
/* Auf dunklen Flächen die helle Bernsteinfarbe (3,6:1 auf #2a5298) */
.delphi-hero :focus-visible, .study-header :focus-visible { outline: 2px solid var(--th-bernstein-hell); outline-offset: 2px; }

/* Fokus und Sprungziele verschwinden nicht unter der festen Kopfleiste und der Fragebogen-Leiste */
html { scroll-padding-top: 5.5rem; }
html:has(.fragen-leiste) { scroll-padding-bottom: 9rem; }

/* Ränder von Eingabefeldern und Häkchen mit genug Kontrast (3,6:1 statt 1,3:1) */
.form-control, .form-select, .form-check-input { border-color: #7b8898; }

/* Das Sprungziel bekommt den Fokus, zeigt aber keinen Rahmen um die ganze Seite */
main:focus { outline: none; }

/* Sprunglink „Zum Inhalt“: erscheint nur, wenn man ihn mit der Tastatur erreicht */
.skip-link:focus {
    position: fixed; top: .75rem; left: .75rem; z-index: 2000;
    padding: .6rem 1rem; border-radius: .6rem;
    background: var(--th-nacht); color: #fff; font-weight: 700; text-decoration: none;
    outline: 2px solid var(--th-bernstein-hell); outline-offset: 2px;
}

/* Bei wenig Höhe (Handy quer, 400 % Zoom) bleiben Kopfleiste und Leisten nicht stehen */
@media (max-height: 30rem) {
    .site-nav { position: relative; }
    .fragen-leiste, .portal-meldung--fest { position: static; }
    html, html:has(.fragen-leiste) { scroll-padding-top: 0; scroll-padding-bottom: 0; }
}

/* =====================================================
   KOPFLEISTE
   ===================================================== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(247, 248, 250, 0.82);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    backdrop-filter: blur(18px) saturate(170%);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.site-nav.is-scrolled { border-bottom-color: rgba(19, 32, 46, 0.07); box-shadow: var(--th-schatten-1); }
.site-nav .th-wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }

.nav-brand {
    display: inline-flex; align-items: center; gap: .6rem;
    color: var(--th-tinte); text-decoration: none;
    font-weight: 750; font-size: var(--th-fs-basis); letter-spacing: -0.01em;
    margin-right: auto;
}
.nav-brand img { width: 1.9rem; height: 1.9rem; border-radius: 7px; }
.nav-brand:hover { color: var(--th-tinte); }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    display: inline-block;
    color: var(--th-schiefer);
    font-weight: 600; font-size: var(--th-fs-fein);
    text-decoration: none;
    padding: .55rem .8rem;
    border-radius: 999px;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease, background-color .2s ease;
}
.nav-links a.active { color: var(--th-tinte); }
.nav-links a.btn-th { color: #fff; background: var(--th-nacht); padding: .6rem 1.05rem; }
/* Anmelden: ruhiger Rahmen neben dem dunklen Kontakt-Knopf */
.nav-links a.nav-anmelden {
    display: inline-flex; align-items: center; gap: .4rem; line-height: 1;
    color: var(--th-tinte); border: 1px solid var(--th-linie-kraeftig); padding: .6rem .95rem;
}
.nav-links a.nav-anmelden .bi { font-size: 1.05em; line-height: 1; }
/* Konto-Menü: ein echter Knopf (Leertaste öffnet ihn), sieht aus wie die Menüpunkte */
.nav-links button.nav-konto {
    display: inline-block; font: inherit; font-weight: 600; font-size: var(--th-fs-fein);
    color: var(--th-schiefer); background: none; border: 0;
    padding: .55rem .8rem; border-radius: 999px;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease, background-color .2s ease;
}
.nav-links .dropdown-menu { font-size: var(--th-fs-fein); border-color: var(--th-linie); border-radius: 12px; }

/* DE/EN wie bei skipperfriends.de: runde Leiste, die aktive Sprache als dunkle Fläche.
   Steht mit dem Menüknopf rechts in der Leiste, auf dem Handy also neben dem Menü. */
.nav-right { display: flex; align-items: center; gap: .25rem; }
.lang-toggle {
    display: inline-flex; align-items: center; padding: 3px;
    border: 1px solid var(--th-linie); border-radius: 999px; background: var(--th-weiss);
}
.lang-toggle a {
    display: flex; align-items: center; line-height: 1;
    font-weight: 700; font-size: var(--th-fs-klein); letter-spacing: .04em;
    color: var(--th-schiefer); text-decoration: none;
    padding: 6px 11px; border-radius: 999px;
    transition: background-color .15s ease, color .15s ease;
}
.lang-toggle a.active { background: var(--th-nacht); color: #fff; }
.nav-brand span { white-space: nowrap; }

.nav-toggle {
    display: none;
    align-items: center; justify-content: center;
    min-width: 2.75rem; min-height: 2.75rem;
    border: 0; background: transparent; color: var(--th-tinte);
    font-size: 1.6rem; line-height: 1; border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .nav-links a:hover, .nav-links button.nav-konto:hover { color: var(--th-tinte); background: rgba(19, 32, 46, 0.05); }
    .lang-toggle a:not(.active):hover { color: var(--th-tinte); }
    .nav-links a.nav-anmelden:hover { background: var(--th-weiss); border-color: var(--th-schiefer); }
    .nav-links a.btn-th:hover { color: #fff; background: var(--th-nacht-2); }
}

@media (max-width: 61.99em) {
    .nav-toggle { display: inline-flex; }
    .nav-menu {
        position: absolute; left: 0; right: 0; top: 100%;
        /* deckend: ein Weichzeichner in der Kopfleiste mit Weichzeichner lässt Inhalt durchscheinen */
        background: var(--th-papier);
        border-bottom: 1px solid var(--th-linie);
        box-shadow: var(--th-schatten-1);
        padding: .5rem var(--th-rand) 1.25rem;
    }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-links a { display: block; padding: .85rem .25rem; border-radius: 0; font-size: var(--th-fs-basis); }
    .nav-links button.nav-konto { display: block; width: 100%; text-align: left; padding: .85rem .25rem; border-radius: 0; font-size: var(--th-fs-basis); }
    .nav-links a.btn-th { display: flex; border-radius: 999px; padding: .9rem 1rem; margin-top: .75rem; font-size: var(--th-fs-basis); }
    .nav-links a.nav-anmelden { display: flex; justify-content: center; border-radius: 999px; padding: .85rem 1rem; margin-top: .75rem; }
}
@media (max-width: 359.98px) { .nav-brand img { display: none; } }
@media (min-width: 62em) {
    .nav-right { order: 3; }
    .nav-menu { order: 2; }
    .nav-menu { display: flex !important; align-items: center; gap: .5rem; }
}

/* =====================================================
   KNÖPFE
   ===================================================== */
.btn-th {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--th-sans); font-weight: 700; font-size: var(--th-fs-basis);
    line-height: 1; letter-spacing: -0.005em;
    padding: .95rem 1.35rem;
    border-radius: 999px;
    border: 1px solid var(--th-nacht);
    background: var(--th-nacht); color: #fff;
    text-decoration: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease-out, background-color .2s ease, box-shadow .25s ease, color .2s ease, border-color .2s ease;
}
.btn-th:active { transform: scale(0.97); }
.btn-th .bi { font-size: 1.05em; transition: transform .25s var(--th-kurve); }

.btn-th--leise { background: transparent; color: var(--th-tinte); border-color: var(--th-linie-kraeftig); }
.btn-th--klein { padding: .65rem 1rem; font-size: var(--th-fs-fein); }
.btn-th--hell { background: #fff; color: var(--th-nacht); border-color: #fff; }
.btn-th--rahmen-hell { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }

@media (hover: hover) and (pointer: fine) {
    .btn-th:hover { background: var(--th-nacht-2); border-color: var(--th-nacht-2); color: #fff; box-shadow: var(--th-schatten-1); }
    .btn-th:hover .bi-arrow-right, .btn-th:hover .bi-arrow-up-right { transform: translateX(3px); }
    .btn-th--leise:hover { background: var(--th-weiss); color: var(--th-tinte); border-color: var(--th-schiefer); box-shadow: none; }
    .btn-th--hell:hover { background: #eef2f7; border-color: #eef2f7; color: var(--th-nacht); }
    .btn-th--rahmen-hell:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.7); color: #fff; box-shadow: none; }
}

/* =====================================================
   STARTSEITE: Typografie und Abschnitte
   ===================================================== */
.page-home { background: var(--th-papier); }
.page-home main { overflow-x: clip; }

.th-eyebrow, .th-meta, .press-label, .site-foot h2 {
    font-size: var(--th-fs-klein); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--th-schiefer);
}
.th-eyebrow { display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1.25rem; }
.th-eyebrow::before { content: ""; flex: none; width: 1.75rem; height: 2px; background: var(--th-bernstein); border-radius: 2px; }
/* auf schmalen Handys passt „Selbstständiger Software-Entwickler“ so in eine Zeile */
@media (max-width: 419.98px) {
    .th-eyebrow { font-size: .75rem; letter-spacing: .06em; gap: .5rem; }
    .th-eyebrow::before { width: 1.25rem; }
}

.th-display {
    font-family: var(--th-serif);
    font-weight: 600;
    font-size: clamp(2.3rem, 1.2rem + 3.2vw, 3.6rem);
    line-height: 1.03;
    letter-spacing: -0.024em;
    color: var(--th-tinte);
    margin: 0 0 1.35rem;
    text-wrap: balance;
}
.th-h2 {
    font-family: var(--th-serif);
    font-weight: 600;
    font-size: clamp(1.85rem, 1.15rem + 2vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--th-tinte);
    margin: 0 0 .9rem;
    text-wrap: balance;
}
.th-h3 {
    font-family: var(--th-serif);
    font-weight: 600;
    font-size: clamp(1.5rem, 1.2rem + .7vw, 1.75rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--th-tinte);
    margin: 0 0 .6rem;
    text-wrap: balance;
}
.th-lead { font-size: var(--th-fs-lead); line-height: 1.6; color: var(--th-schiefer); max-width: 38rem; margin: 0; }
.th-text { font-size: var(--th-fs-text); line-height: 1.65; color: var(--th-schiefer); margin: 0 0 1rem; max-width: 40rem; }
.th-meta {
    /* bricht zwischen den Angaben um; der Punkt am Zeilenanfang liegt links
       außerhalb und wird abgeschnitten */
    display: flex; flex-wrap: wrap; row-gap: .1rem;
    margin: 0 0 .5rem -1.25rem;
    clip-path: inset(-.5em -.5em -.5em 1.25rem);
}
.th-meta span { position: relative; padding-left: 1.25rem; white-space: nowrap; }
.th-meta span::before { content: "·"; position: absolute; left: 0; width: 1.25rem; text-align: center; color: var(--th-bernstein); }

.home-section { padding: var(--th-abstand) 0; }
.home-section--nebel { background: var(--th-nebel); }
.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

/* zweispaltige Raster teilen sich Spaltenverhältnis und Abstand */
.raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 900px) {
    .raster { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--th-spalt); }
    .raster--gespiegelt { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

/* ---- Kopfbereich ---- */
.home-hero { padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-apps { margin: 1.6rem 0 0; font-size: var(--th-fs-basis); line-height: 1.6; color: var(--th-schiefer); }
.hero-apps a { color: var(--th-tinte); font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--th-linie-kraeftig); transition: border-color .2s; white-space: nowrap; }
.hero-apps a:hover { border-color: var(--th-bernstein); }
@media (max-width: 575.98px) { .hero-actions .btn-th { flex: 1 1 100%; } }

/* Porträt im Kreis, mit feinem Ring in etwas Abstand */
.portrait { position: relative; width: min(100% - 2rem, 19rem); margin: 1rem auto; }
.portrait::before {
    content: "";
    position: absolute; inset: -0.9rem;
    border-radius: 50%;
    border: 1px solid var(--th-linie-kraeftig);
    pointer-events: none;
}
.portrait img {
    display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 22%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(19, 32, 46, 0.16), var(--th-schatten-2);
}
@media (max-width: 899.98px) { .portrait { width: min(55%, 12.5rem); margin: 1rem 0 0 .9rem; } }

/* ---- Presseband ---- */
.press-band { border-top: 1px solid var(--th-linie); border-bottom: 1px solid var(--th-linie); padding: 1.35rem 0; }
.press-band .th-wrap { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 2rem; row-gap: .6rem; }
.press-label { margin: 0; }
.press-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 2.25rem; list-style: none; margin: 0; padding: 0; }
.press-list a {
    font-family: var(--th-serif); font-weight: 600; font-size: var(--th-fs-lead); letter-spacing: -0.01em;
    color: var(--th-tinte); text-decoration: none; opacity: .8; white-space: nowrap;
    transition: opacity .2s ease;
}
.press-list a:hover { opacity: 1; }
.press-list a .bi { font-size: .7em; margin-left: .3rem; color: var(--th-bernstein); vertical-align: .25em; }

/* ---- Karten ---- */
.karte {
    background: var(--th-weiss);
    border: 1px solid var(--th-linie);
    border-radius: 1.25rem;
    padding: clamp(1.5rem, 3.5vw, 2.25rem);
    display: flex; flex-direction: column; align-items: flex-start;
}
.karte--gehoben { box-shadow: var(--th-schatten-2); }
.karte > .work-links, .karte > .btn-th:last-child { margin-top: auto; }

/* ---- Leistungen ---- */
.services { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 900px) { .services { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.service-apps { display: flex; gap: .6rem; margin: .5rem 0 1.5rem; }
.service-apps img { width: 2.75rem; height: 2.75rem; border-radius: .7rem; box-shadow: 0 0 0 1px var(--th-linie); }

/* ---- Arbeiten ---- */
.work-feature { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.browser { border-radius: 1rem; overflow: hidden; border: 1px solid var(--th-linie); background: #fff; box-shadow: var(--th-schatten-2); width: 100%; }
.browser-leiste { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; background: var(--th-papier); border-bottom: 1px solid var(--th-linie); }
.browser-leiste .adresse { flex: 1; font-size: var(--th-fs-klein); font-weight: 650; color: var(--th-schiefer); background: #fff; border: 1px solid var(--th-linie); border-radius: 999px; padding: .2rem .7rem; text-align: center; }
.browser-leiste .bi { color: #8a97a6; font-size: var(--th-fs-fein); }
.browser img { display: block; width: 100%; height: auto; }

.work-title { display: flex; align-items: center; gap: .85rem; margin-bottom: .75rem; }
.work-title img { width: 3rem; height: 3rem; border-radius: .8rem; box-shadow: 0 0 0 1px var(--th-linie); }
.work-title .th-h3 { margin: 0; }
.work-links { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: 1.25rem; }

.work-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 900px) { .work-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Telefone in beiden Karten gleich hoch und oben ausgerichtet, unten angeschnitten */
.phone-panel {
    align-self: stretch;
    height: 16rem;
    margin: 0 0 1.5rem;
    border-radius: .9rem;
    overflow: hidden;
    display: flex; justify-content: center; align-items: flex-start;
    padding: 1.25rem 1.25rem 0;
    background: linear-gradient(180deg, #0f3e71 0%, #0a3264 48%, #062652 100%);
}
.phone-panel img {
    display: block; width: 11rem; height: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.work-quote { margin: .5rem 0 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--th-bernstein); }
.work-quote p { font-family: var(--th-serif); font-weight: 500; font-size: var(--th-fs-lead); line-height: 1.4; color: var(--th-tinte); margin: 0 0 .45rem; }
.work-quote cite { font-style: normal; font-size: var(--th-fs-fein); color: var(--th-schiefer); }
.work-quote cite a { color: var(--th-tinte); text-decoration: underline; text-decoration-color: rgba(19, 32, 46, 0.35); text-underline-offset: .2em; }
.work-quote cite a:hover { text-decoration-color: var(--th-bernstein); }

.th-note { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; font-size: var(--th-fs-basis); line-height: 1.6; color: var(--th-schiefer); display: flex; align-items: baseline; gap: .6rem; }
.th-note .bi { color: var(--th-bernstein); font-size: 1.1rem; transform: translateY(.12em); }

/* ---- Über mich ---- */
.about-bild { border-radius: 1.5rem; overflow: hidden; max-width: 26rem; margin: 0; }
.about-bild img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 899.98px) { .about-bild { max-width: none; } .about-bild img { aspect-ratio: 4 / 3; object-position: 50% 30%; } }

/* ---- Ablauf ---- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 1.25rem; list-style: none; margin: 0; padding: 0; counter-reset: schritt; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step {
    counter-increment: schritt;
    padding: 1.25rem .25rem 0 0;
    background:
        linear-gradient(var(--th-bernstein) 0 0) 0 0 / 1.75rem 2px no-repeat,
        linear-gradient(var(--th-linie) 0 0) 0 0 / 100% 1px no-repeat;
}
.step::before {
    content: counter(schritt);
    display: block;
    font-family: var(--th-serif); font-weight: 600; font-size: 1.75rem; line-height: 1;
    color: var(--th-tinte); margin-bottom: .8rem;
}
.step h3 { font-family: var(--th-sans); font-weight: 750; font-size: var(--th-fs-text); letter-spacing: -0.01em; margin: 0 0 .45rem; color: var(--th-tinte); }
.step p { font-size: var(--th-fs-basis); line-height: 1.6; color: var(--th-schiefer); margin: 0; }

/* ---- Kontakt ---- */
.contact-band { background: var(--th-nacht); color: #fff; padding: var(--th-abstand) 0; position: relative; overflow: hidden; }
.contact-band::after {
    content: ""; position: absolute; right: -8rem; bottom: -14rem; width: 34rem; height: 34rem;
    border-radius: 999px 999px 0 0; border: 1px solid rgba(255, 255, 255, 0.08); pointer-events: none;
}
@media (max-width: 899.98px) { .contact-band::after { display: none; } }
.contact-band .th-h2 { color: #fff; }
.contact-band .th-lead { color: rgba(255, 255, 255, 0.8); }
.contact-band .raster { align-items: end; position: relative; z-index: 1; }
@media (min-width: 900px) { .contact-band .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-mail { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.contact-mail .adresse { font-family: var(--th-serif); font-weight: 600; font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.contact-mail .adresse:hover { border-color: var(--th-bernstein-hell); color: #fff; }
.contact-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; align-self: stretch; max-width: 28rem; }
/* nebeneinander gleich breit, bei Platzmangel untereinander in voller Breite */
.contact-knoepfe .btn-th { flex: 1 1 auto; }
.kopier-status { font-size: var(--th-fs-fein); color: var(--th-bernstein-hell); min-height: 1.3em; }
.contact-small { font-size: var(--th-fs-fein); color: rgba(255, 255, 255, 0.68); margin: 2.5rem 0 0; position: relative; z-index: 1; }
.contact-small a { color: rgba(255, 255, 255, 0.9); }

/* =====================================================
   FUSSBEREICH
   ===================================================== */
.site-foot { background: var(--th-tinte); color: rgba(255, 255, 255, 0.7); padding: 3.5rem 0 2rem; font-size: var(--th-fs-fein); }
.foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.foot-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: auto; } }
.foot-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 750; margin-bottom: .6rem; font-size: var(--th-fs-basis); }
.foot-brand img { width: 1.75rem; height: 1.75rem; border-radius: 6px; }
.site-foot h2 { color: rgba(255, 255, 255, 0.55); margin: 0 0 .4rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-foot ul a { display: inline-block; padding: .45rem 0; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: var(--th-fs-klein); color: rgba(255, 255, 255, 0.55); }

/* =====================================================
   BEWEGUNG
   ===================================================== */
@keyframes th-auftauchen { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-text > *, .hero-bild {
    animation: th-auftauchen .6s var(--th-kurve) both;
    animation-delay: calc(var(--d, 0) * 50ms);
}
/* Erst das Skript blendet Inhalte aus; lädt es nicht, bleibt alles sichtbar */
.reveal [data-reveal] { transition: opacity .5s var(--th-kurve), transform .5s var(--th-kurve); }
.reveal [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(12px); }

@media (prefers-reduced-motion: reduce) {
    .hero-text > *, .hero-bild { animation: none; }
    .reveal [data-reveal] { transition: none; }
    .reveal [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
    .btn-th, .btn-th .bi { transition: none; }
    .btn-th:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
    .site-nav { background: var(--th-papier); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Sprungziele nicht unter der festen Kopfleiste verstecken */
.page-home section[id] { scroll-margin-top: 4.5rem; }
@media (prefers-reduced-motion: no-preference) { html:has(.page-home) { scroll-behavior: smooth; } }

/* =====================================================
   KUNDENBEREICH (/kunden)
   Gleiche Bausteine wie die Startseite: Papiergrund, weiße
   Karten, Platypi für Überschriften, Bernstein als Akzent.
   ===================================================== */
.page-portal { background: var(--th-papier); }
.page-portal a:focus-visible, .page-portal button:focus-visible, .page-portal summary:focus-visible {
    outline: 2px solid var(--th-bernstein);
    outline-offset: 3px;
}

.portal { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(4rem, 8vw, 6rem); }
.portal--schmal { max-width: 52rem; }
.portal--eng { max-width: 34rem; }

.portal-zurueck {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: var(--th-fs-fein); font-weight: 650; color: var(--th-schiefer);
    text-decoration: none; padding: .35rem 0; margin-bottom: 1.25rem;
}
.portal-zurueck:hover { color: var(--th-tinte); }
.portal-zurueck .bi { transition: transform .25s var(--th-kurve); }
.portal-zurueck:hover .bi { transform: translateX(-3px); }

.portal-kopf { margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.portal-kopf .th-display { font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.1rem); margin-bottom: .9rem; }
.portal-kopf .th-lead { max-width: 42rem; }
.portal-stand { font-size: var(--th-fs-fein); color: var(--th-schiefer); line-height: 1.5; margin: 1rem 0 0; }
.portal-stand .bi { color: #2f7d4f; }
.portal-klein { font-size: var(--th-fs-fein); color: var(--th-schiefer); line-height: 1.55; margin: .9rem 0 0; }
.portal-klein a, .portal-meldung a { color: inherit; text-underline-offset: .18em; }
.portal-text { font-size: var(--th-fs-basis); line-height: 1.6; color: var(--th-schiefer); margin: 0 0 1.25rem; }
.portal-leer { font-size: var(--th-fs-basis); line-height: 1.6; color: var(--th-schiefer); margin: 0 0 1rem; }

/* Rückmeldungen: ruhig, mit farbiger Kante statt großer Farbflächen */
.portal-meldung {
    margin: 0 0 1.5rem; padding: .9rem 1.1rem;
    font-size: var(--th-fs-basis); line-height: 1.55; color: var(--th-tinte);
    background: var(--th-weiss); border: 1px solid var(--th-linie); border-left: 3px solid var(--th-nacht);
    border-radius: .9rem;
}
.portal-meldung--success { border-left-color: #2f7d4f; background: #f3f9f5; }
.portal-meldung--warning { border-left-color: var(--th-bernstein); background: #fdf8ef; }
.portal-meldung--danger  { border-left-color: #b42318; background: #fdf4f3; }
.portal-meldung ul { margin: .4rem 0 0; padding-left: 1.15rem; }
.portal-meldung--fest { position: sticky; top: calc(4.75rem + env(safe-area-inset-top, 0px)); z-index: 25; box-shadow: var(--th-schatten-1); }

/* ---- Übersicht ---- */
.portal-projekt + .portal-projekt { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
/* Noch ohne Projekt: Abstand zwischen dem Hinweis „wird eingerichtet“ und den Rechnungen */
.portal-karte + .portal-projekt { margin-top: 1.25rem; }
.portal-projekt-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1.25rem; }
.portal-projekt-kopf .th-h3 { margin: 0; }
.portal-domain { font-size: var(--th-fs-fein); font-weight: 650; color: var(--th-schiefer); }

.portal-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 860px) {
    .portal-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-raster--einzeln { grid-template-columns: minmax(0, 1fr); max-width: calc(50% - .625rem); }
}

.portal-karte-kopf { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.portal-karte-kopf .bi {
    display: inline-grid; place-items: center; flex: none;
    width: 2.3rem; height: 2.3rem; border-radius: .75rem;
    background: var(--th-nebel); color: var(--th-nacht); font-size: 1.1rem;
}
.portal-karte-kopf h2, .portal-karte-kopf h3 {
    font-family: var(--th-sans); font-weight: 750; font-size: var(--th-fs-text);
    letter-spacing: -0.01em; color: var(--th-tinte); margin: 0;
}

.portal-liste { list-style: none; margin: 0 0 1rem; padding: 0; align-self: stretch; }
.portal-liste li + li { border-top: 1px solid var(--th-linie); }
.portal-liste li:first-child .portal-zeile { padding-top: 0; }
.portal-zeile {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem;
    padding: .85rem 0; color: var(--th-tinte); text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.portal-zeile > span { grid-column: 1; }
.portal-zeile-titel { font-weight: 700; }
.portal-zeile-text { font-size: var(--th-fs-fein); line-height: 1.5; color: var(--th-schiefer); margin-top: .15rem; }
.portal-zeile-meta { font-size: var(--th-fs-klein); color: var(--th-schiefer); margin-top: .2rem; }
.portal-zeile-pfeil { grid-column: 2; grid-row: 1 / span 3; align-self: center; color: var(--th-linie-kraeftig); transition: transform .25s var(--th-kurve), color .2s ease; }
.portal-zeile:hover { color: var(--th-tinte); }
@media (hover: hover) and (pointer: fine) {
    .portal-zeile:hover .portal-zeile-titel { text-decoration: underline; text-decoration-color: var(--th-bernstein); text-underline-offset: .22em; }
    .portal-zeile:hover .portal-zeile-pfeil { color: var(--th-tinte); transform: translateX(3px); }
}

.portal-zahl { font-size: var(--th-fs-basis); color: var(--th-schiefer); margin: 0 0 .65rem; }
.portal-zahl strong { font-family: var(--th-serif); font-weight: 600; font-size: 2.1rem; line-height: 1; color: var(--th-tinte); margin-right: .2rem; font-variant-numeric: tabular-nums; }
.portal-balken { align-self: stretch; height: .4rem; border-radius: 999px; background: var(--th-nebel); overflow: hidden; }
.portal-balken span { display: block; height: 100%; background: var(--th-bernstein); border-radius: inherit; }
.portal-karte .portal-stand { margin: .8rem 0 1.25rem; }

.portal-zahlen { list-style: none; margin: 0 0 1.25rem; padding: 0; align-self: stretch; }
.portal-zahlen li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--th-linie); color: var(--th-schiefer); }
.portal-zahlen li:first-child { padding-top: 0; }
.portal-zahlen strong { color: var(--th-tinte); font-variant-numeric: tabular-nums; }

/* ---- Formularfelder ---- */
.page-portal .form-control {
    font-family: var(--th-sans); font-size: 1rem; color: var(--th-tinte);
    padding: .7rem .9rem; background-color: var(--th-weiss);
    border: 1px solid #7b8898; border-radius: .75rem;
}
.page-portal .form-control:focus { border-color: var(--th-nacht); box-shadow: 0 0 0 3px rgba(183, 121, 31, 0.25); }
.page-portal .form-control[readonly] { background-color: var(--th-nebel); color: var(--th-schiefer); }

/* ---- Fragebogen ---- */
.fragen-abschnitt { margin-top: clamp(2.25rem, 5vw, 3rem); }
.fragen-abschnitt > .th-h3 { margin-bottom: .5rem; }
.fragen-hinweis { font-size: var(--th-fs-basis); line-height: 1.6; color: var(--th-schiefer); margin: 0 0 1rem; max-width: 40rem; }
.fragen-punkte {
    margin: 0; padding: 1.1rem 1.25rem 1.1rem 2.4rem; line-height: 1.6; color: var(--th-tinte);
    background: var(--th-weiss); border: 1px solid var(--th-linie); border-radius: 1rem;
}
.fragen-punkte li + li { margin-top: .5rem; }
.fragen-punkte li::marker { color: var(--th-bernstein); }

.frage {
    background: var(--th-weiss); border: 1px solid var(--th-linie); border-radius: 1rem;
    padding: clamp(1.1rem, 3vw, 1.5rem); scroll-margin-top: 5.5rem;
}
.frage + .frage { margin-top: .75rem; }
.frage--fehler { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }
.frage-marke {
    font-size: var(--th-fs-klein); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--th-schiefer); margin: 0 0 .55rem;
}
.frage-satz { display: block; font-weight: 650; font-size: var(--th-fs-text); line-height: 1.5; color: var(--th-tinte); margin: 0 0 1rem; }
.frage-satz--zitat {
    font-family: var(--th-serif); font-weight: 500; font-size: clamp(1.15rem, 1.05rem + .35vw, 1.3rem); line-height: 1.45;
    border-left: 2px solid var(--th-bernstein); padding-left: 1rem;
}
.frage-freiwillig { margin-left: .35rem; font-family: var(--th-sans); font-size: var(--th-fs-klein); font-weight: 600; letter-spacing: 0; color: var(--th-schiefer); }
.frage-jahr { max-width: 9rem; font-variant-numeric: tabular-nums; }
.frage-fehlertext { color: #b42318; font-size: var(--th-fs-fein); margin: .5rem 0 0; }

/* Auswahl als Schaltflächen; das echte Eingabefeld liegt unsichtbar darüber */
.wahl { display: flex; flex-wrap: wrap; gap: .5rem; }
.wahl-option { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.wahl-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wahl-option span {
    display: inline-flex; align-items: center; gap: .55rem;
    min-height: 2.75rem; padding: .55rem 1.05rem .55rem .85rem;
    font-weight: 650; font-size: var(--th-fs-basis); line-height: 1.25; color: var(--th-tinte);
    background: var(--th-weiss); border: 1px solid var(--th-linie-kraeftig); border-radius: 999px;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s ease-out;
}
.wahl-option span::before {
    content: ""; flex: none; width: 1rem; height: 1rem;
    border: 1.5px solid var(--th-schiefer); border-radius: 50%; background: var(--th-weiss);
}
.wahl--haken .wahl-option span::before { border-radius: .3rem; }
.wahl-option input:checked + span { background: var(--th-nacht); border-color: var(--th-nacht); color: #fff; }
.wahl-option input:checked + span::before { border-color: #fff; box-shadow: inset 0 0 0 3px var(--th-nacht); }
.wahl--haken .wahl-option input:checked + span::before {
    box-shadow: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231a2e4a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / .8rem no-repeat;
}
.wahl-option input:focus-visible + span { outline: 2px solid var(--th-bernstein); outline-offset: 2px; }
.wahl-option input:active + span { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
    .wahl-option:hover input:not(:checked) + span { border-color: var(--th-schiefer); }
}
@media (forced-colors: active) {
    .wahl-option input:checked + span { outline: 3px solid Highlight; }
}

.frage-feld { margin-top: 1rem; animation: th-auftauchen .35s var(--th-kurve) both; }
.frage-feld label { display: block; font-weight: 650; font-size: var(--th-fs-fein); color: var(--th-tinte); margin-bottom: .4rem; }

/* Schwebende Leiste mit Zähler und Knöpfen am unteren Rand */
.fragen-leiste {
    position: sticky; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); z-index: 20;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem;
    margin-top: 2.5rem; padding: .75rem .75rem .75rem 1.15rem;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    backdrop-filter: blur(16px) saturate(170%);
    border: 1px solid var(--th-linie); border-radius: 1.1rem;
    box-shadow: 0 1px 2px rgba(19, 32, 46, 0.06), 0 18px 40px -18px rgba(19, 32, 46, 0.35);
}
.fragen-zaehler { flex: 1 1 15rem; margin: 0; font-size: var(--th-fs-fein); line-height: 1.45; color: var(--th-schiefer); }
.fragen-zaehler strong { color: var(--th-tinte); font-variant-numeric: tabular-nums; }
.fragen-offen-kurz, .fragen-schmal { display: none; }
.fragen-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.fragen-knoepfe .btn-th { padding: .8rem 1.1rem; }
.btn-th[aria-disabled="true"] { opacity: .65; pointer-events: none; }
@media (max-width: 575.98px) {
    .fragen-leiste { padding: .7rem; }
    .fragen-offen-lang, .fragen-breit, .fragen-knoepfe .bi { display: none; }
    .fragen-offen-kurz, .fragen-schmal { display: inline; }
    .fragen-knoepfe { flex: 1 1 100%; flex-wrap: nowrap; }
    .fragen-knoepfe .btn-th { flex: 1 1 0; padding-inline: .6rem; }
}

/* ---- Dateien ---- */
.portal-bereich { align-items: stretch; scroll-margin-top: 5.5rem; }
.portal-bereich + .portal-bereich { margin-top: 1.25rem; }
.portal-bereich-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .5rem; }
.portal-bereich-kopf .th-h3 { margin: 0; }
.portal-anzahl { font-size: var(--th-fs-fein); font-weight: 650; color: var(--th-schiefer); }
.portal-bereich-text { font-size: var(--th-fs-basis); line-height: 1.6; color: var(--th-schiefer); margin: 0 0 1.25rem; max-width: 44rem; }
.portal-bereich .portal-meldung { margin-bottom: 1.25rem; }

.ablage {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
    padding: 1.6rem 1rem; text-align: center; cursor: pointer;
    background: var(--th-papier); border: 1.5px dashed var(--th-linie-kraeftig); border-radius: 1rem;
    transition: border-color .2s ease, background-color .2s ease;
}
.ablage .bi { font-size: 1.8rem; line-height: 1; color: var(--th-nacht); margin-bottom: .35rem; }
.ablage-titel { font-weight: 750; color: var(--th-tinte); }
.ablage-text { font-size: var(--th-fs-fein); color: var(--th-schiefer); }
.ablage-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ablage:hover, .ablage.is-ziehen { background: var(--th-weiss); border-color: var(--th-nacht); }
.ablage:focus-within { outline: 2px solid var(--th-bernstein); outline-offset: 3px; }
@media (hover: none) { .ablage-text { display: none; } }

.ablage-auswahl { list-style: none; margin: .75rem 0 0; padding: 0; font-size: var(--th-fs-fein); }
.ablage-auswahl li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--th-linie); color: var(--th-tinte); }
.ablage-auswahl li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ablage-auswahl li span:last-child { flex: none; color: var(--th-schiefer); font-variant-numeric: tabular-nums; }
.ablage-auswahl li.ist-fehler span { color: #b42318; }

.portal-haken { display: flex; align-items: flex-start; gap: .65rem; margin: 1rem 0 0; line-height: 1.5; color: var(--th-tinte); cursor: pointer; }
.portal-haken input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--th-nacht); }

.ablage-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1rem; }
.ablage-fortschritt { flex: 1 1 10rem; height: .45rem; border-radius: 999px; background: var(--th-nebel); overflow: hidden; }
.ablage-fortschritt span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--th-bernstein); transition: width .2s linear; }
.ablage-status { flex: 1 1 100%; margin: 0; font-size: var(--th-fs-fein); line-height: 1.5; color: var(--th-schiefer); }
.ablage-status:empty { display: none; }
.ablage-status.ist-fehler { color: #b42318; }

.datei-liste { list-style: none; margin: 1.25rem 0 0; padding: 0; border-top: 1px solid var(--th-linie); }
.datei { display: flex; align-items: center; gap: .85rem; padding: .65rem 0; border-bottom: 1px solid var(--th-linie); }
.datei-symbol { flex: none; font-size: 1.35rem; color: var(--th-schiefer); }
.datei-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.datei-name { font-weight: 650; color: var(--th-tinte); text-decoration: none; overflow-wrap: anywhere; }
.datei-name:hover { color: var(--th-tinte); text-decoration: underline; text-decoration-color: var(--th-bernstein); text-underline-offset: .2em; }
.datei-meta { font-size: var(--th-fs-klein); color: var(--th-schiefer); }
.datei form { margin: 0; }
.datei-loeschen {
    display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
    border: 0; border-radius: .75rem; background: transparent; color: var(--th-schiefer);
    transition: background-color .15s ease, color .15s ease;
}
.datei-loeschen:hover { background: #fdf4f3; color: #b42318; }

/* ---- Rechnung ---- */
.portal-kopf--rechnung { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.rechnung-daten { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; margin: 1.1rem 0 0; }
.rechnung-daten dt { font-size: var(--th-fs-klein); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--th-schiefer); }
.rechnung-daten dd { margin: .15rem 0 0; font-weight: 650; color: var(--th-tinte); font-variant-numeric: tabular-nums; }
.rechnung-vorschau { overflow: hidden; background: var(--th-weiss); border: 1px solid var(--th-linie); border-radius: 1rem; box-shadow: var(--th-schatten-2); }
.rechnung-vorschau iframe { display: block; width: 100%; height: 80vh; min-height: 34rem; border: 0; }
@media (max-width: 767.98px) { .rechnung-vorschau, .rechnung-vorschau-hinweis { display: none; } }

/* ---- Einladung ---- */
.portal-einladung { align-items: stretch; }
.portal-einladung .th-h3 { margin-bottom: .75rem; }
.portal-formular { display: flex; flex-direction: column; }
.portal-feld { margin-bottom: 1rem; }
.portal-feld label { display: block; font-weight: 650; font-size: var(--th-fs-fein); color: var(--th-tinte); margin-bottom: .35rem; }
.portal-formular .btn-th { margin-top: .5rem; }

@media (prefers-reduced-motion: reduce) {
    .frage-feld { animation: none; }
    .wahl-option span, .portal-zurueck .bi, .portal-zeile-pfeil { transition: none; }
    .wahl-option input:active + span { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
    .fragen-leiste { background: var(--th-weiss); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* =====================================================
   ANMELDUNG UND SITZUNG
   ===================================================== */
.auth-nebenlink { font-size: var(--th-fs-fein); color: var(--th-schiefer); text-underline-offset: .18em; }
.auth-nebenlink:hover { color: var(--th-nacht); }
.auth-mehr summary { cursor: pointer; font-size: var(--th-fs-fein); font-weight: 650; color: var(--th-schiefer); }
.auth-mehr summary:hover { color: var(--th-nacht); }
.nav-links .dropdown-menu form { margin: 0; }
.nav-links .dropdown-menu button.dropdown-item { font: inherit; }

/* Passwortregeln zwischen Beschriftung und Feld: gelesen, bevor man tippt */
ul.passwort-regeln { margin: 0 0 .5rem; padding-left: 1.1rem; line-height: 1.5; }
ul.passwort-regeln li + li { margin-top: .2rem; }

/* Hinweis, wenn die Anmeldung während der Arbeit abgelaufen ist */
.sitzung-hinweis {
    position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 1080;
    width: min(36rem, calc(100% - 2rem)); transform: translateX(-50%);
    padding: .9rem 1.1rem; border-radius: .9rem;
    background: var(--th-nacht); color: var(--th-weiss); box-shadow: var(--th-schatten-2);
    font-size: var(--th-fs-fein); line-height: 1.5;
}
.sitzung-hinweis a { color: var(--th-bernstein-hell); font-weight: 650; text-underline-offset: .18em; }
/* Rechnung als Tabelle im Kundenbereich */
.rechnung-inhalt { margin-top: 2rem; }
.rechnung-tabelle { width: 100%; border-collapse: collapse; background: var(--th-weiss); font-size: var(--th-fs-fein); border: 1px solid var(--th-linie); }
.rechnung-tabelle th, .rechnung-tabelle td { padding: .65rem .9rem; border-bottom: 1px solid var(--th-linie); vertical-align: top; text-align: left; }
.rechnung-tabelle thead th { font-size: var(--th-fs-klein); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--th-schiefer); }
.rechnung-tabelle .text-end { text-align: right; white-space: nowrap; }
.rechnung-tabelle tfoot th { font-weight: 600; }
.rechnung-summe th, .rechnung-summe td { font-weight: 750; font-size: var(--th-fs-basis); border-bottom: 0; }
.rechnung-zusatz { display: block; color: var(--th-schiefer); margin-top: .2rem; }

.sitzung-knopf {
    font: inherit; font-weight: 700; color: var(--th-tinte); background: var(--th-bernstein-hell);
    border: 0; border-radius: 999px; padding: .5rem 1.1rem; min-height: 2.5rem;
}
.sitzung-knopf:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
