/* ===================================================================
   VARIABLES & RESET
   =================================================================== */

:root {
    /* Grundfarben & Layout */
    --bg: #0d0e11;
    --surface: #12141a;
    --surface-soft: #181b24;
    --accent: #00d4ff;
    --accent-soft: rgba(0, 212, 255, 0.18);
    --text: #f5f5f5;
    --text-soft: #cfcfcf;
    --muted: #cfcfcf;
    --muted2: #8b8f98;
    --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --navH: 76px;

    --radius-card: 18px;
    --radius-pill: 999px;

    --shadow-soft: 0 10px 40px rgba(0, 0, 0, .45);
    --shadow-hero: 0 18px 60px rgba(0, 0, 0, .7);
    --transition-fast: 0.2s ease-out;

    /* Tech-Pill Farben */
    --pill-dev:    #00d4ff; /* C#, .NET, C, Python */
    --pill-dev-js: #38bdf8; /* JavaScript, TypeScript */
    --pill-web:    #f97316; /* HTML, CSS, PHP */
    --pill-db:     #a855f7; /* MySQL, MariaDB, SQL */
    --pill-eng:    #22c55e; /* Node.js, APIs, REST */
    --pill-aut:    #14b8a6; /* Automation, JSON, Architecture */

    /* Rollen-Badge Farben */
    --role-owner:        #00d4ff;

    --role-admin:        #b91c1c;
    --role-staff-plus:   #ef4444;
    --role-staff:        #f87171;

    --role-vip-plus:     #e000b7;
    --role-vip:          #f472d0;

    --role-ai-plus:      #f97316;
    --role-ai:           #fdba74;

    --role-dev-plus:     #22c55e;
    --role-dev:          #4ade80;
    --role-dev-learn:    #bbf7d0;

    --role-streamer-plus:#9146ff;
    --role-streamer:     #b481ff;

    --role-member-plus:  #3b82f6;
    --role-member:       #93c5fd;

    --role-user-border:  #6b7280;
    --role-user-text:    #9ca3af;

    /* Plan-Badge Farben */
    --plan-free-border:      #22c55e;
    --plan-free-text:        #bbf7d0;

    --plan-unlimited-border: var(--role-owner);
    --plan-unlimited-text:   #e0faff;

    --plan-basic-border:     #3b82f6;
    --plan-basic-text:       #bfdbfe;

    --plan-premium-border:   #a855f7;
    --plan-premium-text:     #e9d5ff;

    --plan-vip-border:       #ec4899;
    --plan-vip-text:         #f9a8d4;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    position: relative;
    padding-top: var(--navH);
}

/* Wenn Mobile-Menü offen ist: Seite nicht scrollbar */
body.no-scroll,
body.auth-modal-open {
    overflow: hidden;
}

/* Wrapper für Inhalt (unterhalb Header) */
.page {
    min-height: 100vh;
    padding-top: 0;
}

/* Basis-Typografie */

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: .02em;
    margin: 0 0 .6rem;
}

p {
    margin: 0 0 .8rem;
    color: var(--muted);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons global */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .5rem 1rem;
    border-radius: .7rem;
    font-size: .9rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform .12s ease-out;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #061017;
    box-shadow: 0 0 18px rgba(0, 212, 255, .3);
}

.btn-primary:hover {
    background: #33ddff;
    box-shadow: 0 0 24px rgba(0, 212, 255, .4);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .14);
    color: var(--muted);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* ===================================================================
   CODE-HINTERGRUND
   =================================================================== */

.code-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    opacity: .12;
    filter: blur(1.1px);
}

.code-bg pre {
    height: 100%;
    width: min(1200px, 92vw);
    margin: 7.5rem auto 0;
    color: #b7f2ff;
    font: 13px/1.75 "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
    white-space: pre-wrap;
}

/* ===================================================================
   HEADER
   =================================================================== */

