@charset "UTF-8";

/*
 * style.css - hans-dieter-arntz.de CMS
 *
 * Zusammengefasst aus den Original-Dateien:
 *   format.css, classes.css, tags.css, project.css, SpryMenuBarHorizontal.css
 *
 * Design bleibt exakt erhalten (800px-Layout, Cambria/Georgia, etc.).
 * Ergaenzungen: Responsive Media Queries + reine CSS-Navigation.
 */


/* ================================================================
   1. BASIS-LAYOUT (aus format.css)
   ================================================================ */

body {
    background: #f9f9f3;
    margin: 0;
    padding: 0;
    text-align: justify;
    color: #222222;
    font: 62.5%/1.4 Cambria, Georgia, "Times New Roman", Times, serif;
    height: 100%;
    margin-bottom: 1px;
}

html {
    height: 100%;
    margin-bottom: 1px;
}

#container {
    width: 800px;
    margin: 0 auto;
    text-align: left;
}

#header {
    background: #000;
    height: 93px;
    border-bottom: 1px solid #FFFFFF;
}

#mainContent {
    text-align: justify;
}

#footer {
    border-top: 1px dotted #333333;
    width: 800px;
}

#footer p {
    margin: 0;
    text-align: right;
    padding: 6px 0;
}

.news {
    padding-bottom: 2em;
}

.clearfloat {
    clear: both;
    height: 0;
    font-size: 1px;
    line-height: 0px;
}


/* ================================================================
   2. TAGS (aus tags.css)
   ================================================================ */

h1, h2, h3, h4, h5, h6, p, blockquote, ul, ol, dl, address {
    padding: 0px;
    margin: 0px;
}

p {
    font-size: 1.5em;
    margin-bottom: 0.75em;
    text-align: left;
}

/* Abstand vor Ueberschriften nach Inhalt (ersetzt entfernte <p>&nbsp;</p> Spacer) */
p + h1, p + h3, p + h5,
table + h1, table + h3, table + h5,
div + h1, div + h3, div + h5 {
    margin-top: 2.5em;
}

ol, ul {
    font-size: 1em;
    margin-bottom: 0.75em;
    text-align: left;
    padding-left: 2em;
}

em {
    font-style: italic;
    text-align: left;
}

strong {
    font-weight: bold;
    text-align: center;
}

u {
    text-decoration: underline;
}

blockquote {
    font-style: italic;
    margin: 3em 10%;
}

h1 {
    text-align: center;
    font-size: 2.2em;
    margin-top: 1.5em;
}

/* Titel als GIF-Bild (Original-Stil) */
.title-image {
    max-width: 100%;
    height: auto;
}

/* Titel als dekorative Schrift (Ersatz fuer GIF-Bilder) */
h1.title-decorative {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-style: italic;
    font-weight: normal;
    color: #990000;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 2em;
    margin-top: 2em;
    margin-bottom: 0.375em;
    text-align: center;
    font-style: normal;
}

h3 {
    font-size: 1.8em;
    margin-top: 1.8em;
    margin-bottom: 0.45em;
    text-align: left;
}

h4 {
    font-size: 1.8em;
    text-align: center;
}

h5 {
    font-size: 1.8em;
    letter-spacing: 0.1em;
    margin-top: 2em;
    text-align: left;
}

h6 {
    font-size: 1.5em;
    margin-top: 1.8em;
    margin-bottom: 0.225em;
}

img {
    border-style: none;
    text-align: center;
    height: auto;
}

table {
    width: 100%;
}

td {
    font-size: 1em;
    vertical-align: top;
    padding: 3px;
}

/* Flaggen-/Icon-Bilder: Originalgroesse beibehalten (waren 20x15 im Original) */
img[src*="flag"], img[src*="Flag"] {
    width: 20px;
    height: 15px;
    display: inline;
    vertical-align: middle;
    border: 1px solid #999;
}

/* Kleine Navigations-Icons inline halten */
img[src*="navi_border"] {
    width: 100%;
    height: 3px;
}

/* Link-Icon-Bilder: Mindestgroesse sicherstellen */
img[src*="icons/link"] {
    min-width: 16px;
}

.center_p {
    font-size: 1.5em;
    margin-bottom: 0.75em;
    text-align: center;
}

