/*
 * Taxelo Online — Portal-Styles. Look-and-Feel an Setup-Wizard + Admin-Header
 * der Taxelo-Desktop-App (taxelo-app) angeglichen:
 *   - Blauer Header-Balken (#0460A2)
 *   - Card-/Form-/Button-Stil aus setup.css
 *   - Taxelo-CI-Palette: #0460A2 Primary (=Header), #1e8e3e Success,
 *     #d93025 Error, #5f6368 Sekundaer-Text
 *   - Schriften (SIL OFL 1.1, self-hosted aus /fonts/): Inter = Body,
 *     Geist-Taxelo = Display/Headings/Brand
 * Kein externes Framework, kein JS.
 */

/* Body-Font: Inter — Fliesstext, UI, Tabellen */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Display-Font: Geist-Taxelo — NUR Headings/Hero/Brand, nie Fliesstext/Tabellen */
@font-face {
    font-family: 'Geist-Taxelo';
    src: url('/fonts/Geist-Taxelo-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist-Taxelo';
    src: url('/fonts/Geist-Taxelo-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    background: #f8f9fa;
    color: #202124;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Display-Rolle: Brand, Hero + alle Headings auf Geist-Taxelo.
   Geist-Taxelo nie in Fliesstext oder Tabellen. */
.portal-header-brand,
.section-h2,
.landing-h1,
.landing-hero,
.hero-split-col-label,
.konto-hub-header h1,
.konto-tab-panel h2,
.prose h1,
.prose h2,
.prose h3 {
    font-family: 'Geist-Taxelo', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a {
    color: #0460A2;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ---------- Shell / Header / Footer ---------- */

.portal-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-header {
    background: #0460A2;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.portal-header-brand {
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.2px;
}
.portal-header-brand:hover {
    text-decoration: none;
    color: #ffffff;
    opacity: 0.9;
}

.portal-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.portal-header-nav a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 14px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.portal-header-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
}

/* Marketing-Nav-Links: teal-Hover analog zu taxelo.de */
.portal-header-nav-link {
    position: relative;
    padding: 8px 12px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}
.portal-header-nav-link:hover {
    background: transparent !important;
    color: var(--entity-teal, #5dded3) !important;
}

@media (max-width: 768px) {
    .portal-header-nav-link {
        display: none;
    }
}

.portal-header-nav .button {
    /* Header-Button-Variante: weiss-auf-blau */
    background: rgba(255, 255, 255, 0.0);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 6px 14px;
    font-size: 13px;
}
.portal-header-nav .button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.portal-main {
    flex: 1;
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 24px 32px;
}

/* Landing-Page-Sektionen brechen aus dem 1024px-Cap aus und gehen full-bleed.
   :has() wird in allen modernen Browsern (Chrome 105+, Safari 15.4+, FF 121+)
   unterstuetzt — Landing-Route hat .landing-hero, andere Pages nicht. */
.portal-main:has(.landing-hero) {
    max-width: none;
    padding: 0;
    /* CI-Regel: Text ist Blau (Default), Weiss (dunkle Sektion), Grau oder Teal —
       niemals Schwarz. Body-Default ist #202124, daher hier explizit ueberschreiben. */
    color: var(--entity-blue);
}

/* Editor-Pages brechen aus dem 1024px-Cap aus, damit Editor + Preview auf
   grossen Monitoren die volle Breite nutzen. */
.portal-main:has(.editor-page-wrapper) {
    max-width: none;
}

.portal-footer {
    background: #ffffff;
    border-top: 1px solid #e8eaed;
    padding: 16px 24px;
    font-size: 12px;
    color: #5f6368;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-footer-links a {
    color: #5f6368;
    margin-left: 16px;
}
.portal-footer-links a:hover {
    color: #202124;
}

/* ---------- Landing — Marketing-Multisektion ---------- */

/* CI-Tokens aus entity-tax/taxelo.de */
:root {
    --entity-blue: #0460a2;
    --entity-teal: #5dded3;
    --entity-gray: #f5f5f5;
    --entity-border: #d9d9d9;
    --entity-text: #202124;
    --entity-muted: #5f6368;
}

.landing-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sektion-Basisklassen */
.section {
    padding: 80px 0;
}
@media (min-width: 768px) {
    .section { padding: 112px 0; }
}
@media (min-width: 1024px) {
    .section { padding: 144px 0; }
}
.section-gray { background: var(--entity-gray); }
.section-dark { background: var(--entity-blue); color: #fff; }

.section-eyebrow {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--entity-teal);
}
.section-dark .section-eyebrow { color: var(--entity-teal); }

.section-h2 {
    margin: 0 0 64px;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--entity-blue);
}
.section-dark .section-h2 { color: #ffffff; }
@media (min-width: 768px) {
    .section-h2 { font-size: 36px; }
}
@media (min-width: 1024px) {
    .section-h2 { font-size: 48px; }
}

/* Hero — kompakt, damit CTA + Trust-Strip above-the-fold sichtbar bleiben */
.landing-hero {
    padding: 32px 0 40px;
    background: #ffffff;
}
@media (min-width: 768px) {
    .landing-hero { padding: 40px 0 52px; }
}
@media (min-width: 1024px) {
    .landing-hero { padding: 48px 0 64px; }
}

/* Hero — Audience-Split: zwei Spalten "Neu" vs "Schon Kunde" mit Mittel-Divider */
.hero-split {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 12px;
    flex-wrap: wrap;
}
.hero-split-col {
    flex: 1 1 280px;
    padding: 24px 32px;
}
.hero-split-col:first-child { padding-left: 0; }
.hero-split-col:last-child { padding-right: 0; }
.hero-split-col-label {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(4, 96, 162, 0.7);
}
.hero-split-col-sub {
    margin: 10px 0 0;
    font-size: 13px;
    color: rgba(4, 96, 162, 0.65);
}
.hero-split-divider {
    width: 1px;
    background: rgba(4, 96, 162, 0.15);
    margin: 0;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .hero-split-divider {
        width: 100%;
        height: 1px;
    }
    .hero-split-col {
        padding: 20px 0;
    }
    .hero-split-col:first-child { padding-top: 8px; }
}

.landing-h1 {
    margin: 0 0 16px;
    max-width: 900px;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--entity-blue);
}
@media (min-width: 768px) {
    .landing-h1 { font-size: 40px; }
}
@media (min-width: 1024px) {
    .landing-h1 { font-size: 48px; }
}

.landing-lede {
    max-width: 680px;
    margin: 0 0 20px;
}
.landing-lede p {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    color: var(--entity-blue);
}
@media (min-width: 768px) {
    .landing-lede p { font-size: 17px; }
}

.landing-hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}
.landing-hero-cta-note {
    width: 100%;
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(4, 96, 162, 0.7);
}

/* Trust-Strip (vier Badges nach Hero) */
.trust-strip {
    padding: 36px 0;
    background: #ffffff;
    border-top: 1px solid #eceff1;
    border-bottom: 1px solid #eceff1;
}
@media (min-width: 768px) {
    .trust-strip { padding: 44px 0; }
}

/* Produkt-Sektion */
.produkt-grid {
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
    .produkt-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.produkt-grid p {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.625;
    color: var(--entity-blue);
}
@media (min-width: 768px) {
    .produkt-grid p { font-size: 18px; }
}
.produkt-grid p:last-child { margin-bottom: 0; }

.workflow-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.workflow-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--entity-blue);
}
@media (min-width: 768px) {
    .workflow-list li { font-size: 18px; }
}
.workflow-list li strong { font-weight: 500; }
.workflow-bullet {
    margin-top: 9px;
    flex-shrink: 0;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--entity-teal);
}
.workflow-bullet-pending { background: var(--entity-border); }

/* Bescheidprüfung-Sektion */
.bescheidpruefung-grid {
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
    .bescheidpruefung-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.step-list > li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0 0 24px;
}
.step-list > li:last-child { margin-bottom: 0; }
.step-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--entity-teal);
    color: var(--entity-blue);
    font-size: 14px;
    font-weight: 500;
}
.step-body strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--entity-blue);
}
.step-body span {
    display: block;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(4, 96, 162, 0.78);
}