/* User-Indikator */
.user-indicator {
    font-size: 0.85rem;
    color: var(--muted2);
    white-space: nowrap;
}
.user-indicator strong {
    color: var(--accent);
}

.site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(13, 14, 17, .88), rgba(13, 14, 17, .55));
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.9rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Brand */

.brand {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: .3px;
    text-decoration: none;
}

.brand-bold {
    color: var(--text);
    text-shadow: 0 0 6px rgba(255, 255, 255, .06);
}

.brand-accent {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 212, 255, .35);
}

/* Container für Nav & Auth */

.nav-drawer {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Wrapper für Main + Subnav */

.nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
}

/* Hauptnavigation */

.main-nav {
    display: flex;
    align-items: center;
    gap: .6rem;
}

/* Subnavigation (Tools / Programming / Twitch) */

.sub-nav {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    opacity: .9;
}

/* Nav-Links */

.nav-link {
    color: var(--muted);
    padding: .55rem .85rem;
    border-radius: .7rem;
    text-decoration: none;
    font-size: .95rem;
    line-height: 1;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.nav-link:hover {
    text-decoration: none;
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

/* Aktiver Link */
.nav-link.nav-active {
    color: #061017;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(0, 212, 255, .35);
}

/* Disabled-Navlinks */
.nav-link-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}


/* Subnav etwas dezenter */
.sub-nav .nav-link {
    padding: .4rem .7rem;
    font-size: .9rem;
}

/* Buttons/Actions rechts */

.nav-actions-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Burger-Button (Desktop versteckt) */

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    padding: .4rem;
    border-radius: .6rem;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #f5f5f5;
    margin: 3px 0;
}

/* =========================================================
   User-Status-Zeile (2. Header-Linie)
   ========================================================= */

.user-status-bar {
    border-top: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(
        180deg,
        rgba(13,14,17,0.96),
        rgba(13,14,17,0.85)
    );
    box-shadow: 0 8px 20px rgba(0,0,0,0.55);
}

.user-status-inner {
    padding: 0.25rem 1.8rem 0.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.user-status-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.user-status-right {
    font-size: 0.82rem;
    color: var(--muted2);
}

/* Credits / Plan */

.user-credits {
    font-size: 0.82rem;
    color: var(--muted2);
    white-space: nowrap;
}
.user-credits strong {
    color: var(--text);
    font-weight: 600;
}
.user-credits-sep {
    margin: 0 0.35rem;
    opacity: 0.6;
}

/* =========================================================
   Rollen-Badges + Tooltip (Rollen & Pläne)
   ========================================================= */

/* Grund-Pill-Stil (für Rollen & Pläne) */
.role-badges,
.plan-badges {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.role-badge,
.plan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.7rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 0.8rem;
    line-height: 1;
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    white-space: nowrap;
}

.role-badge--small,
.plan-badge--small {
    font-size: 0.78rem;
    padding: 0.08rem 0.55rem;
}

.role-badge--more,
.plan-badge--more {
    cursor: pointer;
    background: rgba(0,0,0,0.55);
    border-color: rgba(255,255,255,0.25);
}

/* Tooltip für Rollen */
.role-tooltip {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    padding: 0.4rem 0.5rem;
    border-radius: 0.8rem;
    background: rgba(3, 7, 16, 0.97);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.8),
        0 0 0 1px rgba(0, 212, 255, 0.25);
    display: none;
    flex-wrap: wrap;
    gap: 0.25rem;
    z-index: 2000;
}

.role-badges:hover .role-tooltip {
    display: flex;
}

/* Farben je Rolle */

.role-badge--owner      { border-color: var(--role-owner);        color: var(--role-owner); }

.role-badge--admin      { border-color: var(--role-admin);        color: var(--role-admin); }
.role-badge--staff_plus { border-color: var(--role-staff-plus);   color: var(--role-staff-plus); }
.role-badge--staff      { border-color: var(--role-staff);        color: var(--role-staff); }

