/*
|--------------------------------------------------------------------------
| CONTENT-SECTIONS.CSS
|--------------------------------------------------------------------------
|
| Feinschliff für die dynamischen Startseitenbereiche Hero, Über mich und
| Fruchtkorb sowie die gemeinsamen Abschnittstrenner.
|
*/

/* ==========================================================================
   Hero
   ========================================================================== */

.hero--text-only .hero__container {
    grid-template-columns: minmax(0, 820px);
    justify-content: start;
    min-height: 520px;
}

.hero--text-only .hero__content {
    max-width: 820px;
}

.hero--has-image {
    position: relative;
    min-height: 800px;
}

.hero--has-image .hero__container {
    min-height: 800px;
    grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
    align-items: center;
}

.hero--has-image .hero__visual {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    background-color: var(--color-background);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero--has-image .hero__visual img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    filter: none;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.hero--has-image::before {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 8, 20, 0.96) 0%, rgba(8, 8, 20, 0.88) 34%, rgba(8, 8, 20, 0.48) 66%, rgba(8, 8, 20, 0.22) 100%),
        linear-gradient(180deg, rgba(8, 8, 20, 0.12), rgba(8, 8, 20, 0.58));
}

/* ==========================================================================
   Über mich
   ========================================================================== */

.about__container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
}

.about__content {
    min-width: 0;
}

.about__header {
    max-width: 760px;
    margin-bottom: var(--space-6);
}

.about__eyebrow,
.community-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 0;
    margin-bottom: var(--space-4);
    padding: 0;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: normal;
    text-transform: none;
    background: none;
    border: 0;
    border-radius: 0;
}

.about__eyebrow::before {
    content: "👋";
    font-size: 1.05em;
}

.about__title,
.community-section__title {
    margin: 0 0 var(--space-4);
    color: var(--color-text);
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.about__description,
.community-section__description {
    max-width: 760px;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.about__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: 0;
}

.about__fact {
    align-items: center;
    min-height: 6.5rem;
    padding-block: var(--space-3);
}

.about__fact-icon {
    flex-basis: 2.8rem;
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.8rem;
    background: none;
    border: 0;
    border-radius: 0;
}

.about__visual {
    width: 100%;
    max-width: 500px;
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin-top: 3.1rem;
    justify-self: end;
    overflow: hidden;
    border-radius: 1.5rem;
}

.about__visual--image {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.about__visual--image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.about__visual--fallback strong {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.about__visual-icons {
    font-size: 1.6rem;
}

/* ==========================================================================
   Fruchtkorb
   ========================================================================== */

.community-section__container {
    display: block;
    width: 100%;
}

.community-section__intro {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
}

.community-section__content {
    width: 100%;
    max-width: 760px;
    min-width: 0;
}

.community-section__eyebrow::before {
    content: "🍇";
    font-size: 1.05em;
}

.community-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.community-section__visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-height: 0;
    aspect-ratio: 4 / 3;
    justify-self: end;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 1.5rem;
    background: rgba(17, 17, 34, 0.62);
}

.community-section__visual--fallback {
    background:
        radial-gradient(circle at 50% 55%, rgba(139, 92, 246, 0.16), transparent 55%),
        rgba(7, 8, 24, 0.54);
}

.community-section__fruit {
    position: absolute;
    z-index: 2;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.28));
}

.community-section__fruit--one {
    left: 14%;
    bottom: 28%;
    transform: rotate(-9deg);
}

.community-section__fruit--two {
    left: 34%;
    bottom: 25%;
}

.community-section__fruit--three {
    right: 20%;
    bottom: 25%;
    transform: rotate(8deg);
}

.community-section__fruit--four {
    right: 7%;
    bottom: 31%;
    transform: rotate(12deg);
}

.community-section__basket {
    position: absolute;
    right: 14%;
    bottom: 8%;
    left: 14%;
    z-index: 1;
    display: block;
    height: 4.6rem;
    overflow: hidden;
    color: #8b5a2b;
    font-size: 11rem;
    line-height: 0.15;
    text-align: center;
    transform: scaleY(0.58);
    transform-origin: bottom;
    opacity: 0.82;
}

.community-section__features {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.community-section__feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
    min-height: 7rem;
    padding: var(--space-4);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: var(--radius-large);
    background: rgba(17, 17, 34, 0.72);
    box-shadow: var(--shadow-small);
}

.community-section__icon {
    display: grid;
    place-items: center;
    flex: 0 0 2.8rem;
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.8rem;
}

.community-section__feature h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}

.community-section__feature p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.community-section__visual--image {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.community-section__visual--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq__eyebrow {
    display: inline-block;
    margin-bottom: var(--space-4);
}

.faq__title {
    margin-top: 0;
    margin-bottom: var(--space-3);
}

/* ==========================================================================
   Bereichstrennung
   ========================================================================== */

.main__section + .main__section,
.main__section.contact {
    position: relative;
}

.main__section + .main__section::before,
.main__section.contact::after {
    content: "";
    position: absolute;
    right: clamp(1rem, 4vw, 2rem);
    left: clamp(1rem, 4vw, 2rem);
    height: 1px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.18) 18%,
        rgba(139, 92, 246, 0.42) 42%,
        rgba(59, 130, 246, 0.38) 62%,
        rgba(59, 130, 246, 0.16) 82%,
        transparent 100%
    );
}

.main__section + .main__section::before {
    top: 0;
}

.main__section.contact::after {
    bottom: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1050px) {
    .community-section__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero--has-image .hero__container,
    .about__container,
    .community-section__intro {
        grid-template-columns: 1fr;
    }

    .hero--has-image::before {
        background: rgba(8, 8, 20, 0.72);
    }

    .about__visual,
    .community-section__visual {
        width: min(100%, 420px);
        margin-top: var(--space-2);
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .hero--text-only .hero__container,
    .hero--has-image,
    .hero--has-image .hero__container {
        min-height: auto;
    }

    .hero--has-image .hero__visual {
        opacity: 0.72;
    }

    .about__facts,
    .community-section__features {
        grid-template-columns: 1fr;
    }
}
