/* ============================================================
   CircuitDoc Landing Page — Dark Theme CSS
   ============================================================ */

:root {
    --bg: #08090f;
    --bg-surface: #0e0f18;
    --bg-card: #13141f;
    --bg-card-hover: #1a1c2a;
    --accent: #4f8ef7;
    --accent-dim: rgba(79, 142, 247, 0.12);
    --accent-border: rgba(79, 142, 247, 0.25);
    --text: #eef0f8;
    --text-secondary: #8891a8;
    --text-muted: #50596b;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.lp-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 9, 15, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.lp-nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.lp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

.lp-logo:hover {
    color: var(--accent);
}

.lp-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: 9px;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(79, 142, 247, 0.35);
}

.lp-logo-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.lp-nav-links a {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.18s ease, background 0.18s ease;
}

.lp-nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.lp-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lp-lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    transition: border-color 0.18s, background 0.18s;
}

.lp-lang-toggle:hover {
    border-color: var(--accent-border);
    background: var(--bg-card-hover);
    color: var(--text);
}

.lp-lang-active {
    color: var(--accent);
}

.lp-lang-sep {
    color: var(--text-muted);
    font-weight: 300;
}

.lp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9px;
    border: none;
    transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
    box-shadow: 0 2px 14px rgba(79, 142, 247, 0.28);
    white-space: nowrap;
}

.lp-cta-btn:hover {
    background: #3a7ef5;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(79, 142, 247, 0.38);
    color: #fff;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.lp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
    box-shadow: 0 4px 22px rgba(79, 142, 247, 0.32);
}

.lp-btn-primary:hover {
    background: #3a7ef5;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(79, 142, 247, 0.42);
    color: #fff;
}

.lp-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.12s;
}

.lp-btn-secondary:hover {
    color: var(--text);
    border-color: var(--accent-border);
    background: var(--accent-dim);
    transform: translateY(-1px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.lp-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79, 142, 247, 0.14) 0%, transparent 70%),
                var(--bg);
    overflow: hidden;
    padding: 80px 24px 80px;
}

.lp-hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 64px;
}

.lp-hero-content {
    flex: 1;
    min-width: 0;
}

.lp-hero-tag {
    display: inline-block;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.lp-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 22px;
}

.lp-hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 36px;
}

.lp-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero gradient blobs */
.lp-hero-gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.lp-hero-gradient-blob--1 {
    width: 600px;
    height: 600px;
    background: rgba(79, 142, 247, 0.07);
    top: -200px;
    right: -100px;
}

.lp-hero-gradient-blob--2 {
    width: 400px;
    height: 400px;
    background: rgba(120, 80, 247, 0.05);
    bottom: -100px;
    left: -50px;
}

.lp-hero-content,
.lp-mockup {
    position: relative;
    z-index: 1;
}

/* ============================================================
   MOCKUP CARD
   ============================================================ */

.lp-mockup {
    flex-shrink: 0;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), 0 0 80px rgba(79, 142, 247, 0.08);
    overflow: hidden;
    animation: lp-float 4s ease-in-out infinite;
}

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.lp-mock-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.lp-mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.lp-mock-dot--red    { background: #f05250; }
.lp-mock-dot--yellow { background: #f0b450; }
.lp-mock-dot--green  { background: #40c070; }

.lp-mock-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.lp-mock-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-mock-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.lp-mock-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: border-color 0.15s;
}

.lp-mock-item--active {
    border-color: var(--accent-border);
    background: var(--accent-dim);
}

.lp-mock-item-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.lp-mock-item-info {
    flex: 1;
    min-width: 0;
}

.lp-mock-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-mock-item-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.lp-mock-badge {
    background: rgba(64, 192, 112, 0.15);
    color: #40c070;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(64, 192, 112, 0.25);
    white-space: nowrap;
}

.lp-mock-divider {
    height: 1px;
    background: var(--border);
    margin: 2px 0;
}

.lp-mock-cable-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
}

.lp-mock-cable-num {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'SF Mono', 'Fira Code', monospace;
    flex-shrink: 0;
}

.lp-mock-cable-info {
    flex: 1;
    font-size: 0.78rem;
    color: var(--text);
}

.lp-mock-cable-route {
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.lp-mock-cable-status {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

.lp-mock-cable-status--ok {
    background: rgba(64, 192, 112, 0.15);
    color: #40c070;
    border: 1px solid rgba(64, 192, 112, 0.25);
}

.lp-mock-progress-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.lp-mock-progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.lp-mock-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #7bb3fb);
    border-radius: 999px;
    transition: width 0.6s ease;
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */

.lp-section {
    padding: 96px 24px;
    max-width: 1160px;
    margin: 0 auto;
}

.lp-section--dark {
    max-width: 100%;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 96px 24px;
}

.lp-section-inner {
    max-width: 1160px;
    margin: 0 auto;
    text-align: center;
}

.lp-section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text);
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.lp-section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 999px;
    margin: 10px auto 0;
}

.lp-section-title--light {
    color: var(--text);
}

.lp-section-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 56px;
    margin-top: 4px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.lp-section-sub--light {
    color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   FEATURES GRID
   ============================================================ */

.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.lp-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: border-color 0.2s, background 0.2s, transform 0.18s, box-shadow 0.2s;
}

.lp-feature-card:hover {
    border-color: var(--accent-border);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(79, 142, 247, 0.1);
}

.lp-feature-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 14px;
}