.role-badge--vip_plus   { border-color: var(--role-vip-plus);     color: var(--role-vip-plus); }
.role-badge--vip        { border-color: var(--role-vip);          color: var(--role-vip); }

.role-badge--ai_plus    { border-color: var(--role-ai-plus);      color: var(--role-ai-plus); }
.role-badge--ai         { border-color: var(--role-ai);           color: var(--role-ai); }

.role-badge--dev_plus   { border-color: var(--role-dev-plus);     color: var(--role-dev-plus); }
.role-badge--dev        { border-color: var(--role-dev);          color: var(--role-dev); }
.role-badge--dev_learn  { border-color: var(--role-dev-learn);    color: var(--role-dev-learn); }

.role-badge--streamer_plus { border-color: var(--role-streamer-plus); color: var(--role-streamer-plus); }
.role-badge--streamer      { border-color: var(--role-streamer);     color: var(--role-streamer); }

.role-badge--member_plus { border-color: var(--role-member-plus); color: var(--role-member-plus); }
.role-badge--member      { border-color: var(--role-member);      color: var(--role-member); }

.role-badge--user {
    border-color: var(--role-user-border);
    color: var(--role-user-text);
}

/* =========================================
   Plan-Badges nach "Stufe"
   ========================================= */

/* Free */
.plan-badge--free {
    border-color: var(--plan-free-border);
    color: var(--plan-free-text);
}

/* Unlimited (Owner-Plan) – gleiche Farbe wie Owner */
.plan-badge--unlimited {
    border-color: var(--plan-unlimited-border);
    color: var(--plan-unlimited-text);
}

/* Basic */
.plan-badge--basic {
    border-color: var(--plan-basic-border);
    color: var(--plan-basic-text);
}

/* Premium */
.plan-badge--premium {
    border-color: var(--plan-premium-border);
    color: var(--plan-premium-text);
}

/* VIP */
.plan-badge--vip {
    border-color: var(--plan-vip-border);
    color: var(--plan-vip-text);
}

/* =========================================
   Plan-Tooltip als „Mini-Tabelle“
   ========================================= */

.plan-tooltip {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    padding: 0.6rem 0.75rem;
    border-radius: 0.9rem;
    background: rgba(3, 7, 16, 0.97);
    box-shadow:
        0 14px 32px rgba(0,0,0,0.85),
        0 0 0 1px rgba(0, 212, 255, 0.25);
    display: none;
    z-index: 2000;
}

.plan-badges:hover .plan-tooltip {
    display: block;
}

.plan-tooltip-header,
.plan-tooltip-row {
    display: grid;
    grid-template-columns: minmax(110px, 1.4fr) repeat(4, minmax(80px, 1fr));
    column-gap: 0.6rem;
    align-items: center;
}

.plan-tooltip-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted2);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
}

.plan-tooltip-row {
    font-size: 0.78rem;
    padding: 0.12rem 0;
}

.plan-tooltip-col {
    white-space: nowrap;
}

.plan-tooltip-col--plan {
    display: flex;
    align-items: center;
    align-self: stretch;
}

/* Rechtsbündige Spalten (Preis / Credits) */
.plan-tooltip-col-r {
    text-align: right;
}

.plan-tooltip-row:last-child {
    border-bottom: none;
}

/* Mobile: Tooltip etwas schmaler */
@media (max-width: 700px) {
    .plan-tooltip {
        min-width: 0;
        max-width: 100vw;
        right: auto;
        left: 0;
    }

    .plan-tooltip-header,
    .plan-tooltip-row {
        grid-template-columns: 1.7fr 1.1fr 1.1fr 1.1fr 1.2fr;
    }
}

/* ===================================================================
   HERO – LOGO CARD
   =================================================================== */

.hero {
    position: relative;
    z-index: 1;
    min-height: 72vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 4.5rem 1rem 2rem;
}

.hero-inner {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    box-shadow: var(--shadow-hero), 0 0 30px rgba(0, 212, 255, .10);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-card);
    padding: 2.2rem;
    max-width: 740px;
    width: min(92vw, 740px);
}

