:root {
    /* Farben aus dem sohavest Logo */
    --primary: #F9A825;          /* Orange aus Logo */
    --primary-dark: #E69100;     /* Dunkleres Orange */
    --primary-light: #FFC107;    /* Helleres Orange/Gelb */
    --secondary: #3D3D3D;        /* Dunkelgrau/Anthrazit aus Logo */
    --secondary-light: #5A5A5A;  /* Helleres Grau */
    --accent: #7D7D7D;           /* Mittelgrau (Schatten im Logo) */
    
    /* Hintergrund & Text */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-subtle: #f1f3f5;
    --bg-card: #ffffff;
    
    --text-dark: #2D2D2D;
    --text-primary: #3D3D3D;
    --text-secondary: #6c757d;
    --text-light: #adb5bd;
    
    /* Borders & Shadows */
    --border: #e9ecef;
    --border-light: #f1f3f5;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.75rem 2rem;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Support Link Highlight */
.nav-support-link {
    color: #22c55e !important;
    font-weight: 700 !important;
}

.nav-support-link::after {
    background: #22c55e !important;
    width: 100% !important;
}

.nav-support-link:hover {
    color: var(--primary) !important;
}

.nav-support-link:hover::after {
    background: var(--primary) !important;
}

.nav-cta {
    background: var(--primary);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--secondary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-content h1 .highlight {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 520px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--bg-white);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-card-header {
    background: var(--secondary);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: var(--primary); }
.dot.green { background: #22c55e; }

.hero-card-body {
    padding: 2rem;
}

.status-grid {
    display: grid;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.status-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.status-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.status-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-badge {
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.success {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.active {
    background: rgba(249, 168, 37, 0.15);
    color: var(--primary-dark);
}

/* Floating Elements */
.floating-badge {
    position: absolute;
    background: var(--bg-white);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
}

.floating-badge.top-right {
    top: -20px;
    right: -20px;
}

.floating-badge.bottom-left {
    bottom: -20px;
    left: -20px;
}

.floating-badge .icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Services Section */
.services {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    background: rgba(249, 168, 37, 0.15);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(249, 168, 37, 0.15), rgba(61, 61, 61, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Service Cards - Mobile Accordion */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .service-card {
        padding: 0;
        border-radius: 10px;
        cursor: pointer;
        overflow: hidden;
    }

    .service-card:hover {
        transform: none;
        box-shadow: none;
    }

    .service-card-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
    }

    .service-card-header .service-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.2rem;
        margin-bottom: 0;
        border-radius: 8px;
    }

    .service-card-header h3 {
        font-size: 1rem;
        margin-bottom: 0;
        flex: 1;
    }

    .service-card-toggle {
        color: var(--text-secondary);
        font-size: 1.2rem;
        transition: transform 0.3s ease;
        margin-left: auto;
    }

    .service-card.open .service-card-toggle {
        transform: rotate(180deg);
    }

    .service-card p {
        max-height: 0;
        overflow: hidden;
        padding: 0 1rem;
        margin: 0;
        opacity: 0;
        transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    }

    .service-card.open p {
        max-height: 200px;
        padding: 0 1rem 1rem;
        opacity: 1;
    }
}

/* Service Cards - Desktop: hide mobile-only elements */
@media (min-width: 769px) {
    .service-card-header {
        display: contents;
    }

    .service-card-toggle {
        display: none;
    }
}

/* About Section */
.about {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    background: var(--bg-white);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    padding: 15px;
}

/* Pac-Man Stage */
.pacman-stage {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid var(--border);
}

#pacman-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.profile-rows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.profile-row {
    position: absolute;
    left: 0;
    width: 100%;
    height: 10%;
    overflow: hidden;
}

.profile-row .row-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 100% 0 0); /* Initial versteckt */
}

.profile-row .row-content.from-right {
    clip-path: inset(0 0 0 100%); /* Von rechts versteckt */
}

.profile-row img {
    position: absolute;
    left: 0;
    width: 100%;
    height: auto;
}

.profile-row .green-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(76, 175, 80, 0.3); /* 70% transparent */
    clip-path: inset(0 100% 0 0);
}

.profile-row .green-overlay.from-right {
    clip-path: inset(0 0 0 100%);
}

.profile-row .green-overlay.full {
    clip-path: inset(0 0 0 0);
}

.experience-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--primary);
    color: var(--text-dark);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.experience-badge .number {
    font-size: 1.75rem;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.75rem;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.skill-tag {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: rgba(249, 168, 37, 0.1);
}

/* Rubik's Cube Section */
.rubiks-section {
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.rubiks-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.rubiks-text .section-tag {
    display: inline-block;
    background: rgba(249, 168, 37, 0.1);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.rubiks-text h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.rubiks-text p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.rubiks-cube-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rubiks-cube-wrapper .virtualcube {
    width: 300px;
    height: 300px;
}

.rubiks-cube-wrapper .virtualcube canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .rubiks-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .rubiks-cube-wrapper .virtualcube {
        width: 250px;
        height: 250px;
    }

    .rubiks-text h2 {
        font-size: 1.5rem;
    }
}

/* Modules Section */
.modules {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    background: var(--bg-light);
}

.module-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.module-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Tool Tabs */
.tool-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    background: var(--secondary);
}

.tool-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.tool-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tool-tab.active {
    color: white;
    background: rgba(249, 168, 37, 0.15);
}

.tool-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.tool-tab-icon {
    font-size: 1.2rem;
}

.tool-content {
    display: none;
}

.tool-content.active {
    display: block;
}

.module-header {
    background: var(--secondary);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.module-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.module-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    color: var(--bg-white);
}

.module-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.module-info .certificate-hint {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(249, 168, 37, 0.15);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--primary);
}

