/* Ästhetische Therapien – Kachel-Übersicht mit Detail-Sidepanel */

/* ---------- Hero (im Header-Slider) ---------- */
.at-hero .at-eyebrow {
    font-family: Athiti;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #577a6b;
    margin-bottom: 10px;
}

.at-hero h1 {
    font-family: 'Ms Madi';
    font-size: 64px;
    line-height: 66px;
    font-weight: 400;
    color: #8dc4aa;
    margin-bottom: 20px;
}

.at-hero .at-lead {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 10px;
}

.at-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.at-buttons .btn {
    margin-top: 0;
    padding: 10px 22px;
    text-decoration: none;
}

.btn.at-btn-outline {
    background: transparent;
    color: #577a6b;
    box-shadow: inset 0 0 0 1px #8dc4aa;
}

.btn.at-btn-outline:hover {
    background: #e4f4ec;
}

/* ---------- Gemeinsame Abschnitts-Köpfe ---------- */
.at-section {
    padding: 110px 10%;
}

.at-head {
    max-width: 720px;
    margin: 0 auto 55px;
    text-align: center;
}

.at-head .at-eyebrow,
.at-split .at-eyebrow {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8dc4aa;
    margin-bottom: 8px;
}

.at-head h2,
.at-split h2 {
    font-family: Athiti;
    font-size: 40px;
    line-height: 48px;
    font-weight: 500;
    color: #577a6b;
}

/* ---------- Behandlungs-Kacheln ---------- */
.at-behandlungen {
    background: #f3f9f6;
}

.at-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.at-card {
    flex: 0 1 calc((100% - 60px) / 3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    text-align: left;
    padding: 34px 32px 0;
    cursor: pointer;
    transition: transform .4s, box-shadow .4s;
}

.at-card:hover,
.at-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(87, 122, 107, .15);
}

/* Icon im Kreis – Kachel und Pop-up */
.at-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #8dc4aa;
    color: #fff;
    transition: background .4s;
}

.at-icon svg {
    width: 42px;
    height: 42px;
}

.at-card:hover .at-icon {
    background: #577a6b;
}

.at-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 20px 0 32px;
}

/* Grüne Kachel: Aufruf zur Terminvereinbarung */
.at-card-termin {
    flex: 0 1 calc((100% - 60px) / 3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 34px 32px;
    background: url(../images/lotus-bewertung.jpg) right bottom no-repeat #577a6b;
    color: #fff;
}

.at-card-termin h3 {
    font-size: 24px;
    line-height: 30px;
    font-weight: 500;
    margin-bottom: 8px;
}

.at-card-termin .btn {
    margin-top: 20px;
    padding: 10px 22px;
    background: #fff;
    color: #577a6b;
}

.at-card-termin .btn:hover {
    background: #e4f4ec;
}

.at-card h3 {
    font-size: 24px;
    line-height: 30px;
    font-weight: 500;
    color: #577a6b;
    margin-bottom: 8px;
}

.at-card p {
    flex: 1;
    margin-bottom: 18px;
}

/* main.css setzt button global grün – hier zurücksetzen */
.at-more {
    background: none;
    border: 0;
    padding: 0;
    font-family: Athiti;
    font-size: 17px;
    font-weight: 600;
    color: #4fa77d;
    cursor: pointer;
    border-bottom: 1px solid #8dc4aa;
}

.at-more::after {
    content: " →";
}

.at-more:hover,
.at-more:focus-visible {
    color: #577a6b;
}

/* ---------- Pop-up ---------- */
.at-modal {
    width: min(640px, calc(100% - 32px));
    max-width: none;
    max-height: min(88vh, 900px);
    margin: auto;
    padding: 0;
    border: 0;
    background: #fff;
    color: #3e3d40;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .2);
}

.at-modal[open] {
    animation: at-pop-in .3s ease-out;
}

.at-modal::backdrop {
    background: rgba(62, 61, 64, .5);
}

@keyframes at-pop-in {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to { opacity: 1; transform: none; }
}

.at-modal > .at-icon {
    width: 64px;
    height: 64px;
    margin: 44px 0 0 48px;
}

.at-modal > .at-icon svg {
    width: 42px;
    height: 42px;
}

.at-modal-inner {
    padding: 22px 48px 48px;
}

.at-modal h2 {
    font-family: Athiti;
    font-size: 32px;
    line-height: 38px;
    font-weight: 500;
    color: #577a6b;
}

.at-modal .at-sub {
    font-size: 19px;
    color: #8dc4aa;
    font-weight: 500;
    margin: 4px 0 20px;
}

.at-modal p {
    margin-bottom: 14px;
}

.at-modal h3 {
    font-size: 18px;
    font-weight: 600;
    color: #577a6b;
    margin: 24px 0 10px;
}

.at-modal ul {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.at-modal li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 6px;
}

.at-modal li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8dc4aa;
}