.hero-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.hero-logo {
    display: block;
    margin: 0 auto 0;
    width: 70%;
    max-width: 200px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, .35));
}

.hero-divider {
    width: 90px;
    height: 2px;
    background: var(--accent);
    margin: 1.1rem auto 1.4rem;
    border-radius: 2px;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1.06rem;
}

.hero-mail {
    margin-top: 1.2rem;
    display: inline-block;
    color: var(--accent);
    font-size: 1rem;
}

.hero-mail:hover {
    color: #66e5ff;
}

/* ===================================================================
   SECTIONS & CARDS
   =================================================================== */

.section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 2.2rem auto;
    padding: 2.2rem 1.2rem;
}

section {
    scroll-margin-top: calc(var(--navH) + 14px);
}

.section-title {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.section-title .text-accent,
.accent {
    color: var(--accent);
}

.section-lead {
    color: var(--muted);
}

/* ===================================================================
   PROJEKTE – GRID MIT 3 KARTEN
   =================================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 1.6rem;
    align-items: stretch;
}

.project-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-card);
    padding: 1.4rem 1.3rem 1.3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: all .25s ease;
    display: flex;
    min-height: 400px;  /* Höhe der gesamten Karte */
}

.project-card-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow:
        0 0 20px rgba(0, 212, 255, .25),
        0 0 40px rgba(0, 212, 255, .15);
    transform: translateY(-3px);
}

.project-card-title {
    color: var(--accent);
    margin-bottom: .35rem;
    font-size: 1.1rem;
}

.project-card-text {
    color: var(--muted);
    font-size: .92rem;
}

.project-text-block {
    margin-bottom: 1.2rem; /* wichtig für Abstand wie vorher */
}

/* Badges / Tech-Tags */

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .3rem; /* kleiner Abstand zwischen Tag-Reihen */
}

.tech-pill {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .15);
    color: var(--muted);
    font-size: .85rem;
    padding: .25rem .55rem;
    border-radius: .6rem;
    font-weight: 500;
    transition: all .2s ease;
}

.tech-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 10px currentColor;
}

/* Tech-Pill Farben per Variable */

.tech-pill.dev   { color: var(--pill-dev);    border-color: var(--pill-dev); }
.tech-pill.devjs { color: var(--pill-dev-js); border-color: var(--pill-dev-js); }
.tech-pill.web   { color: var(--pill-web);    border-color: var(--pill-web); }
.tech-pill.db    { color: var(--pill-db);     border-color: var(--pill-db); }
.tech-pill.eng   { color: var(--pill-eng);    border-color: var(--pill-eng); }
.tech-pill.aut   { color: var(--pill-aut);    border-color: var(--pill-aut); }

/* Locked / Blur Karten */

.locked-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

.locked-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 1.1rem 1rem;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: var(--shadow-soft);
}

/* Locked / Blur Karten */
.locked-title {
    color: var(--text);          /* Weiß als Grundfarbe */
    margin-bottom: .35rem;
    font-size: 1.1rem;
}

/* der blaue Teil im Titel */
.locked-title .text-accent {
    color: var(--accent);
}

.locked-blur {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.locked-info {
    margin-top: .5rem;
    color: var(--muted2);
    font-size: .9rem;
}

/* Eingeloggter Klartext in den Locked-Cards */
.locked-text {
    color: var(--muted);
}

.section-title .text-accent,
.accent {
    color: var(--accent);
}

/* ===================================================================
   AUTH OVERLAY & MODALS
   =================================================================== */

.auth-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(0, 200, 255, 0.12), transparent 55%),
        rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(18px);
    z-index: 1600;
}

