@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --font-body: "DM Sans", "Trebuchet MS", Arial, sans-serif;
    --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
    --gold: #FFD700;
    --background: #121212;
    --surface: #1a1a1a;
    --text: #f5f5f5;
    --muted: #bdbdbd;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

h1,
h2,
h3,
summary {
    font-family: var(--font-display);
    font-weight: 700;
}

h1 {
    color: var(--gold);
    font-size: clamp(2.4rem, 6vw, 4rem);
    letter-spacing: 0.035em;
    line-height: 1.05;
    margin: 36px 16px 24px;
    text-align: center;
    text-shadow: 0 2px 18px rgba(255, 215, 0, 0.14);
}

h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    letter-spacing: 0.06em;
    line-height: 1.15;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: 0.025em;
    line-height: 1.2;
}

p {
    line-height: 1.75;
}

strong {
    font-family: var(--font-display);
    font-size: 1.08em;
    font-weight: 700;
    letter-spacing: 0.015em;
}

nav ul {
    align-items: center;
    background: #000000;
    border-bottom: 2px solid var(--gold);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 6px 12px;
}

nav a {
    border-radius: 6px 6px 0 0;
    color: white;
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    padding: 12px 16px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background: #222;
    color: var(--gold);
}

nav a.active {
    border-bottom: 3px solid var(--gold);
    color: var(--gold);
}

a {
    transition: color 0.3s ease;
}

figcaption {
    color: var(--text) !important;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

figcaption span {
    font-family: var(--font-body);
    letter-spacing: 0;
}

table {
    font-family: var(--font-body);
}

th {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.025em;
}

td {
    font-variant-numeric: tabular-nums;
}

summary {
    font-size: 1.25rem;
    letter-spacing: 0.015em;
}

footer a {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

figure img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

figure img:hover {
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    transform: scale(1.03);
}

.galerie {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin: 20px auto 50px;
    max-width: 1000px;
    padding: 0 20px;
}

.galerie img {
    border: 2px solid var(--gold);
    border-radius: 12px;
    cursor: pointer;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 100%;
}

.galerie img:hover {
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    transform: scale(1.03);
}

.lightbox {
    align-items: center;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 1000;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    border: 2px solid var(--gold);
    border-radius: 12px;
    max-height: 85%;
    max-width: 85%;
}

.lightbox a.zu,
.lightbox a.zurueck,
.lightbox a.weiter {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 3rem;
    padding: 10px 20px;
    position: absolute;
    text-decoration: none;
}

.lightbox a.zu {
    right: 10px;
    top: 10px;
}

.lightbox a.zurueck {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox a.weiter {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox a:hover {
    color: #ffffff;
}

@media (max-width: 600px) {
    nav ul {
        gap: 2px;
        padding: 4px;
    }

    nav a {
        font-size: 0.88rem;
        padding: 10px 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
