/* ════════════════════════════════════
   THEATER DIENSTPLANUNG — Shared CSS
   ════════════════════════════════════ */

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

:root {
    /* Warmes dunkles Charcoal statt Pitch-Black */
    --bg:            #100f0d;
    --surface:       #181614;
    --surface2:      #201e1b;
    --surface3:      #282522;
    --border:        #2c2925;
    --border2:       #3a3733;

    --gold:          #c8a84b;
    --gold-light:    #e8d48e;
    --gold-dim:      rgba(200, 168, 75, 0.12);
    --gold-border:   rgba(200, 168, 75, 0.25);

    --burgundy:      #7c1d1d;
    --burgundy-light:#9b2222;
    --burgundy-dim:  rgba(124, 29, 29, 0.12);
    --burgundy-border: rgba(124, 29, 29, 0.3);

    --text:          #e8e6e3;
    --text-muted:    #88857f;
    --text-dim:      #48453f;

    /* App light theme */
    --app-bg:        #f4f0ea;
    --app-surface:   #ffffff;
    --app-border:    #dedad4;
    --app-text:      #1a1a1a;
    --app-muted:     #666666;
    --app-dim:       #aaaaaa;
    --app-burgundy:  #7c1d1d;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}
nav.scrolled, nav.solid {
    background: rgba(16, 15, 13, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.75rem 2.5rem;
}

.nav-logo {
    display: flex; align-items: center; gap: 0.875rem;
    text-decoration: none; color: var(--text);
}
.nav-logo-icon {
    width: 38px; height: 38px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; flex-shrink: 0;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.05em;
    position: relative;
}
.nav-logo-icon::after {
    content: '';
    position: absolute; bottom: -1px; left: -1px; right: -1px;
    height: 2px; background: var(--burgundy);
    border-radius: 0 0 8px 8px;
}
.nav-logo-name { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.nav-logo-sub  { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.875rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active {
    color: var(--gold);
}
.nav-cta {
    padding: 0.5rem 1.25rem !important;
    background: var(--gold) !important; color: #000 !important;
    border-radius: 8px; font-weight: 700 !important;
    font-size: 0.8rem !important; letter-spacing: 0.02em;
    color: #000 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: #000 !important; }

/* ─── FOOTER ─── */
footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem; background: var(--surface);
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1.25rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 700; }
.footer-copy { font-size: 0.78rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.78rem; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-muted); }

/* ─── BUTTONS ─── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2.25rem; background: var(--gold); color: #000;
    text-decoration: none; border-radius: 10px; font-weight: 700;
    font-size: 0.95rem; transition: all 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(200,168,75,0.3); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2.25rem; background: transparent; color: var(--text);
    text-decoration: none; border-radius: 10px; font-weight: 600;
    font-size: 0.95rem; border: 1px solid var(--border2); transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--text-muted); background: var(--surface); }
.btn-small {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.55rem 1.1rem; border-radius: 8px; font-size: 0.82rem;
    font-weight: 600; text-decoration: none; transition: all 0.2s;
}

/* ─── SECTION HELPERS ─── */
.section-wrap { padding: 7rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
    display: inline-block; font-size: 0.68rem; font-weight: 800;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700;
    line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 1rem;
}
.section-desc { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; line-height: 1.75; }

/* ─── PAGE HERO (for sub-pages) ─── */
.page-hero {
    padding: 9rem 2rem 5rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200,168,75,0.06) 0%, transparent 65%),
        radial-gradient(ellipse 50% 80% at 5%  60%, rgba(124,29,29,0.05) 0%, transparent 60%);
    border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700; line-height: 1.1; letter-spacing: -0.025em;
    margin-bottom: 1rem;
}
.page-hero-desc {
    font-size: 1.1rem; color: var(--text-muted); max-width: 580px; line-height: 1.75;
}

/* ─── APP MOCKUP CHROME ─── */
.browser-window {
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border2);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}
.browser-bar {
    display: flex; align-items: center; gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    background: var(--surface2); border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }
.browser-url {
    flex: 1; background: var(--surface); border: 1px solid var(--border);
    border-radius: 6px; padding: 0.3rem 0.875rem;
    font-size: 0.72rem; color: var(--text-muted); font-family: 'Inter', monospace;
}

/* ─── APP LIGHT THEME BASE ─── */
.app-light {
    background: var(--app-bg);
    color: var(--app-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
}
.app-light-nav {
    display: flex; align-items: center; gap: 0;
    padding: 0 1.25rem; background: var(--app-surface);
    border-bottom: 1px solid var(--app-border); height: 48px; flex-shrink: 0;
}
.aln-logo {
    display: flex; align-items: center; gap: 0.5rem;
    margin-right: 1.5rem; padding-right: 1.25rem;
    border-right: 1px solid var(--app-border); height: 100%;
}
.aln-logo-badge {
    width: 26px; height: 26px; background: var(--app-text); border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.6rem; font-weight: 800; letter-spacing: -0.05em;
    position: relative;
}
.aln-logo-badge::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: var(--app-burgundy); border-radius: 0 0 4px 4px;
}
.aln-logo-text .aln-name { font-size: 0.65rem; font-weight: 700; }
.aln-logo-text .aln-sub  { font-size: 0.55rem; color: var(--app-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.aln-links {
    display: flex; height: 100%; flex: 1;
}
.aln-link {
    padding: 0 0.75rem; height: 100%; display: flex; align-items: center;
    font-size: 0.68rem; font-weight: 500; color: var(--app-muted);
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.aln-link.active { color: var(--app-text); border-bottom-color: var(--app-burgundy); font-weight: 600; }
.aln-right {
    display: flex; align-items: center; gap: 0.75rem; margin-left: auto;
}
.aln-avatar {
    width: 26px; height: 26px; background: var(--app-text); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.6rem; font-weight: 700;
}
.aln-user-name { font-size: 0.62rem; font-weight: 600; }
.aln-user-role { font-size: 0.55rem; color: var(--app-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.aln-logout {
    padding: 0.2rem 0.65rem; border: 1px solid var(--app-border);
    border-radius: 4px; font-size: 0.6rem; font-weight: 600; color: var(--app-text);
}

/* ─── MODULE CARD (feature pages) ─── */
.fc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color 0.2s;
}
.fc-card:hover { border-color: var(--border2); }

.fc-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 1.75rem 1.25rem;
}
.fc-num {
    font-size: 0.65rem; font-weight: 800; color: var(--gold);
    letter-spacing: 0.12em; text-transform: uppercase;
}
.fc-icon-wrap { color: var(--text-dim); transition: color 0.2s; }
.fc-icon-wrap svg { width: 19px; height: 19px; }
.fc-card:hover .fc-icon-wrap { color: var(--gold); }
.fc-divider { height: 2px; background: var(--border); margin: 0 1.75rem; transition: background 0.2s; }
.fc-card:hover .fc-divider { background: var(--burgundy); }
.fc-body { padding: 1.375rem 1.75rem; flex: 1; }
.fc-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.625rem; font-weight: 700; line-height: 1.1;
    letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.fc-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.fc-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.75rem; border-top: 1px solid var(--border);
}
.fc-tags { display: flex; gap: 0.45rem; align-items: center; }
.fc-tag { font-size: 0.62rem; font-weight: 700; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.fc-dot { font-size: 0.4rem; color: var(--text-dim); }
.fc-arrow { font-size: 1rem; color: var(--gold); transition: transform 0.2s; }
.fc-card:hover .fc-arrow { transform: translateX(4px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    nav { padding: 1rem 1.25rem; }
    nav.scrolled, nav.solid { padding: 0.75rem 1.25rem; }
    .nav-links li:not(:last-child) { display: none; }
    .section-wrap { padding: 5rem 1.25rem; }
    .page-hero { padding: 7rem 1.25rem 3rem; }
}
@media (max-width: 480px) {
    .btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
}