.right_p {
    font-size: 1.5em;
    margin-bottom: 0.75em;
    text-align: right;
}

.left_p {
    font-size: 1.5em;
    margin-bottom: 0.75em;
    text-align: left;
}


/* ================================================================
   3. KLASSEN (aus classes.css)
   ================================================================ */

.image {
    border: 1px solid #999999;
    padding: 6px;
    text-align: center;
    display: block;
    margin: auto;
    height: auto;
    width: auto;
}

.image_less {
    display: block;
    margin: 0 auto;
}

.image_inside {
    border: 1px solid #999999;
    display: inline;
    vertical-align: middle;
    max-width: 100%;
}

/* Datentabellen: Rahmen + zentriert (Bevoelkerungszahlen, Statistiken etc.) */
.data-table {
    border-collapse: collapse;
    margin: 1em auto;
    width: auto;
}

.data-table td,
.data-table th {
    border: 1px solid #999;
    padding: 4px 10px;
    vertical-align: top;
}

.image_insideKopie {
    border: 1px solid #999999;
    margin-right: 20px;
}

.image_left {
    border: 1px solid #999999;
    float: left;
    margin: 6px 12px 6px 0;
    padding: 6px;
}

.image_right {
    border: 1px solid #999999;
    margin: 6px 0 6px 12px;
    padding: 6px;
    float: right;
}

.image_right_ohne_rahmen {
    margin: 6px 0 6px 12px;
    padding: 6px;
    float: right;
}

.image_zentriert_ohne_rahmen {
    margin: 6px 0 6px 12px;
    padding: 6px;
    float: none;
}

a:link {
    color: #990000;
    text-decoration: none;
}

a:visited {
    text-decoration: none;
    color: #990000;
}

a:hover {
    text-decoration: underline;
    color: #990000;
}

a:active {
    text-decoration: none;
    color: #990000;
}

a:focus {
    outline: none;
}

.urgent_news {
    text-align: right;
}

#zurueck,
.zurueck {
    border-top: 1px dotted #333333;
    padding-top: 10px;
    padding-bottom: 10px;
    height: 22px;
    margin-top: 3em;
}


/* ================================================================
   4. PROJEKT-SPEZIFISCH (aus project.css)
   ================================================================ */

.blockquote_cite {
    font-style: italic;
    margin: 3em 10% 0.75em;
}

.blockquote_citeKopie {
    font-style: italic;
    margin: 0em 10% 0.0em;
}

.cite {
    color: #006600;
    text-align: right;
    font-style: italic;
    margin-bottom: 3em;
}

.zeitungsquelle {
    color: #444444;
    margin-bottom: 1.5em;
    margin-top: -0.8em;
    text-align: center;
}

.hyperlink {
    font-style: italic;
    color: #990000;
}

li {
    font-size: 1.5em;
}

#banner {
    height: 57px;
}

#banner > div {
    line-height: 0;
    margin-bottom: 0;
}

.author {
    font-size: 1.5em;
    padding-top: .8em;
    color: #666;
    text-align: center;
}

.date {
    font-size: 1.5em;
    font-weight: bold;
    text-align: right;
    border-bottom: 1px dotted #333333;
    margin-bottom: 2em;
    margin-top: 1em;
}


.datum {
    font-size: 1.5em;
    font-weight: bold;
    text-align: right;
    border-top: 1px solid #333333;
    margin-top: 2em;
    margin-bottom: 1em;
}

.news_headline {
    font-size: 1.7em;
    text-align: left;
    margin-bottom: 1em;
    font-weight: bold;
}

#wiederholender_bereich {
    text-align: justify;
}

#news_LINKS_title {
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 0.2em;
    margin-top: 2em;
}

#LINKS {
    font-size: 1.5em;
    text-align: left;
}

.erstesDatum {
    font-size: 1.5em;
    font-weight: bold;
    text-align: right;
    border-top: 1px solid #333333;
    margin-bottom: 1em;
    margin-top: 1em;
}

.buecher_stern {
    color: #f9f9f3;
}

.anmerkung {
    font-weight: bold;
    text-transform: uppercase;
    color: #990000;
    text-align: center;
}

.link_buecher {
    font-size: 1.5em;
    text-align: left;
}

.bildunterschrift_zentriert {
    color: #444444;
    margin-bottom: 1.5em;
    text-align: center;
    display: block;
    font-style: italic;
}

