/* ======== GLOBAL ======== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #f9fafb;
    color: #222;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* ======== LABELS & TITLES ======== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #670020;
    background: rgba(103, 0, 32, 0.08);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 0.9rem;
}

.section-label.centered {
    display: block;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    color: #670020;
    margin-top: 0.4rem;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.section-title.left-align {
    text-align: left;
}

/* ======== BUTTONS ======== */
.btn {
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.btn-light {
    background: #fff;
    color: #670020;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.btn-light:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #670020;
    border-color: #fff;
}

/* ======== HERO ======== */
.hero {
    background: #670020;
    background-image: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
    color: #fff;
    padding: 6rem 0 0;
    text-align: center;
    position: relative;
}

.hero-flex {
    position: relative;   /* Bezugspunkt für das Logo */
}

.hero-logo {
    display: block;
    margin: 1.5rem auto 0;
    max-height: 120px;
    width: auto;
    filter: brightness(0) invert(1);
}

@media (min-width: 900px) {
    .hero-content {
        width: 100%;   /* nimmt wieder die volle Breite ein und zentriert sich selbst */
    }

    .hero-logo {
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        margin: 0;
        max-height: 220px;
        width: auto;
    }
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 580px;
    margin: 0 auto 2.5rem;
    opacity: 0.88;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 4rem;
}

.hero-wave {
    line-height: 0;
    margin-top: -1px;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ======== INFO-BOX (überlappt Hero & About) ======== */
.info-banner {
    position: relative;
    z-index: 2;
    margin-top: -3.5rem;   /* zieht die Box in den roten Bereich hinein */
}

.info-box {
    width: fit-content;     /* Breite passt sich dem Text an */
    max-width: 100%;        /* wird nie breiter als der Inhaltsbereich */
    margin: 0 auto;         /* zentriert */
    background: #fff;
    border: 1px solid #ececec;
    border-left: 4px solid #670020;
    border-radius: 1.2rem;
    padding: 2rem 2.2rem;
    box-shadow: 0 10px 32px rgba(103, 0, 32, 0.18);
}

.info-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #670020;
    margin: 0 0 0.8rem;
}

.info-text {
    margin: 0;
    color: #444;
    font-size: 1rem;
    line-height: 1.65;
}

@media (max-width: 600px) {
    .info-banner {
        margin-top: -2.5rem;
    }

    .info-box {
        padding: 1.5rem 1.4rem;
    }
}

/* ======== ABOUT ======== */
.about {
    background: #f9fafb;
    padding: 5rem 0 5.5rem;
}

.about-flex {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .about-flex {
        flex-direction: row;
        align-items: flex-end;
        gap: 4rem;
    }

    .about-image {
        flex: 0 0 42%;
    }

    .about-info {
        flex: 1;
    }
}


.about-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-width: 0; /* verhindert, dass das Grid im Flex-Layout überläuft */
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

/* Praxis: oben, volle Breite */
.about-image img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

/* Schild und Eingang: hochkant, nebeneinander */
.about-image img:not(:first-child) {
    aspect-ratio: 3 / 4;
}



/* alter Bildercode
/* .about-image {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
}

.about-image img {
    width: 100%;
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px rgba(103, 0, 32, 0.15);
    display: block;
} */

/* ### */

.about-info p {
    text-align: justify;
    hyphens: auto;
    margin-bottom: 1.2rem;
    color: #444;
}

/* ### */

.about-doctor {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2rem;
    padding: 1.2rem 1.5rem;
    background: #fff;
    border-radius: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border-left: 4px solid #670020;
}

.doctor-icon {
    background: #670020;
    color: #fff;
    border-radius: 50%;
    padding: 0.85rem;
    display: inline-flex;
    flex-shrink: 0;
}

.doctor-name {
    font-weight: 700;
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.doctor-role {
    color: #777;
    margin: 0;
    font-size: 0.9rem;
}

/* ======== SERVICES ======== */
.services {
    background: #fff;
    padding: 5rem 0 5.5rem;
}

.service-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: 1fr;
}

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

    /* 1 Spalte = Standard, keine extra Klasse nötig */

    /* 2 Spalten */
    .card--double {
        grid-column: span 2;
    }

    /* 3 Spalten = volle Breite */
    .card--wide {
        grid-column: span 3;
    }
}

