﻿/* =========================================================
   FRANZISKUSBAND
   Haupt-Stylesheet
========================================================= */

:root {
    --paper: #f7f5ef;
    --paper-light: #fbfaf7;
    --paper-soft: #f0eee8;

    --green: #718171;
    --green-dark: #5F6E60;
    --green-soft: #E8ECE5;

    --text: #2d302d;
    --muted: #696c67;

    --line: #dcd9d1;

    --serif: Georgia, "Times New Roman", serif;
    --sans: Arial, Helvetica, sans-serif;

    --container: 1160px;
}


/* =========================================================
   GRUNDLAGEN
========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 45px;
}

body {
    margin: 0;

    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background: var(--paper);
    color: var(--text);

    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
}


main {
    flex: 1;
}


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


a {
    color: inherit;
    text-decoration: none;
}


:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}


button {
    font: inherit;
}


.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin: 0 auto;
}


/* =========================================================
   TYPOGRAFIE
========================================================= */

h1,
h2,
h3 {
    margin: 0;

    font-family: var(--serif);
    font-weight: 400;

    line-height: 1.2;
}


h1 {
    max-width: 650px;

    font-size: clamp(
        31px,
        3.6vw,
        41px
    );

    letter-spacing: -0.02em;
}


h2 {
    font-size: clamp(
        29px,
        3.4vw,
        39px
    );

    letter-spacing: -0.015em;
}


p {
    margin-top: 0;
}


.section-label {
    margin-bottom: 14px;

    color: var(--green-dark);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .14em;
    text-transform: uppercase;
}


.large-text {
    margin-bottom: 26px;

    color: var(--text);

    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.5;
}


.section-intro {
    max-width: 650px;

    margin-top: 22px;
    margin-bottom: 0;

    color: var(--muted);

    font-size: 16px;
}


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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(
        247,
        245,
        239,
        .96
    );

    border-bottom: 1px solid var(--line);

    backdrop-filter: blur(8px);
}


.nav-inner {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.logo {
    flex: 0 0 auto;
}


.logo img {
    width: min(
        360px,
        44vw
    );

    height: auto;
}


.main-nav {
    display: flex;
    align-items: center;

    gap: 25px;
}


.main-nav a {
    position: relative;

    color: var(--muted);

    font-size: 16px;

    transition: color .2s ease;
}


.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -7px;

    height: 1px;

    background: var(--green);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform .2s ease;
}


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


.main-nav a:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   MOBILE MENÃœ
========================================================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    border: 0;

    background: transparent;

    cursor: pointer;
}


.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 6px 0;

    background: var(--text);

    transition:
        transform .2s ease,
        opacity .2s ease;
}


.menu-toggle.is-open span:nth-child(1) {
    transform:
        translateY(8px)
        rotate(45deg);
}


.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}


.menu-toggle.is-open span:nth-child(3) {
    transform:
        translateY(-8px)
        rotate(-45deg);
}


/* =========================================================
   EINSTIEG
========================================================= */

.intro-section {
    padding: 56px 0 64px;

    background: var(--paper-light);
}


.intro-grid {
    display: grid;

    grid-template-columns:
        minmax(0, .86fr)
        minmax(0, 1.14fr);

    align-items: center;

    gap: 64px;
}


.intro-text {
    padding-left: 8px;
}


.intro-text h1 {
    margin-bottom: 27px;
}

.hero-subtitle {
    margin: 14px 0 0;

    color: var(--muted);

    font-size: 18px;
    line-height: 1.5;
}


.text-link {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--green-dark);

    font-size: 15px;
    font-weight: 700;
}


.text-link span {
    transition: transform .2s ease;
}


.text-link:hover span {
    transform: translateX(4px);
}


.band-photo {
    overflow: hidden;
}


.band-photo img {
    width: 100%;
    height: auto;
}


/* =========================================================
   ALLGEMEINE SEKTIONEN
========================================================= */

.section {
    padding: 72px 0;
}


.section-heading {
    margin-bottom: 48px;
}


.section-heading h2 {
    max-width: 700px;
}


.section-events .section-heading {
    position: relative;
}


.section-events .event-count {
    position: absolute;
    top: 3px;
    right: 0;

    margin: 0;

    color: var(--green-dark);

    font-size: 14px;
}


/* =========================================================
   TERMINE
========================================================= */

