/* ============================================================
   1. SCHRIFTART UND TYPOGRAFIE
   Beteckna wird lokal eingebunden; body legt die Grundschrift fest.
   h1/h2 = Überschriften, p = Fließtext, figcaption = Bildtext.
   ============================================================ */

/* Beteckna – unsere Hausschrift */

@font-face {
    font-family: "Beteckna";
    src: url("fonts/Beteckna.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Grundschrift */
body {
    font-family: "Beteckna", "Century Gothic", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

/* Hauptüberschrift */
h1 {
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* Abschnittsüberschriften */
h2 {
    font-size: 1.5rem;
    font-weight: 400;
}

/* Bildunterschriften */
figcaption {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Fließtext */
p {
  /*  font-size: 1rem; */
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* ============================================================
   2. BILDER OHNE TEXTUMFLUSS
   figure_left / center / right richten einen Bildcontainer aus.
   Der Bildtext wird über figcaption (oben definiert) gestaltet.
   ============================================================ */

/* Bilder */
.figure_left {
    margin-left: 0;
    margin-right: auto;
}

.figure_center {
    margin-left: auto;
    margin-right: auto;
}

.figure_right {
    margin-left: auto;
    margin-right: 0;
}
/* Bilder ende */

/* ============================================================
   3. SEITENKOPF
   .seitenkopf = gesamter Kopf; .logo = URS ORGEL;
   .vereinsname = Unterzeile.
   ============================================================ */

/* Kopfbereich */
.seitenkopf {
    text-align: center;
    padding: 40px 20px 25px;
}

/* Schriftzug URS ORGEL */
.logo {
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

/* Vereinsname */
.vereinsname {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 10px;
}

/* ============================================================
   4. NAVIGATION
   .hauptnavigation = Rahmen und Ausrichtung;
   .desktopmenue = normale Menüleiste; .mobilmenue = Klappmenü.
   ============================================================ */

/* Hauptnavigation */
.hauptnavigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;

    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;

    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
}

/* Menüpunkte */
.hauptnavigation a {
    color: #333333;
    text-decoration: none;
    font-size: 1rem;
}

/* Maus über einem Menüpunkt */
.hauptnavigation a:hover {
    color: #990000;
}

/* ============================================================
   5. INHALTSBEREICH
   main begrenzt die Breite und setzt den Seitenabstand.
   ============================================================ */

/* Seiteninhalt */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5px 20px;
    box-sizing: border-box;
}

/* Desktop-Navigation */
.desktopmenue {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.mobilmenue {
    display: none;
}

/* ============================================================
   6. SCHMALE BILDSCHIRME (bis 700 px)
   Desktopmenü aus-, Mobilmenü einblenden;
   Logo und Unterzeile kleiner darstellen.
   ============================================================ */

/* Smartphone-Navigation */
@media (max-width: 700px) {

    .desktopmenue {
        display: none;
    }

    .mobilmenue {
        display: block;
        width: 100%;
    }

    .mobilmenue summary {
        cursor: pointer;
        text-align: right;
        list-style: none;
        font-size: 1.2rem;
    }

    .mobilmenue summary::-webkit-details-marker {
        display: none;
    }

    .menuepunkte {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
    }

    .logo {
        font-size: 2.5rem;
    }

    .vereinsname {
        font-size: 1rem;
    }
}

/* ============================================================
   7. BILDER MIT TEXTUMFLUSS
   float: left/right lässt Text seitlich am Bild vorbeilaufen.
   margin: oben rechts unten links (vier Werte).
   .clear beendet den Umfluss beider Seiten.
   ============================================================ */

.figure_float_left {
    float: left;
    margin: 0 25px 20px 0;
}	

.figure_float_right {
    float: right;
    margin: 0 0 25px 25px;
}

.clear {
    clear: both;
}

/* ============================================================
   8. TABELLE „PETER UND DER WOLF“
   .mitwirkende = Tabelle insgesamt;
   td = Tabellenzellen; first-child = Namensspalte;
   last-child = Aufgaben-/Rollenspalte.
   ============================================================ */

.mitwirkende {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.mitwirkende td {
    border: 1px solid #ddd;
    padding: 8px 10px;
}

.mitwirkende td:first-child {
    width: 50%;
    text-align: right;
}

.mitwirkende td:last-child {
    text-align: left;
}


/* Tabellenüberschriften dürfen umbrechen */
.repertoire th {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Repertoire-Tabelle */
.repertoire {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

/* Feste Spaltenbreiten */
.repertoire th:nth-child(1),
.repertoire td:nth-child(1) {
    width: 35%;
}

.repertoire th:nth-child(2),
.repertoire td:nth-child(2) {
    width: 30%;
}

.repertoire th:nth-child(3),
.repertoire td:nth-child(3) {
    width: 25%;
}

.repertoire th:nth-child(4),
.repertoire td:nth-child(4) {
    width: 10%;
}

/* Lange Texte umbrechen */
.repertoire th,
.repertoire td {
    overflow-wrap: anywhere;
}

/* Veranstaltungstabelle */
.veranstaltungen {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.veranstaltungen td {
    width: 50%;
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: middle;
    line-height: 1.5;
}

/* Veranstaltungstitel rechtsbündig */
.veranstaltungen td:first-child {
    text-align: right;
}

/* Veranstaltungsort linksbündig */
.veranstaltungen td:last-child {
    text-align: left;
}