.at-hinweis {
    background: #f3f9f6;
    border-left: 3px solid #8dc4aa;
    padding: 14px 18px;
    margin: 22px 0 6px;
    font-size: 16px;
}

.at-modal .btn {
    margin-top: 22px;
    padding: 10px 22px;
    text-decoration: none;
}

.at-close {
    position: sticky;
    top: 0;
    float: right;
    width: 44px;
    height: 44px;
    margin: 0 0 -44px;
    border: 0;
    background: rgba(255, 255, 255, .9);
    color: #577a6b;
    font-size: 28px;
    line-height: 44px;
    cursor: pointer;
    z-index: 2;
}

.at-close:hover {
    background: #e4f4ec;
}

body.at-locked {
    overflow: hidden;
}

/* ---------- Technologie (Split) ---------- */
.at-split {
    display: flex;
    align-items: center;
    gap: 7%;
    max-width: 1200px;
    margin: 0 auto;
}

.at-split-img {
    flex: 0 0 46%;
}

.at-split-img img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.at-split-text p {
    font-size: 19px;
    line-height: 30px;
    margin: 18px 0 8px;
}

.at-split-text .btn {
    padding: 10px 22px;
}

/* ---------- Ablauf ---------- */
.at-ablauf {
    background: #e4f4ec;
}

/* Timeline: Desktop waagerecht, mobil senkrecht */
.at-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.at-steps li {
    position: relative;
    text-align: center;
    padding: 0 6px;
}

/* Verbindungslinie zum nächsten Schritt */
.at-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 35.5px;
    left: calc(50% + 52px);
    width: calc(100% + 30px - 104px);
    height: 1px;
    background: linear-gradient(90deg, rgba(141, 196, 170, .3), #8dc4aa 50%, rgba(141, 196, 170, .3));
}

.at-step-nr {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px #8dc4aa, 0 0 0 7px rgba(141, 196, 170, .18);
    font-size: 21px;
    font-weight: 400;
    letter-spacing: .12em;
    text-indent: .12em;
    color: #8dc4aa;
    transition: background .4s, color .4s, box-shadow .4s;
}

.at-steps li:hover .at-step-nr {
    background: #8dc4aa;
    color: #fff;
    box-shadow: inset 0 0 0 1px #8dc4aa, 0 0 0 7px rgba(141, 196, 170, .3);
}

.at-steps h3 {
    font-size: 22px;
    line-height: 28px;
    color: #577a6b;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ---------- Abschluss-CTA ---------- */
.at-cta {
    background: url(../images/lotus-bewertung.jpg) right bottom no-repeat #577a6b;
    color: #fff;
    text-align: center;
}

.at-cta h2 {
    font-family: Athiti;
    font-size: 40px;
    line-height: 48px;
    font-weight: 500;
    color: #fff;
    max-width: 760px;
    margin: 0 auto 18px;
}

.at-cta p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 30px;
}

.at-cta .at-buttons {
    justify-content: center;
    margin-top: 28px;
}

.at-cta .btn {
    background: #fff;
    color: #577a6b;
}

.at-cta .btn:hover {
    background: #e4f4ec;
}

.at-cta .btn.at-btn-outline {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 1px #fff;
}

.at-cta .btn.at-btn-outline:hover {
    background: rgba(255, 255, 255, .12);
}