.bildunterschrift_rahmen {
    color: #444444;
    text-align: center;
    display: block;
    font-style: italic;
    border: 1px dotted #333;
    background-color: #F4F4F4;
    margin: 0 0 10px 20px;
}

.bildunterschrift_zentriert_ohne_padding {
    color: #444444;
    text-align: center;
    display: block;
    font-style: italic;
}

.bildunterschrift_zentriertKopie {
    color: #444444;
    text-align: center;
    display: block;
    font-style: italic;
}


/* ================================================================
   5. NAVIGATION (ersetzt Spry-Framework, reine CSS-Loesung)
   ================================================================ */

#navigation {
    position: relative;
}

/* Hamburger-Button (nur mobil sichtbar) */
.mobile-menu-toggle {
    display: none;
    background: #eceadd;
    border: 1px solid #fff;
    cursor: pointer;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
}

.hamburger-icon {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #333;
    position: relative;
    vertical-align: middle;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    position: absolute;
    left: 0;
}

.hamburger-icon::before {
    top: -6px;
}

.hamburger-icon::after {
    top: 6px;
}

/* Hauptnavigation */
#NavigationPanel {
    margin: 0 auto;
    list-style-type: none;
    font-size: 1.4em;
    cursor: default;
    width: 800px;
    font-family: Candara, Calibri, Arial, sans-serif;
    font-weight: normal;
    padding: 1px;
    display: flex;
}

#NavigationPanel > li {
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: relative;
    text-align: left;
    cursor: pointer;
    flex: 1;
}

#NavigationPanel > li > a {
    display: block;
    cursor: pointer;
    background-color: #eceadd;
    padding: 0.5em 0.75em;
    color: #333;
    text-decoration: none;
    border: 1px solid #FFFFFF;
    margin: -1px -1px;
    white-space: nowrap;
}

#NavigationPanel > li > a:hover,
#NavigationPanel > li > a:focus {
    background-color: #DFDCC6;
    color: #333;
}

#NavigationPanel > li.active > a {
    background-color: #DFDCC6;
}

/* Dropdown-Submenues */
#NavigationPanel .submenu {
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    z-index: 1020;
    cursor: default;
    width: 264px;
    position: absolute;
    left: -9999px;
    opacity: 0;
    transition: opacity 0.15s ease;
    border: 1px solid #FFFFFF;
    background: #eceadd;
}

#NavigationPanel > li:hover > .submenu,
#NavigationPanel > li:focus-within > .submenu {
    left: auto;
    opacity: 1;
}

#NavigationPanel .submenu li {
    width: 264px;
    font-size: 100%;
}

#NavigationPanel .submenu a {
    display: block;
    cursor: pointer;
    background-color: #eceadd;
    padding: 0.5em 0.75em;
    color: #333;
    text-decoration: none;
    border: 1px solid #FFFFFF;
    margin: -1px;
}

#NavigationPanel .submenu a:hover,
#NavigationPanel .submenu a:focus {
    background-color: #DFDCC6;
    color: #333;
}

/* Pfeil-Indikator fuer Submenues */
#NavigationPanel > li.has-submenu > a::after {
    content: ' \25BE'; /* kleiner Pfeil nach unten */
    font-size: 0.8em;
}


/* ================================================================
   5b. SUCHE (kann einfach entfernt werden)
   ================================================================ */

.search-form {
    margin: 1.5em 0;
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 1.4em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.search-button {
    padding: 8px 20px;
    font-size: 1.4em;
    background: #990000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-button:hover {
    background: #770000;
}

.search-result {
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 1px dotted #ccc;
}

.search-result h3 {
    margin-bottom: 0.3em;
}

.search-info {
    color: #666;
    font-style: italic;
}


/* ================================================================
   6. RESPONSIVE DESIGN (NEU - ergaenzt das 800px-Original)
   ================================================================ */

/* Tablet: <= 860px */
@media (max-width: 860px) {
    #container {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    #footer {
        width: 100%;
    }

    #NavigationPanel {
        width: 100%;
    }

    #header {
        height: auto;
    }

    #banner {
        height: auto;
    }

    #banner img {
        width: 100%;
        height: auto;
        max-width: 800px;
    }

    /* Alle Bilder responsive begrenzen (ab Tablet) */
    img {
        max-width: 100%;
    }

    .image, .image_left, .image_right {
        max-width: 100%;
        height: auto !important;
    }

    /* Bilder in Tabellen responsive machen */
    table img {
        max-width: 100%;
        height: auto !important;
    }

    table {
        width: 100% !important;
    }

    /* Feste TD-Breiten aufheben, damit benachbarte Zellen nicht gequetscht werden */
    table td, table th {
        width: auto !important;
        min-width: 0;
    }
}

