/* ==========================================================================
   1. LOKALE SCHRIFTARTEN (DSGVO-KONFORM)
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/inter-v13-latin-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-v13-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/inter-v13-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-v13-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/inter-v13-latin-700.woff2') format('woff2');
}


/* ==========================================================================
   2. VARIABLEN & RESET
   ========================================================================== */
:root {
    --primary-blue: #004B87;  /* Modernes, vertrauensvolles Blau */
    --primary-red: #8B0000;   /* Kräftiges Dunkelrot (Blutrot) */
    --bg-color: #F7FAFC;      /* Sehr helles Grau-Blau für den Hintergrund */
    --surface-color: #FFFFFF; /* Reines Weiß */
    --text-main: #2D3748;
    --text-muted: #718096;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

section {
    padding: 100px 0;
}


/* ==========================================================================
   3. TYPOGRAFIE & ALLGEMEINES
   ========================================================================== */
h1, h2, h3, h4 {
    color: var(--primary-blue);
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    text-align: center;
}


/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header h1 span {
    color: var(--primary-red);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-red);
}


/* ==========================================================================
   5. HERO SECTION (Header-Bild)
   ========================================================================== */
#hero {
    padding: 120px 0;
    text-align: center;
    background-image: linear-gradient(rgba(26, 54, 93, 0.7), rgba(139, 0, 0, 0.6)), url("Bilder/Herzspezialisten.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}


/* ==========================================================================
   6. INTRO (Über Mich)
   ========================================================================== */
#intro {
    background-color: var(--surface-color); /* Weißer Hintergrund */
    padding-top: 60px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.intro-text h3 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.intro-text p.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.intro-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(139, 0, 0, 0.3);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

.action-phone {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.action-phone:hover {
    color: var(--primary-red);
}


/* ==========================================================================
   7. LEISTUNGEN
   ========================================================================== */
#leistungen {
    background-color: var(--bg-color); /* Helles Grau-Blau */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #edf2f7;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}


/* ==========================================================================
   8. VORBEREITUNG (Info Box)
   ========================================================================== */
#vorbereitung {
    background-color: var(--primary-blue); /* Dunkelblau */
    padding: 80px 0;
}

.info-box {
    background: var(--surface-color);
    color: var(--text-main);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
    border-left: 6px solid var(--primary-red);
}

.info-box-icon {
    font-size: 3.5rem;
    line-height: 1;
}

.info-box-content strong {
    display: block;
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.info-box-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1.05rem;
}


/* ==========================================================================
   9. ZWEITMEINUNG
   ========================================================================== */
#zweitmeinung {
    background-color: var(--bg-color); /* Heller Hintergrund */
    padding: 80px 0;
}

.zweitmeinung-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .zweitmeinung-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    list-style: none;
    margin-bottom: 0;
}

.benefits-list li {
    background: var(--surface-color);
    padding: 1.8rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-red);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    border-left: 4px solid var(--primary-red);
    transition: var(--transition);
}

.benefits-list li:nth-child(even) {
    border-left-color: var(--primary-blue);
}

.benefits-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.benefits-list li strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.benefits-list li p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}


/* ==========================================================================
   10. LEBENSLAUF (Neues Design aus dem Screenshot)
   ========================================================================== */
#lebenslauf {
    background-color: var(--primary-blue);
    padding: 80px 0;
}

#lebenslauf .section-title {
    color: white; 
    margin-bottom: 3rem;
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    /* Leicht abgedunkelter Hintergrund */
    background: rgba(0, 0, 0, 0.15); 
    padding: 4rem;
    border-radius: var(--border-radius);
}

.timeline {
    position: relative;
}

.timeline-section {
    /* Horizontale weiße Trennlinie über jedem Abschnitt */
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.timeline-section:last-child {
    margin-bottom: 0;
}

/* Zwischenüberschriften (Berufspraxis etc.) ausblenden */
.timeline-section h4 {
    display: none;
}

.timeline-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 2.5rem;
    /* Vertikale, durchgehende weiße Linie links */
    border-left: 2px solid rgba(255, 255, 255, 0.9);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Alte rote Punkte ausblenden */
.timeline-item::before {
    display: none;
}

.timeline-date {
    font-weight: 700;
    /* Weiße Schrift */
    color: white; 
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-content {
    /* Hellgraue Schrift für Fließtext */
    color: #cbd5e0; 
    font-size: 1.05rem;
    line-height: 1.6;
}


/* ==========================================================================
   11. KONTAKT & MAPS
   ========================================================================== */
#kontakt {
    background-color: var(--bg-color); /* Helles Grau-Blau */
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.contact-info, .contact-form {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    color: var(--text-main);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
}

.contact-info h3, .contact-form h3 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.map-container {
    margin-top: 25px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8fafc;
    color: var(--text-main);
    transition: var(--transition);
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #a0aec0;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.contact-form button {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.contact-form button:hover {
    background-color: #6a0000;
}


/* ==========================================================================
   12. FOOTER
   ========================================================================== */
footer {
    background-color: #0f1f38;
    color: #cbd5e0;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}


/* ==========================================================================
   13. IMPRESSUM & DATENSCHUTZ
   ========================================================================== */
.legal-box {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    border-top: 5px solid var(--primary-blue);
    margin-top: 40px; /* Abstand nach oben */
}

.legal-box h2 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 0.5rem;
}

.legal-box h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-box p, .legal-box ul {
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

.legal-box ul {
    padding-left: 20px;
}

.legal-box a {
    color: var(--primary-blue);
    text-decoration: none;
}

.legal-box a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   14. DANKE-SEITE
   ========================================================================== */
.danke-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.danke-box {
    background: var(--surface-color);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 500px;
    text-align: center;
    border-top: 5px solid var(--primary-blue);
    margin: 0 auto;
}

.danke-box .icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.danke-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.btn {
    background-color: var(--primary-red);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    margin-top: 10px;
}

.btn:hover {
    background-color: #6a0000;
}


/* ==========================================================================
   15. RESPONSIVE DESIGN (Smartphone & Tablet)
   ========================================================================== */
@media (max-width: 992px) {
    .intro-grid, .contact-grid, .zweitmeinung-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .intro-grid .image-wrapper, .zweitmeinung-grid .image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    .info-box {
        flex-direction: column;
        text-align: center;
    }
    .timeline-container {
        padding: 2rem;
    }
    .legal-box { 
        padding: 2rem; 
    }
    nav ul {
        display: none;
    }

    /* NEU: Anpassungen für das Hero-Bild und große Überschriften auf Handys */
    #hero {
        padding: 80px 0; /* Etwas weniger Abstand nach oben und unten auf dem Handy */
    }
    
    #hero h2 {
        font-size: 2.2rem; /* Schrift verkleinern, damit lange Wörter nicht abgeschnitten werden */
        word-break: break-word; /* Verhindert, dass Text über den Bildschirmrand hinausragt */
        hyphens: auto; /* Erlaubt automatische Silbentrennung, falls nötig */
    }

    .section-title {
        font-size: 2rem; /* Auch die anderen Überschriften (Leistungen etc.) leicht verkleinern */
    }
}