/* MeinSanierer - Zentrale Styles */

:root {
    --ink: #18181b;
    --ink2: #3f3f46;
    --muted: #71717a;
    --ground: #fafaf9;
    --surface: #ffffff;
    --border: #e4e4e7;
    --amber: #f53003;
    --amber-dim: #ffe5e0;
    --green: #16a34a;
    --radius: 14px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--ground);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 249, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}

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

.nav-link {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--ink);
}

/* Hero Section */
.hero {
    width: 100%;
    padding: 120px 24px 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.65)), url("/images/hero-bg.jpg") center center / cover no-repeat;
    position: relative;
    color: #fff;
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
}

/* Content Pages */
.content {
    max-width: 900px;
    margin: 80px auto 120px;
    padding: 0 24px;
}

.content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--ink);
}

.subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 3rem;
}

.content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: var(--ink);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--ink);
}

.content p,
.content ul,
.content ol {
    margin-bottom: 1rem;
    color: var(--ink2);
}

.content ul,
.content ol {
    padding-left: 28px;
}

.content ul li,
.content ol li {
    margin-bottom: 0.5rem;
}

.content strong {
    color: var(--ink);
    font-weight: 600;
}

.content a {
    color: var(--amber);
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--amber);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin: 20px 0;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #c42602;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
    background: var(--surface);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    margin: 0 12px;
}

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

.footer-copy {
    font-size: 13px;
    color: var(--muted);
}

/* FAQ Items */
.faq-item {
    background: var(--surface);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ink);
}

/* Contact Box */
.contact-box {
    background: var(--surface);
    padding: 32px;
    border-radius: 12px;
    border: 2px solid var(--amber);
    margin-top: 40px;
    text-align: center;
}

.contact-box h2 {
    margin-top: 0;
}

.contact-box a {
    color: var(--amber);
    text-decoration: none;
    font-weight: 600;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 48px 20px 40px;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== STARTSEITE-SPEZIFISCHE STYLES ==================== */

/* Hero Section with Background */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251, 191, 36, 0.3);
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.hero-eyebrow-dot {
    width: 7px;
    height: 7px;
    background: var(--amber);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

h1.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 700px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

h1.hero-title em {
    font-style: normal;
    color: #f53003;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 32px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Search Box */
.hero-search {
    max-width: 600px;
    margin-bottom: 48px;
    position: relative;
}

.search-box {
    display: flex;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px var(--amber-dim);
}

.search-input {
    flex: 1;
    border: none;
    padding: 18px 20px;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
    outline: none;
}

.search-input::placeholder {
    color: var(--muted);
}

.search-btn {
    background: var(--amber);
    color: white;
    border: none;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #c42602;
}

.search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 20;
    display: grid;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.search-suggestion {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.search-suggestion:hover,
.search-suggestion[data-active="true"] {
    border-color: var(--amber);
    background: #fff5f2;
}

.suggestion-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245,48,3,.10);
    color: var(--amber);
}

.suggestion-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-suggestion strong,
.search-suggestion small {
    display: block;
}

.search-suggestion strong {
    font-size: 15px;
    font-weight: 800;
}

.search-suggestion small,
.suggestion-match {
    color: var(--muted);
    font-size: 12px;
}

.suggestion-match {
    white-space: nowrap;
    font-weight: 700;
}

.search-hint {
    margin-top: 10px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    text-shadow: 0 1px 3px rgba(0,0,0,.35);
}

/* Trust Strip */
.trust-strip {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.trust-icon {
    width: 20px;
    height: 20px;
    color: #f53003;
}

/* Section Headlines */
.section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 16px;
}

h2.section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 40px;
}

/* Service Grid with Images */
.services-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .services-section {
        padding: 44px 16px 72px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .service-image {
        height: 180px;
    }
    .service-content {
        padding: 1.15rem;
    }
    .service-name {
        font-size: 1.15rem;
    }
    .service-hint {
        font-size: .92rem;
    }
}

.service-card {
    display: block;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--ink);
}

.service-card:hover {
    border-color: var(--amber);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-content {
    padding: 1.5rem;
}

.service-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.service-hint {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Benefits Section */
.benefits-section {
    background: var(--surface);
    padding: 80px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.benefits-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--amber);
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.benefit-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Stats Row */
.stats-row {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat-cell {
    background: var(--surface);
    padding: 36px 28px;
    text-align: center;
}

.stat-value {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-value span {
    color: var(--amber);
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
}

/* How It Works Section */
.how-section {
    background: var(--ink);
    color: #fff;
    padding: 80px 24px;
    margin-bottom: 80px;
}

.how-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.how-inner .section-label {
    color: #71717a;
}

.how-inner h2.section-title {
    color: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
}

@media (min-width: 640px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--amber);
    line-height: 1;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.step-desc {
    font-size: 14px;
    color: #a1a1aa;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-btn {
        padding: 14px;
    }

    .search-suggestions {
        position: static;
        margin-top: 10px;
        box-shadow: 0 12px 28px rgba(0,0,0,.18);
    }

    .search-suggestion {
        grid-template-columns: 32px 1fr;
        padding: 11px 12px;
    }

    .suggestion-match {
        grid-column: 2;
        white-space: normal;
    }

    .search-hint {
        font-size: 12px;
    }
}
