/*
 * Neues Startseiten-Design – Peter Wellner
 * Nur für index-design-test.html vorgesehen.
 * Kameramuseum und andere Seiten bleiben unverändert.
 */

:root {
    --bg: #0b0f12;
    --panel: #151b20;
    --gold: #e3b331;
    --text: #f5f5f5;
    --muted: #c3c8ce;
}

body {
    background: var(--bg);
    color: var(--text);
}

/* Breite, elegante Navigation */
header {
    background: #0b0f12;
    border-bottom: 1px solid #252b30;
}

.nav {
    max-width: 1440px;
    padding: 24px 35px;
}

.brand {
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: .09em;
}

nav {
    gap: 38px;
}

nav a {
    font-size: 1rem;
    padding-bottom: 10px;
}

nav a[aria-current="page"] {
    border-bottom: 2px solid var(--gold);
}

/* Hauptbereich ohne seitliche Begrenzung */
main {
    max-width: none;
    padding: 0;
}

/* Großes Titelbild */
.hero {
    min-height: 520px;
    border-radius: 0;
    padding: clamp(35px, 6vw, 95px);
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 1.08;
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.55;
}

/* Gold umrandeter Button */
.hero .button {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 7px;
    padding: 13px 26px;
}

.hero .button:hover {
    background: var(--gold);
    color: #101419;
}

@media (max-width: 700px) {
    .nav {
        padding: 20px;
    }

    nav {
        gap: 12px 18px;
    }

    .hero {
        min-height: 460px;
        padding: 40px 24px;
    }
}

/* Vier moderne Themenkarten */
main > section:first-of-type {
    padding: 38px clamp(24px, 4vw, 65px) 65px;
}

main > section:first-of-type > .intro {
    display: none;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
}

.card {
    background: linear-gradient(145deg, #171e23, #10161a);
    border: 1px solid #30383d;
    border-radius: 11px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.card img {
    display: block;
    width: 100%;
    height: 185px;
    object-fit: cover;
}

.card-content {
    padding: 18px 20px 22px;
}

.card h3 {
    font-size: 1.25rem;
    margin: 0 0 8px;
}

.card p {
    font-size: .95rem;
    line-height: 1.55;
    margin: 0 0 12px;
}

.card-link {
    color: var(--gold);
    font-weight: 600;
}

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

@media (max-width: 600px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .card img {
        height: 220px;
    }
}


/* Kartenbilder vollständig anzeigen */
.cards .card img {
    object-fit: contain;
    object-position: center;
    background: #10161a;
}

/* Einheitliche Themenkarten V3 */
.cards {
    align-items: stretch;
}

.cards .card {
    display: flex;
    flex-direction: column;
    background: #151c21;
}

.cards .card img {
    background: #222a30;
    object-fit: contain;
    object-position: center;
}

.cards .card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.cards .card-content .card-link {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 18px;
}

/* Kartenbild-Hintergrund V1 */
.cards .card img {
    position: relative;
    z-index: 1;
    background: transparent;
}

.cards .card > .card-image-link,
.cards .card > img {
    flex-shrink: 0;
}

.cards .card > .card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    background: #222a30;
}

.cards .card > .card-image-link::before {
    content: "";
    position: absolute;
    inset: -20px;
    background-image: var(--kartenfoto);
    background-position: center;
    background-size: cover;
    filter: blur(18px) brightness(.55);
}

.cards .card > .card-image-link img {
    position: relative;
}

/* Kartenhintergruende V2 */
.cards .card > .kartenbild-rahmen,
.cards .card > .card-image-link {
    display: block;
    position: relative;
    height: 185px;
    overflow: hidden;
    background: #252d32;
}

.cards .card > .kartenbild-rahmen::before,
.cards .card > .card-image-link::before {
    content: "";
    position: absolute;
    inset: -24px;
    background-image: var(--kartenfoto);
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(.8);
}

.cards .card > .kartenbild-rahmen img,
.cards .card > .card-image-link img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

@media (min-width: 1051px) {
    .cards .card > .kartenbild-rahmen,
    .cards .card > .card-image-link {
        height: 185px;
    }
}

@media (max-width: 600px) {
    .cards .card > .kartenbild-rahmen,
    .cards .card > .card-image-link {
        height: 220px;
    }
}

/* Ruhige einheitliche Bildflaechen V3 */
.cards .card > .kartenbild-rahmen,
.cards .card > .card-image-link {
    background: #222a30;
}

.cards .card > .kartenbild-rahmen::before,
.cards .card > .card-image-link::before {
    display: none;
}

.cards .card > .kartenbild-rahmen img,
.cards .card > .card-image-link img {
    object-fit: contain;
    background: transparent;
}
