/*
Theme Name: Martinsblaeser Halsbach
Theme URI: https://www.martinsblaeser-halsbach.de
Author: St. Martinsbläser Halsbach
Author URI: https://www.martinsblaeser-halsbach.de
Description: Eigenständiges WordPress-Theme für den Musikverein "St. Martinsbläser Halsbach". Farbschema in Weinrot/Bordeaux mit Creme und Gold-Akzenten, modern mit traditionellem Charakter, mobile-first.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: martinsblaeser-theme
*/

/* =========================================================
   1) FARBVARIABLEN
   Hier kannst du die Vereinsfarben zentral anpassen.
   Alle anderen Stile greifen über var(--name) darauf zu.
   ========================================================= */
:root {
    --color-bordeaux: #7b1e2e;      /* Hauptfarbe: Weinrot/Bordeaux (Vereinsuniform) */
    --color-bordeaux-dunkel: #561525; /* dunklere Variante, z.B. für Hover */
    --color-bordeaux-hell: #9c2b3e;   /* hellere Variante für Verläufe/Akzente */
    --color-creme: #f8f3ec;         /* Hintergrundfarbe Creme/Weiß */
    --color-creme-dunkel: #ede5d8;  /* etwas dunkleres Creme für abwechselnde Abschnitte */
    --color-weiss: #ffffff;
    --color-gold: #c8a855;          /* dezenter Gold/Beige-Akzent */
    --color-gold-hell: #e2c97a;     /* helle Gold-Variante für feine Linien/Highlights */
    --color-text: #2a1a1f;          /* Haupttextfarbe, dunkles Bordeaux-Grau statt reinem Schwarz */
    --color-text-hell: #6b4f57;     /* etwas hellerer Fließtext, z.B. Absätze */
    --color-platzhalter-bg: #e2ddd3; /* Hintergrund für Bild-Platzhalter-Boxen */
    --color-platzhalter-text: #6b6258;

    --font-headline: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;

    --max-width: 1100px;
    --radius: 6px;
}

/* =========================================================
   2) GRUNDLAGEN / RESET
   ========================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html {
    height: 100%;
}

/* Sticky Footer: body wird zur Flex-Spalte über die volle Bildschirmhöhe,
   damit .site-main den übrigen Platz füllt und der Footer bei kurzen
   Seiten immer am unteren Rand bleibt statt in der Mitte zu "schweben". */
body {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-creme);
    line-height: 1.6;
}

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

a {
    color: var(--color-bordeaux);
    text-decoration: none;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-headline); /* leicht traditioneller Charakter bei Überschriften */
    font-weight: 700;
    color: var(--color-bordeaux-dunkel);
    line-height: 1.25;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* =========================================================
   3) HEADER / NAVIGATION (header.php)
   ========================================================= */
.site-header {
    background-color: var(--color-bordeaux);
    color: var(--color-weiss);
    border-bottom: 4px solid var(--color-gold);
}

.site-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

/* Logo: echtes Vereinslogo links neben dem Schriftzug */
.site-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-weiss);
}

.site-logo-bild {
    width: 62px;
    height: 62px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-logo-text {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.site-logo small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--color-gold);
    letter-spacing: 1px;
}

/* Mobile Menü-Button */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--color-gold);
    color: var(--color-weiss);
    font-size: 1.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius);
    cursor: pointer;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
}

.main-navigation a {
    color: var(--color-weiss);
    font-weight: 600;
    padding: 0.4rem 0.2rem;
    display: inline-block;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--color-gold);
}

/* Mobile-first: unter 700px wird die Navigation gestapelt und einklappbar */
@media (max-width: 700px) {
    .menu-toggle {
        display: inline-block;
    }

    .main-navigation {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-navigation.is-open {
        max-height: 500px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }
}

/* =========================================================
   4) ALLGEMEINE INHALTSBEREICHE
   ========================================================= */
.site-main {
    padding: 2.5rem 0;
    flex: 1 0 auto;
}

.page-title {
    margin-top: 0;
}

/* =========================================================
   5) BILD-PLATZHALTER
   Verwende diese Klasse überall dort, wo später ein echtes
   Foto eingesetzt werden soll. Einfach den <div>-Block durch
   ein <img>-Tag ersetzen, sobald Bilder vorhanden sind.
   ========================================================= */
.bild-platzhalter {
    background-color: var(--color-platzhalter-bg);
    border: 2px dashed var(--color-gold);
    color: var(--color-platzhalter-text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
    border-radius: var(--radius);
    min-height: 180px;
    padding: 1rem;
}

/* =========================================================
   6) STARTSEITE (front-page.php)
   Layout-Ideen/Stil übernommen aus einer Design-Vorlage,
   mit Vereinsfarben und echten Vereinstexten angepasst.
   ========================================================= */
.section {
    padding: 4rem 0;
}

.section--alt {
    background-color: var(--color-weiss);
}

.section--creme-dunkel {
    background-color: var(--color-creme-dunkel);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--color-gold-hell);
}

.section-header p {
    color: var(--color-text-hell);
    margin-top: 0.75rem;
}

/* --- HERO --- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 75% 30%, rgba(200, 168, 85, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse at 15% 85%, rgba(123, 30, 46, 0.10) 0%, transparent 55%),
        var(--color-creme);
    padding: 4.5rem 0;
    text-align: center;
}

/* Dezentes Notensymbol als reines Hintergrund-Ornament (kein Bild, nur CSS/Schriftzeichen) */
.hero-note {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14rem;
    color: rgba(123, 30, 46, 0.05);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--color-gold);
}

