
/* ==================================================
   Ornithologische Mitteilungen
   Neues CSS für die HTML-Website
   ================================================== */


/* 1. Grundeinstellungen
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #606060;
    background: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
}

a:hover,
a:focus {
    text-decoration: underline;
}

p {
    margin: 0 0 20px;
}

h1, h2, h3, h4 {
    color: #222222;
    line-height: 1.3;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 26px;
    margin-bottom: 15px;
}

h3 {
    font-size: 20px;
}

hr {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    margin: 25px 0 30px;
}


/* 2. Gesamte Webseite
================================================== */

#page {
    width: 870px;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid #cccccc;
    background: #ffffff;
}


/* 3. Kopfbereich
================================================== */

#masthead {
    height: 155px;
    position: relative;
    background: #d2c4b7;
}

.site-branding {
    position: relative;
    height: 100%;
}

/* Logo */

#site-logo {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    width: 130px;
}

#site-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Schriftzug */

h1#site-title {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 75%;
    margin: 0;
    padding: 0;
    text-align: right;
    text-transform: uppercase;
    font-size: 250%;
    font-weight: 800;
    line-height: 1.15;
}

h1#site-title a {
    color: #000000;
    font-weight: 600;
}


/* 4. Hauptnavigation
================================================== */

#main-menu {
    width: 100%;
    min-height: 45px;
    background: rgba(101, 94, 86, 0.9);
}

#main-menu ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

#main-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
}

#main-menu li a {
    display: block;
    padding: 12px 10px;
    color: #dedede;
    font-weight: bold;
    white-space: nowrap;
}

#main-menu li a:hover,
#main-menu li a:focus {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.15);
    text-decoration: none;
}


/* 5. Titelbild
================================================== */

#slidebox_statisch {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #ffffff;
}

#slidebox_statisch img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}


/* 6. Untertitel unter dem Titelbild
================================================== */

#heftrand {
    width: 100%;
    min-height: 40px;
    padding: 7px 20px;
    margin: 0;
    background: #a0968c;
    color: #ffffff;
    text-align: center;
}


/* 7. Hauptinhalt
================================================== */

#main-content {
    padding-top: 0;
}

#content-wrap {
    width: 100%;
}

#primary {
    width: 100%;
    padding: 25px;
}

h1.page-title {
    margin: 15px 0 25px;
    font-size: 32px;
    font-weight: bold;
    color: #222222;
}


/* 8. Geschenkangebot
================================================== */

.geschenk-bereich {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin: 20px 0 35px;
}

.geschenk-bild {
    width: 25%;
    flex-shrink: 0;
}

.geschenk-bild img {
    display: block;
    width: 100%;
    height: auto;
}

.geschenk-bild a:hover img {
    opacity: 0.8;
}

.geschenk-text {
    flex: 1;
    line-height: 1.5;
}

.geschenk-text p {
    margin-bottom: 15px;
}


/* 9. Listen
================================================== */

#primary ul,
#primary ol {
    margin: 0 0 20px 25px;
    padding: 0;
}

#primary ul {
    list-style: disc;
}

#primary ol {
    list-style: decimal;
}


/* 10. Fußbereich
================================================== */

.site-footer {
    width: 100%;
    padding: 10px 20px;
    background: #292929;
    font-size: 13px;
}

.fcred {
    padding: 10px;
    color: #bbbbbb;
}

.fcred a {
    color: #ffffff;
}


/* 11. Hilfsklassen
================================================== */

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.clear {
    clear: both;
}


/* 12. Tablet und kleinere Bildschirme
================================================== */

@media screen and (max-width: 768px) {

    #page {
        width: 100%;
        border: none;
    }

    #masthead {
        height: 140px;
    }

    #site-logo {
        left: 20px;
        width: 110px;
    }

    h1#site-title {
        right: 20px;
        width: 70%;
        font-size: 200%;
    }

    #main-menu ul {
        justify-content: center;
    }

    #main-menu li a {
        padding: 12px 9px;
    }

    #slidebox_statisch,
    #slidebox_statisch img {
        height: 300px;
    }

    #primary {
        padding: 20px;
    }

}


/* 13. Smartphones
================================================== */

@media screen and (max-width: 600px) {

    #masthead {
        height: auto;
        min-height: 0;
        padding: 15px 10px;
    }

    #site-logo {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100px;
        margin: 0 auto 10px;
    }

    h1#site-title {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        padding: 0;
        margin: 0;
        text-align: center;
        font-size: 180%;
    }

    #main-menu ul {
        display: flex;
        justify-content: center;
    }

    #main-menu li a {
        padding: 10px;
        font-size: 15px;
    }

    #slidebox_statisch,
    #slidebox_statisch img {
        height: 220px;
    }

    #heftrand {
        padding: 10px;
        font-size: 15px;
    }

    #primary {
        padding: 15px;
    }

    h1.page-title {
        font-size: 26px;
        margin-top: 10px;
    }

    h2 {
        font-size: 23px;
    }

    .geschenk-bereich {
        flex-direction: column;
        gap: 20px;
    }

    .geschenk-bild {
        width: 100%;
        max-width: 300px;
    }

    .site-footer {
        padding: 10px;
    }

    .fcred {
        padding: 5px;
        line-height: 2;
    }

}
/* Yumpu Einbettungen */