.auth-backdrop[hidden] {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

body.auth-modal-open {
    overflow: hidden;
}

body.auth-modal-open .auth-backdrop {
    display: flex;
}

.auth-modal {
    display: none;
    position: relative;
    width: min(520px, 100% - 3rem);
    max-width: 520px;
    margin: 0 auto;
    padding: 2.25rem 2.5rem 2rem;
    border-radius: 26px;
    background: radial-gradient(circle at top, rgba(0, 200, 255, 0.22), transparent 55%),
                #050910;
    box-shadow:
        0 0 0 1px rgba(0, 200, 255, 0.08),
        0 25px 80px rgba(0, 0, 0, 0.85),
        0 0 40px rgba(0, 200, 255, 0.28);
    color: #f4f8ff;

    opacity: 0;
    transform: translateY(16px) scale(0.97);
    pointer-events: none;
    transition:
        opacity 0.22s ease-out,
        transform 0.22s ease-out;
}

.auth-modal.is-open {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.auth-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: #f5f9ff;
    background: radial-gradient(circle at 30% 0, #1b2737, #050910);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition:
        background 0.18s ease-out,
        transform 0.12s ease-out,
        box-shadow 0.18s ease-out;
}

.auth-close:hover {
    background: radial-gradient(circle at 30% 0, #232f42, #050b14);
    box-shadow:
        0 0 15px rgba(0, 200, 255, 0.35),
        0 0 0 1px rgba(0, 200, 255, 0.6);
    transform: translateY(-1px);
}

.auth-title {
    margin: 0 0 .4rem;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.auth-subtitle {
    margin: 0 0 1.6rem;
    font-size: 0.95rem;
    color: #aebad0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.auth-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #c7d2e8;
}

.auth-input {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid #1b2635;
    background: radial-gradient(circle at top, #040712, #02040a);
    color: #f5f9ff;
    font: inherit;
    outline: none;
    transition:
        border-color 0.18s ease-out,
        box-shadow 0.18s ease-out,
        background 0.18s ease-out;
}

.auth-input::placeholder {
    color: #6f7a93;
}

.auth-input:focus {
    border-color: var(--accent);
    box-shadow:
        0 0 0 1px rgba(0, 200, 255, 0.65),
        0 0 24px rgba(0, 200, 255, 0.35);
    background: radial-gradient(circle at top, #070c1a, #02040a);
}

.auth-error {
    min-height: 1.1rem;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #ff6b81;
}

.auth-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.auth-switch {
    margin-top: 1.1rem;
    font-size: 0.9rem;
    color: #9aa7c1;
}

.auth-switch-link {
    border: none;
    padding: 0;
    margin-left: .25rem;
    background: none;
    font: inherit;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.auth-switch-link:hover {
    text-decoration-thickness: 2px;
}

/* Mobile-Tuning Auth */
@media (max-width: 640px) {
    .auth-modal {
        width: calc(100% - 2rem);
        max-width: 420px;
        padding: 1.8rem 1.4rem 1.5rem;
        border-radius: 22px;
    }

    .auth-title {
        font-size: 1.35rem;
    }

    .auth-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .auth-close {
        top: 0.9rem;
        right: 0.9rem;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

/* ===================================================================
   FOOTER
   =================================================================== */

.site-footer {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 2.4rem auto 1.2rem;
    color: var(--muted2);
    text-align: center;
    font-size: .9rem;
    padding: 0 1.2rem;
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 .25rem;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ===================================================================
   MOBILE
   =================================================================== */

@media (max-width: 700px) {

    body {
        padding-top: 68px;
    }

    .site-header-inner {
        padding: .8rem 1.2rem;
        justify-content: space-between;
    }

    .brand {
        font-size: 1.1rem;
    }

    /* Burger sichtbar */
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: auto;
        z-index: 1001;
    }

    /* Drawer: von rechts, unter dem Header */
    .nav-drawer {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 260px;
        max-width: 80%;
        background: rgba(4, 8, 14, 0.98);
        box-shadow: -8px 0 20px rgba(0, 0, 0, 0.7);
        display: flex;
        flex-direction: column;
        padding: 70px 16px 16px;
        gap: 16px;
        transform: translateX(100%);
        transition: transform 0.25s ease-out;
        z-index: 999;
        justify-content: flex-start;
        align-items: stretch;
    }

    .site-header.menu-open .nav-drawer {
        transform: translateX(0);
    }

    .nav-wrapper {
        width: 100%;
        align-items: flex-start;
        gap: 14px;
    }

    .main-nav,
    .sub-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-link {
        width: 100%;
        padding: 8px 0;
        font-size: .98rem;
    }

    .nav-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 12px;
    }

    .nav-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 3.2rem 1rem 1.8rem;
        min-height: auto;
    }

    .hero-card {
        padding: 1.9rem 1.3rem 1.4rem;
        border-radius: 16px;
        width: 92vw;
        max-width: 440px;
        margin: 0 auto;
    }

    .hero-logo {
        width: 80%;
        max-width: 150px;
    }

    .section {
        padding: 1.8rem .9rem;
        margin: 1.8rem auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 1.4rem .9rem 1.2rem;
    }

    /* Auth-Modals auf Mobile */
    .auth-modal {
        width: calc(100% - 2rem);
        padding: 1.8rem 1.4rem 1.5rem;
        border-radius: 22px;
    }

    .auth-title {
        font-size: 1.35rem;
    }

    .auth-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .auth-close {
        top: 0.9rem;
        right: 0.9rem;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    /* Mobile-Header kompakter – 3 Zeilen */
    .user-status-inner {
        padding: 0.35rem 1.1rem 0.35rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .user-status-left {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        font-size: 0.9rem;
    }

    .user-credits {
        font-size: 0.88rem;
        margin-top: -0.1rem;
    }

    .user-plan-wrapper {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.4rem;
        font-size: 0.9rem;
        margin-top: -0.1rem;
    }

    .user-plan-wrapper .plan-badge {
        transform: scale(0.95);
    }

    .user-plan-label {
        font-weight: 500;
        color: var(--muted2);
    }

    .site-header {
        padding-bottom: 0.2rem;
    }
}

/* ===================================================================
   TABLET
   =================================================================== */

@media (min-width: 701px) and (max-width: 1000px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



/* ===================================================================
   ÜBER MICH
   =================================================================== */
   
/* Über mich – in Longcard */
.about-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 1.4rem 1.2rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow-soft);
    margin-top: 1.2rem;
}

/* Name */
.about-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .6rem;
    color: var(--text);
}

/* Rolle → NICHT fett + blau (accent) */
.about-role {
    font-weight: 400;
    color: var(--accent);
    margin-left: .35rem;
}

/* Textabsätze */
.about-text {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: .9rem;
}

.about-italic {
    font-style: italic;
    color: var(--muted2);
}

/* zweifarbiger Titel */
.text-white {
    color: var(--text);
}


/* ================================
   Subseiten-Header (User-Dashboard)
   ================================ */

.subpage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    gap: 0.8rem;
}

.subpage-header-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.subpage-header-right {
    font-size: 0.85rem;
    color: var(--muted2);
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.subpage-header-right strong {
    color: var(--text);
}

.subpage-header-label {
    opacity: 0.8;
}

.btn-small {
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
}

/* ================================
   Account-Dashboard
   ================================ */

.account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.account-card {
    padding: 1.2rem 1rem 1.1rem;
}

.account-title {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--accent);
}

.account-subtitle {
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.account-help {
    font-size: 0.85rem;
    color: var(--muted2);
    margin-bottom: 0.55rem;
}

.account-block {
    margin-top: 0.4rem;
}

.account-block-top {
    margin-top: 1rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.account-plans {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.2rem;
}

.account-plan-row {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.account-plan-main {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.account-plan-meta {
    font-size: 0.82rem;
    color: var(--muted2);
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.account-plan-tag {
    font-size: 0.75rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--muted2);
}

.account-form .auth-label {
    margin-bottom: 0.4rem;
}

.account-form .auth-actions {
    margin-top: 0.6rem;
}

/* Mobile: Account-Grid einstufig */
@media (max-width: 900px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}



/* Subpage-Header mit Zurück + Home */
.subpage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.subpage-header-left {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.subpage-header-right {
    font-size: .85rem;
    color: var(--muted2);
}

/* Kleine Buttons (z.B. Zurück / Home im Subheader) */
.btn-small {
    padding: .35rem .75rem;
    font-size: .8rem;
}

/* Account-Dashboard – max. 3 Spalten */
.account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 1.5rem;
}

/* Tablet: 2 Spalten */
@media (max-width: 1000px) {
    .account-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: 1 Spalte */
@media (max-width: 700px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}

/* Allgemeine Longcard (z.B. Account, Kontakt, Datenschutz) */
.longcard {
    background: var(--surface);
    border-radius: var(--radius-card);
    padding: 1.3rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow-soft);
}

/* Spezielle Optik fürs Account-Dashboard */
.account-card {
    /* erbt von .longcard – hier nur Feinheiten */
}

.account-title {
    color: var(--accent);
    margin-bottom: .4rem;
    font-size: 1.05rem;
}

.account-subtitle {
    font-size: .92rem;
    color: var(--text);
    margin: .7rem 0 .2rem;
}

.account-block {
    margin-top: .6rem;
}

.account-block-top {
    margin-top: 1rem;
    padding-top: .7rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* Plan-Zeilen */
.account-plan-row {
    margin-top: .45rem;
    font-size: .88rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.account-plan-main {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.account-plan-tag {
    font-size: .72rem;
    color: var(--muted2);
}

.account-plan-meta {
    font-size: .8rem;
    color: var(--muted2);
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

/* Rollen-Badges im Account-Dashboard */
.account-card .role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    max-width: 100%;
}

/* ===================================================================
   ACCOUNT / SUBPAGES
   =================================================================== */

/* Subpage-Header (Zurück + Home) */
.subpage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.subpage-header-left {
    display: flex;
    gap: 0.5rem;
}

/* Kleine Buttons für Subpages */
.btn-small {
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
}

/* Grid: max. 2 Spalten – überall wiederverwendbar */
.account-grid {
    display: grid;
    gap: 1.4rem;
    margin-top: 1.6rem;
}

/* 2-Spalten-Layout auf Desktop */
.account-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Card auf Subpages – nutzt das gleiche Look&Feel wie longcard */
.account-card {
    /* longcard macht schon Background / Border / Shadow,
       hier können wir nur noch Feintuning machen falls nötig */
}

/* Card über volle Breite (z.B. Profil) */
.account-card--full {
    grid-column: 1 / -1;
}

/* Titel / Texte in Cards */
.account-title {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.about-heading {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.about-subtitle {
    color: var(--muted2);
    font-weight: 400;
    font-size: 0.9rem;
}

.about-text {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}

/* Blöcke innerhalb einer Card */
.account-block {
    margin-top: 0.7rem;
}

.account-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-soft);
}

/* Rollen: Umbruch erlauben */
.role-badges-wrap {
    flex-wrap: wrap;
}

/* Plan-Zeilen */
.account-plan-row {
    margin-bottom: 0.35rem;
}

.account-plan-main {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.account-plan-meta {
    font-size: 0.85rem;
    color: var(--muted2);
}

.account-plan-tag {
    font-size: 0.75rem;
    padding: 0.05rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--muted2);
}

/* Mobile: nur 1 Spalte */
@media (max-width: 800px) {
    .account-grid--2 {
        grid-template-columns: 1fr;
    }
    .account-card--full {
        grid-column: auto;
    }
}

/* Abstand zwischen Account-Cards */
.section .longcard {
    margin-bottom: 1.2rem;
}

/* Tabellen für Pläne */
.plans-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 0.4rem;
}

.plans-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.plans-table th,
.plans-table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: left;
    white-space: nowrap;
}

.plans-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted2);
}

.plans-table tr:last-child td {
    border-bottom: none;
}

.plans-table--compact th,
.plans-table--compact td {
    padding: 0.35rem 0.5rem;
}

/* irgendwo bei deinen Tabellen-Styles */
.plans-table th.plans-num,
.plans-table td.plans-num {
    text-align: right;
    white-space: nowrap;  /* optional, damit 3.500 / 4.000 schön zusammen bleiben */
}

/* Accordion Toggle (Einklapp-Buttons) */
.collapse-toggle {
    background: #0f172a;                 /* Dunkel wie MBDev */
    border: 1px solid #1e293b;           /* Dezente Umrandung */
    color: #e2e8f0;                      /* Textfarbe */
    padding: .65rem .9rem;
    border-radius: .35rem;
    font-size: .9rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .15s ease, border-color .15s ease;
}

/* Hover-Effekt */
.collapse-toggle:hover {
    background: #1e293b;
    border-color: #334155;
}

/* Rechts der Pfeil */
.collapse-toggle .collapse-icon {
    opacity: .75;
    transition: transform .2s ease;
}

/* Wenn geöffnet -> Pfeil drehen */
.collapse-toggle.open .collapse-icon {
    transform: rotate(90deg);
}

/* Inhalt */
.collapse-content {
    background: #0b1120;
    padding: 1rem;
    border: 1px solid #1e293b;
    border-radius: .35rem;
    margin-top: .5rem;
}





/* TWITCH */
.settings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.settings-row {
  flex: 1 1 240px;
  min-width: 0;
}

.settings-row-label {
  font-size: 0.82rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.settings-row-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  position: relative;
  border-radius: 9999px;
  border: 1px solid #1e293b;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
  background: #020617;
  color: #e5e7eb;
}

.pill input[type="radio"] {
  display: none;
}

.pill--active {
  border-color: #0ea5e9;
  box-shadow: 0 0 8px rgba(14,165,233,0.35);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.25), #020617);
}












/* -------------------------------------------------------
   MBDev – AI Translate Style
   ------------------------------------------------------- */

/* Wrapper für die zwei Spalten */
.ai-translate-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Jede Spalte */
.ai-translate-col {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
}

/* Gemeinsamer Look für Textareas */
.ai-textarea {
    width: 100%;
    min-height: 220px;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #fff;
    resize: vertical;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color .2s ease, background .2s ease;
}

.ai-textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255,255,255,0.08);
}

/* Labels schöner machen */
.ai-label {
    margin-bottom: .4rem;
    font-size: 0.9rem;
    opacity: .8;
}

/* Selects / Inputs */
.ai-select {
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.9rem;
    transition: border-color .2s ease, background .2s ease;
}

.ai-select:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255,255,255,0.12);
}

/* Abstand unter Blöcken */
.ai-form-block {
    margin-top: 1rem;
}

/* -------------------------------------------------------
   MBDev – AI Select (mit stabilem Pfeil, kein Flackern)
   ------------------------------------------------------- */

.ai-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    position: relative;
    padding: 0.55rem 2.2rem 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;

    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

/* Fester Pfeil – unabhängig vom Hintergrund */
.ai-select::after {
    content: "";
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;

    width: 12px;
    height: 12px;

    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='12' viewBox='0 0 20 20' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.ai-select:hover {
    border-color: #00d4ff;
    background: rgba(255,255,255,0.08);
}

.ai-select:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 8px rgba(0,212,255,0.35);
}

/* Dropdown (Options) */
.ai-select option {
    background: #fff;
    color: #000;
    font-size: 0.9rem;
    padding: 0.6rem;
}

.ai-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    opacity: 0.7;
}




.btn-outline-blue {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #00d4ff;
    border-radius: 6px;
    color: #00d4ff;
    font-size: 0.85rem;
    font-weight: 500;
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-blue:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #33ddff;
    color: #33ddff;
}