/* Archaic Blues – gemeinsames Stylesheet für alle Seiten */

:root {
    --bg: #1b1918;
    --bg-alt: #242020;
    --bg-card: #2a2626;
    --text: #f1e2e2;
    --text-muted: #cdb9b9;
    --accent: #d9a441;
    --accent-hover: #f0bb5c;
    --line: #3d3838;
    --max-width: 900px;
    --header-height: 64px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(27, 25, 24, .5), rgba(27, 25, 24, .5)),
        url("../../Grafik/backnav.gif");
    background-repeat: repeat;
    color: var(--text);
    font-family: -apple-system, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 2rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: 0 0 .5rem; }

p { margin: 0 0 1rem; }

a {
    color: var(--accent);
}

a:hover,
a:focus-visible {
    color: var(--accent-hover);
}

img { max-width: 100%; height: auto; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

/* ---------- Header / Navigation ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 1.25rem;
    gap: 1rem;
}

.nav-toggle {
    justify-self: end;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    white-space: nowrap;
}

.brand:hover, .brand:focus-visible {
    color: var(--accent);
}

.brand-logo {
    height: 40px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 1.5rem;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: .4rem .1rem;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--accent);
}

.site-nav a[aria-current="page"] {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

@media (max-width: 700px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-alt);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }

    .site-nav.open {
        max-height: 400px;
    }

    .site-nav a {
        padding: .9rem 1.25rem;
        border-bottom: 1px solid var(--line);
    }

    .site-nav a[aria-current="page"] {
        border-bottom: 1px solid var(--line);
        background: var(--bg-card);
    }
}

/* ---------- Footer ---------- */

.site-footer {
    text-align: center;
    padding: 2rem 1rem 3rem;
    color: var(--text-muted);
    font-size: .9rem;
}

.site-footer a {
    color: var(--text-muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--accent);
}

/* ---------- Generic components ---------- */

.center { text-align: center; }

.lead {
    font-size: 1.15rem;
    font-weight: 600;
}

.card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 0 0 1.5rem;
}

.card img {
    border-radius: 6px;
    display: block;
    margin: .75rem auto 0;
}

.history-heading ~ .card img {
    width: 30%;
}

.hero-image {
    width: 450px;
    border-radius: 8px;
    margin: 1.5rem 0 0;
}

hr.rule {
    border: none;
    border-top: 1px solid var(--line);
    margin: 2rem 0;
}

.media-item {
    margin-bottom: 2.5rem;
}

.media-item video,
.media-item audio {
    width: 100%;
    max-width: 640px;
    border-radius: 6px;
}

.media-caption {
    font-weight: 600;
    margin-top: .6rem;
}

.thumb-link img {
    border-radius: 6px;
    transition: opacity .2s ease, transform .2s ease;
    cursor: pointer;
}

.thumb-link:hover img,
.thumb-link:focus-visible img {
    opacity: .85;
    transform: scale(1.01);
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #201d1d;
    font-weight: 700;
    text-decoration: none;
    padding: .75rem 1.5rem;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover,
.btn:focus-visible {
    background: var(--accent-hover);
    color: #201d1d;
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ---------- Contact form ---------- */

.contact-form {
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin: 1rem 0 .35rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: .65rem .75rem;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font: inherit;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#form-status {
    min-height: 1.4em;
    margin-top: 1rem;
    font-weight: 600;
}

#form-status.success { color: #7fd67f; }
#form-status.error { color: #ff9b9b; }

.contact-alt {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

/* ---------- Utility ---------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #201d1d;
    padding: .6rem 1rem;
    z-index: 100;
    border-radius: 0 0 6px 0;
}

.skip-link:focus {
    left: 0;
}
