/* ==========================================================================
   SCHRIFTARTEN (LATO & ROBOTO)
   ========================================================================== */

/* lato-regular - latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/lato-v14-latin-regular.woff2') format('woff2');
}

/* lato-700 - latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/lato-v14-latin-700.woff2') format('woff2');
}

/* lato-700italic - latin */
@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/lato-v14-latin-700italic.woff2') format('woff2');
}

/* roboto-regular - latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/roboto-v18-latin-regular.woff2') format('woff2');
}

/* ==========================================================================
   GRUNDLAGEN & TYPOGRAFIE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body#main_body,
body {
    background-color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.5;
}

div {
    color: #0f0f0f;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    line-height: 1.4;
    font-weight: 300;
    margin: 1.5em auto;
    padding: 0;
    height: auto;
}

h1 {
    color: #9d290d;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-size: 1.3em;
    font-weight: bold;
    line-height: 1.6;
    margin: 0 auto 1.5em auto;
}

h2 {
    color: #9d290d;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-size: 1.1em;
    font-weight: bold;
    margin: 1em auto;
}

p {
    color: #0f0f0f;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    line-height: 1.5;
    font-weight: 400;
    margin: 0 0 1.2em 0;
    clear: both;
}

p strong {
    font-weight: 600;
}

a {
    color: #9d290d;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: bold;
    text-decoration: underline;
}

li {
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    line-height: 1.3;
    font-weight: 400;
    margin: 0.8em 1.2em;
    list-style-position: inside;
}

.hr, hr {
    margin-top: 12px;
    margin-bottom: 12px;
    height: 2px;
    border: 0;
    background-color: #844192;
}

/* Saubere Tabellen (für den neuen Jodit-Editor) */
.content table,
.main-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.content th,
.content td,
.main-content th,
.main-content td {
    padding: 8px 12px;
    border: 1px solid #dddddd;
    text-align: left;
}
.content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
}
/* --- Header & Logo (Standard Desktop: 1025px - 1440px) --- */
#header {
    z-index: 1;
    position: relative;
    padding: 0;
    margin: 59px auto 120px auto;
    width: 100%;
    height: 380px;
    text-align: center;
    background-color: #ffffff;
    background-image: url(../../../images/header.jpg);
    background-position: 50% 50%;
    background-size: cover;
    box-shadow: 0px 3px 5px #9d290d;
}

#logo {
    z-index: 20;
    width: 156px;
    height: 172px;
    top: 8px;
    left: 50%;
    font-family: 'Lato', sans-serif;
    font-size: 0.8em;
    position: absolute;
    font-weight: bold;
    text-align: left;
    margin-top: 0px;
    margin-left: -45%;
    padding: 6px;
    background-color: #ffffff;
    color: #9d290d;
    box-shadow: 0px 3px 5px #9d290d;
}

#logo img {
    width: 100%;
    height: auto;
}

.logtext {
    color: #9d290d;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    float: left;
    margin: 0 20px 0 10px;
}

/* --- Haupt-Layout & Sidebar --- */
#inhalt,
#Seite {
    padding: 0;
    margin: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    height: auto;
}

#inhalt {
    background-color: #ffffff;
    box-shadow: 0px 3px 5px #9d290d;
}

#Seite {
    background-color: #ffffff;
    margin: -85px auto 85px auto;
    width: 92%;
}

#sidebox {
    color: #c73a17;
    background-color: #ffffff;
    width: 16%;
    float: left;
    text-align: left;
    overflow: visible;
    position: relative;
    margin: 12px 0;
    padding-bottom: 50px;
    padding-left: 10px;
    height: auto;
    min-height: 450px;
    border: 0 solid #f0f0f0;
}

#sidebox a {
    color: #c73a17;
    text-decoration: none;
}

.content-wrapper {
    margin: 0;
}

#die_tonne {
    float: left;
    width: 78%;
    overflow: visible;
    position: relative;
    margin: 0 0 0 20px;
    padding: 0;
    text-align: left;
}

/* --- Top-Meta-Navigation (#nav1) --- */
#nav1 {
    margin: 0;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 1.5em;
}

#nav1 a {
    color: #e7500d;
    float: right;
    line-height: 1em;
    margin-right: 14px;
    margin-top: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.75em;
    font-weight: 300;
    text-decoration: none;
}

/* --- Hauptnavigation (#main_men_tonne & #menupoin) --- */
#main_men_tonne {
    margin: 0 auto;
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    clear: both;
    font-family: 'Lato', sans-serif;
    height: auto;
    min-height: 80px;
    text-align: center;
    background-color: #ffffff;
    box-shadow: 0px 3px 5px #9d290d;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #ccc;
    font-size: 1.5em;
    padding: 4px 10px;
    cursor: pointer;
}