.hero-eyebrow span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    color: var(--color-bordeaux-dunkel);
    margin-bottom: 1.2rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--color-bordeaux);
}

.hero p {
    max-width: 540px;
    margin: 0 auto 2rem;
    color: var(--color-text-hell);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-primary,
.btn-outline {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    border-radius: 2px;
}

.btn-primary {
    background-color: var(--color-bordeaux);
    color: var(--color-creme);
}

.btn-primary:hover {
    background-color: var(--color-bordeaux-dunkel);
    color: var(--color-creme);
}

.btn-outline {
    border: 1px solid var(--color-bordeaux);
    color: var(--color-bordeaux);
}

.btn-outline:hover {
    background-color: var(--color-bordeaux);
    color: var(--color-creme);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(123, 30, 46, 0.12);
    position: relative;
    z-index: 1;
}

.stat-num {
    font-family: var(--font-headline);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-bordeaux);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-hell);
    margin-top: 0.25rem;
}

/* --- ÜBER-UNS-TEASER --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 800px) {
    .about-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 3.5rem;
    }
}

.about-text h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--color-text-hell);
    margin-bottom: 1rem;
}

.about-card {
    background-color: var(--color-creme);
    border: 1px solid rgba(123, 30, 46, 0.12);
    border-radius: 4px;
    padding: 2.2rem;
    text-align: center;
    position: relative;
}

/* Dekorativer, leicht versetzter Rahmen statt eines echten Fotos */
.about-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(200, 168, 85, 0.35);
    border-radius: 4px;
    z-index: -1;
}

.about-card .big-note {
    font-size: 3.5rem;
    color: var(--color-bordeaux);
    opacity: 0.18;
    line-height: 1;
}

.about-card .card-sub {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-hell);
}

.about-card .card-leitung {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(123, 30, 46, 0.12);
    font-size: 0.85rem;
    color: var(--color-text-hell);
}

.about-card .card-leitung strong {
    display: block;
    font-family: var(--font-headline);
    color: var(--color-bordeaux);
    font-size: 1.05rem;
    margin-top: 0.2rem;
}

/* --- AKTUELLES / NEWS-GRID --- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 700px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    display: block;
    background-color: var(--color-weiss);
    border: 1px solid rgba(123, 30, 46, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.news-card-header {
    background-color: var(--color-bordeaux);
    padding: 1.2rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.news-tag {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold-hell);
    font-weight: 600;
}

.news-date {
    font-size: 0.72rem;
    color: rgba(248, 243, 236, 0.65);
    font-style: italic;
}

.news-card-body {
    padding: 1.4rem;
}

.news-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.news-card-body p {
    font-size: 0.9rem;
    color: var(--color-text-hell);
}

.news-score {
    display: inline-block;
    margin-top: 0.8rem;
    background-color: rgba(200, 168, 85, 0.18);
    color: var(--color-bordeaux);
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* --- AUFTRITTE-TEASER (Terminliste mit Datums-Box) --- */
.events-list {
    max-width: 760px;
    margin: 0 auto;
}

.event-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 1.2rem;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(123, 30, 46, 0.1);
}

@media (max-width: 600px) {
    .event-item {
        grid-template-columns: 60px 1fr;
        grid-template-areas:
            "datum info"
            "plaketten plaketten";
    }

    .event-date-box {
        grid-area: datum;
    }

    .event-info {
        grid-area: info;
    }

    .event-badges {
        grid-area: plaketten;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        margin-top: 0.6rem;
    }
}

.event-item:last-child {
    border-bottom: none;
}

.event-date-box {
    text-align: center;
    padding: 0.6rem;
    background-color: var(--color-bordeaux);
    color: var(--color-creme);
    border-radius: 4px;
}

.event-weekday {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold-hell);
}

.event-day {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.75;
}

.event-info h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.event-info p {
    font-size: 0.85rem;
    color: var(--color-text-hell);
}

.event-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.event-badge {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-bordeaux);
    border: 1px solid rgba(123, 30, 46, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 2px;
    white-space: nowrap;
}

