html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body.bookreise-home {
    margin: 0;
    min-height: 100vh;
    background-color: #8e745f;
    background-image:
        linear-gradient(rgba(63, 43, 28, 0.46), rgba(63, 43, 28, 0.36)),
        url('/uploads/images/buchreise-hintergrund-9395396ab9.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #2d241d;
}

.home-landing {
    max-width: var(--bookreise-page-max-width-wide, 1280px);
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.home-stack {
    display: grid;
    gap: 1.5rem;
    overflow-x: clip;
}

.home-panel {
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(127, 95, 65, 0.16);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(38, 24, 12, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-hero {
    padding: 2rem;
    position: relative;
    z-index: 3;
}

.home-kicker {
    margin: 0 0 0.75rem;
    color: #7b5435;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-title {
    margin: 0;
    color: #4d3420;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.05;
}

.home-hero-text p {
    margin: 1rem 0 0;
    max-width: 48rem;
    font-size: 1.02rem;
    line-height: 1.45;
}

.home-hero-text p:first-child {
    margin-top: 1.1rem;
    font-size: 1.15rem;
}

.home-hero-actions {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.4rem;
    max-width: 34rem;
}

@media (display-mode: standalone) {
    [data-pwa-install-cta] {
        display: none !important;
    }
}

.home-install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    position: relative;
    z-index: 4;
}

.home-install-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(90, 60, 34, 0.2);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(132, 97, 69, 0.98), rgba(108, 74, 49, 0.98));
    box-shadow: 0 14px 30px rgba(38, 24, 12, 0.14);
    color: #fbf4ee;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.home-install-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(38, 24, 12, 0.18);
    filter: brightness(1.04);
}

.home-install-button:focus-visible {
    outline: 3px solid rgba(77, 52, 32, 0.32);
    outline-offset: 3px;
}

.home-install-button:disabled,
.home-install-button.is-disabled {
    background: linear-gradient(180deg, rgba(204, 191, 180, 0.98), rgba(175, 160, 147, 0.98));
    box-shadow: none;
    color: rgba(74, 56, 43, 0.78);
    cursor: not-allowed;
    filter: none;
    transform: none;
}

.home-install-button:disabled:hover,
.home-install-button.is-disabled:hover {
    box-shadow: none;
    filter: none;
    transform: none;
}

.home-install-info {
    align-self: center;
}

.home-install-info .global-info__tooltip {
    width: min(23rem, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
}

.home-install-tooltip-title {
    display: block;
    margin-bottom: 0.45rem;
    color: #4d3420;
    font-size: 0.96rem;
}

.home-install-tooltip-text {
    display: block;
    color: #5b4431;
    font-size: 0.95rem;
    line-height: 1.45;
}

.home-push-section {
    margin-top: 1rem;
}

.home-push-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.05rem;
    border: 1px solid rgba(127, 95, 65, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #4d3420;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.home-push-button:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(127, 95, 65, 0.42);
}

.home-push-button:focus-visible {
    outline: 3px solid rgba(77, 52, 32, 0.32);
    outline-offset: 3px;
}

.home-push-button--active {
    background: rgba(106, 69, 40, 0.1);
    border-color: rgba(106, 69, 40, 0.28);
    color: #6a4528;
}

.home-push-button--dim {
    opacity: 0.38;
    cursor: default;
    pointer-events: none;
}

.home-push-button--dim:hover {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(127, 95, 65, 0.22);
}

.home-install-guide {
    margin: 0;
    color: #5a4432;
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 34rem;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.home-panel--wide {
    grid-column: 1 / -1;
}

.home-panel h2 {
    margin: 0 0 0.9rem;
    color: #4d3420;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
}

.home-panel p {
    margin: 0;
    line-height: 1.45;
}

.home-panel p + p {
    margin-top: 1rem;
}

.home-panel strong {
    color: #5a3c22;
}

.home-panel a:not([class]) {
    color: #7b4c2a;
    text-decoration-color: rgba(123, 76, 42, 0.45);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

.home-panel a:not([class]):hover {
    color: #5c3519;
    text-decoration-color: rgba(92, 53, 25, 0.7);
}

.home-panel__edit {
    margin-top: 1.1rem;
}

.home-panel__edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.55rem 1.2rem;
    border: 1px solid rgba(90, 60, 34, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: #5a3c22;
    font: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.home-panel__edit-btn:hover {
    background: rgba(255, 255, 255, 0.78);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(38, 24, 12, 0.14);
}

.home-panel__edit-btn:focus-visible {
    outline: 3px solid rgba(77, 52, 32, 0.32);
    outline-offset: 3px;
}

.home-content-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(45, 36, 29, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

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

.home-content-modal__dialog {
    width: min(40rem, 100%);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #fffaf5;
    border-radius: 1.25rem;
    box-shadow: 0 28px 70px rgba(38, 24, 12, 0.32);
}

.home-content-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 0.5rem;
}

.home-content-modal__title {
    margin: 0;
    color: #4d3420;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
}

.home-content-modal__close {
    border: 0;
    background: transparent;
    color: #5a3c22;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.home-content-modal__body {
    display: grid;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
}

.home-content-modal__label {
    font-weight: 700;
    color: #4d3420;
    font-size: 0.92rem;
}

.home-content-modal__textarea {
    width: 100%;
    min-height: 16rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(90, 60, 34, 0.32);
    border-radius: 0.75rem;
    background: #fff;
    color: #2d241d;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
    box-sizing: border-box;
}

.home-content-modal__textarea:focus-visible {
    outline: 3px solid rgba(77, 52, 32, 0.28);
    outline-offset: 2px;
}

.home-content-modal__hint {
    margin: 0;
    color: #6b5340;
    font-size: 0.85rem;
    line-height: 1.45;
}

.home-content-modal__hint code {
    background: rgba(90, 60, 34, 0.1);
    border-radius: 0.3rem;
    padding: 0.05rem 0.35rem;
    font-size: 0.82rem;
}

.home-content-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem 1.5rem;
}

.home-content-modal__cancel,
.home-content-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.home-content-modal__cancel {
    border: 1px solid rgba(90, 60, 34, 0.28);
    background: rgba(255, 255, 255, 0.6);
    color: #5a3c22;
}

.home-content-modal__submit {
    border: 1px solid rgba(90, 60, 34, 0.2);
    background: linear-gradient(180deg, rgba(132, 97, 69, 0.98), rgba(108, 74, 49, 0.98));
    color: #fbf4ee;
    box-shadow: 0 14px 30px rgba(38, 24, 12, 0.14);
}

.home-content-modal__cancel:hover,
.home-content-modal__submit:hover {
    transform: translateY(-1px);
}

.home-content-modal__submit:hover {
    box-shadow: 0 18px 32px rgba(38, 24, 12, 0.18);
    filter: brightness(1.04);
}

.home-content-modal__submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.home-content-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 4100;
    transform: translate(-50%, 1rem);
    opacity: 0;
    pointer-events: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    background: #3f2b1c;
    color: #fbf4ee;
    font-size: 0.92rem;
    box-shadow: 0 16px 36px rgba(38, 24, 12, 0.28);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-content-toast--visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.home-content-toast--error {
    background: #7a2a22;
}

.home-community-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.35rem;
}

.home-community-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.82rem;
    padding: 0.66rem 1.2rem 0.66rem 0.72rem;
    box-sizing: border-box;
    max-width: 100%;
    border: 1px solid rgba(90, 60, 34, 0.22);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(132, 97, 69, 0.96), rgba(108, 74, 49, 0.96));
    box-shadow: 0 12px 24px rgba(38, 24, 12, 0.14);
    color: #fbf4ee;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.home-community-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(38, 24, 12, 0.18);
    filter: brightness(1.04);
}

.home-community-button:focus-visible {
    outline: 3px solid rgba(77, 52, 32, 0.35);
    outline-offset: 3px;
}

.home-community-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.95rem;
    background: rgba(250, 240, 230, 0.92);
    box-shadow: inset 0 0 0 1px rgba(110, 76, 51, 0.12);
    color: #6a4528;
    flex-shrink: 0;
}

