/* ===== CSS VARIABLES ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #374151;
    --text-secondary: #64748b;
    --accent-color: #667eea;
    --shadow-primary: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASIC STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== LANGUAGE SWITCHER MIT FESTEM KONTRAST ===== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.lang-trigger {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.lang-trigger:hover {
    background: rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Rest der Styles gleich wie oben */

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 8px;
    min-width: 160px;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
}

.lang-dropdown.show {
    display: block;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-weight: 500;
}


.lang-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;  /* 👈 Gelbe Akzentfarbe beim Hover */
}
/* ===== HAMBURGER MENU BUTTON ===== */
.menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hamburger {
    width: 20px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.line {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: var(--transition);
}

.menu-btn.active .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active .line:nth-child(2) {
    opacity: 80;
}

.menu-btn.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== SIDEBAR MENU ===== */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-right: 1px solid var(--glass-border);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-menu.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.logo-text h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.menu-close {
    background: rgba(102, 126, 234, 0.1);
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--accent-color);
    font-size: 16px;
    transition: var(--transition);
}

.menu-close:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: rotate(90deg);
}

.sidebar-content {
    flex: 1;
    padding: 0 25px;
    overflow-y: auto;
}

.menu-section {
    margin: 25px 0;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transition: width 0.3s ease;
}

.menu-item:hover::before {
    width: 100%;
}

.menu-item:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.menu-item.featured {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.menu-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.item-icon {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.menu-item:hover .item-icon {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.item-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.item-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.item-arrow {
    opacity: 0.5;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.menu-item:hover .item-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* ===== OVERLAY ===== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ===== BASIC LAYOUT ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* ===== HERO SECTION ===== */
.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    background: var(--primary-gradient);
    color: white;
    margin: 0;
    border-radius: 20px 20px 0 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.5;
}

/* ===== STATS CARDS ===== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.stats-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.25);
}

.stats-number { 
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: block;
}

.stats-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0;
    display: block;
}

/* ===== CALCULATOR SECTION ===== */
.calculators-section {
    padding: 40px 20px;
}

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.calculator-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.14);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.calculator-card:hover:not(.coming-soon) {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.calculator-card.recommended {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.calculator-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.card-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.coming-soon-badge {
    background: #f59e0b;
}

.calculator-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.calculator-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.calc-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    text-align: center;
}

.calc-features li {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 10px 0;
    text-align: center;
    display: block;
}

.calculator-card.recommended .calc-features li {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 8px 16px;
    margin: 8px auto;
    display: inline-block;
    max-width: 280px;
}

.calc-button {
    display: inline-block;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    margin-top: 20px;
}

.calc-button:hover:not(.disabled) {
    background: #5563c1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.calc-button.disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    margin: 0 -20px;
    border-radius: 30px 30px 0 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.5;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 18px;
    width: 100%;
}

label {
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    display: block;
}

input[type="number"],
select,
input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
    margin-top: 4px;
    background: #fff;
    transition: all 0.2s;
    font-family: inherit;
}

input[type="number"]:focus,
select:focus,
input[type="text"]:focus {
    border-color: #667eea;
    outline: none;
    background: #f8f9ff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 14px 28px;
    font-weight: 600;
    background: var(--primary-gradient);
    color: white;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    color: white;
}

.cta-button {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover:not(.disabled) {
    background: #5a67d8;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.cta-button.disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* ===== FOOTER ===== */
.footer {
    padding: 0 20px 40px 20px;
}

.footer-card {
    max-width: 1200px;
    margin: 60px auto 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 32px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .menu-btn, .language-switcher {
        top: 15px;
    }
    
    .menu-btn {
        left: 15px;
        width: 44px;
        height: 44px;
    }
    
    .language-switcher {
        right: 15px;
    }
    
    .sidebar-menu {
        width: 100vw;
    }
    
    .stats-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 700px;
    }
    
    .stats-card {
        padding: 25px 20px;
        min-height: 120px;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
    
    .stats-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 300px;
    }
    
    .stats-card {
        padding: 25px 20px;
        min-height: 100px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .calculators-grid {
        grid-template-columns: 1fr;
    }
}