 /* Helvetica Light (300) */
@font-face {
  font-family: "Helvetica";
  font-weight: 300;
  font-style: normal;
  src: url("../font/3a74c169-76ee-4223-b4b4-aac92e8da5ec.eot");
  src: url("../font/3a74c169-76ee-4223-b4b4-aac92e8da5ec.eot?#iefix") format("embedded-opentype"),
       url("../font/37953885-0443-4c72-a693-9152a9f5a901.woff2") format("woff2"),
       url("../font/fcce277c-07e2-4c88-ad8b-a71b484e2cbe.woff") format("woff"),
       url("../font/315bbeb9-a30f-4f38-91ae-d6cfbbf89437.ttf") format("truetype"),
       url("../font/507e1538-09ae-429d-a77c-b0fd539aea7f.svg#507e1538") format("svg");
  font-display: swap;
}

/* Helvetica Regular (400) */
@font-face {
  font-family: "Helvetica";
  font-weight: 400;
  font-style: normal;
  src: url("../font/05598d95-f297-4c7f-a825-ab617e7e045f.eot");
  src: url("../font/05598d95-f297-4c7f-a825-ab617e7e045f.eot?#iefix") format("embedded-opentype"),
       url("../font/89294146-207c-4803-91fe-338f0d0094bd.woff2") format("woff2"),
       url("../font/57055fe4-c2d3-4287-bac2-eece43fdcbd3.woff") format("woff"),
       url("../font/2922d55c-8df4-4066-b7b0-eec2d1524330.ttf") format("truetype"),
       url("../font/f8343ddf-e94d-471e-95b0-3b435acc2499.svg#f8343ddf") format("svg");
  font-display: swap;
}