.stat-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-self: start;
}
@media (min-width: 768px) {
    .stat-grid { gap: 40px; }
}
.stat-grid li { margin: 0; padding: 0; }
.stat-number {
    display: block;
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.025em;
    color: var(--entity-blue);
}
@media (min-width: 768px) {
    .stat-number { font-size: 36px; }
}
.stat-caption {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(4, 96, 162, 0.7);
}
@media (min-width: 768px) {
    .stat-caption { font-size: 16px; }
}

/* Warum-Sektion */
.warum-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .warum-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.warum-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 500;
    color: var(--entity-teal);
}
.warum-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.625;
    color: rgba(255, 255, 255, 0.92);
}
@media (min-width: 768px) {
    .warum-card p { font-size: 18px; }
}

/* Team-Sektion */
.team-grid {
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
    .team-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}
@media (min-width: 768px) {
    .team-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 32px;
    }
}
.team-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}
.team-photo-logo {
    background: #fbfbfb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-photo-logo img {
    width: 100px;
    height: auto;
}
.team-body h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 500;
    color: var(--entity-blue);
}
.team-role {
    margin: 0 0 16px;
    font-size: 14px;
    color: rgba(4, 96, 162, 0.6);
}
.team-body p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.625;
    color: var(--entity-blue);
}
.team-body p:last-child { margin-bottom: 0; }