.lp-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.lp-feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS — STEPS
   ============================================================ */

.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1160px;
    margin: 0 auto;
}

.lp-step {
    text-align: center;
    padding: 0 16px;
}

.lp-step-number {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent), #7bb3fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.lp-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.lp-step p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================================
   PRICING
   ============================================================ */

.lp-pricing-single {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 1px var(--accent-border), 0 8px 48px rgba(79, 142, 247, 0.14);
    overflow: hidden;
}

.lp-pricing-left {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(79, 142, 247, 0.07) 0%, var(--bg-card) 70%);
}

.lp-pricing-divider {
    width: 1px;
    background: var(--border);
    margin: 32px 0;
}

.lp-pricing-right {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
}

.lp-pricing-plan {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.lp-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.lp-price-from {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.lp-price-amount {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.lp-price-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.lp-pricing-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.55;
}

.lp-price-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    flex: 1;
}

.lp-price-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.lp-check {
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.lp-pricing-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.lp-pricing-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 24px;
}

/* Pricing table */
.lp-pricing-table {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0 16px;
    font-size: 0.85rem;
}

.lp-pricing-table-header {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 0;
    background: rgba(79, 142, 247, 0.1);
    padding: 8px 14px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lp-pricing-table-row {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    padding: 9px 14px;
    border-top: 1px solid var(--border);
    color: var(--text-primary);
}

.lp-pricing-table-vat {
    padding: 7px 14px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

.lp-pricing-example {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.lp-pricing-example-label {
    font-weight: 600;
    color: var(--accent);
    margin-right: 6px;
}

/* ============================================================
   ROADMAP SECTION
   ============================================================ */

.lp-roadmap {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.lp-roadmap::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-border), transparent);
}

.lp-roadmap-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.lp-roadmap-item:last-child {
    border-bottom: none;
}

.lp-roadmap-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.lp-roadmap-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.lp-roadmap-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.lp-roadmap-status {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(79, 142, 247, 0.12);
    border: 1px solid var(--accent-border);
    border-radius: 20px;
    padding: 4px 12px;
    white-space: nowrap;
    align-self: center;
}

/* ============================================================
   DOWNLOAD SECTION
   ============================================================ */

.lp-download-section {
    background: linear-gradient(160deg, rgba(79, 142, 247, 0.1) 0%, var(--bg-surface) 60%),
                var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 96px 24px;
}

.lp-store-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.lp-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 22px;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
    min-width: 200px;
}

.lp-store-btn:hover:not(.lp-store-btn--disabled) {
    border-color: var(--accent-border);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(79, 142, 247, 0.15);
}

.lp-store-btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lp-store-btn--web {
    border-color: var(--accent-border);
    background: var(--accent-dim);
}

.lp-store-btn--web:hover {
    background: rgba(79, 142, 247, 0.2) !important;
    box-shadow: 0 6px 28px rgba(79, 142, 247, 0.2) !important;
}

.lp-store-btn-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.lp-store-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.lp-store-btn-sub {
    font-size: 0.68rem;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

.lp-store-btn-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

/* ============================================================
   CONTACT / IMPRESSUM
   ============================================================ */

.lp-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1160px;
    margin: 0 auto;
}

.lp-contact-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.lp-contact-block h3 {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.lp-contact-block p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 6px;
}

.lp-contact-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}

.lp-contact-link:hover {
    color: #7bb3fb;
    text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */

.lp-footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding: 28px 24px;
}

.lp-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.lp-footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.lp-footer-links {
    display: flex;
    gap: 20px;
}

.lp-footer-links a {
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: color 0.15s;
}

.lp-footer-links a:hover {
    color: var(--text-secondary);
}

/* ============================================================
   BLAZOR ERROR UI
   ============================================================ */

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #2a1a1a;
    border: 1px solid rgba(240, 82, 80, 0.3);
    color: #f05250;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    z-index: 9999;
    gap: 12px;
    align-items: center;
    box-shadow: var(--shadow);
}

