/* =========================================
   STARTSEITE: Hinweis oben, Gallery- und Tools-Vorschau
   Nutzt zusätzlich .btn aus tools.css.
========================================= */

/* ---------- Hinweis (Sicherheit & Datenschutz) ---------- */

.top-notice {
    background: linear-gradient(90deg, rgba(212, 175, 55, .14), rgba(212, 175, 55, .04));
    border-bottom: 1px solid var(--gold-dark);
    animation: fade-up .6s ease-out backwards;
}

.top-notice-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.top-notice-text {
    flex: 1;
}

/* Ohne JavaScript wäre der Button wirkungslos, deshalb erst mit JS sichtbar */
.top-notice .btn {
    display: none;
    flex: none;
}

.js .top-notice .btn {
    display: inline-flex;
}

/* Bestätigter Hinweis: sofort weg (Klasse wird früh von notice.js gesetzt) */
.notice-ok .top-notice {
    display: none;
}

.top-notice.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease;
}

.top-notice svg {
    flex: none;
    width: 28px;
    height: 28px;
    color: var(--gold);
}

.top-notice p {
    font: 400 15px/1.65 Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    color: var(--muted);
}

.top-notice strong {
    color: var(--gold-light);
    font-weight: 700;
}

.top-notice a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.top-notice a:hover {
    color: var(--gold-light);
}

/* ---------- Bereichs-Kopf ---------- */

.home-section {
    padding: 30px 0 70px;
}

.home-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 30px;
    margin-bottom: 28px;
}

.home-kicker {
    font-size: .95rem;
    letter-spacing: .18em;
    color: var(--gold-dark);
}

.home-head h2 {
    margin-bottom: 6px;
}

.home-lead {
    max-width: 36em;
    font: 400 17px/1.7 Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    color: var(--muted);
}

/* ---------- Gallery-Vorschau ---------- */

.preview-gallery {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.shot {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--black-card);
    border: 1px solid var(--gold-dark);
    border-radius: var(--radius);
    transition: border-color .3s, box-shadow .4s, transform .4s var(--ease-out);
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-out);
}

.shot::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .82));
    pointer-events: none;
}

.shot-cap {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.shot-cap strong {
    font-weight: 400;
    font-size: 1.45rem;
    color: var(--gold-light);
    line-height: 1.2;
}

.shot-cap small {
    font: 400 13px Arial, Helvetica, sans-serif;
    letter-spacing: .04em;
    color: var(--text);
    opacity: .85;
    white-space: nowrap;
}

.shot:focus-visible,
.ptool:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}

/* ---------- Tools-Vorschau ---------- */

.preview-tools {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ptool {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 10px;
    height: 100%;
    padding: 22px 22px 20px;
    background: var(--black-card);
    border: 1px solid var(--gold-dark);
    border-radius: var(--radius);
    transition: border-color .3s, box-shadow .4s, transform .4s var(--ease-out);
}

.ptool::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .7;
}

.ptool svg {
    width: 100%;
    height: auto;
    margin-bottom: 6px;
    padding: 8px;
    background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, .1), transparent 70%), #121212;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
}

.ptool strong {
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--gold-light);
}

.ptool span {
    font: 400 15px/1.65 Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    color: var(--muted);
}

.ptool em {
    font-style: normal;
    font-size: 1.02rem;
    color: var(--gold);
    transition: transform .3s var(--ease-out);
}

@media (hover: hover) {
    .shot:hover,
    .ptool:hover {
        transform: translateY(-5px);
        border-color: var(--gold);
        box-shadow: 0 16px 44px rgba(212, 175, 55, .18);
    }

    .shot:hover img {
        transform: scale(1.06);
    }

    .ptool:hover em {
        transform: translateX(6px);
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
    .preview-tools {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .preview-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .shot-cap {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        gap: 0;
    }

    .shot-cap strong {
        font-size: 1.15rem;
    }

    .home-section {
        padding: 20px 0 56px;
    }

    .top-notice-inner {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px 12px;
    }

    .top-notice-text {
        flex: 1 1 calc(100% - 48px);
    }

    .top-notice .btn {
        margin-left: 40px;
    }
}

@media (max-width: 520px) {
    .preview-tools {
        grid-template-columns: minmax(0, 1fr);
    }
}