.home-community-button svg {
    width: 1.4rem;
    height: 1.4rem;
}

.home-community-button--whatsapp svg {
    width: 1.5rem;
    height: 1.5rem;
}

.home-community-button--discord .home-community-button__icon {
    width: 2.7rem;
    height: 2.7rem;
    background: rgba(250, 240, 230, 0.96);
    box-shadow: inset 0 0 0 1px rgba(110, 76, 51, 0.16);
    color: #5f3d24;
}

.home-community-button--discord svg {
    width: 1.58rem;
    height: 1.26rem;
}

.home-community-button--instagram svg {
    width: 1.46rem;
    height: 1.46rem;
}

.home-message {
    margin: 0;
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    box-shadow: 0 12px 28px rgba(38, 24, 12, 0.12);
}

.home-message--success {
    background: rgba(232, 246, 233, 0.92);
    border: 1px solid rgba(29, 91, 36, 0.16);
    color: #1d5b24;
}

@media (max-width: 900px) {
    body.bookreise-home {
        background-attachment: scroll;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .home-landing {
        padding: 0 0.85rem 2rem;
    }

    .home-title {
        font-size: 2.15rem;
    }

    .home-panel {
        padding: 1.2rem;
        border-radius: 1.15rem;
    }

    .home-community-links {
        flex-direction: column;
    }

    .home-community-button {
        width: 100%;
    }

    /* Mobil etwas dünnerer Zeilenabstand, wie bei den Buchinfos */
    .home-hero-text p,
    .home-panel p,
    .home-panel li {
        font-size: 0.98rem;
        line-height: 1.45;
    }

    .home-panel p + p {
        margin-top: 0.7rem;
    }
}
