/* =========================================================
   BOGNEREI – STARTSEITE
   Datei: /bognerei-neu/css/startseite.css
========================================================= */

/* =========================================================
   VORTEILSLEISTE
========================================================= */

.home-benefits {
    width: 100%;
    border-bottom: 1px solid rgba(34, 51, 41, 0.10);
    background: #f5f1e8;
}

.home-benefits-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-benefit {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 30px 24px;
    border-right: 1px solid rgba(34, 51, 41, 0.10);
}

.home-benefit:first-child {
    border-left: 1px solid rgba(34, 51, 41, 0.10);
}

.home-benefit-icon {
    width: 40px;
    height: 40px;
    color: #b19956;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-benefit h2 {
    margin: 0 0 7px;
    color: #223329;
    font-size: 1rem;
    line-height: 1.3;
}

.home-benefit p {
    margin: 0;
    color: #59655d;
    font-size: 0.87rem;
    line-height: 1.55;
}


/* =========================================================
   EINLEITUNG
========================================================= */

.home-intro {
    width: min(860px, calc(100% - 48px));
    margin: 0 auto;
    padding: 82px 0 56px;
    text-align: center;
}

.home-intro .eyebrow {
    margin: 0 0 14px;
    color: #a0863f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-intro h1 {
    max-width: 820px;
    margin: 0 auto;
    color: #223329;
    font-size: clamp(2.2rem, 5vw, 4.25rem);
    line-height: 1.08;
    text-wrap: balance;
}

.home-intro-text {
    max-width: 720px;
    margin: 22px auto 0;
    color: #59655d;
    font-size: 1.05rem;
    line-height: 1.75;
}

.home-intro-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}


/* =========================================================
   SCHALTFLÄCHEN
========================================================= */

.home-button,
.home-card-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.home-button:hover,
.home-button:focus-visible,
.home-card-button:hover,
.home-card-button:focus-visible {
    transform: translateY(-2px);
}

.home-button-primary,
.home-card-button {
    background: #223329;
    color: #ffffff;
}

.home-button-primary:hover,
.home-button-primary:focus-visible,
.home-card-button:hover,
.home-card-button:focus-visible {
    background: #30473a;
    color: #ffffff;
}

.home-button-secondary {
    border-color: #223329;
    background: transparent;
    color: #223329;
}

.home-button-secondary:hover,
.home-button-secondary:focus-visible {
    background: #223329;
    color: #ffffff;
}


/* =========================================================
   DREI HAUPTBEREICHE
========================================================= */

.home-portals {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 0 0 88px;
}

.home-portal-card {
    overflow: hidden;
    border: 1px solid rgba(34, 51, 41, 0.16);
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(34, 51, 41, 0.10);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.home-portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(34, 51, 41, 0.14);
}

.home-portal-image {
    display: block;
    overflow: hidden;
}

.home-portal-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-portal-card:hover .home-portal-image img {
    transform: scale(1.025);
}

.home-portal-content {
    padding: 28px 28px 30px;
}

.home-portal-label {
    margin: 0 0 9px;
    color: #a0863f;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-portal-content h2 {
    margin: 0 0 14px;
    color: #223329;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.2;
}

.home-portal-content p:not(.home-portal-label) {
    margin: 0 0 24px;
    color: #566159;
    line-height: 1.68;
}


/* =========================================================
   MEIN ERSTER BOGEN – ÜBERARBEITET
========================================================= */

.home-story {
    position: relative;
    width: min(1100px, calc(100% - 64px));
    margin: 20px auto 96px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(360px, 0.92fr);
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(177, 153, 86, 0.48);
    border-radius: 6px;
    background: #f5f1e8;
    box-shadow: 0 18px 44px rgba(34, 51, 41, 0.13);
}

.home-story::before {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    content: "";
    background: linear-gradient(
        90deg,
        #b19956,
        #d8c47d,
        #b19956
    );
}

.home-story-content {
    position: relative;
    z-index: 2;
    padding: clamp(44px, 5vw, 72px);
    background: linear-gradient(
        135deg,
        rgba(245, 241, 232, 1) 0%,
        rgba(235, 242, 238, 0.95) 100%
    );
}

.home-story-content::after {
    position: absolute;
    right: 34px;
    bottom: 28px;
    width: 110px;
    height: 110px;
    content: "";
    opacity: 0.05;
    border: 2px solid #223329;
    border-radius: 50%;
    pointer-events: none;
}

.home-story-content .eyebrow {
    margin: 0 0 12px;
    color: #a0863f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-story-content h2 {
    position: relative;
    margin: 0 0 32px;
    color: #223329;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.05;
}

.home-story-content h2::after {
    display: block;
    width: 72px;
    height: 3px;
    margin-top: 18px;
    content: "";
    background: #b19956;
}