/* Mobil: <= 600px */
@media (max-width: 600px) {
    /* Hamburger-Menue anzeigen */
    .mobile-menu-toggle {
        display: block;
    }

    #NavigationPanel {
        display: none;
        flex-direction: column;
        width: 100%;
        font-size: 1.2em;
    }

    #NavigationPanel.open {
        display: flex;
    }

    #NavigationPanel > li {
        width: 100%;
    }

    #NavigationPanel .submenu {
        position: static;
        left: auto;
        opacity: 1;
        width: 100%;
        display: none;
    }

    #NavigationPanel > li.has-submenu.submenu-open > .submenu {
        display: block;
    }

    #NavigationPanel .submenu li {
        width: 100%;
    }

    #NavigationPanel .submenu a {
        padding-left: 2em;
    }

    /* Typographie anpassen */
    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.4em;
    }

    /* Einheitliche Schriftgroesse fuer ALLE Textelemente auf Mobile.
       Ohne diese Regel haben .left_p, .link_buecher etc. noch 1.5em
       waehrend <p> nur 1.2em hat → inkonsistente Groessen. */
    p, ol, ul,
    .left_p, .center_p, .right_p,
    .link_buecher, .author, .date, .datum,
    .erstesDatum, .news_headline,
    #news_LINKS_title, #LINKS {
        font-size: 1.2em;
    }

    /* li: NICHT nochmal vergroessern (verhindert Kompendierung mit ol/ul) */
    li {
        font-size: 1em;
    }

    /* Bilder voll-breit, Float aufheben */
    .image, .image_left, .image_right,
    .image_right_ohne_rahmen, .image_zentriert_ohne_rahmen,
    .image_insideKopie {
        float: none !important;
        display: block;
        margin: 10px auto;
        max-width: 100%;
    }

    /* Flaggen/Icons bleiben inline (nicht block) */
    img[src*="flag"], img[src*="Flag"] {
        width: 20px !important;
        height: 15px !important;
        display: inline !important;
        margin: 0 2px;
    }

    /* .image_inside: nur block wenn KEIN Flag-Bild */
    .image_inside:not([src*="flag"]):not([src*="Flag"]) {
        float: none !important;
        display: block;
        margin: 10px auto;
        max-width: 100%;
    }

    /* Floats im Fliesstext sauber einschliessen */
    #mainContent, #wiederholender_bereich {
        overflow: hidden;
    }

    /* Tabellen-Layout aufloesen: Text unter Bild statt daneben */
    table, tbody, thead, tfoot {
        display: block !important;
        width: 100% !important;
    }

    table tr {
        display: block;
        width: 100%;
        height: auto !important;
    }

    table td, table th {
        display: block;
        width: 100% !important;
        height: auto !important;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal !important;
        padding: 2px 0;
        margin: 0;
    }

    /* Datentabellen: Tabellenstruktur auf Mobile beibehalten */
    .data-table,
    .data-table tbody,
    .data-table thead {
        display: table !important;
        width: 100% !important;
    }

    .data-table tr {
        display: table-row !important;
    }

    .data-table td,
    .data-table th {
        display: table-cell !important;
        width: auto !important;
        padding: 3px 6px;
        font-size: 1.1em;
        word-break: normal;
    }

    /* Auf Mobile: Bilder in Tabellen zentrieren */
    table td .image,
    table td .image_less,
    table td div[align="center"] {
        margin: 10px auto;
    }

    /* Auf Mobile: Text zentrieren wo gewuenscht */
    .mobile-center {
        text-align: center !important;
    }

    /* Leere Tabellenzellen ausblenden */
    table td:empty {
        display: none;
    }

    /* Links nie aus Container laufen lassen */
    a {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    #footer p {
        text-align: center;
        font-size: 1.2em;
    }
}