/* --- RÜCKBLICK / HIGHLIGHT-BOX --- */
.highlight-box {
    background-color: var(--color-bordeaux);
    color: var(--color-creme);
    border-radius: 4px;
    padding: 2.4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 800px) {
    .highlight-box {
        grid-template-columns: 1.3fr 1fr;
    }
}

.highlight-text h3 {
    color: var(--color-creme);
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.highlight-text p {
    color: rgba(248, 243, 236, 0.8);
}

.highlight-score {
    text-align: center;
}

.score-number {
    font-family: var(--font-headline);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-gold);
    line-height: 1;
}

.score-max {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(200, 168, 85, 0.55);
}

.score-label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248, 243, 236, 0.65);
    margin-top: 0.4rem;
}

.score-detail {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(248, 243, 236, 0.7);
    line-height: 1.6;
}

/* --- KONTAKT-INFO-LISTE ("Findet uns hier") --- */
.kontakt-info-list {
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.kontakt-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.kontakt-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background-color: var(--color-bordeaux);
    color: var(--color-creme);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.kontakt-item-text strong {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-hell);
    margin-bottom: 0.15rem;
}

.kontakt-item-text span {
    color: var(--color-text);
    font-size: 0.95rem;
}

/* --- EINGEBETTETE GOOGLE-MAPS-KARTE (Termin-Detailseite) --- */
.maps-einbettung {
    margin-top: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(123, 30, 46, 0.15);
}

.maps-einbettung iframe {
    width: 100%;
    height: 320px;
    border: none;
    display: block;
}

/* --- CTA-BANNER (Verweis auf Kontaktseite) --- */
.cta-banner {
    text-align: center;
    background-color: var(--color-creme-dunkel);
    border-radius: 4px;
    padding: 2.5rem 1.5rem;
}

.cta-banner h2 {
    margin-bottom: 0.8rem;
}

.cta-banner p {
    color: var(--color-text-hell);
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

/* =========================================================
   7) TERMINE-SEITE
   ========================================================= */
.termine-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.termine-liste li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1rem;
    background-color: var(--color-weiss);
    border-left: 4px solid var(--color-bordeaux);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
}

.termine-liste li form {
    margin-left: auto;
}

.termin-datum {
    font-family: var(--font-headline);
    font-weight: 700;
    color: var(--color-bordeaux);
    min-width: 90px;
}

.termin-titel {
    font-weight: 600;
}

.termin-ort {
    color: var(--color-text-hell);
    font-size: 0.9rem;
}

/* =========================================================
   8) GALERIE (Rasterlayout)
   ========================================================= */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.galerie-bild {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    transition: opacity 0.2s;
}

.galerie-bild:hover {
    opacity: 0.85;
}

/* --- LIGHTBOX (Galerie-Bilder groß ansehen) --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(20, 8, 11, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.lightbox-overlay.is-open {
    display: flex;
}

.lightbox-bild {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-creme);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--color-gold);
}

.lightbox-pfeil {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-creme);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.lightbox-pfeil:hover {
    color: var(--color-gold);
}

.lightbox-pfeil-links {
    left: 0.5rem;
}

.lightbox-pfeil-rechts {
    right: 0.5rem;
}

@media (max-width: 600px) {
    .lightbox-pfeil {
        font-size: 2.2rem;
    }
}

/* =========================================================
   9) KONTAKT
   ========================================================= */
.kontakt-bereich {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 800px) {
    .kontakt-bereich {
        grid-template-columns: 1fr 1fr;
    }
}

.kontaktformular label {
    display: block;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}

.kontaktformular input,
.kontaktformular textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--color-gold);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}

.kontaktformular button {
    margin-top: 1.2rem;
    background-color: var(--color-bordeaux);
    color: var(--color-weiss);
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
}

.kontaktformular button:hover {
    background-color: var(--color-bordeaux-dunkel);
}

.formular-hinweis {
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.formular-hinweis--erfolg {
    background-color: rgba(76, 153, 94, 0.12);
    border-left: 4px solid #4c995e;
    color: #2f6b3d;
}

.formular-hinweis--fehler {
    background-color: rgba(123, 30, 46, 0.08);
    border-left: 4px solid var(--color-bordeaux);
    color: var(--color-bordeaux-dunkel);
}

.formular-hinweis--warnung {
    background-color: rgba(200, 168, 85, 0.15);
    border-left: 4px solid var(--color-gold);
    color: var(--color-bordeaux-dunkel);
}

.privater-bereich-breadcrumb {
    background-color: var(--color-creme-dunkel);
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.vereinsadresse {
    background-color: var(--color-weiss);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
}

/* =========================================================
   10) FOOTER (footer.php)
   ========================================================= */
.site-footer {
    background-color: var(--color-bordeaux-dunkel);
    color: var(--color-creme);
    padding: 2rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

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