#blazor-error-ui .reload {
    color: var(--accent);
    text-decoration: underline;
    margin-left: 8px;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 12px;
    color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1024px) {
    .lp-hero-inner {
        gap: 40px;
    }

    .lp-mockup {
        width: 290px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 768px) {

    /* Navbar */
    .lp-nav-links {
        display: none;
    }

    .lp-nav-inner {
        gap: 12px;
    }

    .lp-cta-btn {
        font-size: 0.82rem;
        padding: 7px 14px;
    }

    .lp-lang-toggle {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    /* Hero */
    .lp-hero {
        padding: 60px 20px 60px;
        min-height: auto;
    }

    .lp-hero-inner {
        flex-direction: column;
        gap: 48px;
        text-align: center;
    }

    .lp-hero h1 {
        font-size: 2rem;
    }

    .lp-hero-sub {
        font-size: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .lp-hero-actions {
        justify-content: center;
    }

    .lp-mockup {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    /* Sections */
    .lp-section {
        padding: 64px 20px;
    }

    .lp-section--dark {
        padding: 64px 20px;
    }

    .lp-download-section {
        padding: 64px 20px;
    }

    /* Features */
    .lp-features-grid {
        grid-template-columns: 1fr;
    }

    /* Steps */
    .lp-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lp-step {
        padding: 0;
    }

    /* Pricing */
    .lp-pricing-single {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .lp-pricing-left,
    .lp-pricing-right {
        padding: 28px 22px;
    }

    .lp-pricing-divider {
        width: auto;
        height: 1px;
        margin: 0 24px;
    }

    .lp-pricing-table-header,
    .lp-pricing-table-row {
        grid-template-columns: 1fr 60px 1fr;
        font-size: 0.78rem;
    }

    /* Roadmap */
    .lp-roadmap::before {
        display: none;
    }

    .lp-roadmap-item {
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto;
    }

    .lp-roadmap-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .lp-roadmap-status {
        grid-column: 2;
        align-self: flex-start;
        margin-top: 8px;
        width: fit-content;
    }

    /* Store buttons */
    .lp-store-btns {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
    }

    .lp-store-btn {
        min-width: unset;
        width: 100%;
        justify-content: center;
    }

    /* Contact */
    .lp-contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Footer */
    .lp-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .lp-footer-links {
        justify-content: center;
    }

    /* Buttons */
    .lp-btn-primary,
    .lp-btn-secondary {
        padding: 12px 22px;
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .lp-hero h1 {
        font-size: 1.75rem;
    }

    .lp-hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .lp-btn-primary,
    .lp-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   FOOTER COOKIE LINK
   ============================================================ */

.lp-footer-cookie-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.lp-footer-cookie-btn:hover {
    color: var(--text-secondary);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */

.cb-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px 24px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: cb-fade-in 0.2s ease;
}

@keyframes cb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cb-panel {
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--accent-border);
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    overflow-y: auto;
    animation: cb-slide-up 0.25s ease;
}

@keyframes cb-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ===== Compact View ===== */

.cb-compact {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cb-compact-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cb-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cb-cookie-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cb-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.cb-intro {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.cb-intro-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.cb-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cb-link:hover {
    opacity: 0.8;
}

.cb-compact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===== Detail View ===== */

.cb-details {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cb-details-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cb-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cb-category {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s;
}

.cb-category:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.cb-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cb-category-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cb-category-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.cb-category-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 999px;
}

.cb-category-badge--required {
    background: rgba(79, 142, 247, 0.15);
    color: var(--accent);
    border: 1px solid var(--accent-border);
}

.cb-category-desc {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== Toggle ===== */

.cb-toggle {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
}

.cb-toggle--on {
    background: var(--accent);
    border-color: var(--accent);
}

.cb-toggle--disabled {
    background: rgba(79, 142, 247, 0.3);
    border-color: var(--accent-border);
    cursor: not-allowed;
    opacity: 0.7;
}

.cb-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.cb-toggle--on .cb-toggle-knob,
.cb-toggle--disabled .cb-toggle-knob {
    transform: translateX(20px);
}

/* ===== Cookie Table ===== */

.cb-cookie-list {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.8rem;
}

.cb-cookie-list-header {
    display: grid;
    grid-template-columns: 1.4fr 2fr 1fr 1fr;
    background: rgba(79, 142, 247, 0.08);
    padding: 7px 12px;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cb-cookie-list-row {
    display: grid;
    grid-template-columns: 1.4fr 2fr 1fr 1fr;
    padding: 8px 12px;
    gap: 8px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    align-items: center;
}

.cb-cookie-list-row--empty {
    grid-template-columns: 1fr;
    color: var(--text-muted);
    font-style: italic;
}

.cb-cookie-list-row code {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: var(--accent);
    background: rgba(79, 142, 247, 0.08);
    padding: 1px 5px;
    border-radius: 4px;
}

/* ===== Details Info ===== */

.cb-details-info {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cb-details-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ===== Buttons ===== */

.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.18s, opacity 0.18s, transform 0.12s;
    white-space: nowrap;
    font-family: inherit;
}

.cb-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.cb-btn:active {
    transform: translateY(0);
}

.cb-btn--primary {
    background: var(--accent);
    color: #fff;
}

.cb-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border);
}

.cb-btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ===== Details Actions ===== */

.cb-details-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.cb-details-actions-right {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* ===== Responsive ===== */

@media (max-width: 600px) {
    .cb-backdrop {
        align-items: flex-end;
        padding: 0 0 0;
    }

    .cb-panel {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 85vh;
    }

    .cb-compact {
        padding: 20px 18px;
    }

    .cb-details {
        padding: 20px 18px;
    }

    .cb-compact-actions {
        flex-direction: column;
    }

    .cb-btn {
        width: 100%;
    }

    .cb-details-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cb-details-actions-right {
        flex-direction: column;
    }

    .cb-cookie-list-header,
    .cb-cookie-list-row {
        grid-template-columns: 1fr 1.5fr;
        font-size: 0.72rem;
    }

    .cb-cookie-list-header span:nth-child(3),
    .cb-cookie-list-header span:nth-child(4),
    .cb-cookie-list-row span:nth-child(3),
    .cb-cookie-list-row span:nth-child(4) {
        display: none;
    }
}

/* ============================================================
   DATENSCHUTZERKLÄRUNG
   ============================================================ */

.dse-main {
    min-height: 100vh;
    padding-top: 80px;
    background: var(--bg);
}

.dse-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 32px 80px;
}

/* Header */
.dse-header {
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.dse-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.dse-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 12px;
}

.dse-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Body / Sections */
.dse-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dse-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.dse-section:last-child {
    border-bottom: none;
}

.dse-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    scroll-margin-top: 100px;
}

.dse-section h3 {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text);
    margin: 24px 0 10px;
}

.dse-section p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}

.dse-section p:last-child {
    margin-bottom: 0;
}

/* Address block */
.dse-address-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dse-address-block p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Link */
.dse-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.15s;
}

.dse-link:hover {
    opacity: 0.75;
}

/* Notice boxes */
.dse-notice {
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 16px 0;
}

.dse-notice strong {
    display: block;
    margin-bottom: 6px;
}

.dse-notice--info {
    background: rgba(79, 142, 247, 0.08);
    border: 1px solid var(--accent-border);
    color: var(--text-secondary);
}

.dse-notice--info strong {
    color: var(--accent);
}

.dse-notice--warning {
    background: rgba(255, 180, 50, 0.07);
    border: 1px solid rgba(255, 180, 50, 0.25);
    color: var(--text-secondary);
}

.dse-notice--warning strong {
    color: #f0b429;
}

/* Lists */
.dse-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
    padding-left: 0;
}

.dse-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    padding-left: 20px;
    position: relative;
}

.dse-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Tables */
.dse-table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.dse-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.dse-table thead tr {
    background: rgba(79, 142, 247, 0.08);
}

.dse-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    white-space: nowrap;
}

.dse-table td {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    line-height: 1.55;
    vertical-align: top;
}

.dse-table td code {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: var(--accent);
    background: rgba(79, 142, 247, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.dse-table-empty {
    color: var(--text-muted) !important;
    font-style: italic;
}

/* Rights grid */
.dse-rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.dse-right-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: border-color 0.2s;
}

.dse-right-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.dse-right-art {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.dse-right-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
}

.dse-right-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* CTA inline */
.dse-cta-inline {
    margin: 12px 0;
}

.dse-cookie-btn {
    font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 700px) {
    .dse-inner {
        padding: 40px 18px 60px;
    }

    .dse-header h1 {
        font-size: 1.8rem;
    }

    .dse-rights-grid {
        grid-template-columns: 1fr;
    }

    .dse-table th,
    .dse-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}
/* ══════════════════════════════════════════════════════
   CircuitDoc – Global Styles
   ══════════════════════════════════════════════════════ */

/* ── Design Tokens ───────────────────────────────────── */
/* App-specific design tokens — scoped to .app-wrapper so they don't
   overwrite the landing-page :root variables (--bg, --accent, --border, etc.) */
.app-wrapper {
    --primary:        #1565C0;
    --primary-dark:   #0D47A1;
    --primary-light:  #1976D2;
    --accent:         #2196F3;
    --accent-dark:    #1565C0;
    --primary-ghost:  rgba(21,101,192,.08);

    --bg:             #F4F6F9;
    --surface:        #FFFFFF;
    --surface-2:      #F0F4FF;

    --text-primary:   #1A1A2E;
    --text-secondary: #6B7280;
    --text-hint:      #9CA3AF;

    --border:         #E5E7EB;
    --border-focus:   #2196F3;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.1);
    --shadow-md:      0 4px 12px rgba(0,0,0,.1);
    --radius-sm:      8px;
    --radius-md:      12px;
    --radius-lg:      16px;

    /* Status colors */
    --status-planned:       #78909C;
    --status-active:        #2E7D32;
    --status-active-bg:     #E8F5E9;
    --status-inactive:      #E65100;
    --status-inactive-bg:   #FFF3E0;
    --status-decomm:        #B71C1C;
    --status-decomm-bg:     #FFEBEE;
    --status-planned-bg:    #ECEFF1;
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* ── Page Title & Header ──────────────────────────────── */
.page-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-ghost);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-ghost);
}

