/* ============================================================
   Quovum — Gemeinsames Light-Theme für alle Account-Seiten
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=Barlow:wght@400;600;700&family=JetBrains+Mono&display=swap');

:root {
    --bg:        #f4f6fb;
    --surface:   #ffffff;
    --surface-2: #eef1f8;
    --border:    #dde3f0;
    --border-2:  #c8d0e7;
    --text:      #111827;
    --text-dim:  #6b7280;
    --accent:    #e69500;
    --accent-fg: #ffffff;
    --danger:    #dc2626;
    --success:   #16a34a;
    --mono:      'JetBrains Mono', monospace;
    --heading:   'Barlow Condensed', sans-serif;
    --body:      'Barlow', sans-serif;
    --radius:    10px;
    --shadow:    0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    min-height: 100vh;
}

/* ── Typografie ────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text);
}

/* ── Karten / Oberflächen ──────────────────────────────────── */
.card, .box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ── Formulare ─────────────────────────────────────────────── */
input, select, textarea {
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    color: var(--text);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .9rem;
    font-family: var(--body);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230,149,0,.15);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
    background: var(--accent);
    color: var(--accent-fg);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: var(--heading);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
    transition: filter .15s;
    display: inline-block;
    text-decoration: none;
}
.btn-primary:hover { filter: brightness(.92); }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    padding: 10px 18px;
    font-family: var(--heading);
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
    transition: border-color .2s;
    display: inline-block;
    text-decoration: none;
}
.btn-secondary:hover { border-color: var(--accent); }

/* ── Meldungen ─────────────────────────────────────────────── */
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .88rem;
}
.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .88rem;
}
.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .88rem;
}

/* ── Account-Bar Overrides ──────────────────────────────────── */
.account-bar {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border) !important;
    color: var(--text) !important;
}
.account-bar a { color: var(--text-dim) !important; }
.account-bar a:hover { color: var(--accent) !important; }

/* ============================================================
   Quovum — Seitenspezifische Styles (alle Account-Seiten)
   ============================================================ */

/* ── Gemeinsames Layout ──────────────────────────────────────── */
.page {
    max-width: 1100px; margin: 0 auto; padding: 32px 20px;
}
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 32px; flex-wrap: wrap; gap: 12px;
}
.page-title {
    font-family: var(--heading); font-size: 1.8rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em; color: var(--text);
}
.page-title span { color: var(--accent); }
.section-title {
    font-family: var(--heading); font-size: .75rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim);
    margin-bottom: 12px;
}
.back a { color: var(--text-dim); font-size: .82rem; text-decoration: none; }
.back a:hover { color: var(--accent); }
.subtitle { color: var(--text-dim); font-size: .95rem; margin-bottom: 28px; line-height: 1.6; }

