/*
 * Styles for blocks added after the Tailwind build (features, faq)
 * and for lists used inside ACF textarea content.
 * Colors follow tailwind.config.js: primary #00A5E6, scorpion #606060, porcelain #EAECEE.
 */

/* Features */
.features__header {
    max-width: 48rem;
    margin-bottom: 2.5rem;
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.features__item {
    position: relative;
}

.features--cards .features__item {
    padding: 2rem;
    background-color: #EAECEE;
    border-top: 3px solid #00A5E6;
}

.features--cards.bg-porcelain .features__item {
    background-color: #fff;
}

.features__number {
    display: block;
    margin-bottom: 1rem;
    color: #00A5E6;
    font-size: 1.875rem;
    line-height: 1;
}

.features__title {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.features__text {
    margin-top: .75rem;
}

.features--checklist .features__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #c0c5cb;
}

.features--checklist .features__title {
    font-size: 1.125rem;
}

.features__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #00A5E6;
    color: #fff;
    font-size: 1.5rem;
}

.features__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.button.button--ghost {
    background-color: transparent;
    color: #00A5E6;
    box-shadow: inset 0 0 0 1px #00A5E6;
}

.button.button--ghost:hover {
    background-color: #00A5E6;
    color: #fff;
}

@media (min-width: 768px) {
    .features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .features--checklist .features__grid {
        column-gap: 3rem;
        row-gap: 0;
    }
}

@media (min-width: 1024px) {
    .features--cards .features__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .features--checklist .features__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* FAQ */
.faq__inner {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.faq__item {
    border-bottom: 1px solid #c0c5cb;
}

.faq__item:first-child {
    border-top: 1px solid #c0c5cb;
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    font-size: 1.125rem;
    line-height: 1.75rem;
    cursor: pointer;
    list-style: none;
    transition: color .2s;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question:hover {
    color: #00A5E6;
}

.faq__icon {
    flex-shrink: 0;
    color: #00A5E6;
    font-size: 1.5rem;
    transition: transform .2s;
}

.faq__item[open] .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    padding-bottom: 1.5rem;
    padding-right: 2.5rem;
}

@media (min-width: 1024px) {
    .faq__question {
        font-size: 1.25rem;
    }
}

/* Lists inside ACF textarea content (image + content blocks) */
.content-steps {
    counter-reset: step;
}

.content-steps li {
    position: relative;
    padding: .5rem 0 .5rem 2.75rem;
    counter-increment: step;
}

.content-steps li::before {
    content: counter(step);
    position: absolute;
    top: .4rem;
    left: 0;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: #00A5E6;
    color: #fff;
    font-size: .875rem;
}

.content-note {
    color: #000;
}

/* Contact labels in footer */
.contact-item__label {
    display: block;
    margin-top: 1rem;
    color: #606060;
    font-size: 1rem;
    line-height: 1.5rem;
}

.contact-item__label:first-child {
    margin-top: 0;
}

/* Links inside contact form (privacy policy consent) */
.wpcf7 label a,
.wpcf7 .wpcf7-list-item-label a,
.wpcf7-acceptance a {
    text-decoration: underline;
}

.wpcf7 label a:hover,
.wpcf7 .wpcf7-list-item-label a:hover,
.wpcf7-acceptance a:hover {
    color: #00A5E6;
}

/* Header menu: keep German labels on one line on tablet / small laptop widths */
.nav-menu__link,
.nav-menu .button {
    white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .nav-menu {
        column-gap: 1rem;
        font-size: .875rem;
    }

    .nav-menu .button {
        padding: .625rem 1.5rem;
        font-size: .875rem;
    }
}

/* Image + text blocks: wider text column for longer German copy */
@media (min-width: 1024px) {
    .media-content__image {
        width: 58.333333%;
    }

    .media-content__text {
        width: 36%;
    }
}

@media (min-width: 1280px) {
    .media-content__image {
        width: 62%;
    }

    .media-content__text {
        width: 33%;
    }
}

/* German compound words: allow hyphenation where columns are narrow */
@media (max-width: 639px) {
    .features__title,
    .features__text,
    .faq__question,
    .media-content__text,
    .content-steps li {
        -webkit-hyphens: auto;
        hyphens: auto;
        overflow-wrap: break-word;
    }
}

/* Mobile spacing and contact links */
@media (max-width: 767px) {
    .features__header {
        margin-bottom: 1.5rem;
    }

    .features--cards .features__item {
        padding: 1.5rem;
    }

    .features__buttons .button {
        width: 100%;
        text-align: center;
    }

    #contact a[href^="mailto:"] {
        font-size: 1.05rem;
        overflow-wrap: anywhere;
    }
}

/* One-page anchors: keep section headings below the fixed header */
section[id],
footer [id] {
    scroll-margin-top: 5rem;
}

@media (min-width: 768px) {
    section[id],
    footer [id] {
        scroll-margin-top: 6rem;
    }
}