/* ---------- Responsive ---------- */
@media screen and (max-width:1120px) {
    .at-hero h1 {
        font-size: 52px;
        line-height: 54px;
    }

    .at-card,
    .at-card-termin {
        flex-basis: calc((100% - 30px) / 2);
    }
}

@media screen and (max-width:768px) {
    .at-section {
        padding: 70px 5%;
    }

    .at-head {
        margin-bottom: 35px;
    }

    .at-head h2,
    .at-split h2,
    .at-cta h2 {
        font-size: 30px;
        line-height: 38px;
    }

    .at-split {
        flex-direction: column;
        gap: 30px;
    }

    .at-split-img {
        flex-basis: auto;
        width: 100%;
    }

    .at-split-img img {
        aspect-ratio: 16 / 10;
    }
}

@media screen and (max-width:639px) {
    .at-hero .slide-right img {
        height: 190px;
    }

    .at-hero .slide-left {
        padding-top: 25px;
    }

    .at-hero h1 {
        font-size: 38px;
        line-height: 40px;
        margin-bottom: 12px;
    }

    .at-hero .at-lead {
        font-size: 17px;
        line-height: 25px;
    }

    .at-cards {
        gap: 20px;
    }

    .at-card-termin {
        flex-basis: 100%;
        padding: 28px 22px;
    }

    /* Mobil: kompakt – Icon links, Text rechts */
    .at-card {
        flex-basis: 100%;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 22px 20px;
    }

    .at-card .at-icon {
        width: 52px;
        height: 52px;
    }

    .at-card .at-icon svg {
        width: 36px;
        height: 36px;
    }

    .at-card-body {
        align-items: flex-start;
        padding: 0 0 0 18px;
    }

    .at-card h3 {
        font-size: 21px;
        line-height: 26px;
    }

    .at-card p {
        margin-bottom: 10px;
    }

    .at-modal > .at-icon {
        width: 52px;
        height: 52px;
        margin: 28px 0 0 22px;
    }

    .at-modal > .at-icon svg {
        width: 36px;
        height: 36px;
    }

    .at-modal-inner {
        padding: 16px 22px 36px;
    }

    .at-modal h2 {
        font-size: 27px;
        line-height: 33px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .at-modal[open],
    .at-card,
    .at-icon {
        animation: none;
        transition: none;
    }
}

.at-buttons .btn img {
    margin-right: 8px;
    vertical-align: -2px;
}

.at-modal:focus {
    outline: none;
}

/* Timeline mobil: senkrecht mit Linie links */
@media screen and (max-width:768px) {
    .at-steps {
        grid-template-columns: 1fr;
        gap: 34px;
        max-width: 520px;
    }

    .at-steps li {
        text-align: left;
        padding: 6px 0 0 76px;
        min-height: 56px;
    }

    .at-steps li:not(:last-child)::after {
        top: 68px;
        left: 27.5px;
        width: 1px;
        height: calc(100% - 80px + 34px);
        background: #8dc4aa;
    }

    .at-step-nr {
        position: absolute;
        top: 0;
        left: 0;
        width: 56px;
        height: 56px;
        margin: 0;
        font-size: 17px;
    }

    .at-steps h3 {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 4px;
    }
}

/* =========================================================
   Landingpages (z. B. blutschwaemmchen-entfernen-coburg.html)
   ========================================================= */

.at-prose {
    max-width: 820px;
    margin: 0 auto;
}

.at-prose .at-eyebrow {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8dc4aa;
    margin-bottom: 8px;
}

.at-prose h2 {
    font-family: Athiti;
    font-size: 36px;
    line-height: 44px;
    font-weight: 500;
    color: #577a6b;
    margin-bottom: 20px;
}

.at-prose p {
    font-size: 18px;
    line-height: 29px;
    margin-bottom: 16px;
}

.at-prose .btn {
    margin-top: 10px;
    padding: 10px 22px;
}

.at-prose .at-hinweis {
    font-size: 16px;
    line-height: 25px;
}

.at-tech .at-split-text p {
    font-size: 18px;
    line-height: 29px;
    margin: 0 0 14px;
}

.at-tech .at-split-text h2 {
    margin-bottom: 18px;
}

/* Text links, Info-Box rechts */
.at-twocol {
    display: flex;
    align-items: flex-start;
    gap: 6%;
    max-width: 1200px;
    margin: 0 auto;
}

.at-twocol .at-prose {
    flex: 1;
    margin: 0;
}

.at-infobox {
    flex: 0 0 40%;
    background: #fff;
    padding: 34px 32px;
}

.at-infobox h3 {
    font-size: 19px;
    line-height: 26px;
    font-weight: 600;
    color: #577a6b;
    margin-bottom: 16px;
}

.at-infobox .at-hinweis {
    margin-bottom: 0;
}

/* Chips */
.at-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.at-chips li {
    padding: 6px 16px;
    border-radius: 999px;
    background: #e4f4ec;
    color: #577a6b;
    font-weight: 500;
}

.at-chips-links li {
    padding: 0;
    background: none;
}

.at-chips-links a {
    display: block;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px #8dc4aa;
    color: #577a6b;
    text-decoration: none;
    transition: background .4s, color .4s;
}

.at-chips-links a:hover {
    background: #8dc4aa;
    color: #fff;
}

.at-tech {
    background: #f3f9f6;
}

/* Timeline mit drei Schritten */
.at-steps.at-steps-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 1100px;
}

