* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main-color: #5c1f36;
    --main-color-hover: #7d314d;
    --accent-color: #fff5c2;
    --background-color: #f6f1e8;
    --text-color: #333;
}

body {
    font-family: Arial, sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
}

/* =========================
   HEADER
========================= */

header {
    background-image: url("fotos/header_bg.jpeg");
    background-size: cover;
    background-position: 50% 80%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.hero-text {
    position: relative;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.2rem;
}

/* =========================
   NAVIGATION
========================= */

nav {
    background: var(--main-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}

nav a {
    display: block;
    padding: 16px 20px;
    color: var(--accent-color);
    text-decoration: none;
    transition: background 0.3s;
    font-weight: bold;
}

nav a:hover {
    background: var(--main-color-hover);
}

/* =========================
   LAYOUT
========================= */

.container {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.content h2 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 25px;
}
.content p {
    margin-bottom: 20px;
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 50px;
}

.feature img {
    width: 100%;
    border-radius: 12px;
}

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

.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.event-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
    color: inherit;
    position: relative;
}

.event-card:hover {
    transform: translateY(-4px);
}

.event-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.event-text {
    padding: 15px;
}

.event-text h3 {
    margin-bottom: 6px;
    color: #5c1f36;
}

.sold-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(92, 31, 54, 0.9);
    color: #fff5c2;
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 8px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* =========================
   PEDIGREE / STAMMBAUM
========================= */

.pedigree {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: center;
}

.pedigree td {
    padding: 10px 12px;
    border: 1px solid rgba(92, 31, 54, 0.25);
    background: white;
}

.pedigree tr td {
    vertical-align: middle;
}

/* bessere Optik für Namen */
.pedigree b {
    color: var(--main-color);
}

/* responsive fallback */
@media (max-width: 700px) {
    .pedigree {
        font-size: 0.8rem;
    }

    .pedigree td {
        padding: 6px;
    }
}

.pedigree {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.pedigree td {
    transition: background 0.2s ease;
}

.pedigree td:hover {
    background: #fff7ea;
}

/* =========================
   CONTENT IMAGES
========================= */

.content-image {
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: fit-content;
}

.sidebar img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.sidebar h3 {
    color: var(--main-color);
    margin-bottom: 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.03);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    cursor: zoom-out;
}
/* =========================
   LINKS
========================= */

a {
    color: var(--main-color-hover);
}

a:hover {
    opacity: 0.85;
}

/* =========================
   FOOTER
========================= */

footer {
    background: var(--main-color);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links img {
    height: 45px;
    width: auto;
    transition: transform 0.2s ease;
}

.footer-links img:hover {
    transform: scale(1.08);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

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

    .hero-text h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

}