/* Bracket-Button — 1:1 aus packages/shared/styles/global.css uebernommen.
   Auxiliary-Properties (display, font-size, font-weight, uppercase, color,
   text-decoration) im Original via Tailwind-Klassen am Anchor; hier in die
   CSS-Klasse selbst gezogen, weil das Portal kein Tailwind nutzt. */
.btn-decor {
    position: relative;
    display: inline-block;
    padding: 0 28px;
    background: transparent;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--entity-blue);
    text-decoration: none;
}
.btn-decor::after,
.btn-decor::before,
.btn-decor span {
    transition: none;
}
.btn-decor::after,
.btn-decor::before {
    content: '';
    position: absolute;
    width: 23px;
    top: 0;
    bottom: 0;
    border-top: 5px solid #5dded3;
    border-bottom: 5px solid #5dded3;
}
.btn-decor::before {
    left: 0;
    border-radius: 25px 0 0 25px;
    border-left: 5px solid #5dded3;
}
.btn-decor::after {
    right: 0;
    border-radius: 0 25px 25px 0;
    border-right: 5px solid #5dded3;
    height: auto;
    left: auto;
    background: transparent;
}
.btn-decor span {
    display: block;
    padding: 7px 0 5px;
    border-top: 5px solid #5dded3;
    border-bottom: 5px solid #5dded3;
}
.btn-decor:hover {
    color: #fff;
    background: #0460a2;
    text-decoration: none;
}
.btn-decor:hover::after,
.btn-decor:hover::before,
.btn-decor:hover span {
    border-color: #0460a2;
}
.btn-decor-light {
    color: #fff;
}
.btn-decor-light:hover {
    color: var(--entity-blue);
    background: #fff;
}
.btn-decor-light:hover::before,
.btn-decor-light:hover::after,
.btn-decor-light:hover > span {
    border-color: #fff;
}
.btn-decor-sm {
    font-size: 13px;
    padding: 0 20px;
    border-radius: 18px;
}
.btn-decor-sm::before,
.btn-decor-sm::after {
    width: 17px;
    border-top-width: 4px;
    border-bottom-width: 4px;
}
.btn-decor-sm::before {
    border-left-width: 4px;
    border-radius: 18px 0 0 18px;
}
.btn-decor-sm::after {
    border-right-width: 4px;
    border-radius: 0 18px 18px 0;
}
.btn-decor-sm > span {
    padding: 5px 0 4px;
    border-top-width: 4px;
    border-bottom-width: 4px;
}

