@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary-blue: #032650;
    --button-blue: #2563eb;
    --button-hover: #1d4ed8;
    --bg-gray: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    line-height: 1.5;
    color: var(--text-dark);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background-color: var(--primary-blue);
    color: white;
    padding: 1.25rem 0 0.75rem 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    gap: 0.75rem;
}

.logo-link svg {
    width: 30px;
    height: 30px;
    color: #38bdf8;
}

.site-title {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 0.25rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.18);
}

/* Sub Navigation */
.second-bar {
    background-color: var(--bg-gray);
    border-bottom: 1px solid var(--border-color);
}

.second-bar-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    height: 46px;
    overflow-x: auto;
}

.second-bar a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}

.second-bar a:hover, .second-bar a.active {
    color: var(--button-blue);
}

/* Main Content */
.main-section {
    padding: 3rem 0;
    text-align: center;
}

.title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Screen / Test Box */
.test-container {
    max-width: 760px;
    margin: 0 auto 1.5rem auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.screen-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #94a3b8;
    padding: 1rem;
}

.screen-placeholder svg {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: white;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #94a3b8;
    flex-shrink: 0;
}

.test-controls {
    padding: 1rem 1.25rem;
    background-color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
}

.device-selector {
    flex: 1;
    min-width: 220px;
}

.device-selector select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-gray);
    font-size: 0.875rem;
    color: var(--text-dark);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.start-button {
    background-color: var(--button-blue);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.start-button:hover {
    background-color: var(--button-hover);
}

.icon-btn {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.55rem;
    cursor: pointer;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    color: var(--text-dark);
    border-color: #cbd5e1;
}

.autostart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Features & FAQ */
.gray-section {
    background-color: var(--bg-gray);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

.feature-card {
    background: white;
    padding: 1.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.feature-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq {
    padding-top: 4rem;
    text-align: left;
}

.faq-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links, .languages {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer a:hover, .footer a.active {
    color: white;
}

/* --- Webcam Video & Screen Styling --- */
.webcam-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
    transition: transform 0.2s ease;
}

.webcam-video.flipped {
    transform: scaleX(-1);
}


.grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    z-index: 5;
}

.grid-cell {
    border: 1px dashed rgba(255, 255, 255, 0.35);
}


.screen-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.info-pill {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: #f1f5f9;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: monospace;
}

.status-dot.active {
    background-color: #10b981; 
    box-shadow: 0 0 8px #10b981;
}


.icon-btn.active {
    background-color: #e0e7ff;
    border-color: #2563eb;
    color: #2563eb;
}

.start-button.running {
    background-color: #dc2626;
}
.start-button.running:hover {
    background-color: #b91c1c;
}
/* --- Microphone Tool Styling --- */
.mic-screen-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 270px; 
    background-color: #0f172a;
    overflow: hidden;
}

.mic-visualizer-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;

    padding: 3.2rem 1rem 1rem 1rem;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    box-sizing: border-box;
}

#micCanvas {
    width: 100%;
    flex: 1;
    min-height: 70px;
    max-height: 140px;
    margin: 0.5rem 0;
}


.vu-meter-box {
    width: 100%;
    max-width: 520px;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0; 
}

.vu-meter-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

.vu-meter-bar {
    width: 100%;
    height: 10px;
    background: #334155;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.vu-meter-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #eab308 75%, #ef4444 100%);
    border-radius: 9999px;
    transition: width 0.05s ease-out;
}

.btn-playback {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-playback.active {
    background-color: #e0e7ff;
    border-color: #2563eb;
    color: #2563eb;
}

.error-banner {
    display: none;
    max-width: 760px;
    margin: 0 auto 1.5rem auto;
    padding: 1rem 1.25rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.9rem;
    text-align: left;
    align-items: center;
    gap: 0.75rem;
}
/* --- Social Share Box --- */
.share-section {
    margin-top: 2rem;
    text-align: center;
}

.share-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.share-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.share-btn svg {
    width: 19px;
    height: 19px;
}


.share-x:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateY(-2px);
}

.share-linkedin:hover {
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
    transform: translateY(-2px);
}

.share-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
    transform: translateY(-2px);
}

.share-facebook:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
    transform: translateY(-2px);
}

.share-copy:hover {
    background: var(--bg-gray);
    color: var(--button-blue);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}


.copy-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.hidden {
    display: none !important;
}
/* --- Headphone Tool Styling --- */
.hp-screen-wrapper {
    position: relative;
    width: 100%;
    min-height: 290px;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
}


.hp-visual-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 480px;
    margin-bottom: 1.5rem;
}

.earcup-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

.earcup-disc {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.4rem;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.earcup-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}


.earcup-box.pulsing .earcup-disc {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
}

.hp-center-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.hp-center-btn:hover, .hp-center-btn.active {
    background: #2563eb;
    border-color: #3b82f6;
    color: white;
}


.hp-modules {
    padding: 1.5rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.hp-module-card {
    background: var(--bg-gray);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.hp-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.hp-module-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.hp-value-badge {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--button-blue);
    font-family: monospace;
}

/* Slider Design */
.hp-slider {
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: #cbd5e1;
    outline: none;
    -webkit-appearance: none;
}

.hp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--button-blue);
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.hp-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--button-blue);
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Frequenz Presets & Generator Controls */
.hp-freq-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.hp-btn-preset {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.hp-btn-preset:hover {
    border-color: var(--button-blue);
    color: var(--button-blue);
}

.hp-btn-toggle-tone {
    margin-left: auto;
    background: var(--button-blue);
    color: white;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.hp-btn-toggle-tone.playing {
    background: #dc2626;
}

/* --- Feedback Form Styling --- */
.feedback-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-align: left;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-gray);
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.form-input:focus {
    border-color: var(--button-blue);
    background-color: #ffffff;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Feedback Alerts */
.alert {
    padding: 0.85rem 1.15rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.alert-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.feedback-direct-email {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.feedback-direct-email a {
    color: var(--button-blue);
    text-decoration: none;
    font-weight: 600;
}

.feedback-direct-email a:hover {
    text-decoration: underline;
}
.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem; 
    margin: 1rem 0;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content h2 {
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.legal-content p {
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .hp-visual-stage {
        gap: 1.5rem;
    }
    .earcup-disc {
        width: 70px;
        height: 70px;
        font-size: 1.2rem;
    }
    .hp-btn-toggle-tone {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .features, .faq-grid {
        grid-template-columns: 1fr;
    }

    .test-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons {
        justify-content: space-between;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}