/* ===== GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --bg-primary: #0b0d0f;
    --bg-secondary: #14181c;
    --bg-card: #1a1f26;
    --bg-card-hover: #242c36;
    --bg-elevated: #1e242b;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c4;
    --text-muted: #6b7a8f;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --gradient-main: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --border-color: #2a3440;
    --shadow-light: 0 2px 16px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 40px rgba(139,92,246,0.15);
    --font: 'Inter', sans-serif;
    --max-width: 1200px;
    --radius: 16px;
}
body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 24px 0 10px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}
.breadcrumb a {
    color: var(--accent-purple);
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: #a78bfa;
    text-decoration: underline;
}
.breadcrumb span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(139,92,246,0.5);
}
.btn-success {
    background: #10b981;
    color: #fff;
    border: 1px solid transparent;
}
.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(16,185,129,0.5);
}
.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
}
.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: #fff;
}

/* ===== HEADER ===== */
header {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: sticky;
    top: 0;
    background: rgba(11,13,15,0.85);
    backdrop-filter: blur(16px);
    z-index: 100;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.Logo img {
    height: 150px;
    width: auto;
    display: block;
}
.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}
.logo span {
    color: var(--accent-purple);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.nav-links a:hover {
    color: #fff;
}
.nav-links a.active {
    color: #fff;
    border-bottom: 2px solid var(--accent-purple);
    padding-bottom: 4px;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.btn-login {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.2s;
    font-size: 0.95rem;
}
.btn-login:hover {
    color: #fff;
}

/* ===== HEADER-AVATAR ===== */
.header-avatar {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 4px 12px 4px 6px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: border-color 0.3s;
}
.header-avatar.visible {
    display: flex;
}
.header-avatar:hover {
    border-color: var(--accent-purple);
}
.header-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.header-avatar .name {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.btn-login.hidden {
    display: none !important;
}

/* ===== HERO ===== */
.hero {
    padding: 50px 0 30px;
    text-align: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(139,92,246,0.12);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-purple);
    border: 1px solid rgba(139,92,246,0.15);
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.6rem,5vw,4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 .highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 32px;
}
.hero .subtitle a {
    color: var(--accent-purple);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.hero .subtitle a:hover {
    color: #a78bfa;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== STATS ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px 30px;
    margin: 30px auto 60px;
    text-align: center;
}
.stat-item h3 {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-item p {
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
    font-size: 0.95rem;
}

/* ===== SECTIONS ===== */
section {
    padding: 70px 0;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 55px;
}
.section-header h2 {
    font-size: clamp(1.8rem,3vw,2.6rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.section-header h2 .highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 30px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-hover);
}
.feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
    display: block;
}
.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-purple);
}
.testimonial-card .stars {
    color: #fbbf24;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.testimonial-card blockquote {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.98rem;
    line-height: 1.6;
}
.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}
.author-info strong {
    display: block;
    font-size: 0.95rem;
}
.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== CTA ===== */
.cta-banner {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 50px 40px;
    text-align: center;
}
.cta-banner h2 {
    font-size: clamp(1.6rem,2.5vw,2.2rem);
    margin-bottom: 12px;
}
.cta-banner h2 .highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== MODAL (KONZEPT & ACCOUNT) ===== */
.modal-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex !important;
    opacity: 1;
}

/* Konzept-Modal (breit) */
.modal-content {
    background: rgba(20,24,28,0.9);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 40px 50px;
    max-width: 720px;
    width: 90%;
    text-align: left;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    background: transparent;
    border: none;
    color: #b0b8c4;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.modal-close:hover {
    color: #fff;
}
.modal-content h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.modal-content p {
    color: #b0b8c4;
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}
.modal-content h3, .modal-content h4 {
    color: #fff;
    margin-top: 24px;
    margin-bottom: 8px;
}
.modal-content ul, .modal-content ol {
    color: #b0b8c4;
    padding-left: 20px;
    margin-bottom: 16px;
}
.modal-content li {
    margin-bottom: 4px;
}
.modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    color: #e0e4eb;
}
.modal-content th, .modal-content td {
    border: 1px solid #2a3440;
    padding: 8px 12px;
    text-align: left;
}
.modal-content th {
    background: rgba(255,255,255,0.05);
    font-weight: 600;
}
.modal-content blockquote {
    border-left: 3px solid #8b5cf6;
    padding-left: 16px;
    margin: 16px 0;
    color: #c8d0dc;
    font-style: italic;
}
.modal-content code {
    background: rgba(255,255,255,0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Inter', monospace;
    color: #c084fc;
}
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #2a3440;
}

/* Account-Modal (schmal) */
.modal-content.account-modal {
    max-width: 420px;
    text-align: center;
}
.login-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
    text-align: left;
}
.login-head {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
}
.login-head img {
    width: 100%;
    height: 100%;
    display: block;
}
.login-field {
    flex: 1;
}
.login-field label {
    display: block;
    text-align: left;
    color: #b0b8c4;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.login-field input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(11,13,15,0.6);
    border: 1px solid #2a3440;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.login-field input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.2);
}
.modal-content .btn-submit {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}
.modal-content .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(139,92,246,0.5);
}
.modal-content .error-msg {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 10px;
    display: none;
}
.modal-content .error-msg.visible {
    display: block;
}
.profile-view {
    display: none;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    text-align: left;
}
.profile-view.active {
    display: flex;
}
.profile-head {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    background: transparent;
    overflow: hidden;
}
.profile-head img {
    width: 100%;
    height: 100%;
    display: block;
}
.profile-info {
    flex: 1;
}
.profile-info .name {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}
.profile-info .status {
    color: #10b981;
    font-size: 0.85rem;
}
.profile-info .status .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.btn-logout {
    padding: 8px 20px;
    background: rgba(255,68,68,0.15);
    border: 1px solid rgba(255,68,68,0.3);
    border-radius: 50px;
    color: #ff6b6b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}
.btn-logout:hover {
    background: rgba(255,68,68,0.25);
    border-color: #ff6b6b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .modal-content {
        max-width: 95%;
        padding: 20px;
        max-height: 85vh;
    }
    .modal-content.account-modal {
        max-width: 95%;
    }
    .modal-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .modal-footer .btn-secondary,
    .modal-footer .btn-success {
        text-align: center;
    }
}
@media (max-width: 768px) {
    .navbar { flex-wrap: wrap; gap: 16px; }
    .nav-links { display: none; }
    .nav-actions .btn-login { display: none; }
    .hero { padding: 30px 0 10px; }
    .stats-bar { grid-template-columns: 1fr 1fr; gap: 30px; }
    .cta-banner { padding: 30px 20px; }
}
@media (max-width: 480px) {
    .stats-bar { grid-template-columns: 1fr; gap: 20px; }
    .hero-buttons .btn { width: 100%; text-align: center; }
}