/* ============================================================
   SECTIONS.CSS - Features, How-It-Works, Trust, Testimonials,
                  FAQ, CTA-Sektion, Blog-Preview
   ============================================================ */

/* === TRUST-BAR === */
.trust-bar {
    padding: var(--sp-10) 0;
    border-bottom: 1px solid var(--color-border);
}

.trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-10);
    flex-wrap: wrap;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    color: var(--gray-500);
    font-size: var(--fs-sm);
    font-weight: 500;
}

.trust-bar__item svg {
    width: 20px;
    height: 20px;
    color: var(--teal-600);
    flex-shrink: 0;
}

/* === FEATURES === */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

.features__grid--two-col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 780px;
    margin: 0 auto;
}

/* Gruppen-Intro (Label + Titel + Beschreibung über den Kacheln) */
.features__group {
    margin-bottom: var(--sp-12);
}

.features__group-intro {
    text-align: center;
    margin-bottom: var(--sp-8);
}

.features__group-label {
    display: inline-block;
    background: var(--teal-100);
    color: var(--teal-700);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: var(--sp-1) var(--sp-4);
    border-radius: var(--r-full);
    margin-bottom: var(--sp-3);
}

.features__group-title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--sp-2);
}

.features__group-desc {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* Bridge-Trenner zwischen den zwei Gruppen */
.features__bridge {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    margin: var(--sp-12) 0;
}

.features__bridge-line {
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.features__bridge-text {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--gray-500);
}

.feature-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--r-xl);
    padding: var(--sp-8);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    border-color: var(--teal-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    background: var(--teal-100);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
    margin-bottom: var(--sp-5);
}

.feature-card__icon svg {
    width: 26px;
    height: 26px;
}

.feature-card__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--sp-3);
}

.feature-card__text {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* === HOW IT WORKS === */
.how-it-works__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8);
    position: relative;
}

/* Verbindungslinie zwischen Steps */
.how-it-works__steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.66% + 28px);
    right: calc(16.66% + 28px);
    height: 2px;
    background: linear-gradient(90deg, var(--teal-300), var(--teal-500));
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.step__number {
    width: 56px;
    height: 56px;
    background: var(--teal-600);
    color: white;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    font-weight: 800;
    margin: 0 auto var(--sp-5);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.step__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--sp-3);
}

.step__text {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

/* === TESTIMONIALS === */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

.testimonial-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--r-xl);
    padding: var(--sp-8);
    transition: box-shadow 0.2s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-card__stars {
    display: flex;
    gap: 3px;
    margin-bottom: var(--sp-4);
    color: #f59e0b;
}

.testimonial-card__stars svg {
    width: 18px;
    height: 18px;
}

.testimonial-card__quote {
    font-size: var(--fs-base);
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: var(--sp-6);
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--r-full);
    background: var(--teal-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--teal-700);
    flex-shrink: 0;
}

.testimonial-card__name {
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--gray-900);
}

.testimonial-card__role {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* === FAQ === */
.faq__list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item.is-open {
    border-color: var(--teal-300);
}

.faq-item__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-5) var(--sp-6);
    background: white;
    text-align: left;
    gap: var(--sp-4);
    transition: background 0.15s ease;
}

.faq-item__toggle:hover {
    background: var(--teal-50);
}

.faq-item.is-open .faq-item__toggle {
    background: var(--teal-50);
}

.faq-item__question {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
}

