:root {
    --bg: #fafaf7;
    --surface: #ffffff;
    --ink: #1a1a2e;
    --ink-soft: #4a4a5e;
    --muted: #8a8a9a;
    --accent: #6366f1;
    --accent-2: #ec4899;
    --line: #ececf0;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-body);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* ------------- HEADER ------------- */
header {
    background: var(--ink);
    color: white;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.brand-icon {
    width: 26px;
    height: 26px;
    color: var(--accent-2);
}

header h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

#toggleMenu {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2em;
    display: none;
}

/* ------------- LAYOUT ------------- */
.container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ------------- SIDEBAR / MENÜ ------------- */
#sidebar {
    width: 280px;
    background: #1f1f3a;
    color: rgba(255,255,255,0.92);
    overflow-y: auto;
    flex-shrink: 0;
    transition: transform 0.3s;
}

#menu {
    list-style: none;
    padding: 8px 0;
}

#menu > li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.menu-header {
    padding: 13px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    user-select: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.menu-header:hover {
    background: rgba(255,255,255,0.06);
}

.menu-header .arrow {
    font-size: 0.7em;
    opacity: 0.6;
    transition: transform 0.2s;
}

.menu-header.open .arrow {
    transform: rotate(90deg);
    opacity: 1;
}

.submenu {
    list-style: none;
    background: rgba(0,0,0,0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.submenu.open {
    max-height: 600px;
}

.submenu li, .menu-link {
    padding: 11px 18px 11px 36px;
    cursor: pointer;
    transition: background 0.15s, padding 0.15s;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.menu-link {
    padding-left: 18px;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.92);
}

.submenu li:hover, .menu-link:hover {
    background: var(--accent);
    color: white;
}

.submenu li.active, .menu-link.active {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: white;
    border-left: 3px solid white;
    padding-left: 33px;
}

.menu-link.active {
    padding-left: 15px;
}

/* ------------- MAIN ------------- */
main {
    flex: 1;
    position: relative;
    background: var(--surface);
    overflow-y: auto;
    overflow-x: hidden;
}

#contentFrame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ------------- STARTSEITE / HERO ------------- */
#welcome {
    min-height: 100%;
}

.hero {
    position: relative;
    padding: 80px 60px 70px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #5b2870 100%);
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(245, 158, 11, 0.2) 0%, transparent 60%);
    opacity: 0.9;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
    position: relative;
    max-width: 720px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.7);
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    margin-bottom: 22px;
    backdrop-filter: blur(10px);
}

.hero h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero h2 em {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(120deg, #f9a8d4, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
}

/* ------------- INFO-KARTEN ------------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    padding: 50px 60px 30px;
    max-width: 1200px;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 24px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(26, 26, 46, 0.08);
    border-color: transparent;
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 16px;
}

.info-icon svg {
    width: 22px;
    height: 22px;
}

.info-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--ink);
}

.info-card p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.info-card code {
    background: #f3f3f7;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    color: var(--accent);
}

/* ------------- TIPBOX ------------- */
.tipbox {
    margin: 10px 60px 60px;
    padding: 18px 22px;
    max-width: 1200px;
    background: linear-gradient(90deg, #fff7ed, #fef3c7);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    color: #78350f;
    font-size: 0.92rem;
    line-height: 1.55;
}

.tipbox strong {
    color: #92400e;
}

/* ------------- BLOCKED NOTICE ------------- */
#blockedNotice {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: var(--bg);
}

.blocked-card {
    max-width: 480px;
    text-align: center;
    background: white;
    padding: 40px 36px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid var(--line);
}

.blocked-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.blocked-icon svg {
    width: 30px;
    height: 30px;
}

.blocked-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 14px;
    color: var(--ink);
}

.blocked-card p {
    color: var(--ink-soft);
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.55;
}

.blocked-card code {
    background: #f3f3f7;
    padding: 2px 8px;
    border-radius: 5px;
    font-family: ui-monospace, monospace;
    font-size: 0.88em;
    color: var(--accent);
    word-break: break-all;
}

.blocked-button {
    display: inline-block;
    margin-top: 22px;
    padding: 12px 26px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.2s;
}

.blocked-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* ------------- RESPONSIVE ------------- */
@media (max-width: 768px) {
    #toggleMenu {
        display: block;
    }

    #sidebar {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
    }

    #sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    }

    header h1 {
        font-size: 1.05rem;
    }

    .hero {
        padding: 50px 28px 45px;
    }

    .info-grid {
        padding: 32px 24px 20px;
        gap: 16px;
    }

    .tipbox {
        margin: 10px 24px 40px;
    }
}
