* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme Colors */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    --primary-color: #0066cc;
    --primary-hover: #0052a3;
    --secondary-color: #6c757d;
    --secondary-hover: #5a6268;
    --danger-color: #dc3545;
    --danger-hover: #c82333;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --warning-border: #ffeaa7;
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --error-border: #f5c6cb;
    --success-bg: #d4edda;
    --success-text: #155724;
    --success-border: #c3e6cb;
    --urgent-bg: #fff3cd;
    --overdue-bg: #f8d7da;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --border-color: #404040;
    --border-light: #353535;
    --primary-color: #4a9eff;
    --primary-hover: #357abd;
    --secondary-color: #8a8a8a;
    --secondary-hover: #757575;
    --danger-color: #ff6b6b;
    --danger-hover: #ee5a5a;
    --warning-bg: #4a3a1a;
    --warning-text: #ffd93d;
    --warning-border: #6b5a2a;
    --error-bg: #4a1a1a;
    --error-text: #ff8a8a;
    --error-border: #5a2a2a;
    --success-bg: #1a4a2a;
    --success-text: #8affaa;
    --success-border: #2a5a3a;
    --urgent-bg: #4a3a1a;
    --overdue-bg: #4a1a1a;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
}

/* Icon Styles */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex-shrink: 0;
}

.icon svg {
    width: 100%;
    height: 100%;
}

/* Feature Icons */
.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--primary-color);
    background: var(--bg-tertiary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-2px);
    background: var(--primary-color);
    color: white;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 44px;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

.btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 5px 10px;
    text-decoration: underline;
    min-height: auto;
}

.btn-link:hover {
    background: rgba(0, 102, 204, 0.1);
}

[data-theme="dark"] .btn-link:hover {
    background: rgba(74, 158, 255, 0.15);
}

.btn-danger {
    color: var(--danger-color);
}

.btn-danger:hover {
    color: var(--danger-hover);
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
    }
    
    .btn-link {
        width: auto;
        padding: 8px 12px;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 16px;
    margin-bottom: 60px;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-light);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.info {
    color: var(--text-tertiary);
    font-size: 14px;
}