.faq-item__icon {
    width: 28px;
    height: 28px;
    border-radius: var(--r-full);
    background: var(--teal-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.3s ease;
}

.faq-item.is-open .faq-item__icon {
    background: var(--teal-600);
    color: white;
    transform: rotate(45deg);
}

.faq-item__icon svg {
    width: 14px;
    height: 14px;
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-item__answer {
    max-height: 400px;
}

.faq-item__answer-inner {
    padding: var(--sp-4) var(--sp-6) var(--sp-5);
    font-size: var(--fs-base);
    color: var(--color-text-muted);
    line-height: 1.75;
    border-top: 1px solid var(--teal-100);
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-900) 100%);
    padding: var(--sp-20) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 70% 30%, rgba(94, 234, 212, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section__content {
    position: relative;
    z-index: 1;
}

.cta-section__title {
    font-size: var(--fs-4xl);
    font-weight: 800;
    color: white;
    margin-bottom: var(--sp-4);
    line-height: 1.15;
}

.cta-section__subtitle {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--sp-8);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.cta-section__fine {
    margin-top: var(--sp-5);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.45);
}

/* === BLOG PREVIEW (auf Startseite) === */
.blog-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

.blog-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.blog-card__thumb {
    height: 180px;
    background: linear-gradient(135deg, var(--teal-800), var(--teal-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: var(--fs-sm);
}

.blog-card__thumb svg {
    width: 48px;
    height: 48px;
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card__body {
    padding: var(--sp-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.blog-card__cat {
    color: var(--teal-700);
    font-weight: 600;
}

.blog-card__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.4;
    margin-bottom: var(--sp-3);
}

.blog-card__excerpt {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: var(--sp-5);
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--teal-700);
    transition: gap 0.15s ease;
}

a.blog-card__link::after {
    content: '';
    position: absolute;
    inset: 0;
}

.blog-card__link:hover {
    gap: var(--sp-3);
}

.blog-card__link svg {
    width: 14px;
    height: 14px;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .features__grid,
    .testimonials__grid,
    .blog-preview__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-it-works__steps {
        grid-template-columns: 1fr;
        gap: var(--sp-6);
    }

    .how-it-works__steps::before {
        display: none;
    }

    .step { text-align: left; }
    .step__number { margin: 0 0 var(--sp-4); }
    .step__text { margin: 0; max-width: none; }
}

@media (max-width: 640px) {
    .features__grid,
    .testimonials__grid,
    .blog-preview__grid {
        grid-template-columns: 1fr;
    }

    .features__bridge-text {
        white-space: normal;
        text-align: center;
    }

    .features__group:last-child {
        margin-bottom: 0;
    }

    .cta-section__title {
        font-size: var(--fs-3xl);
    }

    .cta-section__actions {
        flex-direction: column;
    }

    .cta-section__actions .btn {
        width: 100%;
    }

    .trust-bar__inner {
        flex-direction: column;
        gap: var(--sp-5);
    }
}

/* === PAGE HERO (schlanker Hero für Landingpages) === */
.page-hero {
    padding-top: 68px; /* Navhöhe */
    background: linear-gradient(135deg, var(--teal-800) 0%, var(--teal-900) 50%, var(--teal-950) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.07) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--color-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero__container {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--sp-16) var(--sp-6) var(--sp-20);
    position: relative;
    z-index: 1;
    color: white;
}

.page-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--teal-200);
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-full);
    margin-bottom: var(--sp-6);
    letter-spacing: 0.04em;
}

.page-hero__title {
    font-size: var(--fs-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--sp-6);
    letter-spacing: -0.02em;
}

.page-hero__title span {
    color: var(--teal-300);
}

.page-hero__subtitle {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: var(--sp-8);
}

@media (max-width: 600px) {
    .page-hero__title { font-size: var(--fs-4xl); }
}

/* ============================================================
   NOTIFY MODAL - Wartelisten-Overlay
   ============================================================ */
.notify-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
}

.notify-modal[hidden] {
    display: none;
}

.notify-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.notify-modal__card {
    position: relative;
    background: #fff;
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-lg), 0 24px 48px rgba(0, 0, 0, .14);
    padding: var(--sp-10) var(--sp-8);
    max-width: 480px;
    width: 100%;
    text-align: center;
    animation: notifyCardIn .22s ease;
}

@keyframes notifyCardIn {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);   }
}

.notify-modal__close {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--r-md);
    color: var(--gray-400);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.notify-modal__close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.notify-modal__icon {
    font-size: 3rem;
    margin-bottom: var(--sp-4);
    display: block;
}

.notify-modal__title {
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 var(--sp-3);
    line-height: 1.25;
}

.notify-modal__subtitle {
    color: var(--gray-500);
    font-size: var(--fs-base);
    line-height: 1.65;
    margin: 0 0 var(--sp-6);
}

/* Formular-Zeile: Input + Button nebeneinander */
.notify-modal__field {
    display: flex;
    gap: var(--sp-2);
    margin-bottom: var(--sp-3);
}

.notify-modal__input {
    flex: 1;
    min-width: 0;
    padding: var(--sp-3) var(--sp-4);
    border: 2px solid var(--color-border);
    border-radius: var(--r-lg);
    font-size: var(--fs-base);
    font-family: var(--font-sans);
    color: var(--gray-900);
    outline: none;
    transition: border-color .2s;
}

.notify-modal__input:focus {
    border-color: var(--teal-500);
}

.notify-modal__submit {
    white-space: nowrap;
    flex-shrink: 0;
}

.notify-modal__error {
    color: #dc2626;
    font-size: var(--fs-sm);
    text-align: left;
    margin: 0 0 var(--sp-2);
}

.notify-modal__privacy {
    font-size: var(--fs-xs);
    color: var(--gray-400);
    margin: var(--sp-6) 0 0;
}

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

/* Success-State */
.notify-modal__success {
    padding: var(--sp-4) 0;
}

@media (max-width: 480px) {
    .notify-modal__card {
        padding: var(--sp-8) var(--sp-5);
    }

    .notify-modal__field {
        flex-direction: column;
    }
}