.at-steps-3 li:not(:last-child)::after {
    width: calc(100% + 50px - 104px);
}

.at-steps-3 p + p {
    margin-top: 10px;
}

/* FAQ-Akkordeon */
.at-faq {
    max-width: 860px;
    margin: 0 auto;
}

.at-faq details {
    background: #fff;
    margin-bottom: 12px;
}

.at-faq summary {
    position: relative;
    padding: 20px 64px 20px 28px;
    font-size: 19px;
    line-height: 26px;
    font-weight: 500;
    color: #577a6b;
    cursor: pointer;
    list-style: none;
}

.at-faq summary::-webkit-details-marker {
    display: none;
}

.at-faq summary::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px #8dc4aa;
    color: #8dc4aa;
    font-size: 22px;
    line-height: 29px;
    text-align: center;
    transition: transform .3s, background .3s, color .3s;
}

.at-faq details[open] summary::after {
    transform: rotate(45deg);
    background: #8dc4aa;
    color: #fff;
}

.at-faq summary:hover {
    color: #4fa77d;
}

.at-faq details p {
    padding: 0 28px 24px;
}

@media screen and (max-width:1120px) {
    .at-twocol {
        flex-direction: column;
        gap: 30px;
    }

    .at-infobox {
        flex-basis: auto;
        width: 100%;
    }
}

@media screen and (max-width:768px) {
    .at-prose h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .at-prose p,
    .at-tech .at-split-text p {
        font-size: 17px;
        line-height: 27px;
    }

    .at-steps.at-steps-3 {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .at-steps-3 li:not(:last-child)::after {
        width: 1px;
    }

    .at-infobox {
        padding: 26px 22px;
    }

    .at-faq summary {
        padding: 18px 56px 18px 20px;
        font-size: 17px;
        line-height: 24px;
    }

    .at-faq summary::after {
        right: 16px;
    }

    .at-faq details p {
        padding: 0 20px 20px;
    }
}

/* Header mit Hero im Seitenfluss: Der Header wächst mit dem Inhalt,
   das Video liegt als Hintergrund dahinter (statt fester Höhe + absolutem Slider) */
.at-header {
    overflow: hidden;
}

.at-header > video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: -1;
}

.at-header .single-item.at-hero {
    position: relative;
    top: auto;
    margin-top: 0;
    padding: 50px 0 70px;
}

.at-header .at-hero .slide-right img {
    height: 540px;
}

@media screen and (max-width:950px) {
    .at-header .at-hero .slide-right img {
        height: 420px;
    }
}

@media screen and (max-width:639px) {
    .at-header .single-item.at-hero {
        padding: 30px 0 40px;
    }

    .at-header .at-hero .slide-right img {
        height: 260px;
    }
}
