/* ==========================================================================
   Hörgeräte Vergleich Deutschland - Unified Stylesheet (Senior-Friendly)
   ========================================================================== */

:root {
    --primary-color: #0f4c81;     /* Premium Medical Blue */
    --secondary-color: #2a9d8f;   /* Trusting Teal */
    --dark-color: #2b2d42;        /* High Contrast Text */
    --light-color: #f8f9fa;       /* Light Gray Background */
    --white: #ffffff;
    --accent-color: #e76f51;      /* Warm Attention Color for Primary CTAs */
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    font-size: 19px; /* Enhanced for senior readability */
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    padding-bottom: 60px; /* Space for mobile sticky bar */
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

h1 { font-size: 2.4rem; line-height: 1.2; }
h2 { font-size: 1.9rem; margin-top: 30px; border-bottom: 2px solid var(--light-color); padding-bottom: 10px; }
h3 { font-size: 1.4rem; margin-top: 20px; }
p { margin-bottom: 15px; }

a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
    text-align: right;
}

.header-top a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
    background-color: var(--light-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #eef5fc 0%, #ffffff 100%);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero p.subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #4a5568;
}

/* Buttons and CTAs */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    border: none;
    margin: 10px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(231, 111, 81, 0.3);
}

.btn-primary:hover {
    background-color: #d65d40;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(15, 76, 129, 0.3);
}

.btn-secondary:hover {
    background-color: #0b3961;
}

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

.btn-call:hover {
    background-color: #218377;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.badge {
    background: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sections layout */
.section {
    padding: 50px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }

/* Global Lead Box / Form Block */
.lead-box {
    background-color: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-family);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.form-checkbox input {
    margin-top: 5px;
    transform: scale(1.3);
}

/* Comparison Tables */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--white);
}

th, td {
    padding: 15px;
    border-bottom: 1px solid #cbd5e1;
}

th {
    background-color: var(--primary-color);
    color: var(--white);
}

tr:nth-child(even) {
    background-color: var(--light-color);
}

/* Accordion FAQs */
.faq-item {
    background: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-bottom: 15px;
    padding: 20px;
}

.faq-title {
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    margin-bottom: 10px;
}

/* Footer & Legal */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 40px 0 20px 0;
    font-size: 0.95rem;
}

footer a {
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Floating Sticky Conversion Bar for Mobile Seniors */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
    z-index: 9999;
}

.sticky-bar a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 1rem;
}

.sticky-bar a.sticky-secondary {
    background: var(--secondary-color);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .grid-2, .grid-3, .footer-grid {
        grid-template-columns: 1fr;
    }
    nav {
        display: none; /* Simplification for senior visibility context; can scale using hamburger if added */
    }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
}