.card {
    background: #f8f9fb;
    padding: 2rem 2rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #ececec;
    transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(103, 0, 32, 0.1);
    transform: translateY(-2px);
}

.card-icon {
    color: #670020;
    margin-bottom: 1rem;
    background: rgba(103,0,32,0.07);
    display: inline-flex;
    padding: 0.7rem;
    border-radius: 0.6rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #1a1a1a;
}

.card-text {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    color: #555;
    font-size: 0.93rem;
    margin: 0 0 0.6rem;
    line-height: 1.6;
}

.card-text:last-child {
    margin-bottom: 0;
}

/* Wide card: multi-column list layout */
.card-list--columns {
    display: grid;
    gap: 0.5rem 2rem;
}

@media (min-width: 700px) {
    .card-list--columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.card-list--columns .card-text {
    padding-left: 1rem;
    border-left: 2px solid rgba(103,0,32,0.25);
    margin: 0;
}

/* ======== CONTACT ======== */
.contact {
    padding: 5rem 0 5.5rem;
    background: #f9fafb;
}

.contact-flex {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 900px) {
    .contact-flex {
        flex-direction: row;
        align-items: stretch;
        gap: 2.5rem;
    }

    .contact-box {
        flex: 0 0 380px;
    }

    .map-box {
        flex: 1;
    }
}

.contact-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #670020;
    margin: 0 0 1.4rem;
}

.contact-box {
    background: #fff;
    padding: 2.2rem;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #ececec;
}

.times-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.times-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    padding: 0.65rem 0;
    font-size: 0.95rem;
    gap: 1rem;
}

.times-list li:last-child {
    border-bottom: none;
}

.times-list li span:first-child {
    font-weight: 600;
    color: #333;
}

.times-list li span:last-child {
    color: #555;
    text-align: right;
}

.times-note span:first-child {
    font-weight: 400 !important;
    color: #888 !important;
    font-style: italic;
    font-size: 0.88rem;
}

.contact-details {
    display: grid;
    gap: 1.1rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-detail svg {
    color: #670020;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 0.15rem;
}

.contact-detail p {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

.map-box {
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    min-height: 420px;
}

.map-box iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

/* ======== RESPONSIVE HERO TITLE ======== */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ======== IMPRESSUM ======== */
.impressum {
    padding: 5rem 0 5.5rem;
    background: #fff;
}

.impressum-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: 1fr;
}

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

.impressum-box {
    background: #f9fafb;
    padding: 2.2rem;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #ececec;
}

.impressum-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #670020;
    margin: 1.6rem 0 0.7rem;
}

.impressum-subtitle:first-child {
    margin-top: 0;
}

.impressum-box p {
    text-align: justify;
    color: #555;
    font-size: 0.93rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.impressum-box ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: #555;
    font-size: 0.93rem;
    line-height: 1.6;
}

.impressum-box a {
    color: #670020;
    text-decoration: underline;
}

/* ======== LEGAL FINE PRINT (collapsible) ======== */
.legal-fineprint {
    background: #f9fafb;
    padding: 1.5rem 0 3rem;
}

.legal-fineprint summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #670020;
    list-style: none;
}

.legal-fineprint summary::-webkit-details-marker {
    display: none;
}

.legal-fineprint summary::before {
    content: "+ ";
}

.legal-fineprint details[open] summary::before {
    content: "– ";
}

.legal-block {
    margin-top: 1.2rem;
    max-width: 720px;
}

.legal-block h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #670020;
    margin: 1.1rem 0 0.3rem;
}

.legal-block h4:first-child {
    margin-top: 0;
}

.legal-block p {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.55;
    margin: 0 0 0.6rem;
}

.legal-block a {
    color: #888;
}