/* Helvetica Bold (700) */
@font-face {
  font-family: "Helvetica";
  font-weight: 700;
  font-style: normal;
  src: url("../font/05f47e74-d17c-45af-86c3-8ab878fd4ec7.eot");
  src: url("../font/05f47e74-d17c-45af-86c3-8ab878fd4ec7.eot?#iefix") format("embedded-opentype"),
       url("../font/7ce0a2f5-eb00-46aa-919c-5b3f3667646c.woff2") format("woff2"),
       url("../font/cad22c74-45b4-4c49-9e6a-0cd3768a7bc7.woff") format("woff"),
       url("../font/8ebb9b04-d12d-488e-aa96-0bb6e6777336.ttf") format("truetype"),
       url("../font/7672ef16-fedc-4b60-8337-04b537a6ada5.svg#7672ef16") format("svg");
  font-display: swap;
}



  :root {
            --sg-bg: #050908;
            --sg-bg-alt: #0d1714;
            --sg-accent: #8fd0b2;
            --sg-accent-soft: rgba(143, 208, 178, .14);
            --sg-text-main: #f4f7f3;
            --sg-text-muted: #9ba7a1;
            --sg-border-soft: rgba(255,255,255,.06);
            --sg-error: #ff6b6b;
        }

        * {
            box-sizing: border-box;
        }

        html, body {
            margin: 0;
            padding: 0;
            height: 100%;
            font-family: Helvetica, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
                         "Segoe UI", sans-serif;
            background: radial-gradient(circle at 20% 0%, #13241e, #050908 55%, #020403 100%);
            color: var(--sg-text-main);
        }

html, body {
  margin: 0;
  padding: 0;
  background: #050809;      /* dunkler Rand statt weiß */
  overflow-x: hidden;       /* kein horizontales Scrollen */
}

/* Szene wirklich randlos und bildschirmfüllend */
.scene {
  position: relative;
  min-height: 100vh;        /* Fallback */
  min-height: 100svh;       /* moderne Viewport-Units (Safari iOS etc.) */
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0;               /* <-- kein Außenabstand mehr */
}

/* Foto etwas weiter raus, damit nichts durchscheint */
.photo {
  position: absolute;
  inset: -4vmax;            /* vorher -2vmax */
  background: var(--bg) center / cover no-repeat;
  filter: brightness(.55) saturate(1);
  transform: scale(1.02);
}

/* Content bekommt jetzt den Innenabstand */
.content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  place-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  padding: 6vmin;           /* Innenabstand statt .scene */
}

        body.auth-body {
            display: flex;
            align-items: stretch;
            justify-content: center;
        }

        .auth-shell {
            flex: 1;
            min-height: 100vh;
            display: grid;
            place-items: center;
            padding: 24px;
        }

        .auth-card {
            position: relative;
            width: 100%;
            max-width: 460px;
            padding: 32px 28px 26px;
            border-radius: 24px;
            background:
                radial-gradient(circle at 0% 0%, rgba(143,208,178,.14), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(32,67,54,.55), #050908 78%);
            border: 1px solid var(--sg-border-soft);
            box-shadow:
                0 18px 45px rgba(0,0,0,.70),
                0 0 0 1px rgba(255,255,255,.01);
            backdrop-filter: blur(22px);
            -webkit-backdrop-filter: blur(22px);
            color: var(--sg-text-main);
        }

        .auth-card::before {
            content: "";
            position: absolute;
            inset: -1px;
            border-radius: inherit;
            border: 1px solid rgba(255,255,255,.04);
            pointer-events: none;
        }

        .auth-logo-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 18px;
        }

        .auth-logo-main {
            font-weight: 700;
            font-size: 1.25rem;
            letter-spacing: .06em;
            text-transform: uppercase;
        }

        .auth-logo-main span {
            opacity: .68;
            font-weight: 400;
            font-size: .8rem;
            letter-spacing: .16em;
        }

        .auth-badge {
            padding: 4px 10px;
            border-radius: 999px;
            border: 1px solid var(--sg-border-soft);
            font-size: .72rem;
            color: var(--sg-text-muted);
            background: rgba(4,8,7,.8);
        }

        .auth-title {
            margin: 0 0 4px;
            font-size: 1.35rem;
            font-weight: 600;
        }

        .auth-subtitle {
            margin: 0 0 18px;
            font-size: .92rem;
            color: var(--sg-text-muted);
        }

        .auth-form {
            display: grid;
            gap: 14px;
            margin-top: 8px;
        }

        .auth-field {
            display: grid;
            gap: 4px;
        }

        .auth-label {
            font-size: .82rem;
            color: var(--sg-text-muted);
        }

        .auth-input-wrap {
            position: relative;
        }

        .auth-input {
            width: 100%;
            padding: 9px 10px 9px 34px;
            border-radius: 10px;
            border: 1px solid var(--sg-border-soft);
            background: rgba(3,7,6,.9);
            color: var(--sg-text-main);
            font-size: .88rem;
            outline: none;
        }

        .auth-input::placeholder {
            color: rgba(155,167,161,.6);
        }

        .auth-input:focus {
            border-color: var(--sg-accent);
            box-shadow: 0 0 0 1px rgba(143,208,178,.45);
        }

        .auth-input-icon {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            font-size: .78rem;
            opacity: .6;
        }

        .auth-actions-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 4px;
            gap: 12px;
        }

        .auth-remember {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: .8rem;
            color: var(--sg-text-muted);
        }

        .auth-remember input {
            accent-color: var(--sg-accent);
        }

        .auth-link {
            font-size: .8rem;
            color: var(--sg-accent);
            text-decoration: none;
        }

        .auth-link:hover {
            text-decoration: underline;
        }

        .auth-button {
            width: 100%;
            margin-top: 14px;
            padding: 9px 14px;
            border-radius: 999px;
            border: none;
            background: linear-gradient(135deg, #9be3c0, #62b791);
            color: #06100c;
            font-weight: 600;
            font-size: .9rem;
            cursor: pointer;
            box-shadow:
                0 10px 30px rgba(6,25,18,.9),
                0 0 0 1px rgba(0,0,0,.25);
            transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
        }

        .auth-button:hover {
            transform: translateY(-1px);
            filter: brightness(1.02);
            box-shadow:
                0 13px 34px rgba(6,25,18,1),
                0 0 0 1px rgba(0,0,0,.3);
        }

        .auth-button:active {
            transform: translateY(0px) scale(.99);
            box-shadow:
                0 6px 18px rgba(0,0,0,.8),
                0 0 0 1px rgba(0,0,0,.3);
        }

        .auth-error {
            margin: 6px 0 2px;
            padding: 7px 9px;
            border-radius: 10px;
            background: rgba(255,107,107,.06);
            border: 1px solid rgba(255,107,107,.35);
            color: var(--sg-error);
            font-size: .8rem;
        }

        .auth-footer {
            margin-top: 18px;
            font-size: .75rem;
            color: var(--sg-text-muted);
            display: flex;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .auth-footer span {
            opacity: .8;
        }

        .auth-footer-links a {
            color: var(--sg-text-muted);
            text-decoration: none;
        }
        .auth-footer-links a:hover {
            text-decoration: underline;
        }

        @media (max-width: 640px) {
            .auth-card {
                padding: 24px 18px 20px;
                border-radius: 18px;
            }
            .auth-title {
                font-size: 1.2rem;
            }
        }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.db-card {
    padding: 14px 16px;
    border-radius: 14px;
    background: radial-gradient(circle at 0 0, rgba(143,208,178,.08), rgba(7,15,12,.95));
    border: 1px solid rgba(255,255,255,.04);
    box-shadow: 0 10px 30px rgba(0,0,0,.55);
}

.db-card h2 {
    margin: 0 0 8px;
    font-size: .96rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .9;
}

.db-card .value {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.db-card .sub {
    font-size: .8rem;
    color: #9ba7a1;
}

.db-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.db-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .74rem;
    border: 1px solid rgba(255,255,255,.06);
    color: #cdd9d2;
}

.db-section {
    margin-bottom: 24px;
}

.db-section h2 {
    margin: 0 0 10px;
    font-size: .98rem;
    font-weight: 600;
}

.db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}

.db-table th,
.db-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.db-table th {
    text-align: left;
    font-weight: 500;
    color: #9ba7a1;
}

.db-table tr:last-child td {
    border-bottom: none;
}

.db-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .7rem;
    border: 1px solid rgba(255,255,255,.08);
}