/* ── Grid / Cards ────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.stats  { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px; }

.stat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
.stat-val   { font-size: 1.8rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: .75rem; color: var(--text-dim); margin-top: 4px; }

.card { padding: 20px; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head-title { font-family: var(--heading); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); }
.card-body { }

/* ── Gruppen / Sessions ──────────────────────────────────────── */
.group-row, .session-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-radius: 8px; background: var(--surface-2);
    border: 1px solid var(--border); margin-bottom: 8px; gap: 12px;
}
.group-name, .session-title { font-weight: 700; color: var(--text); font-size: .92rem; }
.group-meta, .session-meta  { font-size: .75rem; color: var(--text-dim); margin-top: 2px; }
.session-code {
    font-family: var(--mono); font-size: .8rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px;
    color: var(--accent); letter-spacing: .1em;
}
.online-badge {
    background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0;
    border-radius: 20px; padding: 2px 10px; font-size: .7rem; font-weight: 700;
}
.active-dot { display: inline-block; width: 8px; height: 8px; background: #22c55e; border-radius: 50%; margin-right: 4px; }
.empty { color: var(--text-dim); font-size: .88rem; padding: 16px 0; }
.upgrade-hint { background: #ede9fe; border: 1px solid #c4b5fd; border-radius: 8px; padding: 12px 16px; font-size: .85rem; color: #5b21b6; }

.btn-sm {
    padding: 6px 14px; border-radius: 6px; font-size: .78rem; font-weight: 700;
    font-family: var(--heading); text-transform: uppercase; letter-spacing: .05em;
    border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
    cursor: pointer; text-decoration: none; transition: border-color .15s;
}
.btn-sm:hover { border-color: var(--accent); }
.btn-sm.primary { background: var(--accent); color: #fff; border-color: var(--accent); }

.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.qa-btn {
    display: flex; align-items: center; gap: 8px; padding: 12px 18px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 600;
    transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow);
}
.qa-btn:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230,149,0,.1); }
.qa-btn .icon { font-size: 1.1rem; }

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-wrap { max-width: 1000px; margin: 0 auto; padding: 32px 20px; }
.pricing-hero { text-align: center; margin-bottom: 40px; }
.pricing-hero h1 { font-family: var(--heading); font-size: 2.2rem; font-weight: 800; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.pricing-hero p  { color: var(--text-dim); font-size: .95rem; }

.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 40px; }
.plan-card {
    background: var(--surface); border: 2px solid var(--border);
    border-radius: 14px; padding: 28px; box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.plan-card.featured { border-color: var(--accent); }
.featured-badge {
    display: inline-block; background: var(--accent); color: #fff;
    font-size: .68rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; padding: 3px 10px; border-radius: 20px; margin-bottom: 12px;
}
.plan-name  { font-family: var(--heading); font-size: 1.1rem; font-weight: 800; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.plan-price span { font-size: .85rem; font-weight: 400; color: var(--text-dim); }
.plan-desc  { font-size: .82rem; color: var(--text-dim); margin-bottom: 16px; line-height: 1.5; }
.plan-features { list-style: none; margin-bottom: 20px; flex: 1; }
.plan-features li { font-size: .84rem; color: var(--text); padding: 5px 0; border-bottom: 1px solid var(--border); display: flex; gap: 8px; }
.plan-features li:last-child { border: none; }
.plan-features .yes { color: #15803d; }
.plan-features .no  { color: var(--text-dim); }
.btn-plan {
    width: 100%; padding: 12px; border-radius: 8px; text-align: center;
    font-family: var(--heading); font-size: .9rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .05em; cursor: pointer; text-decoration: none;
    border: 2px solid var(--border-2); background: var(--surface-2); color: var(--text);
    transition: border-color .15s;
}
.btn-plan:hover { border-color: var(--accent); }
.btn-plan.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-current { background: var(--surface-2); border-color: var(--border); color: var(--text-dim); cursor: default; }

/* ── Help ───────────────────────────────────────────────────── */
.section { margin-bottom: 40px; }
.section h2 { font-family: var(--heading); font-size: 1.2rem; font-weight: 800; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.feature-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 18px; box-shadow: var(--shadow);
}
.feature-card .icon { font-size: 1.4rem; margin-bottom: 8px; display: block; }
.feature-card h3 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.feature-card p  { font-size: .8rem; color: var(--text-dim); line-height: 1.5; }
.flow { display: flex; flex-direction: column; gap: 12px; }
.flow-step { display: flex; gap: 14px; align-items: flex-start; }
.flow-num {
    width: 28px; height: 28px; background: var(--accent); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .78rem; flex-shrink: 0;
}
.flow-content h4 { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.flow-content p  { font-size: .8rem; color: var(--text-dim); line-height: 1.5; }
.tip {
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px;
    padding: 12px 16px; font-size: .84rem; color: #92400e; margin-top: 16px;
}
.compare { width: 100%; border-collapse: collapse; font-size: .84rem; }
.compare th { background: var(--surface-2); color: var(--text); padding: 10px 14px; text-align: left; font-weight: 700; border-bottom: 2px solid var(--border); }
.compare td { padding: 9px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.compare tr:last-child td { border: none; }
.yes { color: #15803d; } .no { color: #b91c1c; }

/* ── Wiki ───────────────────────────────────────────────────── */
.wiki-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: calc(100vh - 40px); }
.wiki-sidebar {
    background: var(--surface); border-right: 1px solid var(--border);
    padding: 20px 0; position: sticky; top: 40px; height: calc(100vh - 40px); overflow-y: auto;
}
.wiki-sidebar-header { padding: 0 16px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.wiki-sidebar-header h2 { font-size: .9rem; font-weight: 800; color: var(--text); }
.wiki-search input { width: 100%; padding: 7px 10px; font-size: .82rem; }
.wiki-cat { margin-bottom: 4px; }
.wiki-cat-title { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); padding: 10px 16px 4px; }
.wiki-link {
    display: block; padding: 7px 16px; font-size: .84rem; color: var(--text-dim);
    text-decoration: none; border-left: 3px solid transparent; transition: all .15s;
}
.wiki-link:hover, .wiki-link.active { color: var(--text); border-left-color: var(--accent); background: var(--surface-2); }
.wiki-content { padding: 32px; max-width: 760px; }
.wiki-breadcrumb { font-size: .78rem; color: var(--text-dim); margin-bottom: 20px; }
.wiki-title { font-family: var(--heading); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; color: var(--text); margin-bottom: 20px; }
.wiki-body h2 { font-family: var(--heading); font-size: 1.1rem; font-weight: 800; text-transform: uppercase; color: var(--text); margin: 24px 0 10px; }
.wiki-body p  { font-size: .9rem; color: var(--text); line-height: 1.7; margin-bottom: 12px; }
.wiki-body ul { padding-left: 20px; margin-bottom: 12px; }
.wiki-body li { font-size: .88rem; color: var(--text); line-height: 1.6; margin-bottom: 4px; }
.wiki-table { width: 100%; border-collapse: collapse; font-size: .84rem; margin-bottom: 16px; }
.wiki-table th { background: var(--surface-2); padding: 9px 12px; text-align: left; font-weight: 700; border-bottom: 2px solid var(--border); color: var(--text); }
.wiki-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.search-results { padding: 32px; }
.search-result { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.search-result-title { font-weight: 700; color: var(--text); font-size: .9rem; margin-bottom: 2px; }
.search-result-title a { color: var(--accent); text-decoration: none; }
.search-result-cat { font-size: .75rem; color: var(--text-dim); }
.back-top { display: inline-block; margin-top: 24px; font-size: .8rem; color: var(--text-dim); text-decoration: none; }

/* ── Kalender ───────────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; max-width: 1100px; margin: 0 auto; padding: 24px 20px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-nav h2 { font-family: var(--heading); font-size: 1.1rem; font-weight: 800; text-transform: uppercase; color: var(--text); }
.nav-btn {
    background: var(--surface); border: 1px solid var(--border); border-radius: 7px;
    padding: 6px 14px; font-size: .84rem; cursor: pointer; color: var(--text);
    text-decoration: none; transition: border-color .15s;
}
.nav-btn:hover { border-color: var(--accent); }
.cal-dow { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 4px; }
.cal-dow span { text-align: center; font-size: .7rem; font-weight: 700; color: var(--text-dim); padding: 4px 0; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.cal-cell {
    min-height: 80px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 6px; padding: 6px; cursor: pointer; transition: border-color .15s;
}
.cal-cell:hover { border-color: var(--accent); }
.cal-cell.today { border-color: var(--accent); background: #fffbeb; }
.cal-cell.empty { background: var(--surface-2); cursor: default; }
.cal-day-num { font-size: .75rem; font-weight: 700; color: var(--text-dim); margin-bottom: 4px; }
.cal-cell.today .cal-day-num { color: var(--accent); }
.cal-event { font-size: .65rem; background: var(--accent); color: #fff; border-radius: 3px; padding: 1px 4px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 4px; }

.event-list { display: flex; flex-direction: column; gap: 10px; }
.event-row {
    background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
    padding: 14px 16px; box-shadow: var(--shadow);
}
.event-title { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.event-meta  { font-size: .78rem; color: var(--text-dim); margin-bottom: 10px; }
.start-btn {
    background: var(--accent); color: #fff; border: none; border-radius: 6px;
    padding: 7px 14px; font-family: var(--heading); font-size: .78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em; cursor: pointer; margin-right: 6px;
}
.del-btn {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px;
    padding: 6px 12px; font-size: .78rem; cursor: pointer; color: var(--text-dim);
}
.spontan-trigger { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 7px 14px; font-size: .78rem; cursor: pointer; color: var(--text); font-family: var(--heading); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-right: 6px; }
.btn-submit { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 12px; width: 100%; font-family: var(--heading); font-size: 1rem; font-weight: 800; text-transform: uppercase; cursor: pointer; }

.modal-bg { display:none; position:fixed; inset:0; background:rgba(0,0,0,.3); z-index:1000; align-items:center; justify-content:center; }
.modal-bg.open { display:flex; }
.modal { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:28px; max-width:440px; width:90%; box-shadow:0 8px 32px rgba(0,0,0,.15); }
.modal-close { float:right; background:none; border:none; font-size:1.2rem; cursor:pointer; color:var(--text-dim); }

.alert { border-radius: 8px; padding: 10px 14px; font-size: .84rem; margin-bottom: 12px; }
.alert.ok  { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert.err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* ── Account ─────────────────────────────────────────────────── */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.back-link { color: var(--text-dim); font-size: .82rem; text-decoration: none; }
.back-link:hover { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.email-row, .since-row, .stat-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.email-row:last-child, .since-row:last-child, .stat-row:last-child { border: none; }
.stat-key { color: var(--text-dim); }
.stat-val { font-weight: 700; color: var(--text); }
.plan-box { background: var(--surface); border: 2px solid var(--accent); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.plan-badge { display: inline-block; background: var(--accent); color: #fff; border-radius: 20px; padding: 3px 12px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.plan-desc { font-size: .84rem; color: var(--text-dim); margin-bottom: 14px; line-height: 1.5; }
.bar-wrap { background: var(--surface-2); border-radius: 20px; height: 8px; margin-bottom: 8px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 20px; transition: width .3s; }
.notice { font-size: .78rem; color: var(--text-dim); }
.upgrade-card { background: #ede9fe; border: 1px solid #c4b5fd; border-radius: 12px; padding: 20px; }
.upgrade-card h3 { font-size: 1rem; font-weight: 800; color: #4c1d95; margin-bottom: 6px; }
.upgrade-card p  { font-size: .84rem; color: #5b21b6; margin-bottom: 14px; line-height: 1.5; }
.btn-upgrade { display: inline-block; background: #7c3aed; color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-family: var(--heading); font-size: .88rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; text-decoration: none; }
.btn { display: inline-block; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 8px; padding: 9px 18px; font-size: .88rem; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; }
.error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 8px; padding: 10px 14px; font-size: .85rem; margin-bottom: 16px; }

/* ── FAQ (Pricing) ───────────────────────────────────────────── */
.faq { max-width: 640px; margin: 0 auto 40px; }
.faq h2 { font-family: var(--heading); font-size: 1.2rem; font-weight: 800; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
details { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 8px; background: var(--surface); }
details summary { font-weight: 600; cursor: pointer; color: var(--text); font-size: .9rem; }
details p { margin-top: 10px; font-size: .84rem; color: var(--text-dim); line-height: 1.6; }

/* ── Global Footer ───────────────────────────────────── */
.site-footer {
    margin-top: auto; border-top: 1px solid var(--border);
    background: var(--surface); padding: 16px 24px;
}
.site-footer-inner {
    max-width: 1300px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
.site-footer-brand { font-family: var(--heading); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.site-footer-nav { display: flex; gap: 18px; }
.site-footer-nav a { font-size: .76rem; color: var(--text-dim); text-decoration: none; transition: color .15s; }
.site-footer-nav a:hover { color: var(--text); }
.site-footer-copy { font-size: .72rem; color: var(--text-dim); }
@media(max-width:600px) { .site-footer-inner { flex-direction: column; text-align: center; } .site-footer-nav { justify-content: center; } }
