/* ═══════════════════════════════════════════════════════════════
   user.css – Isar Kurier  (FINALE VERSION)
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   GLOBAL
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { font-family: system-ui, Arial, sans-serif; font-size: 16px; color: #333; line-height: 1.6; }

a {
    color: #1e5c2e;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

a:hover {
    color: #14401f;
}

a:hover::after,
a.active::after {
    width: 100%;
}

/* Kein Strich bei Buttons, Logo, Pagination, Badges */
.readmore a::after,
a.btn::after,
.btn::after,
.brand-logo::after,
.pagination li a::after,
.label::after,
.badge::after {
    display: none !important;
}

img { max-width: 100%; height: auto; }

/* ─────────────────────────────────────────────
   LOGO – größer
───────────────────────────────────────────── */
#site-header a.brand-logo,
#site-header .brand-logo {
    width: 220px !important;
    max-width: 220px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    padding: 20px 0 !important;
    align-items: center !important;
}

#site-header a.brand-logo::after,
#site-header .brand-logo::after {
    display: none !important;
}

#site-header a.brand-logo img,
#site-header .brand-logo img,
#site-header .brand-logo img[width],
#site-header .brand-logo img[height] {
    width: auto !important;
    height: auto !important;
    max-height: 130px !important;
    max-width: 200px !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
    display: block !important;
}

/* ─────────────────────────────────────────────
   HEADER – Grundstruktur + Schatten
───────────────────────────────────────────── */
#site-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    padding: 0 16px !important;
    gap: 0 !important;
    box-shadow: none !important;
    clip-path: none !important;
    position: relative !important;
    z-index: 100 !important;
    overflow: visible !important;
}

#site-header::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -14px !important;
    height: 14px !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.28), rgba(0,0,0,0)) !important;
    pointer-events: none !important;
    z-index: 99 !important;
}

/* ─────────────────────────────────────────────
   HEADER – header-right als Flex-Spalte
   (Menü unten, Kontakt oben)
───────────────────────────────────────────── */
#header-right {
    order: 2 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    margin-left: 0 !important;
    padding: 20px 12px 20px 30px !important;
}

/* Kontaktdaten oben rechts */
#mod-custom115 {
    order: 1 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

/* Menü unten links – auf Grundlinie von "Ihr Anzeigenblatt" */
#mod-menu112 {
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* Menüpunkte horizontal, gleiche Schrift wie linkes Menü */
#mod-menu112 ul {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
}

#mod-menu112 ul li {
    display: flex !important;
    align-items: center !important;
}

/* Menülinks – gleiche Schrift wie body, Hover-Effekt aktiv */
#mod-menu112 ul li a {
    font-family: system-ui, Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: normal !important;
    color: #fff !important;
    padding: 4px 12px !important;
    white-space: nowrap !important;
    position: relative !important;
    display: inline-block !important;
    text-decoration: none !important;
}

/* Hover-Strich für horizontales Menü */
#mod-menu112 ul li a::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 1px !important;
    background-color: #fff !important;
    transition: width 0.3s ease !important;
}

#mod-menu112 ul li a:hover {
    color: #fff !important;
}

#mod-menu112 ul li a:hover::after {
    width: 100% !important;
}

/* ─────────────────────────────────────────────
   KONTAKT im Header
───────────────────────────────────────────── */
.header-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    justify-content: flex-end;
}
.header-contact a {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
    position: relative !important;
    display: inline-block !important;
}
.header-contact a:hover { color: #fff !important; }
.header-contact a::after { display: none !important; }

/* ─────────────────────────────────────────────
   HAMBURGER – Desktop: versteckt, Mobil: sichtbar
───────────────────────────────────────────── */
#hamburger-btn {
    display: none !important;
}

@media (max-width: 900px) {
    #hamburger-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ─────────────────────────────────────────────
   LINKE SIDEBAR – Schatten nur nach rechts
───────────────────────────────────────────── */
#sidebar-left {
    box-shadow: none !important;
    clip-path: none !important;
    position: relative !important;
    z-index: 10 !important;
    overflow: visible !important;
}