.yumpu-bereich {
    width: 100%;
    margin: 30px 0;
}

.yumpu-bereich h2 {
    margin-bottom: 20px;
}

.embed-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    max-width: 100%;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* Jahresregister */

.jahresregister {
    list-style: none !important;
    margin: 20px 0 30px !important;
    padding: 0 !important;
}

.jahresregister li {
    padding: 9px 12px;
    border-bottom: 1px solid #e5e5e5;
}

.jahresregister li:first-child {
    border-top: 1px solid #e5e5e5;
}

.jahresregister li a {
    font-weight: normal;
}

.jahresregister li a:hover {
    color: #806f60;
}

/* Abo-Seite */

.abo-bereich {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin: 20px 0 35px;
}

.abo-text {
    flex: 1;
    min-width: 0;
}

.abo-text h2 {
    margin-top: 25px;
}

.abo-bestellschein {
    width: 27%;
    flex-shrink: 0;
    text-align: center;
}

.abo-bestellschein img {
    display: block;
    width: 100%;
    height: auto;
}

.abo-bestellschein p {
    margin-top: 10px;
    font-size: 15px;
}

@media screen and (max-width: 600px) {

    .abo-bereich {
        flex-direction: column;
    }

    .abo-bestellschein {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

}

/* Seite Walther Thiede */

.thiede-bereich {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin: 20px 0 35px;
}

.thiede-text {
    flex: 1;
    min-width: 0;
}

.thiede-foto {
    width: 32%;
    flex-shrink: 0;
}

.thiede-foto img {
    width: 100%;
    height: auto;
    display: block;
}

.bildunterschrift {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 10px;
    margin-bottom: 5px;
}

.bildquelle {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

@media screen and (max-width: 600px) {

    .thiede-bereich {
        flex-direction: column;
    }

    .thiede-foto {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

}

/* Seite Stiftung */



.stiftung-info h2,
.stiftung-kontakt h2 {
    margin-bottom: 20px;
}

.stiftung-kontakt {
    margin-bottom: 30px;
}

@media screen and (max-width: 600px) {

    .stiftung-projekt {
        padding: 15px;
    }

}


/* Dropdown-Menü Archiv */

#main-menu li.dropdown {
    position: relative;
}

#main-menu li.dropdown .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    height: auto;
    background: #655e56;
    padding: 8px 0;
    margin: 0;
    z-index: 1000;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#main-menu li.dropdown:hover .submenu,
#main-menu li.dropdown:focus-within .submenu {
    display: flex;
}

#main-menu li.dropdown .submenu li {
    width: 100%;
    margin: 0;
    padding: 0;
}

#main-menu li.dropdown .submenu li a {
    display: block;
    width: 100%;
    padding: 11px 20px;
    color: #fff;
    font-size: 15px;
    font-weight: normal;
    line-height: 1.4;
}

#main-menu li.dropdown .submenu li a:hover,
#main-menu li.dropdown .submenu li a:focus {
    background: rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* Pfeil beim Dropdown-Menü Archiv */

#main-menu li.dropdown > a::after {
    content: " ▾";
    font-size: 12px;
    margin-left: 4px;
}


/* Archiv – Jahrgangsseiten */

.archiv-jahrgang {
    padding-top: 10px;
}

.archiv-jahrgang .heft {
    margin: 25px 0 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ccc;
}

.archiv-jahrgang .heft h2 {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 20px;
    color: #333;
}

.heft-inhalt {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.heft-bild {
    width: 150px;
    flex-shrink: 0;
}

.heft-bild img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    padding: 3px;
    box-sizing: border-box;
}

.heft-artikel {
    flex: 1;
    min-width: 0;
}

.heft-artikel ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.heft-artikel li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Mobile Darstellung */

@media screen and (max-width: 600px) {

    .heft-inhalt {
        flex-direction: column;
        gap: 15px;
    }

    .heft-bild {
        width: 130px;
    }

    .archiv-jahrgang .heft h2 {
        font-size: 19px;
    }
}

/* =========================================
   ARCHIV – JAHRGANGSSEITEN
   ========================================= */

.archiv-jahrgang .heft {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.archiv-jahrgang .heft h2 {
    font-size: 19px;
    margin-bottom: 15px;
}

/* Bild und Inhaltsverzeichnis nebeneinander */
.archiv-jahrgang .heft-inhalt {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

/* Heftbilder */
.archiv-jahrgang .heft-bild {
    flex: 0 0 190px;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.archiv-jahrgang .heft-bild img {
    display: block;
    width: 100%;
    height: auto;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

/* Inhaltsverzeichnis */
.archiv-jahrgang .heft-artikel {
    flex: 1;
    min-width: 0;
}

.archiv-jahrgang .heft-artikel ul {
    margin: 0;
    padding-left: 18px;
}

.archiv-jahrgang .heft-artikel li {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 7px;
}

/* Mobile Darstellung */
@media (max-width: 650px) {

    .archiv-jahrgang .heft-inhalt {
        gap: 15px;
    }

    .archiv-jahrgang .heft-bild {
        flex: 0 0 125px;
    }

    .archiv-jahrgang .heft-artikel li {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Link zur Dr.-Walther-Thiede-Stiftung */

.stiftungs-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.stiftungs-link:hover {
    color: #355b3d;
    text-decoration: underline;
}
