body { 
  font-family: Arial, sans-serif; 
  margin: 0;
  padding: 0; 
}

.content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 5px;
  box-sizing: border-box;
}

/* Inhalt nur beim Drucken anzeigen */
.print-only {
    display: none;
}

@media print {
    .print-only {
        display: inline;
    }
}

/* Stile für Druckansicht */
@media print {

    /* Verstecke den Teil mit der Klasse "hide-on-print" beim Drucken */
    .hide-on-print {
        display: none;
    }

    header, nav, nav a, .fussnote, .trennlinie {
        background: transparent !important; /* Hintergrund auf transparent setzen */
        color: #4BAC3F !important;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 0px;
    }

    h2 {
        font-size: 18px;
        margin-bottom: 0px
    }

    p {
        font-size: 15.5px;
        margin-bottom: 0px
    }

}

/* Drucken von Modals (stehen daher unten doppelt) */
.modals-print-only {
    display: none;
}

@media print {
    .modals-print-only {
        display: block;
        margin-top: 0px;
    }
}

header {
    background-color: #4BAC3F;
    color: #fff;
    padding: 0.8px;
    text-align: center;
}

img {
    width: 100%;
    /* 100% der Breite des übergeordneten Elements (hier: des Headers) */
    height: auto;
    /* Das Seitenverhältnis des Bildes beibehalten */
    display: block;
    margin: 0 auto;
    /* Zentriert das Bild horizontal */
    /* Im Bild kommen folgende Farben vor: orange #F5B935 türkis #11ABC1 grün #4BAC3F magenta #DF3062 */
}

nav {
    background-color: #4BAC3F;
    display: flex;
    justify-content: center;
    padding: 16px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 9px;
}

section {
    padding: 9px;
}

/* Stile für die Trennlinie */

.trennlinie {
    border-bottom: 0.2em solid #4BAC3F; /* Breite und Farbe der Trennlinie anpassen */
}

/* Spezielle Klasse für bestimmte p-Tags */
.abstand {
    margin-top: 1.5em; /* Abstand über dem Absatz */
    margin-bottom: 1.0em; /* Abstand unter dem Absatz */
}

/* Stile für die Fußnote */
.fussnote {
    background-color: #4BAC3F; /* Hintergrund */
    color: #fff; /* Weiße Schriftfarbe */
    text-align: center;
    padding: 9px;
}
.fussnote a {
    color: #fff; /* Weiß für Links */
}

/* CSS-Stil für die Tabellen */
.tabelle-ohne-Rand {
    border: 0;
    border-collapse: collapse;
}

.tabelle-ohne-Rand th,
.tabelle-ohne-Rand td {
    text-align: left;
    vertical-align: top;
    padding: 3px;
}

/* Erste Spalte nicht umbrechen */
.tabelle-ohne-Rand th:first-child,
.tabelle-ohne-Rand td:first-child {
    white-space: nowrap;
}

/* CSS-Stil für die spezifische Liste ohne Punkte, wird nicht verwendet */
.liste-ohne-punkte {
    list-style-type: none;
}

/* CSS-Stil für die spezifische Liste für die Quellen, wird nicht verwendet */
.liste_quellen {
    list-style: none;             /* native Listennummerierung deaktivieren */
    counter-reset: quelle;        /* eigenen Zähler starten */
    padding-left: 0;
    font-family: sans-serif;      /* oder eine andere Standardschrift */
    font-size: 1rem;
}

.liste_quellen li {
    counter-increment: quelle;
    display: flex;
    align-items: flex-start;
    gap: 0.5ch;                   /* Abstand zwischen Zahl und Text */
}

.liste_quellen li::before {
    content: "[" counter(quelle) "]";   /* eckige Klammern + Zahl */
    font-family: inherit;               /* gleiche Schrift wie Text */
    font-size: inherit;
    min-width: 3ch;                     /* Platz für ein- bis zweistellig */
    text-align: right;
    flex-shrink: 0;
}

/* CSS-Stil für die spezifische Liste für die Quellen mit Autor und Jahr */
.liste_quellen2 {
    list-style: none;             /* native Listennummerierung deaktivieren */
    padding-left: 0;
    font-family: sans-serif;      /* oder eine andere Standardschrift */
    font-size: 1rem;
}

.liste_quellen2 li {
    padding-left: 2ch;
    text-indent: -2ch;
}

.liste_code {
    margin-top: 0;
    list-style-position: outside; /* Zahl/Punkt bleibt außen */
    padding-left: 3ch;            /* Platz für zweistellige Zahl */
}

.liste_code li::marker {
    font-variant-numeric: tabular-nums; /* sorgt für gleich breite Ziffern */
    width: 3ch;                         /* optional – für feste Breite */
    display: inline-block;
    text-align: right;                 /* sorgt für rechtsbündige Zahl */
}


.button {
    display: inline-block;
    padding: 5px 10px;
    background-color: #4BAC3F; /* Grün */
    color: white;
    text-decoration: none;
    border-radius: 44px;
    font-weight: bold;
}

.button2 {
    display: inline-block;
    padding: 5px 10px;
    background-color: #808080; /* Grau */
    color: white;
    text-decoration: none;
    border-radius: 44px;
    font-weight: bold;
}

.button:hover {
    background-color: #0056b3;
}

.button1 {
    display: inline-block;
    padding: 5px 10px;
    background-color: #808080; /* Grau */
    color: white;
    text-decoration: none;
    border-radius: 44px;
    font-weight: bold;
}

.button1:hover {
    background-color: #0056b3;
}

/* Modal Box */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 5vw;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 75vh;
    overflow-y: auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
}

.modal-close-btn {
    position: sticky;
    top: 0;
    right: 0;
    z-index: 10;
    background: none;
    border: none;
    font-size: 24px;
    float: right;
    background-color: white; /* für bessere Sichtbarkeit beim Scrollen */
    padding: 5px;
    margin: -10px -10px 10px 0;
    cursor: pointer;
}

.weniger {
    color: #888;
}