/* Viewport-Observer-Klassen (Scroll-Reveal) */
.viewport .move-effect,
.viewport.move-effect,
.viewport .fade-effect,
.viewport.fade-effect {
    opacity: 0;
    transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.viewport .move-effect,
.viewport.move-effect {
    transform: translateY(24px);
}
.viewport.in-viewport .move-effect,
.viewport.in-viewport.move-effect,
.viewport.in-viewport .fade-effect,
.viewport.in-viewport.fade-effect {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger fuer <li>-Listen unter einem .viewport-Container */
.viewport.in-viewport > li:nth-child(1) .move-effect,
.viewport.in-viewport > li:nth-child(1).move-effect { transition-delay: 0s; }
.viewport.in-viewport > li:nth-child(2) .move-effect,
.viewport.in-viewport > li:nth-child(2).move-effect { transition-delay: 0.1s; }
.viewport.in-viewport > li:nth-child(3) .move-effect,
.viewport.in-viewport > li:nth-child(3).move-effect { transition-delay: 0.2s; }
.viewport.in-viewport > li:nth-child(4) .move-effect,
.viewport.in-viewport > li:nth-child(4).move-effect { transition-delay: 0.3s; }
.viewport.in-viewport > li:nth-child(5) .move-effect,
.viewport.in-viewport > li:nth-child(5).move-effect { transition-delay: 0.4s; }
.viewport.in-viewport > li:nth-child(6) .move-effect,
.viewport.in-viewport > li:nth-child(6).move-effect { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .viewport .move-effect,
    .viewport.move-effect,
    .viewport .fade-effect,
    .viewport.fade-effect {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Trust-Badges ---------- */

.trust-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    text-align: center;
}
.trust-badge {
    flex: 0 1 auto;
    max-width: 180px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-badge-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #0460A2;
}

.trust-badge-icon-flag {
    width: 56px;
    height: 38px;
    margin-top: 9px;
    margin-bottom: 23px;
    border: 1px solid #dadce0;
    border-radius: 3px;
    overflow: hidden;
    flex-direction: column;
}
.trust-flag-stripe {
    flex: 1 1 0;
    width: 100%;
    display: block;
}
.trust-flag-stripe-black { background: #000000; }
.trust-flag-stripe-red   { background: #DD0000; }
.trust-flag-stripe-gold  { background: #FFCE00; }

.trust-badge-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--entity-blue);
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.trust-badge-sub {
    font-size: 12px;
    color: rgba(4, 96, 162, 0.65);
    line-height: 1.45;
    max-width: 18ch;
}

@media (max-width: 640px) {
    .trust-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
    }
    .trust-badge {
        max-width: none;
    }
}

/* ---------- Card ---------- */

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
                0 1px 3px 1px rgba(60, 64, 67, 0.15);
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 12px;
    color: #202124;
}

.card-subtitle {
    font-size: 13px;
    color: #5f6368;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* ---------- Buttons ---------- */

.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.2;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.button:hover {
    text-decoration: none;
}

.button-primary {
    background: #0460A2;
    color: #ffffff;
}
.button-primary:hover {
    background: #034a80;
    color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
                0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.button-primary:disabled {
    background: #b9c8d8;
    cursor: not-allowed;
}

.button-secondary {
    background: #ffffff;
    color: #0460A2;
    border-color: #dadce0;
}
.button-secondary:hover {
    background: #f8f9fa;
    color: #0460A2;
}

.button-danger {
    background: #ffffff;
    color: #d93025;
    border-color: #dadce0;
}
.button-danger:hover {
    background: #fce8e6;
    color: #d93025;
}

.button-compact {
    /* Variante fuer In-Table-Aktionen + Zurueck-Links */
    font-size: 13px;
    padding: 6px 16px;
}

/* ---------- DATEV-Login-Button (gemaess DATEV Design Guidelines) ---------- */
/* Variante: weiss/hell mit farbigem Logo. Schwarzes Logo auf hellem Hintergrund
   ist laut DATEV NICHT erlaubt, farbiges Logo auf gruenem Hintergrund ebenfalls nicht.
   Schrift Noto Sans Display 16px medium (Google Font), Textfarbe #2C3335, Labels
   immer mit "DATEV" in Versalien. Logo-Asset wird unveraendert ausgeliefert. */

.datev-login-button {
    /* DesignGuidelines.pdf S.2 "5. Button — Alle DATEV Vorgaben umgesetzt":
       Logo+Text als zentrierter Block (justify-content: center), kompakte
       Buttonform mit subtiler Drop-Shadow. Die links-buendige Variante
       unter "Vorgaben teilweise umgesetzt" ist explizit als Abweichung
       deklariert -> NICHT verwenden. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 240px;
    padding: 12px 20px;
    background: #F6F7F9;
    color: #2C3335;
    border: 1px solid #E6EBED;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.04);
    font-family: "Noto Sans Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.datev-login-button:hover {
    /* Spec-Hover fuer Light-Background: #033B4A bei 10% Deckkraft. */
    background: rgba(3, 59, 74, 0.10);
    color: #2C3335;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.datev-login-button:focus-visible {
    outline: 2px solid #0460A2;
    outline-offset: 2px;
}

.datev-login-button-logo {
    /* DATEV-Logo zwischen 16-32px hoch, nicht verzerrt, Schutzraum 1/4 Logobreite.
       Logo darf nicht modifiziert werden — kein filter/fill-Override. */
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.datev-login-button-label {
    /* "DATEV" muss als Versalien im Wording erscheinen — wir liefern es bereits
       gross im Template, daher hier kein text-transform noetig. */
}

/* ---------- Form ---------- */

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 520px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field label {
    font-size: 13px;
    color: #5f6368;
    font-weight: 500;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="number"],
.form-field select {
    padding: 10px 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    color: #202124;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #0460A2;
    box-shadow: 0 0 0 1px #0460A2;
}

.form-field input:disabled,
.form-field input[readonly] {
    background: #f1f3f4;
    color: #5f6368;
}

.form-field-hint {
    font-size: 12px;
    color: #5f6368;
    line-height: 1.45;
}

.form-field-required {
    color: #d93025;
    font-weight: 500;
    margin-left: 2px;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.form-section-title {
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 4px;
}
.form-section-title:first-child {
    margin-top: 0;
}

/* ---------- Alerts ---------- */

.alert {
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.alert-success {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}
.alert-error {
    background: #fce8e6;
    color: #c5221f;
    border: 1px solid #f6c1bd;
}
.alert ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

/* ---------- Table ---------- */

/* Horizontaler Scroll-Wrapper fuer breite Listen-Tabellen. Ohne ihn treiben
   nicht-umbrechbare Tokens (lange E-Mails, aber auch Header-Woerter wie
   "REGISTRIERUNG"/"BESTELLUNGEN") die Min-Content-Breite der Tabelle ueber
   die Card-Breite — die Tabelle schiebt sich dann sichtbar ueber das Panel
   hinaus. Der Wrapper kappt das: die Card bleibt stehen, die Tabelle scrollt
   bei Bedarf in sich. */
.table-scroll {
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table th,
.table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: top;
    font-feature-settings: "tnum" 1;
}
.table td {
    /* Lange, an sich nicht-umbrechbare Tokens (E-Mail-Adressen) duerfen in
       Datenzellen brechen, damit die Spalte nicht uebermaessig breit wird.
       Header bleiben bewusst intakt (kurze, sinntragende Labels) — passt der
       Tabellenkopf trotzdem nicht, faengt der .table-scroll-Wrapper das ab. */
    overflow-wrap: anywhere;
}
.table thead th {
    background: #f8f9fa;
    border-bottom: 1px solid #dadce0;
    font-weight: 500;
    color: #5f6368;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.table tbody tr:hover {
    background: #fafbfc;
}
.table tbody tr:last-child td {
    border-bottom: none;
}
.table tbody th {
    /* Tabellen mit Label-Spalte (Bestellungs-Detail) */
    color: #5f6368;
    font-weight: 500;
    width: 200px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    background: transparent;
    border-bottom: 1px solid #f1f3f4;
}

/* ---------- Misc ---------- */

.empty-hint {
    color: #5f6368;
    font-size: 14px;
    padding: 12px 0;
    line-height: 1.5;
}

.back-link-row {
    margin-bottom: 16px;
}

/* ---------- Plan-Pane (Dashboard) ---------- */

.plan-card {
    margin-bottom: 16px;
}

.plan-current {
    margin: 0 0 24px;
    font-size: 14px;
    color: #5f6368;
    line-height: 1.5;
}
.plan-current strong { color: #202124; }
.plan-current-status {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: #e8f0fe;
    color: #0460A2;
    vertical-align: middle;
}
.plan-current-status-aktiviert {
    background: #e6f4ea;
    color: #1f7a4d;
}
.plan-current-status-eingegangen,
.plan-current-status-bezahlt,
.plan-current-status-sign_request_exportiert,
.plan-current-status-lizenz_hochgeladen {
    background: #fef7e0;
    color: #b06000;
}
.plan-current-status-storniert,
.plan-current-status-abgelaufen {
    background: #f1f3f4;
    color: #5f6368;
}
.plan-current-wechsel {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: #b06000;
}

.plan-toggle {
    display: inline-flex;
    background: #f1f3f4;
    border-radius: 999px;
    padding: 4px;
    margin: 0 0 24px;
    gap: 0;
}
.plan-toggle-btn {
    border: none;
    background: transparent;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #5f6368;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.plan-toggle-btn:hover {
    color: #202124;
}
.plan-toggle-active {
    background: #ffffff;
    color: #0460A2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.plan-toggle-discount {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #5dded3;
    color: #034a3f;
    font-weight: 600;
}

.plan-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 1100px) {
    .plan-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .plan-tiles { grid-template-columns: 1fr; }
}

.plan-garantie {
    margin: 8px 0 16px;
    padding: 8px 12px;
    font-size: 13px;
    color: #034a3f;
    background: #e8f7f5;
    border-left: 3px solid #5dded3;
    border-radius: 3px;
}

.plan-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px 20px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.plan-tile:hover {
    border-color: #0460A2;
    box-shadow: 0 2px 6px rgba(4, 96, 162, 0.08);
}
.plan-tile-active {
    border-color: #0460A2;
    border-width: 2px;
    padding: 23px 15px 19px;
    background: #f5faff;
}

.plan-tile-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    padding: 2px 10px;
    background: #0460A2;
    color: #ffffff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-tile-name {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
    color: #0460A2;
}
.plan-tile-mandanten {
    margin: 0 0 16px;
    font-size: 12px;
    color: #5f6368;
    line-height: 1.4;
    min-height: 32px;
}

.plan-tile-price {
    margin: 0 0 18px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plan-tile-price-value {
    font-size: 22px;
    font-weight: 600;
    color: #202124;
}
.plan-tile-price-period {
    font-size: 12px;
    color: #5f6368;
    margin-top: 2px;
}

.plan-tile-button {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #0460A2;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: #ffffff;
    color: #0460A2;
    transition: background 0.18s, color 0.18s;
}
.plan-tile-button:hover {
    background: #0460A2;
    color: #ffffff;
}
.plan-tile-button-primary {
    background: #0460A2;
    color: #ffffff;
}
.plan-tile-button-primary:hover {
    background: #034a82;
    border-color: #034a82;
}
.plan-tile-button-secondary {
    background: #ffffff;
    color: #5f6368;
    border-color: #dadce0;
}
.plan-tile-button-secondary:hover {
    background: #f1f3f4;
    color: #202124;
    border-color: #dadce0;
}
.plan-tile-button-disabled {
    background: #f1f3f4;
    color: #80868b;
    border-color: #f1f3f4;
    cursor: not-allowed;
}
.plan-tile-button-disabled:hover {
    background: #f1f3f4;
    color: #80868b;
    border-color: #f1f3f4;
}

/* ---------- Konto-Sublinks ---------- */

.konto-sublinks-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}
.konto-sublinks-list li {
    margin: 0;
    padding: 8px 0;
    color: #5f6368;
}
.konto-sublinks-list li a {
    color: #0460A2;
    font-weight: 500;
    text-decoration: none;
}
.konto-sublinks-list li a:hover {
    text-decoration: underline;
}

/* ---------- Plan-Vorschau (Bestaetigungsseite) ---------- */

.plan-vorschau {
    max-width: 520px;
}
.plan-vorschau-list {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px 24px;
    margin: 0 0 28px;
    padding: 0;
    font-size: 14px;
}
.plan-vorschau-list dt {
    color: #5f6368;
    font-weight: 400;
}
.plan-vorschau-list dd {
    color: #202124;
    margin: 0;
}
.plan-vorschau-sub {
    color: #5f6368;
    font-size: 13px;
}
.plan-vorschau-total {
    font-weight: 600;
    color: #0460A2;
    font-size: 18px;
    padding-top: 8px;
    border-top: 1px solid #e8eaed;
}

.plan-vorschau-section {
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    margin: 0 0 8px;
}
.plan-vorschau-konto {
    margin: 0 0 24px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.55;
    color: #202124;
}

.plan-vorschau-garantie {
    margin: 0 0 20px;
    padding: 14px 18px;
    background: #e6f4ea;
    border-left: 4px solid #1e8e3e;
    border-radius: 4px;
    color: #1a5e2a;
}
.plan-vorschau-garantie strong {
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}
.plan-vorschau-garantie p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #1a5e2a;
}
.plan-vorschau-garantie a {
    color: #1a5e2a;
    text-decoration: underline;
}

.plan-vorschau-agb {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #5f6368;
}
.plan-vorschau-agb input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}
.plan-vorschau-agb a {
    color: #0460A2;
    text-decoration: underline;
}

.plan-vorschau-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ---------- Dashboard 2-Spalten-Row ---------- */

.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 20px;
}

.dashboard-row > .card {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .dashboard-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- App-Download-Card (Dashboard) ---------- */

.app-download-info {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 16px 18px;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-download-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 0;
}

.app-download-chips > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-download-chips dt {
    font-size: 11px;
    font-weight: 500;
    color: #80868b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
}

.app-download-chips dd {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin: 0;
}

.app-download-hash-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 10px;
    border-top: 1px solid #e8eaed;
}

.app-download-hash-label {
    font-size: 11px;
    font-weight: 500;
    color: #80868b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.app-download-hash {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 11px;
    word-break: break-all;
    color: #3c4043;
    line-height: 1.4;
}

/* "Download fuer Windows"-Button mit Windows-Logo links vom Text.
   Taxelo-CI-Blau (#0460A2 = Header-Farbe). */
.button-download-windows {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    background: #0460A2;
    color: #ffffff;
    border: 1px solid #0460A2;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 120ms, transform 120ms;
}

.button-download-windows:hover {
    background: #034a80;
    border-color: #034a80;
    color: #ffffff;
}

.button-download-windows:active {
    transform: translateY(1px);
}

.button-download-windows svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
    flex-shrink: 0;
}

.app-download-admin-hint {
    margin-top: 16px;
    font-size: 12px;
    color: #5f6368;
    line-height: 1.5;
}

.app-download-admin-hint a {
    color: #5f6368;
    text-decoration: underline;
}

.app-download-admin-hint a:hover {
    color: #0460A2;
}

/* ---------- Static-Page Body (Impressum, Datenschutz) ---------- */

.prose {
    max-width: 720px;
    background: #ffffff;
    border-radius: 8px;
    padding: 32px 40px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
                0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.prose-datenschutz {
    max-width: 880px;
}
.prose h1 {
    font-size: 26px;
    font-weight: 500;
    margin: 0 0 16px;
    color: #202124;
}
.prose h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 32px 0 12px;
    color: #202124;
    padding-top: 16px;
    border-top: 1px solid #e8eaed;
}
.prose h2:first-of-type {
    border-top: none;
    padding-top: 0;
}
.prose h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 20px 0 8px;
    color: #202124;
}
.prose p {
    font-size: 14px;
    color: #3c4043;
    margin: 0 0 12px;
    line-height: 1.6;
}
.prose ul {
    margin: 0 0 12px 20px;
    color: #3c4043;
    font-size: 14px;
    line-height: 1.6;
}
.prose ul li {
    margin-bottom: 4px;
}
.prose code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    padding: 1px 6px;
    border-radius: 3px;
    background: #f1f3f4;
    color: #202124;
}
.prose-stand {
    margin: 0 0 8px !important;
    font-size: 12px;
    color: #5f6368 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.prose-note {
    background: #f8f9fa;
    border-left: 3px solid #0460A2;
    padding: 16px 20px;
    margin: 16px 0 28px;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    color: #3c4043;
    line-height: 1.55;
}
.prose-note p {
    margin: 0 0 10px;
    font-size: 13px;
}
.prose-note p:last-child { margin-bottom: 0; }

/* Blockquotes aus den Markdown-Mastern (commonmark rendert > zu <blockquote>) */
.prose blockquote {
    margin: 16px 0 28px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-left: 3px solid #0460A2;
    border-radius: 0 4px 4px 0;
    color: #3c4043;
    font-size: 13px;
    line-height: 1.55;
}
.prose blockquote p {
    margin: 0 0 10px;
    font-size: 13px;
}
.prose blockquote p:last-child { margin-bottom: 0; }

/* Inhaltsverzeichnis der Sammelseite Vertragsbedingungen (/agb) */
.prose-toc {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 0 0 28px;
}
.prose-toc-title {
    margin: 0 0 8px !important;
    font-size: 12px;
    font-weight: 500;
    color: #5f6368 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.prose-toc ul {
    margin: 0 0 0 18px;
    font-size: 14px;
}
.prose-toc a {
    color: #0460A2;
    text-decoration: none;
}
.prose-toc a:hover { text-decoration: underline; }

.prose-section {
    margin-top: 8px;
}

.prose-table-wrap {
    overflow-x: auto;
    margin: 0 0 16px;
}
.prose-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #3c4043;
    font-feature-settings: "tnum" 1;
}
.prose-table-wrap thead th {
    text-align: left;
    font-weight: 500;
    color: #202124;
    padding: 10px 12px;
    border-bottom: 2px solid #dadce0;
    background: #f8f9fa;
    white-space: nowrap;
}
.prose-table-wrap tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8eaed;
    vertical-align: top;
    line-height: 1.55;
}
.prose-table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.lizenz-string-block {
    margin: 16px 0;
}
.lizenz-string-textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.4;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: #f8f9fa;
    color: #202124;
    resize: vertical;
    word-break: break-all;
    overflow-wrap: anywhere;
}
.lizenz-string-textarea:focus {
    outline: none;
    border-color: #1a73e8;
    background: #fff;
}
.lizenz-string-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.lizenz-string-copy-status {
    font-size: 13px;
    color: #1f7a4d;
}