.home-story-content p {
    max-width: 680px;
    margin: 0 0 18px;
    color: #435148;
    font-size: 1rem;
    line-height: 1.78;
}

.home-story-content p:first-of-type::first-letter {
    float: left;
    margin: 7px 9px 0 0;
    color: #b19956;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 0.8;
}

.home-story-content .home-button {
    position: relative;
    z-index: 2;
    margin-top: 14px;
}

.home-story-image {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: #f5f1e8;
}

.home-story-image::before {
    display: none;
    content: none;
}

.home-story-image::after {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 24px;
    width: 82px;
    height: 82px;
    content: "";
    border: 1px solid rgba(177, 153, 86, 0.42);
    border-radius: 50%;
    box-shadow:
        0 0 0 10px rgba(177, 153, 86, 0.07),
        0 0 0 20px rgba(177, 153, 86, 0.035);
    pointer-events: none;
}

.home-story-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 620px;
    padding: clamp(22px, 3vw, 46px);
    object-fit: contain;
    object-position: center;
    background: #f5f1e8;
    transform: none;
    transition: transform 0.5s ease;
}

.home-story:hover .home-story-image img {
    transform: scale(1.015);
}


/* =========================================================
   BUCHBEREICH
========================================================= */

.home-book {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 84px max(28px, calc((100% - 1180px) / 2));
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    align-items: center;
    gap: 70px;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        rgba(245, 241, 232, 0.98),
        rgba(235, 242, 238, 0.94)
    );
}

.home-book::after {
    position: absolute;
    right: -60px;
    bottom: -40px;
    width: 520px;
    height: 300px;
    content: "";
    opacity: 0.14;
    background: repeating-linear-gradient(
        150deg,
        transparent 0 34px,
        #223329 35px 37px,
        transparent 38px 72px
    );
    pointer-events: none;
}

.home-book-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.home-book-content .eyebrow {
    margin: 0 0 14px;
    color: #a0863f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-book-content h2 {
    margin: 0 0 20px;
    color: #223329;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
    text-wrap: balance;
}

.home-book-content > p:not(.eyebrow) {
    max-width: 610px;
    margin: 0 0 28px;
    color: #536158;
    font-size: 1rem;
    line-height: 1.75;
}

.home-book-image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.home-book-image img {
    display: block;
    width: min(280px, 100%);
    height: auto;
    filter: drop-shadow(0 18px 24px rgba(34, 51, 41, 0.22));
    transform: rotate(1.5deg);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {

    .home-benefits-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-benefit:nth-child(2) {
        border-right: 0;
    }

    .home-portals {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .home-story {
        width: min(720px, calc(100% - 48px));
        grid-template-columns: 1fr;
    }

    .home-story-image {
        order: -1;
    }

    .home-story-image img {
        min-height: 390px;
        max-height: 480px;
        padding: 28px;
        object-position: center;
    }

    .home-book {
        grid-template-columns: 1fr;
        gap: 44px;
        text-align: center;
    }

    .home-book-content,
    .home-book-content > p:not(.eyebrow) {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 720px) {

    .home-benefits-inner {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .home-benefit,
    .home-benefit:first-child {
        border-right: 0;
        border-bottom: 1px solid rgba(34, 51, 41, 0.10);
        border-left: 0;
        padding: 24px 20px;
    }

    .home-intro {
        width: min(100% - 40px, 860px);
        padding: 58px 0 42px;
    }

    .home-intro-actions {
        flex-direction: column;
    }

    .home-button {
        width: 100%;
    }

    .home-portals {
        width: min(100% - 40px, 720px);
        padding-bottom: 62px;
    }

    .home-portal-content {
        padding: 24px 22px 26px;
    }

    .home-story {
        width: calc(100% - 32px);
        margin-bottom: 64px;
    }

    .home-story-content {
        padding: 38px 24px 44px;
    }

    .home-story-content h2 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .home-story-content p {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .home-story-content p:first-of-type::first-letter {
        font-size: 3rem;
    }

    .home-story-image img {
        min-height: 290px;
        padding: 18px;
    }

    .home-story-content .home-button {
        width: 100%;
    }

    .home-book {
        padding: 58px 20px;
    }

    .home-book-image img {
        width: min(230px, 76vw);
    }
}

@media (prefers-reduced-motion: reduce) {

    .home-story-image img {
        transition: none;
    }

    .home-story:hover .home-story-image img {
        transform: none;
    }
}

/* =========================================================
   ABSCHLIESSENDE SICHERUNG: BILDBEREICH IMMER HELL
========================================================= */

#main-content .home-story .home-story-image {
    background-color: #f5f1e8 !important;
    background-image: none !important;
}

#main-content .home-story .home-story-image::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

#main-content .home-story .home-story-image img {
    background-color: #f5f1e8 !important;
    background-image: none !important;
    object-fit: contain !important;
    object-position: center !important;
}