.page-header h2 {
    margin: 0;
    flex: 1;
}

.btn-add {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: .85rem;
    white-space: nowrap;
}

/* ── Loading / Empty ─────────────────────────────────── */
.loading-text,
.empty-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: .9rem;
    padding: 40px 0;
}

/* ══════════════════════════════════════════════════════
   PROJECT OVERVIEW
   ══════════════════════════════════════════════════════ */

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

.project-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform .18s, box-shadow .18s;
    border: 1px solid var(--border);
    -webkit-tap-highlight-color: transparent;
}

.project-card:active {
    transform: scale(.97);
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.project-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.project-card-body {
    padding: 12px;
}

.project-card-body h3 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card-body p {
    font-size: .78rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════
   PROJECT STANDS
   ══════════════════════════════════════════════════════ */

.stands-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stand-card {
    display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    -webkit-tap-highlight-color: transparent;
    gap: 12px;
}

.stand-card:active {
    transform: scale(.98);
}

.stand-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.stand-card-body {
    flex: 1;
    min-width: 0;
}

.stand-card-body h3 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.stand-date {
    font-size: .78rem;
    color: var(--primary);
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

.stand-card-body p {
    font-size: .8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stand-chevron {
    color: var(--text-hint);
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
}

/* ══════════════════════════════════════════════════════
   CABLE LIST / CARDS
   ══════════════════════════════════════════════════════ */

/* ── View Toggle ──────────────────────────────────────── */
.view-toggle {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 12px;
    gap: 3px;
}

.view-toggle-btn {
    flex: 1;
    padding: 7px 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.view-toggle-btn.active {
    background: var(--primary);
    color: #fff;
}

/* ── Aderansicht ──────────────────────────────────────── */
.ader-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 80px;
}

.ader-cable-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.ader-cable-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.ader-cable-tag {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-primary);
}

.ader-cable-type {
    font-size: .8rem;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
}

.ader-cable-status {
    margin-left: auto;
}

.ader-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.ader-row:last-child {
    border-bottom: none;
}

.ader-color {
    font-size: .85rem;
    color: var(--text-secondary);
    min-width: 70px;
}

.ader-connection {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .85rem;
    color: var(--text-primary);
    flex: 1;
}

.ader-arrow {
    color: var(--text-hint);
}

.ader-function {
    font-size: .78rem;
    color: var(--text-hint);
    font-style: italic;
}

.ader-no-cores {
    padding: 10px 14px;
    font-size: .85rem;
    color: var(--text-hint);
}

/* ── Kabelansicht ─────────────────────────────────────── */
.cable-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 80px; /* space for FAB */
}

.cable-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-left-width: 4px;
    overflow: hidden;
    transition: box-shadow .15s;
}

.cable-card:hover {
    box-shadow: var(--shadow-md);
}

/* Status border colors */
.border-planned {
    border-left-color: var(--status-planned);
}

.border-active {
    border-left-color: var(--status-active);
}

.border-inactive {
    border-left-color: var(--status-inactive);
}

.border-decommissioned {
    border-left-color: var(--status-decomm);
}

/* Cable header (clickable row) */
.cable-header {
    display: flex;
    align-items: center;
    padding: 14px 14px 14px 16px;
    cursor: pointer;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.cable-header-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cable-tag {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cable-status {
    font-size: .75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cable-chevron {
    color: var(--text-hint);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform .2s;
}

/* Edit-mode action buttons */
.cable-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: background .15s;
    color: var(--text-secondary);
    -webkit-tap-highlight-color: transparent;
}

.btn-icon:hover {
    background: var(--primary-ghost);
    color: var(--primary);
}

.btn-icon.btn-danger:hover {
    background: #FFEBEE;
    color: #B71C1C;
}

/* Cable expanded details */
.cable-details {
    border-top: 1px solid var(--border);
    padding: 12px 16px 14px;
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cable-details p {
    font-size: .82rem;
    color: var(--text-secondary);
    display: flex;
    gap: 6px;
}

.cable-details p strong {
    color: var(--text-primary);
    min-width: 110px;
    font-weight: 600;
}

/* ── Cable Cores (Einzeladern) ────────────────────────── */
.core-list {
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.core-list-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    display: block;
}

.core-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
}

.core-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,.15);
    display: inline-block;
}

.core-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 72px;
    flex-shrink: 0;
}