.section-events {
    background: var(--green-soft);
}


.event-count {
    margin-top: 10px;
    margin-bottom: 0;

    color: var(--green-dark);

    font-size: 14px;
}


.events-list {
    border-top: 1px solid rgba(
        95,
        110,
        96,
        .14
    );
}


.event {
    display: grid;

    grid-template-columns:
        170px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 35px;

    padding: 20px 0;

    border-bottom: 1px solid rgba(
        95,
        110,
        96,
        .14
    );
}


.event-date {
    color: var(--green-dark);

    font-family: var(--serif);
    line-height: 1.25;
}


.event-date strong {
    display: block;

    font-size: 25px;
    font-weight: 400;
}


.event-title {
    margin-bottom: 4px;

    font-family: var(--serif);
    font-size: 21px;
    line-height: 1.35;
}


.event-location {
    color: var(--muted);
    font-size: 16px;
}


.event-type {
    justify-self: end;

    padding: 4px 9px;

    border: 1px solid rgba(
        95,
        110,
        96,
        .10
    );

    border-radius: 5px;

    background: #F0F3EE;

    color: var(--green-dark);

    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;

    letter-spacing: .02em;
    text-transform: none;

    white-space: nowrap;
}



.events-loading,
.no-events {
    margin: 0;
    padding: 20px 0;

    color: var(--muted);
}

.events-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-spinner {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border: 2px solid var(--line);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: loading-spin .8s linear infinite;
}

@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation: none;
    }
}


/* =========================================================
   BAND
========================================================= */

.section-band {
    background: var(--paper);
}


.split-section {
    display: grid;

    grid-template-columns:
        minmax(0, .8fr)
        minmax(0, 1.2fr);

    gap: 80px;

    align-items: start;
}


.section-band .section-heading,
.section-music .section-heading {
    margin-bottom: 0;
}


.section-content {
    max-width: 680px;
}


.section-content p {
    color: var(--muted);
}


/* =========================================================
   MUSIK
========================================================= */

.section-music {
    background: var(--paper-light);
}


.section-music .section-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   GALERIE
========================================================= */

.section-gallery {
    padding-top: 60px;
    padding-bottom: 64px;

    background: var(--paper);
}


.section-gallery .section-heading {
    margin-bottom: 34px;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    background: var(--paper-soft);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 820px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* =========================================================
   GESCHICHTE / TIMELINE
========================================================= */

.section-history {
    padding-top: 66px;
    padding-bottom: 72px;

    background: var(--paper-soft);
}


.history-heading {
    max-width: 1000px;

    margin-bottom: 42px;
}


.history-heading .section-intro {
    max-width: 1000px;
}


.timeline {
    position: relative;

    max-width: 1100px;

    margin-left: 10px;
}


.timeline::before {
    content: "";

    position: absolute;

    top: 5px;
    bottom: 5px;
    left: 140px;

    width: 1px;

    background: var(--line);
}


.timeline-item {
    position: relative;

    display: grid;

    grid-template-columns:
        140px
        1fr;

    gap: 34px;

    padding-bottom: 34px;
}


.timeline-item:last-child {
    padding-bottom: 0;
}


.timeline-year {
    position: relative;

    padding-right: 25px;
    white-space: nowrap;

    color: var(--green-dark);

    font-family: var(--serif);
    font-size: 20px;

    text-align: right;
}

.timeline-year span {
    display: inline-block;
    transform: translateY(-5px);
}


.timeline-year::after {
    content: "";

    position: absolute;

    top: 9px;
    right: -4px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 4px var(--paper-soft);
}


.timeline-content {
    max-width: none;
}


.timeline-content h3 {
    margin-bottom: 4px;
}


.timeline-content p {
    margin: 0;
    color: var(--muted);
}

.timeline-content p + p {
    margin-top: 2px;
}


.timeline-current .timeline-year {
    color: var(--green);
}


/* =========================================================
   KONTAKT
========================================================= */

.section-contact {
    background: var(--paper-light);
}


.contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0, .9fr)
        minmax(0, 1.1fr);

    gap: 80px;

    align-items: start;
}


.contact-grid h2 {
    max-width: 500px;
}


.contact-content {
    max-width: 520px;
}


.contact-content p {
    margin-bottom: 24px;

    color: var(--muted);
}