/* ---------- Template-Editor (Mandanten-Brief) ---------- */

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    margin-bottom: 16px;
}
.editor-toolbar-spacer { flex: 1; }
.editor-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #202124;
}
.status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.status-badge.status-default {
    background: #e8f0fe;
    color: #0460A2;
}
.status-badge.status-override {
    background: #e6f4ea;
    color: #1e8e3e;
}

.banner {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}
.banner-success {
    background: #e6f4ea;
    color: #1e7a37;
    border: 1px solid #b7e0c4;
}
.banner-info {
    background: #e8f0fe;
    color: #1967d2;
    border: 1px solid #c5dafc;
}

.editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 960px) {
    .editor-grid { grid-template-columns: 1fr; }
}

.editor-pane {
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 540px;
}
.editor-pane-header {
    padding: 8px 14px;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #5f6368;
}
.editor-pane-source .CodeMirror {
    height: 100%;
    flex: 1;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 13px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.editor-pane-source form {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.editor-pane-preview iframe {
    flex: 1;
    width: 100%;
    border: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background: #ffffff;
}
.preview-status {
    font-size: 12px;
    color: #80868b;
    font-style: italic;
}

.editor-handover {
    background: #fafbfc;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    max-width: 900px;
}
.editor-handover h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #202124;
}
.editor-handover ol {
    margin: 0 0 8px 20px;
    padding: 0;
    font-size: 14px;
    color: #3c4043;
}
.editor-handover li { margin-bottom: 4px; }
.editor-handover code {
    background: #f1f3f4;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
}
.editor-handover kbd {
    background: #f1f3f4;
    padding: 1px 6px;
    border: 1px solid #dadce0;
    border-radius: 3px;
    font-size: 11px;
    font-family: 'SFMono-Regular', Consolas, monospace;
}
.editor-handover .hint {
    font-size: 13px;
    color: #5f6368;
    margin: 0;
}

/* ---------- Admin-Dashboard ---------- */

.banner-error {
    background: #fce8e6;
    color: #b00020;
    border: 1px solid #f5c6cb;
}

.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: end;
    margin-top: 8px;
}
.form-inline label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: #5f6368;
}
.form-inline input[type="number"],
.form-inline input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    min-width: 140px;
}