.core-connection {
    flex: 1;
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    font-size: .78rem;
}

.core-function {
    font-style: italic;
    color: var(--text-hint);
    font-size: .78rem;
    flex-shrink: 0;
}

/* Core form rows */
.core-form-entry {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.core-form-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.core-form-top .core-swatch {
    width: 20px;
    height: 20px;
}

.core-form-top .form-control {
    flex: 1;
    width: auto;
    min-width: 0;
}

.core-form-connections {
    display: flex;
    align-items: center;
    gap: 6px;
}

.core-form-connections .form-control {
    flex: 1;
    width: auto;
    min-width: 0;
}

.core-arrow {
    color: var(--text-hint);
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-add-core {
    flex: none;
    width: 100%;
    margin-top: 4px;
    padding: 8px 16px;
    font-size: .85rem;
}

/* ══════════════════════════════════════════════════════
   CABLE FORM
   ══════════════════════════════════════════════════════ */

.cable-form {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.cable-form h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: .9rem;
    color: var(--text-primary);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(33,150,243,.15);
    background: var(--surface);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%236B7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    flex: 1;
}

.btn:active {
    transform: scale(.97);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(21,101,192,.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(21,101,192,.4);
}

.btn-secondary {
    background-color: var(--bg);
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--border);
    color: var(--text-primary);
}

/* ── Blazor defaults override ─────────────────────────── */
.valid.modified:not([type=checkbox]) {
    outline: 1.5px solid #2E7D32;
}

.invalid {
    outline: 1.5px solid #B71C1C;
}

.validation-message {
    color: #B71C1C;
    font-size: .78rem;
    margin-top: 3px;
}

.blazor-error-boundary {
    background: #B71C1C;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: var(--radius-sm);
}

.blazor-error-boundary::after {
    content: "Ein Fehler ist aufgetreten.";
}

/* ══════════════════════════════════════════════════════
   ACCOUNT PAGE
   ══════════════════════════════════════════════════════ */

.account-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Avatar header */
.account-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: .5px;
}

.account-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.account-display-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-display-email {
    font-size: .82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Toast */
.account-toast {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: .88rem;
    font-weight: 600;
    text-align: center;
    animation: fadeIn .2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Settings sections */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-section-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-secondary);
    padding: 0 4px;
}

/* Settings card */
.settings-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.settings-divider {
    height: 1px;
    background: var(--border);
    margin: 0 16px;
}

.settings-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
}