.contact-email {
    display: inline-block;

    color: var(--green-dark);

    font-family: var(--serif);
    font-size: 24px;

    border-bottom: 1px solid var(--green);

    text-underline-offset: 4px;
}


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

.site-footer {
    padding: 20px 0;

    background: var(--paper);
    color: var(--muted);

    border-top: 1px solid var(--line);
}


.footer-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    font-size: 16px;
}


.footer-inner nav {
    display: flex;

    gap: 22px;
}


.footer-inner a {
    color: var(--muted);

    transition: color .2s ease;
}


.footer-inner a:hover {
    color: var(--green-dark);
}


/* =========================================================
   RECHTLICHE SEITEN
========================================================= */

.legal-page {
    padding: 90px 0 105px;

    background: var(--paper);
}


.legal-content {
    max-width: 760px;
}


.legal-content h1 {
    margin-top: 15px;
    margin-bottom: 50px;
}


.legal-content h2 {
    margin-top: 38px;
    margin-bottom: 13px;

    font-family: var(--serif);
    font-size: 25px;
    font-weight: 400;

    line-height: 1.25;
}


.legal-content p {
    max-width: 700px;

    margin-bottom: 17px;

    color: var(--muted);
}


.legal-address {
    color: var(--text) !important;
}


.legal-content a {
    color: var(--green-dark);

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


.month-short {
    display: none;
}

.month-long {
    display: inline;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .nav-inner {
        min-height: 68px;
    }


    .menu-toggle {
        display: block;
        order: 2;
    }


    .main-nav {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 10px 24px 20px;

        background: var(--paper);

        border-bottom: 1px solid var(--line);
    }


    .main-nav.is-open {
        display: flex;
    }


    .main-nav a {
        padding: 13px 0;

        font-size: 16px;

        border-bottom: 1px solid var(--line);
    }


    .main-nav a:last-child {
        border-bottom: 0;
    }


    .main-nav a::after {
        display: none;
    }


    .intro-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    .intro-text {
        padding-left: 0;
    }


    .band-photo {
        max-width: 800px;
    }


    .split-section,
    .contact-grid {
        grid-template-columns: 1fr;

        gap: 38px;
    }
}


@media (max-width: 700px) {

    .section-events .event-count {
        position: static;

        margin-top: 10px;
    }


    .container {
        width: min(
            calc(100% - 36px),
            var(--container)
        );
    }


    .event {
        grid-template-columns:
            95px
            minmax(0, 1fr);

        gap: 20px;
    }


    .event-type {
    display: none;
    }


    .event-count {
    display: none;
    }

.month-short {
    display: inline;
}

.month-long {
    display: none;
}


    .timeline {
        margin-left: 0;
    }


    .timeline::before {
        left: 110px;
    }


    .timeline-item {
        grid-template-columns:
            110px
            1fr;

        gap: 25px;
    }

    .timeline-year span {
        transform: translateY(-1px);
    }
}


@media (max-width: 600px) {

    .container {
        width: calc(100% - 32px);
    }


    .logo img {
        width: 270px;
    }


    .intro-section {
        padding: 48px 0 56px;
    }


    .section {
        padding: 58px 0;
    }


    h1 {
        font-size: 36px;
    }


    h2 {
        font-size: 34px;
    }


    .large-text {
        font-size: 22px;
    }


    .event {
        grid-template-columns:
            82px
            minmax(0, 1fr);

        gap: 15px;

        padding: 18px 0;
    }


    .event-date strong {
        font-size: 22px;
    }


    .event-title {
        font-size: 19px;
    }


    .event-location {
        font-size: 15px;
    }


    .section-gallery {
        padding-top: 50px;
        padding-bottom: 56px;
    }


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


    .timeline::before {
        left: 110px;
    }


    .timeline-item {
        grid-template-columns:
            110px
            1fr;

        gap: 20px;

        padding-bottom: 24px;
    }


    .timeline-year {
        font-size: 17px;
    }


    .timeline-year::after {
        right: -4px;
    }


    .footer-inner {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }


    .footer-inner nav {
        gap: 16px;
    }


    .legal-page {
        padding: 65px 0 80px;
    }


    .legal-content h1 {
        margin-bottom: 38px;
    }


    .legal-content h2 {
        margin-top: 32px;

        font-size: 22px;
    }
}