@media (max-width: 480px) {
    .hero {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .info {
        font-size: 12px;
    }
}

/* Features */
.features {
    margin-top: 60px;
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--text-primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .features {
        margin-top: 30px;
    }
    
    .features h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pricing-section {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .faq-section {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .final-cta {
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

.feature-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    box-shadow: 0 8px 24px var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-card h3 .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 20px;
    }
}

/* Forms */
.auth-form, .form-container {
    max-width: 500px;
    margin: 40px auto;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.2s, background-color 0.3s ease, color 0.3s ease;
    min-height: 44px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus {
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

@media (max-width: 480px) {
    .auth-form, .form-container {
        padding: 25px 20px;
        margin: 20px auto;
    }
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h1 {
    font-size: 32px;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Ensure header actions buttons are visible on desktop */
.header-actions .btn {
    display: inline-flex;
}

@media (max-width: 480px) {
    .dashboard-header {
        gap: 10px;
    }
    
    .dashboard-header h1 {
        font-size: 24px;
        margin-bottom: 0;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }
    
    .header-actions .btn {
        flex: 1;
        min-width: 0;
    }
}

/* Tables */
.fristen-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.fristen-table thead {
    background: var(--bg-tertiary);
}

.fristen-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.fristen-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.fristen-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.fristen-table tbody tr.urgent {
    background: var(--urgent-bg);
}

.fristen-table tbody tr.overdue {
    background: var(--overdue-bg);
}

/* Desktop/Mobile Visibility */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Mobile visibility utilities for landing page */
.hide-mobile {
    display: block;
}

.show-mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .admin-cards.mobile-only {
        display: flex;
    }
    
    /* Hide elements on mobile devices */
    .hide-mobile {
        display: none !important;
    }
    
    /* Show elements only on mobile */
    .show-mobile-only {
        display: block !important;
    }
}

/* Mobile Card Layout for Fristen */
.fristen-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.frist-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.frist-card:hover {
    box-shadow: 0 8px 24px var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.frist-card.frist-overdue {
    background: var(--overdue-bg);
    border-left: 4px solid var(--danger-color);
}

.frist-card.frist-urgent {
    background: var(--urgent-bg);
    border-left: 4px solid var(--warning-text);
}

.frist-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.frist-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-bottom: 12px;
}

.frist-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Auf sehr kleinen Screens zurück zu einer Spalte */
@media (max-width: 360px) {
    .frist-info {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.frist-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.frist-value {
    font-size: 14px;
    color: var(--text-primary);
    word-wrap: break-word;
}

.frist-actions {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.frist-actions .btn-link {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    transition: background-color 0.2s ease;
}

.frist-actions .btn-link:hover {
    background: var(--border-color);
}

.frist-actions .btn-link.btn-danger {
    color: var(--danger-color);
}

.frist-actions .btn-link.btn-danger:hover {
    background: var(--error-bg);
    color: var(--danger-hover);
}

/* Admin Cards */
.admin-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-user-card,
.admin-frist-card,
.admin-template-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.admin-user-card:hover,
.admin-frist-card:hover,
.admin-template-card:hover {
    box-shadow: 0 8px 24px var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.admin-frist-card.frist-overdue {
    background: var(--overdue-bg);
    border-left: 4px solid var(--danger-color);
}

.admin-frist-card.frist-urgent {
    background: var(--urgent-bg);
    border-left: 4px solid var(--warning-text);
}

.admin-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.admin-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-card-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-card-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-card-value {
    font-size: 14px;
    color: var(--text-primary);
    word-wrap: break-word;
}

.admin-card-value select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
}

.admin-card-actions {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.admin-card-actions .btn-link {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    transition: background-color 0.2s ease;
}

.admin-card-actions .btn-link:hover {
    background: var(--border-color);
}

.admin-card-actions .btn-link.btn-danger {
    color: var(--danger-color);
}

.admin-card-actions .btn-link.btn-danger:hover {
    background: var(--error-bg);
    color: var(--danger-hover);
}

.actions {
    display: flex;
    gap: 10px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.badge-warning {
    background: #ffc107;
    color: #000;
}

[data-theme="dark"] .badge-warning {
    background: #d4a017;
    color: #000;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

/* Messages */
.error {
    background: var(--error-bg);
    color: var(--error-text);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--error-border);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.success {
    background: var(--success-bg);
    color: var(--success-text);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--success-border);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--warning-border);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.warning a {
    color: var(--warning-text);
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.empty-state p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .empty-state {
        padding: 40px 15px;
    }
}

/* Templates */
.category-title {
    margin: 40px 0 20px 0;
    font-size: 24px;
    color: var(--text-primary);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.template-card {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.template-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--primary-color);
}

.template-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .category-title {
        font-size: 20px;
        margin: 30px 0 15px 0;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .template-card {
        padding: 20px;
    }
}

.template-form {
    margin-top: 15px;
}

/* Upgrade Page */
.upgrade-page {
    max-width: 600px;
    margin: 40px auto;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.upgrade-info {
    margin-bottom: 30px;
    color: var(--text-primary);
}

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    padding: 8px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.pricing {
    margin: 30px 0;
}

.pricing-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.price {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.price span {
    font-size: 18px;
    font-weight: normal;
    color: var(--text-secondary);
}

.price-note {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .upgrade-page {
        padding: 25px 20px;
        margin: 20px auto;
    }
    
    .pricing-card {
        padding: 20px;
    }
    
    .price {
        font-size: 28px;
    }
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    /* Add padding to body to prevent content from being hidden behind fixed nav */
    body {
        padding-bottom: 60px;
    }
    
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }
    
    /* Backdrop für Sub-Menü */
    .mobile-nav-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .mobile-nav-backdrop[style*="display: block"] {
        pointer-events: all;
    }
    
    /* Main Navigation */
    .mobile-nav-main {
        display: flex;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 8px var(--shadow);
        padding: 8px 4px;
        transition: background-color 0.3s ease, border-color 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-nav-item-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 4px;
        min-height: 56px;
        min-width: 44px;
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
        color: var(--text-secondary);
        transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        -webkit-tap-highlight-color: transparent;
        z-index: 1;
    }
    
    .mobile-nav-item-main.sub-menu-open {
        z-index: 2;
        background: var(--bg-tertiary);
    }
    
    .mobile-nav-item-main:active {
        transform: scale(0.95);
    }
    
    .mobile-nav-item-main:hover,
    .mobile-nav-item-main:focus {
        color: var(--primary-color);
        background: var(--bg-tertiary);
        outline: none;
    }
    
    .mobile-nav-item-main.active {
        color: var(--primary-color);
    }
    
    .mobile-nav-item-main svg {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
        stroke: currentColor;
        fill: none;
        transition: transform 0.2s ease;
    }
    
    .mobile-nav-item-main.active svg {
        transform: scale(1.1);
    }
    
    .mobile-nav-item-main span {
        font-size: 11px;
        font-weight: 500;
        line-height: 1.2;
    }
    
    /* Logout Button Styling */
    .mobile-nav-item-main.mobile-nav-logout {
        color: var(--danger-color);
    }
    
    .mobile-nav-item-main.mobile-nav-logout:hover,
    .mobile-nav-item-main.mobile-nav-logout:focus {
        color: var(--danger-hover);
        background: var(--error-bg);
    }
    
    [data-theme="dark"] .mobile-nav-item-main.mobile-nav-logout {
        color: var(--danger-color);
    }
    
    [data-theme="dark"] .mobile-nav-item-main.mobile-nav-logout:hover,
    [data-theme="dark"] .mobile-nav-item-main.mobile-nav-logout:focus {
        color: var(--danger-hover);
        background: var(--error-bg);
    }
    
    /* Sub-Menü */
    .mobile-nav-sub {
        position: absolute;
        bottom: 100%;
        left: 0;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        border-left: 1px solid var(--border-color);
        box-shadow: -4px -4px 12px var(--shadow);
        display: flex;
        flex-direction: column;
        max-height: 50vh;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-nav-item-sub {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        text-decoration: none;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-color);
        transition: background-color 0.2s ease, color 0.2s ease;
        min-height: 56px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-nav-item-sub:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-item-sub:hover,
    .mobile-nav-item-sub:focus {
        background: var(--bg-tertiary);
        color: var(--primary-color);
        outline: none;
    }
    
    .mobile-nav-item-sub:active {
        background: var(--bg-tertiary);
    }
    
    .mobile-nav-item-sub.active {
        color: var(--primary-color);
        background: var(--bg-tertiary);
    }
    
    .mobile-nav-item-sub svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        fill: none;
        flex-shrink: 0;
    }
    
    .mobile-nav-item-sub span {
        font-size: 15px;
        font-weight: 500;
        flex: 1;
    }
    
    /* Animation: Main Nav nach oben schieben wenn Sub-Menü offen */
    .mobile-nav-main.sub-menu-open {
        transform: translateY(0);
    }
    
    /* Hide desktop navigation buttons on mobile */
    .header-actions .btn {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fristen-table {
        font-size: 14px;
    }
    
    .fristen-table th,
    .fristen-table td {
        padding: 10px;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Admin Styles */
.admin-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-nav-item {
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
    font-weight: 500;
    font-size: 14px;
}

.admin-nav-item:hover {
    color: var(--primary-color);
    background: var(--bg-tertiary);
}

.admin-nav-item.active {
    color: var(--primary-color);
    background: var(--bg-tertiary);
    border-bottom: none;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-details {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-section {
    margin-bottom: 40px;
}

.admin-section h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Mobile Admin Navigation */
.admin-mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .admin-nav {
        display: none; /* Verstecken auf mobilen Geräten, da mobile Navigation vorhanden ist */
    }
    
    .admin-mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 8px var(--shadow);
        z-index: 1000;
        padding: 4px 0;
        transition: background-color 0.3s ease, border-color 0.3s ease;
    }
    
    .admin-mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4px 2px;
        text-decoration: none;
        color: var(--text-secondary);
        transition: color 0.2s, background-color 0.2s;
        min-height: 48px;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
        width: 100%;
    }
    
    .admin-mobile-nav-item:hover,
    .admin-mobile-nav-item:focus {
        color: var(--primary-color);
        background: var(--bg-tertiary);
    }
    
    .admin-mobile-nav-item.active {
        color: var(--primary-color);
    }
    
    .admin-mobile-nav-item svg {
        width: 20px;
        height: 20px;
        margin-bottom: 2px;
        stroke: currentColor;
        fill: none;
    }
    
    .admin-mobile-nav-item span {
        font-size: 9px;
        font-weight: 500;
    }
    
    /* Add padding to body on admin pages to prevent content from being hidden behind fixed nav */
    body.admin-mobile-nav-active {
        padding-bottom: 56px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 24px;
    }
}

/* Admin Search */
.admin-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.admin-search .input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 20px;
}

@media (max-width: 480px) {
    .admin-search {
        flex-direction: column;
    }
    
    .admin-search .input {
        width: 100%;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.2s ease-out;
    overflow-y: auto;
}

/* Template Dropdown Styles */
.template-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.2s ease-out;
}

.template-dropdown {
    position: absolute;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    animation: dropdownSlideIn 0.2s ease-out;
    opacity: 1;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

@keyframes dropdownSlideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.template-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.template-dropdown-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.template-dropdown-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    line-height: 1;
}

.template-dropdown-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.template-dropdown-body {
    padding: 8px;
    overflow-y: auto;
    flex: 1;
}

.template-dropdown-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px 4px 12px;
    margin-top: 8px;
}

.template-dropdown-category:first-child {
    margin-top: 0;
}

.template-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.template-dropdown-item:hover {
    background: var(--bg-tertiary);
}

.template-dropdown-item:active {
    background: var(--bg-tertiary);
    transform: scale(0.98);
}

.template-dropdown-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.template-dropdown-item-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 4px;
}

.modal-container {
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.template-category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.template-category-title:first-child {
    margin-top: 0;
}

.template-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.template-modal-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-modal-card:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px var(--shadow);
    transform: translateY(-2px);
}

.template-modal-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.template-modal-description {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .modal-container {
        max-width: 100%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .template-modal-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .template-dropdown {
        max-width: calc(100vw - 40px);
        max-height: 80vh;
        width: calc(100vw - 40px);
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%);
        position: fixed;
    }
    
    .template-dropdown-header {
        padding: 12px 14px;
    }
    
    .template-dropdown-header h3 {
        font-size: 15px;
    }
    
    .template-dropdown-body {
        padding: 8px;
        max-height: calc(80vh - 60px);
    }
    
    .template-dropdown-item {
        padding: 10px 12px;
    }
    
    .template-dropdown-item-title {
        font-size: 14px;
    }
    
    .template-dropdown-item-description {
        font-size: 12px;
    }
}

/* Landing Page Enhancements */

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Use Cases Section */
.use-cases {
    margin-top: 80px;
    margin-bottom: 80px;
}

.use-cases h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: var(--text-primary);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.use-case-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.use-case-card:hover {
    box-shadow: 0 8px 24px var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.use-case-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.use-case-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .use-cases {
        margin-top: 60px;
        margin-bottom: 60px;
    }
    
    .use-cases h2 {
        font-size: 28px;
    }
    
    .use-case-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .use-case-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .use-cases {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .use-cases h2 {
        font-size: 24px;
    }
}

/* Pricing Section */
.pricing-section {
    margin-top: 80px;
    margin-bottom: 80px;
}

.pricing-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: var(--text-primary);
}

.pricing-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    position: relative;
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.pricing-card-featured {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px var(--shadow-hover);
    transform: scale(1.05);
}

.pricing-card-featured .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 700;
}

.pricing-card .price {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.pricing-card .price span {
    font-size: 20px;
    font-weight: normal;
    color: var(--text-secondary);
}

.pricing-card .price-note {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 14px;
}

.pricing-card .feature-list {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
    text-align: left;
    flex: 1;
}

.pricing-card .feature-list li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card .feature-list .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--success-text);
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

@media (max-width: 768px) {
    .pricing-section {
        margin-top: 60px;
        margin-bottom: 60px;
    }
    
    .pricing-section h2 {
        font-size: 28px;
    }
    
    .pricing-comparison {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pricing-card-featured {
        transform: scale(1);
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    .pricing-card .price {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .pricing-section h2 {
        font-size: 24px;
    }
    
    .pricing-card {
        padding: 24px 16px;
    }
    
    .pricing-card h3 {
        font-size: 24px;
    }
    
    .pricing-card .price {
        font-size: 32px;
    }
}

/* Pricing Accordion */
.pricing-accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.pricing-accordion-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-accordion-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px var(--shadow);
}

.pricing-accordion-featured {
    border-color: var(--primary-color);
    border-width: 2px;
}

.pricing-accordion-featured .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
}

.pricing-accordion-question {
    padding: 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.pricing-accordion-question:hover {
    color: var(--primary-color);
}

.pricing-accordion-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.2s ease;
    margin-left: 15px;
}

.pricing-accordion-item.active .pricing-accordion-question::after {
    content: '−';
    transform: rotate(180deg);
}

.pricing-accordion-item.active .pricing-accordion-question {
    color: var(--primary-color);
}

.pricing-accordion-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-accordion-price span {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-secondary);
}

.pricing-accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.pricing-accordion-item.active .pricing-accordion-answer {
    max-height: 2000px;
    padding: 0 20px 20px;
}

.pricing-accordion-answer .price-note {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.pricing-accordion-answer .feature-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    text-align: left;
}

.pricing-accordion-answer .feature-list li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-accordion-answer .feature-list .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--success-text);
}

.pricing-accordion-answer .btn {
    width: 100%;
}

@media (max-width: 768px) {
    .pricing-accordion {
        margin-top: 30px;
    }
    
    .pricing-accordion-question {
        padding: 16px;
        font-size: 16px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .pricing-accordion-price {
        font-size: 20px;
        width: 100%;
        justify-content: flex-end;
    }
    
    .pricing-accordion-question::after {
        position: absolute;
        right: 16px;
        top: 16px;
    }
}

@media (max-width: 480px) {
    .pricing-accordion-question {
        padding: 14px;
        font-size: 15px;
    }
    
    .pricing-accordion-item.active .pricing-accordion-answer {
        padding: 0 14px 14px;
    }
    
    .pricing-accordion-answer {
        padding: 0 14px;
    }
}

/* FAQ Section */
.faq-section {
    margin-top: 80px;
    margin-bottom: 80px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: var(--text-primary);
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px var(--shadow);
}

.faq-question {
    padding: 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-section {
        margin-top: 60px;
        margin-bottom: 60px;
    }
    
    .faq-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .faq-section {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .faq-section h2 {
        font-size: 24px;
    }
    
    .faq-question {
        padding: 16px;
        font-size: 16px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 16px 16px;
    }
}

/* Final CTA Section */
.final-cta {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 16px;
    margin-top: 80px;
    margin-bottom: 60px;
    color: white;
}

.final-cta h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: white;
    font-weight: 700;
}

.final-cta > p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta .cta-buttons {
    margin-bottom: 20px;
}

.final-cta .btn-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
}

.final-cta .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
}

.final-cta .btn-primary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.final-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.final-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.final-cta .info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-top: 20px;
}

[data-theme="dark"] .final-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

@media (max-width: 768px) {
    .final-cta {
        margin-top: 60px;
        padding: 60px 20px;
    }
    
    .final-cta h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .final-cta {
        margin-top: 40px;
        margin-bottom: 40px;
        padding: 50px 20px;
    }
    
    .final-cta h2 {
        font-size: 28px;
    }
    
    .final-cta > p {
        font-size: 18px;
    }
    
    .final-cta .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .final-cta .cta-buttons {
        flex-direction: column;
    }
}