.settings-row-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.settings-hint {
    font-size: .78rem;
    color: var(--text-hint);
    line-height: 1.4;
}

.settings-input {
    width: 100%;
    padding: 10px 12px;
    font-size: .9rem;
    color: var(--text-primary);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.settings-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(33,150,243,.15);
    background: var(--surface);
}

.settings-input--mono {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    letter-spacing: .5px;
}

/* Read-only value */
.settings-value {
    font-size: .9rem;
    color: var(--text-primary);
    padding: 2px 0;
}

.settings-value--mono {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    letter-spacing: .5px;
}

/* Save button */
.account-save-btn {
    width: 100%;
    padding: 13px;
    font-size: .95rem;
}

/* Edit mode action buttons */
.account-edit-actions {
    display: flex;
    gap: 10px;
}

.account-edit-actions .btn {
    padding: 13px;
    font-size: .95rem;
}

/* Abmelden row */
.settings-row--action {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
}

.settings-row--action:hover {
    background: #FFF5F5;
}

.settings-action-label {
    font-size: .9rem;
    font-weight: 600;
}

.settings-action-label--danger {
    color: #C62828;
}

.settings-action-icon {
    color: var(--text-hint);
    font-size: 1.1rem;
}

/* ══════════════════════════════════════════════════════
   LOGIN / REGISTER PAGE
   ══════════════════════════════════════════════════════ */