#sidebar-left::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    right: -14px !important;
    left: auto !important;
    width: 14px !important;
    height: auto !important;
    background: linear-gradient(to right, rgba(0,0,0,0.22), rgba(0,0,0,0)) !important;
    pointer-events: none !important;
    z-index: 9 !important;
}

@media (max-width: 900px) {
    #sidebar-left::after {
        top: auto !important;
        right: 0 !important;
        left: 0 !important;
        bottom: -14px !important;
        width: auto !important;
        height: 14px !important;
        background: linear-gradient(to bottom, rgba(0,0,0,0.22), rgba(0,0,0,0)) !important;
    }
}

/* ─────────────────────────────────────────────
   SIDEBAR-LEFT – Inhalte
───────────────────────────────────────────── */
#sidebar-left .sidebar-modules img { max-width: 100%; border-radius: 4px; margin-bottom: 8px; }
#sidebar-left .sidebar-modules h3,
#sidebar-left .sidebar-modules strong {
    display: block; font-size: 0.95rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: rgba(255,255,255,0.7); margin: 0 0 8px;
}

css/* ─────────────────────────────────────────────
   LINKES SIDEBAR-MENÜ – Abstand + Hover-Effekt
───────────────────────────────────────────── */
#mod-menu115 ul {
    list-style: none !important;
    margin: 0 !important;
    padding-left: 15px !important;
}

#mod-menu115 ul li a {
    text-decoration: none !important;
    position: relative !important;
    display: inline-block !important;
}

/* Template-Unterstrich überschreiben */
#mod-menu115 ul li a:not([class]) {
    text-decoration: none !important;
}

/* Hover-Strich von der Mitte */
#mod-menu115 ul li a::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 1px !important;
    background-color: currentColor !important;
    transition: width 0.3s ease !important;
}

#mod-menu115 ul li a:hover {
    text-decoration: none !important;
}

#mod-menu115 ul li a:hover::after {
    width: 100% !important;
}

/* ─────────────────────────────────────────────
   MOD-MENU115 – Hover-Strich auf li
───────────────────────────────────────────── */

#mod-menu115 a,
#mod-menu115 a:not([class]) {
    text-decoration: none !important;
}

/* Globales a::after komplett deaktivieren */
#mod-menu115 a::after {
    content: none !important;
    display: none !important;
}

/* Strich auf li mit fixer Farbe */
#mod-menu115 ul li {
    position: relative !important;
    display: block !important;
}

#mod-menu115 ul li::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 1px !important;
    background-color: #fff !important;   /* ← feste Farbe statt currentColor */
    transition: width 0.3s ease !important;
    pointer-events: none !important;
}

#mod-menu115 ul li:hover::after {
    width: 100% !important;
}



/* ─────────────────────────────────────────────
   CONTENT – Überschriften & Buttons
───────────────────────────────────────────── */
#content-main h1 { font-size: 1.6rem; color: #1e5c2e; margin-top: 0; }
#content-main h2 { font-size: 1.3rem; color: #1e5c2e; }
#content-main h3 { font-size: 1.1rem; color: #333; }