.db-badge.offer { color:#9be3c0; }
.db-badge.invoice { color:#f6cb7b; }

.db-status {
    font-size: .76rem;
    text-transform: lowercase;
    opacity: .9;
}

.db-error-list {
    margin-bottom: 18px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,107,107,.45);
    background: rgba(255,107,107,.08);
    color: #ff9c9c;
    font-size: .8rem;
}
.db-error-list ul {
    margin: 4px 0 0;
    padding-left: 18px;
}

/* MFA-Setup: breitere Karte und Layout für QR + Text */
.auth-card.mfa-card {
    max-width: 640px;
}

.mfa-qr-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 18px 0 12px;
    align-items: flex-start;
}

.mfa-qr-image img {
    display: block;
    border-radius: 16px;
    border: 1px solid var(--sg-border-soft);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .65);
    background: #020403;
}

.mfa-qr-meta {
    flex: 1;
    min-width: 220px;
    display: grid;
    gap: 10px;
}

.mfa-label {
    font-size: .8rem;
    color: var(--sg-text-muted);
    margin-bottom: 3px;
}

.mfa-secret-block code,
.mfa-uri-block code {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(3, 7, 6, .9);
    border: 1px solid var(--sg-border-soft);
    font-size: .8rem;
    word-break: break-all;
}

.mfa-uri-block code {
    font-size: .74rem;
    opacity: .9;
}

.mfa-form {
    margin-top: 10px;
}

.mfa-code-wrap {
    text-align: center;
}

.mfa-code-input {
    max-width: 11ch;
    margin-inline: auto;
    text-align: center;
    letter-spacing: .35em;
    font-size: 1.05rem;
    padding-left: 0.9em; /* optischer Ausgleich für Letterspacing */
}

.auth-subtext {
    font-size: .78rem;
    color: var(--sg-text-muted);
    margin-top: 4px;
}

.mfa-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

@media (max-width: 640px) {
    .auth-card.mfa-card {
        max-width: 100%;
    }

    .mfa-qr-grid {
        flex-direction: column;
    }

    .mfa-code-input {
        max-width: 9ch;
        font-size: 1rem;
    }
}