#menupoin,
.main-nav {
    position: relative;
    margin: 12px auto 0 18%;
    padding: 0;
    list-style-type: none;
    width: 80%;
    max-width: 1000px;
    line-height: 1em;
    text-align: center;
}

#menupoin li,
.main-nav > li {
    height: 2em;
    left: 40px;
    margin: 12px auto;
    padding: 0;
    list-style-type: none;
    position: relative;
    float: left;
    width: 20%;
    text-align: center;
}

#menupoin a,
.main-nav a {
    margin: 0;
    padding: 0;
    display: block;
    height: 1.4em;
    line-height: 1.4em;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    font-family: 'Lato', sans-serif;
    font-size: 1.2em;
}

#menupoin a.menupoin_activ_poin {
    color: #e7500d;
}

#menupoin a.menupoin_poin {
    color: #9d290d;
}

#menupoin a.menupoin_poin:hover {
    color: #e7500d;
}

/* Dropdown-Unterpunkte (falls DB-Navi genutzt wird) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 6px 0;
    margin: 0;
    list-style: none;
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100% !important;
    float: none !important;
    margin: 0;
    height: auto !important;
}

.dropdown-menu a {
    font-size: 0.95em !important;
    text-align: left !important;
    padding: 6px 14px !important;
    height: auto !important;
}

/* --- Subnavigation in der Sidebar (#submenupoin) --- */
#submenupoin {
    background-color: #ffffff;
    box-shadow: 0px 3px 5px #9d290d;
    position: relative;
    margin: -10px 0 30px 0;
    padding: 10px 0 20px 8px;
    list-style-type: none;
}

#submenupoin li {
    margin: 0 0 14px 0;
    padding: 0;
    list-style-type: none;
    position: relative;
    width: 90%;
}

#submenupoin a {
    color: #9d290d;
    background: transparent;
    margin: 0;
    display: block;
    height: auto;
    line-height: 1.4em;
    font-size: 1em;
    padding: 2px 4px 0 8px;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
}

#submenupoin a.smenupoin_activ_poin {
    color: #e7500d;
}

#submenupoin a.smenupoin_poin:hover {
    color: #e7500d;
}

/* --- Content-Blöcke & Bilder --- */
#linhalt {
    padding: 0;
    margin: 0;
}

.content {
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    margin: 0 auto 12px auto;
    clear: both;
    overflow: visible;
    width: 92%;
}

.sidecontent {
    color: #0f0f0f;
    padding: 0 12px 10px 12px;
    margin: 0;
    overflow: hidden;
    width: 95%;
    float: left;
    position: relative;
    font-size: 0.85em;
    height: auto;
    text-align: left;
}

.sidecontent h2 {
    color: #9d290d;
    text-align: left;
    margin: 1.5em auto 0.5em 0;
}

.content .imgbox {
    font-size: 0.8em;
    clear: both;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.imgbox img {
    max-width: 100%;
    height: auto;
    border: 0;
}

.cimagel {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8em;
    font-style: italic;
    color: #777777;
    line-height: 1.2;
    margin: 1.5em auto;
    padding: 0;
    height: auto;
}

.cimagel .left {
    float: left;
    margin-right: 12px;
}

.cimagel .right {
    float: right;
    margin-left: 12px;
}

.cimagel img {
    margin: 6px 0 0 -5px;
    padding: 1px;
    background-color: #9F9F9F;
}

/* Moderne Module aus HoPPCMS 3.0 (Text/Bild, Icons, Coverbild) */
.tebi {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 1.5em 0;
    clear: both;
}

.tebi-image-container {
    flex: 0 0 35%;
    max-width: 35%;
    margin: 0;
}

.tebi-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.tebi-image-caption {
    font-size: 0.85em;
    font-style: italic;
    color: #666;
    margin-top: 6px;
}

.tebi-text-content {
    flex: 1;
    margin: 0;
}

.column-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 1.5em 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1 1 280px;
    margin: 0;
}

.feature-content {
    margin: 0;
}

.full-width-image-container {
    position: relative;
    width: 100%;
    margin: 1em 0;
}

.full-width-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Fotogalerie & Tooltips */
.fotogadb img {
    padding: 0.2em;
    margin: 0.8em;
    background-color: #D9F4FB;
    width: 80%;
    height: auto;
    max-height: 160px;
    transition: background-color 0.2s ease;
}