.auth-layout {
    min-height: 100dvh;
    background: linear-gradient(160deg, #0D47A1 0%, #1565C0 45%, #1976D2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px env(safe-area-inset-bottom, 24px);
}

.login-screen {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Branding */
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #fff;
}

.login-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255,255,255,.2);
    border: 2px solid rgba(255,255,255,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    backdrop-filter: blur(8px);
    margin-bottom: 4px;
}

.login-app-name {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.3px;
}

.login-app-sub {
    font-size: .85rem;
    color: rgba(255,255,255,.7);
    font-weight: 400;
}

/* Card */
.login-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    overflow: hidden;
}

/* Tabs */
.login-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.login-tab {
    flex: 1;
    padding: 14px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color .15s, box-shadow .15s;
    font-family: inherit;
}

.login-tab--active {
    color: var(--primary);
    box-shadow: inset 0 -2px 0 var(--primary);
}

/* Error */
.login-error {
    margin: 12px 20px 0;
    padding: 10px 14px;
    background: #FFEBEE;
    border: 1px solid #FFCDD2;
    border-radius: var(--radius-sm);
    color: #C62828;
    font-size: .84rem;
    font-weight: 500;
}

/* Form */
.login-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-btn {
    width: 100%;
    padding: 13px;
    font-size: .95rem;
    margin-top: 4px;
}

/* ══════════════════════════════════════════════════════
   LEGAL LAYOUT & AGB PAGE
   ══════════════════════════════════════════════════════ */

.legal-layout {
    min-height: 100dvh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.legal-layout-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px env(safe-area-inset-top, 0px);
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    box-shadow: var(--shadow-sm);
}

.legal-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
}

.legal-back-btn:hover { background: rgba(255,255,255,.25); }

.legal-layout-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255,255,255,.2);
    border: 1.5px solid rgba(255,255,255,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 800;
    color: #fff;
}

.legal-layout-brand {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.legal-layout-body {
    flex: 1;
    overflow-y: auto;
}

/* AGB page */
.agb-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.agb-hero {
    padding: 28px 0 20px;
    text-align: center;
}

.agb-hero-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.agb-hero-sub {
    font-size: .82rem;
    color: var(--text-hint);
    margin-top: 4px;
}

.agb-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.agb-section {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agb-section:last-of-type {
    border-bottom: none;
}

.agb-section p {
    font-size: .88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.agb-section strong {
    color: var(--text-primary);
}

.agb-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.agb-subsection-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 6px;
    margin-bottom: 2px;
}

.agb-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 4px;
}

.agb-list li {
    font-size: .88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    padding-left: 16px;
    position: relative;
}

.agb-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.agb-price-table {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 4px 0;
}

.agb-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: .87rem;
}

.agb-price-row:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.agb-price-label {
    color: var(--text-secondary);
}

.agb-price-value {
    font-weight: 700;
    color: var(--primary);
}

.agb-footer {
    padding: 20px 22px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.agb-back-link {
    font-size: .85rem;
    color: var(--primary);
    font-weight: 600;
}

/* Checkbox */
.login-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 0 2px;
}

.login-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--primary);
    cursor: pointer;
}

