/* ==========================================================================
   Public homepage — Just Gospel Frankfurt
   ========================================================================== */

:root {
    --brand: #c14468;
    --brand-dark: #a83a5a;
    --brand-soft: #f6eaee;
    --ink: #1b1a1c;
    --ink-soft: #4a4750;
    --muted: #78737e;
    --line: #e6e2e6;
    --paper: #ffffff;
    --paper-alt: #faf7f8;
    --dark: #17151a;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
        "Times New Roman", serif;
    --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica,
        Arial, sans-serif;

    --shell: 1160px;
    --pad: clamp(1.25rem, 5vw, 2.5rem);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink-soft);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

/* === Header ============================================================== */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem var(--pad);
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        padding 0.3s ease;
}

.site-header .brand {
    display: flex;
    align-items: center;
}

/* über dem Foto die runde Bildmarke, im weissen Zustand der Schriftzug */
.site-header .brand-word {
    display: none;
    width: 132px;
}

.site-header.is-solid .brand-mark {
    display: none;
}

.site-header.is-solid .brand-word {
    display: block;
}

.site-header .brand-mark {
    width: 52px;
    height: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
    transition:
        width 0.3s ease,
        filter 0.3s ease;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.25rem);
}

.site-nav a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    transition: color 0.25s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 2px;
    background: var(--brand);
    transition: right 0.25s ease;
}

.site-nav a:hover::after {
    right: 0;
}

.site-nav .nav-login {
    padding: 0.5rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 2px;
    text-shadow: none;
}

.site-nav .nav-login::after {
    display: none;
}

.site-nav .nav-login:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* solid state — set by a small inline script once the page is scrolled */
.site-header.is-solid {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 var(--line);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.site-header.is-solid .brand-mark {
    width: 40px;
    filter: none;
}

.site-header.is-solid .site-nav a {
    color: var(--ink);
    text-shadow: none;
}

.site-header.is-solid .site-nav a:hover {
    color: var(--brand);
}

.site-header.is-solid .nav-login {
    border-color: var(--brand);
    color: var(--brand);
}

.site-header.is-solid .nav-login:hover {
    color: #fff;
}

/* === Hero ================================================================ */

.hero {
    position: relative;
    min-height: min(92vh, 900px);
    display: flex;
    align-items: flex-end;
    padding: 8rem var(--pad) clamp(3rem, 8vh, 6rem);
    overflow: hidden;
    background: var(--dark);
}

.hero-media,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            100deg,
            rgba(12, 10, 14, 0.9) 0%,
            rgba(12, 10, 14, 0.62) 40%,
            rgba(12, 10, 14, 0) 78%
        ),
        linear-gradient(
            to bottom,
            rgba(12, 10, 14, 0.55) 0%,
            rgba(12, 10, 14, 0.12) 32%,
            rgba(12, 10, 14, 0.7) 80%,
            rgba(12, 10, 14, 0.9) 100%
        );
}

.hero-inner {
    position: relative;
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    color: #fff;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    padding-bottom: 0.9rem;
    margin-bottom: 1.1rem;
    border-bottom: 2px solid var(--brand);
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.4rem, 6.5vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: #fff;
    max-width: 16ch;
}

/* Wortmarke statt gesetzter Headline — der Schriftzug des Logos */
.hero-wordmark img {
    width: clamp(240px, 38vw, 480px);
    height: auto;
    filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.6));
}

.hero-sub {
    margin-top: 1.25rem;
    max-width: 46ch;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.25rem;
}

/* === Buttons ============================================================= */

.btn {
    display: inline-block;
    padding: 0.85rem 1.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    border: 1px solid transparent;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

/* === Sections ============================================================ */

section {
    padding: clamp(3.5rem, 9vw, 6.5rem) var(--pad);
}

.content {
    max-width: var(--shell);
    margin: 0 auto;
}

.section-alt {
    background: var(--paper-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head .eyebrow {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1.15;
    color: var(--ink);
}

h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--ink);
}

/* === About =============================================================== */

.about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: 2px;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    box-shadow: 0 12px 30px rgba(27, 26, 28, 0.05);
}

.card h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    margin-bottom: 0.9rem;
}

.card a {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid rgba(193, 68, 104, 0.35);
}

.card a:hover {
    border-bottom-color: var(--brand);
}

/* === Concerts ============================================================ */

.concert-list {
    border-top: 1px solid var(--line);
}

.concert-item {
    display: grid;
    grid-template-columns: 9.75rem 1fr;
    align-items: baseline;
    gap: 0 2rem;
    padding: 1.6rem 0.75rem;
    border-bottom: 1px solid var(--line);
    transition: background 0.25s ease;
}

.concert-item:hover {
    background: rgba(193, 68, 104, 0.04);
}

.concert-item .date {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
}

.concert-item h3 {
    margin: 0;
}

.concert-item .location {
    grid-column: 2;
    color: var(--muted);
    font-size: 0.95rem;
}

.no-events {
    padding: 1.6rem 0.75rem;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

/* Aufruf zur Auftritts-Mailingliste unter der Terminliste */
.concert-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(1.5rem, 4vw, 2.25rem);
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--paper);
}

.concert-cta p {
    margin: 0;
    color: var(--muted);
}

/* === Gallery band ======================================================== */

.gallery-band {
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 2px;
    overflow: hidden;
    background: var(--dark);
}

.gallery-band img {
    width: 100%;
    height: clamp(240px, 42vw, 520px);
    object-fit: cover;
    object-position: 50% 45%;
    transition: transform 6s ease;
}

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

/* === Contact ============================================================= */

#contact {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.78);
}

#contact h2,
#contact h3 {
    color: #fff;
}

#contact .eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
}

.contact-card {
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.16);
}

.contact-card h3 {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
}

.contact-card a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid var(--brand);
}

.contact-card a:hover {
    color: var(--brand);
}

/* === Footer ============================================================== */

footer {
    background: #100e12;
    color: rgba(255, 255, 255, 0.55);
    padding: 2.5rem var(--pad);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    max-width: var(--shell);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.footer-logo img {
    width: 150px;
    opacity: 0.85;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    width: 100%;
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* === Responsive ========================================================== */

@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    .site-header {
        padding: 0.75rem 1.1rem;
    }

    .site-nav {
        gap: 1rem;
    }

    .site-nav a {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .site-nav .nav-login {
        padding: 0.4rem 0.8rem;
    }

    .hero {
        min-height: 84vh;
        padding-top: 6rem;
    }

    .concert-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .concert-item .date {
        flex-direction: row;
        gap: 0.5rem;
    }

    .concert-item .location {
        grid-column: 1;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 460px) {
    .site-header .brand-mark,
    .site-header.is-solid .brand-mark {
        display: block;
        width: 38px;
    }

    /* auf schmalen Displays bleibt es bei der Bildmarke */
    .site-header .brand-word,
    .site-header.is-solid .brand-word {
        display: none;
    }

    /* das Logo übernimmt die Home-Funktion */
    .site-nav a[href="#home"] {
        display: none;
    }

    .site-nav {
        gap: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .gallery-band img,
    .site-header {
        transition: none;
    }
}