/* ---------- Konto-Hub Tab-View (Welle 11g) ---------- */

.konto-hub-header {
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    padding: 20px 28px 0;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.15);
    margin-bottom: 0;
}
.konto-hub-header h1 {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 4px;
    color: #202124;
}
.konto-hub-header .konto-id {
    font-size: 12px;
    color: #5f6368;
    font-family: 'SF Mono', Consolas, monospace;
    margin: 0 0 16px;
}

.konto-tabs {
    display: flex;
    border-bottom: 1px solid #e8eaed;
    gap: 0;
    margin: 0 -28px;
    padding: 0 28px;
    overflow-x: auto;
    overflow-y: hidden;
}
.konto-tab {
    padding: 12px 18px;
    text-decoration: none;
    color: #5f6368;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    margin-bottom: -1px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.konto-tab:hover {
    color: #202124;
    background: #f8f9fa;
    text-decoration: none;
}
.konto-tab.active {
    color: #0460A2;
    border-bottom-color: #0460A2;
}
.konto-tab .tab-count {
    display: inline-block;
    background: #e8eaed;
    color: #5f6368;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}
.konto-tab.active .tab-count {
    background: #d3e3f5;
    color: #0460A2;
}

.konto-tab-panel {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    padding: 24px 28px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
                0 1px 3px 1px rgba(60, 64, 67, 0.15);
    margin-bottom: 20px;
    margin-top: 0;
}
.konto-tab-panel h2 {
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 16px;
    color: #202124;
}
.konto-tab-panel h2:not(:first-child) {
    margin-top: 28px;
}
.konto-tab-panel .block {
    margin-top: 20px;
    padding: 16px;
    border-radius: 6px;
    background: #fafafa;
    border-left: 3px solid #e0e0e0;
}
.konto-tab-panel .block.warn {
    background: #fff8e1;
    border-left-color: #e0a000;
}
.konto-tab-panel .block.danger {
    background: #fce8e6;
    border-left-color: #d33;
}
.konto-tab-panel .block h3 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 8px;
    color: #202124;
}