.readmore a, a.btn, .btn {
    display: inline-block; background: #1e5c2e; color: #fff !important;
    padding: 8px 18px; border-radius: 4px; font-size: 0.9rem;
    text-decoration: none !important; transition: background 0.2s ease;
}
.readmore a:hover, a.btn:hover, .btn:hover { background: #14401f; }

.label, .badge {
    display: inline-block; background: #1e5c2e; color: #fff;
    font-size: 0.75rem; padding: 2px 8px; border-radius: 3px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.items-row + .items-row, hr { border: none; border-top: 1px solid #ececec; margin: 20px 0; }

/* ─────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────── */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 20px 0; padding: 0; align-items: center; }
.pagination li a, .pagination li span {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 1px solid #d0d0d0;
    border-radius: 4px; color: #333; font-size: 0.9rem; text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.pagination li a:hover { background: #1e5c2e; color: #fff; border-color: #1e5c2e; }
.pagination li.active span, .pagination li.active a { background: #1e5c2e; color: #fff; border-color: #1e5c2e; font-weight: bold; }
.pagination li.disabled span { color: #aaa; border-color: #e0e0e0; background: #f9f9f9; cursor: default; }

/* ─────────────────────────────────────────────
   RECHTE SIDEBAR
───────────────────────────────────────────── */
#sidebar-right .moduletable > h3, #sidebar-right .moduletable > h4,
#sidebar-right .card h3, #sidebar-right .card h4 {
    font-size: 1rem; color: #1e5c2e; margin: 0 0 10px;
    padding-bottom: 6px; border-bottom: 2px solid #1e5c2e;
}
#sidebar-right img { border-radius: 4px; max-width: 100%; }

/* ─────────────────────────────────────────────
   BANNER
───────────────────────────────────────────── */
#banner-top, #banner-bottom { text-align: center; }
#banner-top img, #banner-bottom img { border-radius: 4px; max-width: 100%; }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer-col h3 {
    font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: rgba(255,255,255,0.6); margin: 0 0 10px; font-weight: 600;
}

/* ─────────────────────────────────────────────
   HINTERGRUND-FIX
───────────────────────────────────────────── */
body.site { background: #e8e8e8 !important; }
#body-wrapper { background: #e8e8e8 !important; overflow: visible !important; }
#main-wrapper { background: #e8e8e8 !important; overflow: visible !important; }

/* ─────────────────────────────────────────────
   JOOMLA-RESETS
───────────────────────────────────────────── */
.site-grid, .wrapper-static, .wrapper-fluid {
    display: block !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
}
.container-header { display: block !important; padding: 0 !important; background: transparent !important; }
.container-footer { display: block !important; padding: 0 !important; background: transparent !important; }

/* ─────────────────────────────────────────────
   DEARFLIP FLIPBOOK – Größe anpassen
───────────────────────────────────────────── */
#df-container,
.df-container {
    width: 100% !important;
    height: 750px !important;
    max-width: 100% !important;
}

@media (max-width: 900px) {
    #df-container,
    .df-container { height: 450px !important; }
}

/* ─────────────────────────────────────────────
   ZWEISPALTIG – Bild / Flipbook + Text
───────────────────────────────────────────── */
.zwei-spalten {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 20px 0;
}
.zwei-spalten .spalte-bild { flex: 0 0 55%; }
.zwei-spalten .spalte-bild img { width: 100%; height: auto; border-radius: 4px; }
.zwei-spalten .spalte-bild #df-container,
.zwei-spalten .spalte-bild .df-container { width: 100% !important; height: 600px !important; }
.zwei-spalten .spalte-text { flex: 1; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 900px) {
    #content-main h1 { font-size: 1.3rem; }
    .pagination li a, .pagination li span { width: 32px; height: 32px; font-size: 0.82rem; }
    .header-contact { justify-content: flex-start; }
    #site-header .brand-logo { width: auto !important; max-width: 140px !important; }

    #mod-menu112 { display: none !important; }

    #header-right {
        flex-direction: column !important;
        align-items: flex-end !important;
        padding: 12px !important;
    }

    .zwei-spalten { flex-direction: column; }
    .zwei-spalten .spalte-bild { flex: 0 0 100%; }
    .zwei-spalten .spalte-bild #df-container,
    .zwei-spalten .spalte-bild .df-container { height: 400px !important; }
}
/* ─────────────────────────────────────────────
   MOD-MENU115 – Globales ::after komplett 
   zurücksetzen und sauber neu definieren
───────────────────────────────────────────── */

/* Schritt 1: Template-Unterstrich weg */
#mod-menu115 a,
#mod-menu115 a:not([class]) {
    text-decoration: none !important;
}

/* Schritt 2: Globales ::after deaktivieren */
#mod-menu115 a::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Schritt 3: Hover-Strich als eigenes Element 
   direkt auf dem <li> statt auf <a> */
#mod-menu115 ul li {
    position: relative !important;
    display: block !important;
}

#mod-menu115 ul li::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 1px !important;
    background-color: currentColor !important;
    transition: width 0.3s ease !important;
    pointer-events: none !important;
}

#mod-menu115 ul li:hover::after {
    width: 100% !important;
}