.fotogadb img:hover {
    background-color: #73d7ef;
}

.imgti {
    clear: both;
    position: relative;
    top: -2em;
    bottom: 20px;
}

.tooltip {
    float: left;
    width: 23%;
    height: 200px;
    background-color: #f0f0f0;
    border-bottom: 1px dotted black;
    position: relative;
}

.tooltip .tiptext {
    visibility: hidden;
    left: 80px;
    top: -80px;
    width: auto;
    min-width: 160px;
    color: black;
    text-align: center;
    padding: 6px;
    position: relative;
    z-index: 5;
    background-color: #ffffff;
    opacity: 0.9;
    font-size: 1em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tooltip:hover .tiptext {
    visibility: visible;
}

/* Admin-Boxen */
.amitobox {
    background: #f8f9fa;
    border: 1px dashed #999;
    padding: 6px 10px;
    margin: 6px 0;
    font-size: 0.85em;
}

.inaktiv {
    opacity: 0.5;
}

/* --- Footer (#Sohle & footer) --- */
#Sohle,
footer {
    background-color: #ffd633;
    color: #9d290d;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85em;
    text-align: center;
    overflow: hidden;
    position: relative;
    font-style: italic;
    padding: 40px 20px;
    clear: both;
    margin: 0 auto;
    min-height: 140px;
}

#Sohle a {
    color: #9d290d;
}
#Sohle p,
footer p {
    text-align: center;
    color: #9d290d;
}
/* ==========================================================================
   MEDIA QUERIES (Die 4 Bildschirmgrößen aus deinen Originaldateien)
   ========================================================================== */

/* 1. Große Desktop-Bildschirme (entspricht deiner 4. Datei: > 1440px) */
@media (min-width: 1441px) {
    #header {
        height: 460px;
    }

    #logo {
        margin-left: -35%;
    }

    #Seite {
        width: 72%;
    }

    #menupoin,
    .main-nav {
        width: 55%;
        margin-left: auto;
        margin-right: auto;
    }

    #submenupoin a {
        font-size: 1.1em;
    }
}

/* 2. Tablets & kleinere Laptops (entspricht deiner 2. Datei: <= 1024px) */
@media (max-width: 1024px) {
    #header {
        height: 180px;
    }

    #logo {
        width: 110px;
        height: 126px;
        margin-left: -47%;
        padding: 4px;
    }

    #logo img {
        width: 90%;
    }

    #Seite {
        margin: -125px auto 85px auto;
        width: 92%;
    }

    #sidebox {
        width: 100%;
        min-height: 45px;
        margin: 0 0 10px 0;
        padding-bottom: 10px;
    }

    #die_tonne {
        width: 95%;
        margin: 0 0 0 10px;
    }

    #menupoin,
    .main-nav {
        width: 75%;
        margin-left: 20%;
    }

    #menupoin li,
    .main-nav > li {
        width: auto;
        padding: 0 10px;
    }

    #menupoin a,
    .main-nav a {
        font-size: 1em;
    }

    #submenupoin {
        padding: 10px;
        margin: 0;
        top: 0;
        overflow: hidden;
    }

    #submenupoin li {
        width: auto;
        float: left;
        margin: 0 10px 10px 0;
    }

    #submenupoin a {
        padding: 0 12px 0 0;
        line-height: 1.2em;
    }

    .content {
        width: 100%;
    }
}

/* 3. Smartphones (entspricht deiner 3. Datei: <= 680px) */
@media (max-width: 680px) {
    #nav1 {
        display: none;
    }

    #header {
        margin: 110px auto 120px auto;
        height: 180px;
    }

    #logo {
        width: 90%;
        height: 36px;
        top: 0;
        left: 0;
        position: fixed;
        margin: 0 5%;
        padding: 6px 4px;
        text-align: center;
    }

    #logo img {
        margin-left: 10%;
        width: 24px;
        height: 24px;
        float: left;
    }

    #main_men_tonne {
        min-height: 70px;
    }

    #menupoin,
    .main-nav {
        width: 94%;
        margin: 44px auto 0 auto;
    }

    #menupoin li,
    .main-nav > li {
        padding: 0 8px 0 0;
    }

    .tebi {
        flex-direction: column;
    }

    .tebi-image-container {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .tooltip {
        width: 48%;
        margin: 1%;
    }
}
#nav1 {
    position: absolute;
    top: 4px;
    right: 14px;
    width: auto;
    height: auto;
    z-index: 15;
}

#menupoin,
.main-nav {
    margin-top: 24px;
}

#logo {
    position: fixed;
    z-index: 999;
}