.certificate-preview {
    margin-left: auto;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease;
}

.certificate-preview:hover {
    transform: scale(1.05);
}

.certificate-preview img {
    width: 50px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.certificate-preview span {
    display: block;
    font-size: 0.65rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

/* Certificate Modal */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.certificate-modal.visible {
    display: flex;
}

.certificate-modal-content {
    max-width: 600px;
    max-height: 90vh;
    position: relative;
}

.certificate-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.certificate-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.certificate-modal-close:hover {
    color: var(--primary);
}

.module-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-dark);
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, Monaco, monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.15);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.test-button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: var(--shadow-md);
}

.test-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.test-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.test-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: none;
}

.test-results.visible {
    display: block;
    animation: slideUp 0.3s ease;
}

.privacy-notice {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.privacy-notice strong {
    color: var(--text-dark);
}

/* Slider Captcha */
.captcha-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.captcha-container label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.slider-captcha {
    position: relative;
}

.slider-track {
    position: relative;
    height: 44px;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    border-radius: 22px;
    border: 2px solid var(--border);
    overflow: hidden;
    cursor: pointer;
}

.slider-target {
    position: absolute;
    top: 4px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), #e69100);
    border-radius: 50%;
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.slider-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    z-index: 2;
}

.slider-handle:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.slider-handle:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.slider-handle span {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: bold;
}

.slider-handle.success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.slider-handle.success span {
    color: white;
}

.captcha-hint {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.3s ease;
}

.captcha-hint.success {
    color: #22c55e;
    font-weight: 600;
}