.login-checkbox-label span {
    font-size: .83rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.login-checkbox-label a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.login-required-star {
    color: var(--primary);
    font-weight: 700;
}

.login-required-note {
    font-size: .76rem;
    color: var(--text-hint);
    margin-top: -4px;
}

/* Login footer */
.login-legal-footer {
    text-align: center;
    color: rgba(255,255,255,.6);
    font-size: .78rem;
    padding-bottom: 4px;
}

.login-legal-footer a {
    color: rgba(255,255,255,.85);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ══════════════════════════════════════════════════════
   PROJECT PLACEHOLDER (kein Bild)
   ══════════════════════════════════════════════════════ */

.project-image-placeholder {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, var(--primary-ghost) 0%, #e8f0fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* ══════════════════════════════════════════════════════
   BOTTOM SHEET
   ══════════════════════════════════════════════════════ */

.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 300;
    animation: fadeIn .2s ease;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    padding: 12px 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
    z-index: 400;
    box-shadow: 0 -8px 32px rgba(0,0,0,.15);
    animation: slideUp .25s cubic-bezier(.32,1,.23,1);
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.sheet-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    align-self: center;
    margin-bottom: 4px;
}

.sheet-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════
   GROUP MANAGEMENT
   ══════════════════════════════════════════════════════ */

.group-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.group-no-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.group-hint {
    font-size: .9rem;
    color: var(--text-secondary);
}

.group-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.group-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.group-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.group-member-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.group-member-name {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.group-member-email {
    font-size: .78rem;
    color: var(--text-secondary);
}

.group-member-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-level-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

.group-level-badge.level-1 { background: #E3F2FD; color: #1565C0; }
.group-level-badge.level-2 { background: #E8F5E9; color: #2E7D32; }
.group-level-badge.level-3 { background: #FFF8E1; color: #F57F17; }
.group-level-badge.level-4 { background: #F3E5F5; color: #6A1B9A; }

.invite-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .15em;
    color: var(--primary);
    background: var(--surface-2);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    user-select: all;
    cursor: pointer;
}

.btn-sm {
    padding: 6px 14px;
    font-size: .82rem;
}

.btn-danger {
    background: #C62828;
    color: #fff;
    border: none;
}

.btn-danger:active {
    background: #B71C1C;
}

.form-control--sm {
    padding: 4px 8px;
    font-size: .82rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
}

.confirm-text {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ── Subscription ────────────────────────────────────────── */

.subscription-warning-banner {
    background: #B71C1C;
    color: #FFFFFF;
    text-align: center;
    padding: 8px 16px;
    font-size: .85rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 200;
}

.subscription-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscription-status-badge {
    font-size: .75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}
.subscription-status-badge--active    { background: var(--status-active-bg);   color: var(--status-active); }
.subscription-status-badge--pending   { background: #FFF9C4;                    color: #F57F17; }
.subscription-status-badge--grace     { background: var(--status-inactive-bg);  color: var(--status-inactive); }
.subscription-status-badge--suspended { background: var(--status-decomm-bg);    color: var(--status-decomm); }
.subscription-status-badge--cancelled { background: var(--status-planned-bg);   color: var(--status-planned); }
.subscription-status-badge--none      { display: none; }

.subscription-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: .9rem;
    color: var(--text-secondary);
}
.subscription-amount {
    font-weight: 700;
    color: var(--text-primary);
}

.subscription-warning {
    color: var(--status-inactive);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 4px;
}

/* ── Subscription Slots ──────────────────────────────────────────────── */
.subscription-slots-grid {
    display: flex;
    gap: 12px;
    padding: 12px 0;
}

.subscription-slot-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subscription-slot-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #888);
}

.subscription-slot-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.subscription-slot-warning {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 500;
}

/* ── Subscription Price Breakdown ───────────────────────────────────── */
.subscription-price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}

.subscription-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary, #aaa);
}

.subscription-price-row--total {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    padding-top: 4px;
    border-top: 1px solid var(--divider, rgba(255,255,255,0.08));
    margin-top: 4px;
}

/* ── Subscription slot sublabel ─────────────────────────────────────── */
.subscription-slot-sublabel {
    font-size: 11px;
    color: var(--text-secondary, #888);
}

/* ── Blocked project card ────────────────────────────────────────────── */
.project-card--blocked {
    opacity: 0.5;
    cursor: default;
    position: relative;
}

.project-blocked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: inherit;
}

.project-blocked-icon {
    font-size: 28px;
}

.project-blocked-text {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Kabelvorlagen-Picker ──────────────────────────────────── */
.template-picker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 12px;
}

.template-picker-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.template-picker-item:active {
    background: var(--surface-hover, #f0f0f0);
}

.template-picker-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.template-picker-detail {
    font-size: 0.8rem;
    color: var(--text-secondary, #666);
}

.template-select-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.selected-template-name {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary, #6200ea);
    background: color-mix(in srgb, var(--primary, #6200ea) 12%, transparent);
    border-radius: 4px;
    padding: 3px 8px;
}

/* ── Edit Mode Topbar Button ──────────────────────────────── */
.topbar-btn--editing {
    color: var(--primary, #6200ea);
    font-weight: 700;
    min-width: 60px;
}

.topbar-done-label {
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

/* ── Template Star Button ─────────────────────────────────── */
.btn-star {
    font-size: 1.1rem;
    color: var(--text-secondary, #999);
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    line-height: 1;
}

.btn-star--active {
    color: #f5a623;
}

/* ── Discount Code ─────────────────────────────────────────── */
.discount-active-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #E8F5E9;
    color: #2E7D32;
    font-size: .8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.subscription-price-row--discount {
    color: #2E7D32;
}

.discount-savings {
    font-weight: 600;
    color: #2E7D32;
}

.discount-code-row {
    padding: 8px 0;
}

/* ── Discount Confirm Sheet ────────────────────────────────── */
.discount-confirm-sheet {
    max-height: 90vh;
    overflow-y: auto;
}

.discount-confirm-section {
    margin-bottom: 16px;
}

.discount-confirm-label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.discount-confirm-text {
    font-size: .9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.discount-price-compare {
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discount-price-old {
    font-size: .85rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.discount-price-new {
    font-size: 1rem;
    font-weight: 700;
    color: #2E7D32;
}