.test-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.slider-track.shake {
    animation: shake 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.result-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.result-status.success { background: #22c55e; }
.result-status.error { background: #ef4444; }
.result-status.warning { background: var(--primary); }

.result-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.result-item:last-child {
    border-bottom: none;
}

.result-icon {
    font-size: 1rem;
    line-height: 1.6;
}

.result-content {
    flex: 1;
}

.result-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.result-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ki-test-details {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    border-left: 3px solid #3b82f6;
}

.ki-question {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.ki-answer {
    font-size: 0.95rem;
    color: #16a34a;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.ki-latency {
    font-size: 0.8rem;
    color: #3b82f6;
}

/* Speedtest Styles */
.speedtest-info {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.speedtest-info-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.speedtest-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.info-item-icon {
    font-size: 1.5rem;
}

.info-item-data {
    display: flex;
    flex-direction: column;
}

.info-item-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item-value {
    font-weight: 600;
    color: var(--text-dark);
}

.speedtest-display {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.speed-gauge-container {
    text-align: center;
}

.speed-gauge {
    position: relative;
    width: 250px;
    height: 150px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
}

.gauge-fill {
    transition: stroke-dashoffset 0.5s ease-out;
}

.gauge-value {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.gauge-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.gauge-unit {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
}

.speed-label {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.speedtest-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.speed-result-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border);
}

.speed-result-card.download {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
}

.speed-result-card.upload {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, white 100%);
}

.speed-result-card.ping {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
}

.speed-result-icon {
    font-size: 2rem;
}

.speed-result-data {
    display: flex;
    flex-direction: column;
}

.speed-result-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.speed-result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.speedtest-actions {
    text-align: center;
    margin: 1.5rem 0;
}

.speedtest-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.speedtest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.speedtest-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.speedtest-btn-icon {
    font-size: 1.2rem;
}

.speedtest-btn.testing {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

@media (max-width: 768px) {
    .speedtest-results {
        grid-template-columns: 1fr;
    }
    
    .speedtest-info-grid {
        grid-template-columns: 1fr;
    }
}

/* DOCX Converter Styles */
.docx-drop-zone {
    border: 3px dashed var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    background: var(--bg-light);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.docx-drop-zone:hover {
    border-color: var(--primary);
    background: rgba(249, 168, 37, 0.05);
}

.docx-drop-zone.dragover {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.docx-drop-zone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.docx-drop-zone p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.docx-drop-zone .hint {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.docx-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.docx-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.docx-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.docx-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.docx-copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.docx-copy-btn.copied {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.docx-preview {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    max-height: 350px;
    overflow-y: auto;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: left;
    display: none;
}

.docx-preview.visible {
    display: block;
}

.docx-preview table {
    border-collapse: collapse;
    width: 100%;
}

.docx-preview th,
.docx-preview td {
    border: 1px solid #ddd;
    padding: 8px;
}

.docx-preview th {
    background-color: #f2f2f2;
}

.docx-preview .bordered {
    border: 1px solid #e5e7eb;
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
}

.docx-preview .docx-header,
.docx-preview .docx-footer {
    font-size: 0.9rem;
    color: #555;
    padding: 8px 10px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    margin: 6px 0 10px 0;
}

.docx-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.docx-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.docx-btn-primary {
    background: linear-gradient(135deg, var(--primary), #e69100);
    color: white;
    border: none;
}

.docx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 168, 37, 0.4);
}

.docx-btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.docx-btn-secondary:hover {
    background: var(--bg-white);
    border-color: var(--primary);
}

/* Gradtagzahlen-Rechner Styles */
.gt-station-match {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #856404;
}

.gt-loading {
    text-align: center;
    padding: 2rem;
}

.gt-loading .spinner {
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.gt-error {
    background: #fee;
    border-left: 4px solid #f44;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    color: #c33;
}

.gt-results {
    margin-top: 1.5rem;
}

.gt-result-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.gt-result-card h4 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.gt-result-card.gt-hgt {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.gt-result-card.gt-kgt {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.gt-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gt-stat-row {
    display: flex;
    gap: 1.5rem;
}

.gt-stat {
    display: flex;
    flex-direction: column;
}

.gt-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.gt-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gt-climate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gt-climate-item {
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
}

.gt-climate-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.gt-climate-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .gt-stat-grid {
        grid-template-columns: 1fr;
    }
    .gt-climate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.certificate-download {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.download-cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.download-cert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.download-cert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Report Issue Button */
.report-issue {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.report-issue-btn {
    background: transparent;
    border: 1px solid #9ca3af;
    color: #6b7280;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-issue-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.report-issue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.report-issue-btn.success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #22c55e;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    background: var(--bg-white);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(249, 168, 37, 0.15);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-details h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-details p, .contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-dark);
}

/* QR Code */
.contact-qr {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.qr-code-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.qr-code-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.qr-code {
    width: 100%;
    height: 100%;
    display: block;
}

.qr-info h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.qr-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .contact-qr {
        flex-direction: column;
        text-align: center;
    }
}

.contact-form {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}

.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.15);
}

.contact-form input {
    background: var(--bg-white);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-group label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--primary-dark);
}

/* Captcha Styles */
.captcha-container {
    margin-bottom: 1.5rem;
}

.captcha-container > label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, Monaco, monospace;
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    min-width: 120px;
    justify-content: center;
}

.captcha-box input[type="number"] {
    width: 70px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, Monaco, monospace;
    background: var(--bg-light);
    color: var(--text-dark);
    -moz-appearance: textfield;
}

.captcha-box input[type="number"]::-webkit-outer-spin-button,
.captcha-box input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.captcha-box input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
}

.captcha-refresh {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background: var(--primary);
    color: var(--text-dark);
    transform: rotate(180deg);
}

.captcha-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.captcha-error.visible {
    display: block;
}

/* Footer */
footer {
    background: var(--secondary);
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.8);
    transition: fill 0.3s ease;
}

.footer-social a:hover svg {
    fill: white;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.donate-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 112, 186, 0.3);
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.4);
    color: white !important;
}

.donate-button svg {
    flex-shrink: 0;
}

.donate-box {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

.donate-box-content {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.donate-box-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.donate-box-text {
    flex: 1;
    min-width: 280px;
}

.donate-box-text h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.donate-box-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.donate-button-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .donate-box-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    .donate-box-text {
        min-width: auto;
        width: 100%;
    }

    .donate-box-content > a.donate-button {
        align-self: center;
    }
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container,
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .hero-visual {
        order: -1;
    }
}

/* Mobile Menu - Default hidden on desktop */
.mobile-menu-overlay,
.mobile-menu-card {
    display: none;
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
        z-index: 1002;
    }

    /* Certificate Preview - Mobile */
    .certificate-preview {
        display: none;
    }

    .module-header {
        flex-wrap: wrap;
    }

    .module-info .certificate-hint {
        font-size: 0.8rem;
    }

    /* Mobile Menu Overlay - separate element */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 998;
    }

    .mobile-menu-overlay.visible {
        display: block;
    }

    /* Mobile Menu Card */
    .mobile-menu-card {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.98);
        border-radius: 20px;
        padding: 2.5rem 3rem;
        z-index: 999;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
        min-width: 280px;
        text-align: center;
    }

    .mobile-menu-card.visible {
        display: block;
    }

    .mobile-menu-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-menu-card ul li a {
        font-size: 1.25rem;
        color: var(--text-dark);
        text-decoration: none;
        padding: 0.75rem 1.5rem;
        display: block;
        border-radius: 10px;
        transition: all 0.2s;
        font-weight: 500;
    }

    .mobile-menu-card ul li a:hover {
        background: var(--primary);
        color: var(--text-dark);
    }

    /* Support Link Highlight in Mobile Menu */
    .mobile-menu-card ul li a.nav-support-link {
        color: #22c55e;
        font-weight: 700;
        background: rgba(34, 197, 94, 0.1);
        border: 2px solid #22c55e;
    }

    .mobile-menu-card ul li a.nav-support-link:hover {
        background: var(--primary);
        color: var(--text-dark);
        border-color: var(--primary);
    }

    .navbar.nav-open .mobile-toggle span {
        background: var(--text-dark);
    }

    .navbar.nav-open .mobile-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar.nav-open .mobile-toggle span:nth-child(2) {
        opacity: 0;
    }

    .navbar.nav-open .mobile-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Mobile: Footer kompakter */
    .footer-brand p,
    .footer-brand .logo {
        display: none;
    }

    .footer-brand {
        display: flex;
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links h4 {
        display: none;
    }

    .footer-links ul {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-links li {
        margin: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    /* Mobile: Navigation und Services ausblenden */
    .footer-nav,
    .footer-services {
        display: none;
    }

    .floating-badge {
        display: none;
    }

    /* Mobile: Hero-Card komplett ausblenden (schwarzer Balken mit Punkten) */
    .hero-card {
        display: none;
    }

    /* Mobile: Nur Speedtest Tab anzeigen */
    .tool-tab:not([data-tab="speedtest"]) {
        display: none;
    }
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast.visible {
    transform: translateX(0);
}

.toast.success {
    border-color: #22c55e;
}

.toast.error {
    border-color: #ef4444;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-white);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-white);
    border-radius: 10px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-body a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
}

.modal-body a:hover {
    text-decoration: underline;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

/* QR Modal */
.qr-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    max-width: 350px;
    width: 90%;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.visible .qr-modal-content {
    transform: scale(1);
    opacity: 1;
}

.qr-modal-content .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.qr-modal-img {
    width: 250px;
    height: 250px;
    margin: 1rem auto;
}

.qr-modal-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }

    .modal-container {
        max-height: 90vh;
    }

    .modal-header, .modal-body, .modal-footer {
        padding: 1rem 1.25rem;
    }
}

/* E-Mail Obfuscation - Anti-Bot */
.email-link {
    cursor: pointer;
}
