/* ---------------------------------------------------------
   Eigener Kopfbereich für Hasi's Homepage
   --------------------------------------------------------- */
.container-header {
    background-color: #26376f;
    background-image: linear-gradient(
        135deg,
        #172d5d 0%,
        #35447e 100%
    );
    color: #ffffff;
}

/*
 * Cassiopeia verwendet grid-child als begrenzten
 * Inhaltsbereich. Deshalb bleibt der Header sauber zentriert.
 */
.haselberger-header-wrapper {
    width: 100%;
}

.haselberger-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 14px 0;
}

.haselberger-header-image {
    flex: 0 0 auto;
}

.haselberger-header-image img {
    display: block;
    width: 190px;
    height: 140px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    filter: brightness(1.05) contrast(1.05);
}

.haselberger-header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.haselberger-header-title {
    display: inline-block;
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.05;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.haselberger-header-title:hover,
.haselberger-header-title:focus {
    color: #ffffff;
    text-decoration: none;
}

.haselberger-header-description {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    overflow-wrap: anywhere;
}

/* Navigation unterhalb des persönlichen Headers */

.container-header .container-nav {
    padding-top: 0.25rem;
    padding-bottom: 0.6rem;
}

/* ---------------------------------------------------------
   Artikel- und Blogüberschriften
   --------------------------------------------------------- */

.container-component {
    flex: 1;
    min-width: 0;
}

.container-component h1 {
    margin-bottom: 0.8rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
}

.blog h2,
.blog-items h2,
.item-title {
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
    line-height: 1.2;
}

.blog h2 a,
.blog-items h2 a,
.item-title a {
    text-decoration: none;
}

.blog h2 a:hover,
.blog-items h2 a:hover,
.item-title a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   Menüformatierung
   --------------------------------------------------------- */

ul.mod-menu__sub {
    position: absolute !important;
    z-index: 9999 !important;
    min-width: 230px !important;
    padding: 10px 0 !important;
    background-color: #f5f5f5 !important;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.15);
}

ul.mod-menu__sub li a {
    display: block !important;
    padding: 8px 20px !important;
    white-space: nowrap;
}

/* Editiersymbole verschwinden bei geöffnetem Menü */
.navbar .dropdown.show ~ * a.jmodedit,
.navbar .dropdown.show ~ * .icons {
    opacity: 0 !important;
}

/* ---------------------------------------------------------
   Startseite
   --------------------------------------------------------- */

.welcome-top {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.welcome-text {
    flex: 1;
    min-width: 0;
}

.welcome-image {
    flex: 0 0 auto;
    width: 420px;
    max-width: 100%;
}

.welcome-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ---------------------------------------------------------
   Linke Sidebar
   --------------------------------------------------------- */

/* Seitenhintergrund */
html,
body,
body.site,
.site-grid {
    background-color: #d3dfef !important;
}

/* Hauptinhalt */
.grid-child.container-component {
    background: #e9f0f8 !important;
    border-radius: 8px;
    padding: 1.25rem;
}

/* Sidebar-Module */
.container-sidebar-left .card{
    background:#eef3f8;
    border-radius: 12px !important;
    overflow: hidden;              /* Bilder und Header ebenfalls abrunden */
    border:1px solid #d6e0ea;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* ---------------------------------------------------------
   Webcam-Modul
   --------------------------------------------------------- */

.webcam-modul img {
    width: 100%;
}

/* ---------------------------------------------------------
   Unwetter-Modul
   --------------------------------------------------------- */

.unwetter-modul {
    text-align: center;
}

.unwetter-modul img {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

/* ---------------------------------------------------------
   Allgemeine Schutzregeln
   --------------------------------------------------------- */

.container-component img,
.com-content-article img {
    max-width: 100%;
    height: auto;
}

.container-component table {
    max-width: 100%;
}

.container-component pre,
.container-component code {
    overflow-wrap: anywhere;
}

iframe,
video,
canvas,
svg {
    max-width: 100%;
}

/* ---------------------------------------------------------
   Tablet und schmale Bildschirme
   --------------------------------------------------------- */

@media (max-width: 991.98px) {

    /* Sidebar und Hauptinhalt untereinander */
    .site-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .container-component {
        grid-column: 1;
        width: 100%;
        min-width: 0;
    }

    .container-sidebar-left {
        grid-column: 1;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding-top: 1rem;
    }

    /* Sidebar-Module */
    .container-sidebar-left .card {
        width: 100%;
        margin-bottom: 1rem;
    }

    .container-sidebar-left .card-body {
        padding: 0.65rem;
    }

    /* Bilder nicht verzerren */
    .container-sidebar-left img {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
    }

    /* Untermenüs mobil untereinander */
    ul.mod-menu__sub {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0.3rem 0 0.3rem 1rem !important;
        background: rgba(255, 255, 255, 0.08) !important;
        box-shadow: none;
    }

    ul.mod-menu__sub li a {
        padding: 0.55rem 0.75rem !important;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* ---------------------------------------------------------
   Startseite unter 900 Pixel
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .welcome-top {
        flex-direction: column;
        gap: 1.5rem;
    }

    .welcome-image {
        width: 100%;
    }
}

/* ---------------------------------------------------------
   Smartphone
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .haselberger-header {
        gap: 1rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .haselberger-header-image img {
        width: 105px;
        height: 79px;
    }

    .haselberger-header-title {
        font-size: clamp(1.55rem, 7vw, 2.2rem);
    }

    .haselberger-header-description {
        font-size: 0.9rem;
    }

    .container-component h1 {
        font-size: 1.65rem;
    }

}

/* WEBCAM Videos */
.webcam-video-seite {
    max-width: 1000px;
}

.webcam-video-seite video {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 1rem;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.webcam-live-link {
    margin-top: 1rem;
}

.webcam-live-link a {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    color: #fff;
    background: #1f4b8f;
    text-decoration: none;
    border-radius: 7px;
}

.webcam-live-link a:hover {
    background: #173b72;
}

.webcam-livebild {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
}

/* Link zum Zeitraffer-Video */
.webcam-video-link {
    text-align: center;
    margin: 0.9rem 0 1.2rem;
}

.webcam-video-link a {
    display: inline-block;
    padding: 0.55rem 1.2rem;
    min-width: 220px;

    background: #2d4f8d;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;

    border-radius: 6px;
    transition: background-color .2s ease,
                transform .15s ease;
}

.webcam-video-link a:hover {
    background: #1f3f73;
    color: #fff;
    transform: translateY(-1px);
}

/* Editierbuttons der Beiträge */
/* Joomla-Frontend-Bearbeiten-Symbol dezenter */
/* Bearbeiten-Symbole standardmäßig ausblenden */
/* Joomla-Editierbutton ohne Button-Optik */
a.jmodedit.btn,
a.jmodedit.btn-link {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    min-width: auto !important;
    min-height: auto !important;
    width: auto !important;
    height: auto !important;
}

/* Hover ebenfalls ohne Hintergrund */
a.jmodedit.btn:hover,
a.jmodedit.btn-link:hover,
a.jmodedit.btn:focus,
a.jmodedit.btn-link:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ---------------------------------------------------------
   Sehr schmale Smartphones
   --------------------------------------------------------- */

@media (max-width: 430px) {
    .haselberger-header {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .haselberger-header-image img {
        width: 85px;
        height: 64px;
    }

    .haselberger-header-title {
        font-size: 1.5rem;
    }

    .haselberger-header-description {
        font-size: 0.82rem;
    }

    .container-component h1 {
        font-size: 1.45rem;
    }

    .blog h2,
    .blog-items h2,
    .item-title {
        font-size: 1.1rem;
    }

    .welcome-top {
        gap: 1rem;
    }

/* Modulüberschriften kompakt */
/* Sidebar-Modulüberschrift */
.container-sidebar-left .card-header {
    padding: .35rem .75rem !important;
    background: transparent !important;
    border-bottom: 1px solid #b9c8d8;
}

/* H3 im Modul */
/* Sidebar-Überschrift */
.container-sidebar-left h3.card-header {
    padding: 0.25rem 0.75rem !important;
    margin: 0 !important;

    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    text-transform: none !important;
    letter-spacing: 0 !important;

    background: transparent !important;
    border-bottom: 1px solid #b9c8d8 !important;
}
}

/* ---------------------------------------------------------
   Touchgeräte
   --------------------------------------------------------- */

@media (hover: none) {
    .container-sidebar-left a:hover img {
        opacity: 1;
        transform: none;
    }
}

/* Smartphone: gesamten Platz nutzen */
@media (max-width: 768px) {

    .grid-child,
    .container-component,
    .com-content-article,
    .com-content-category-blog,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 12px;
        padding-right: 12px;
    }

}
@media (max-width:768px){

    .site-grid{
        display:block;
    }

    main{
        width:100%;
        margin:0;
        padding:0;
    }

}
@media (max-width:768px){

    .mod-breadcrumbs{
        margin:0;
        padding:0;
    }

}

/* Joomla-Bearbeitungssymbole unter dem Hauptmenü halten */
a.jmodedit,
.btn.jmodedit {
    z-index: 10 !important;
}

/* Hauptnavigation inklusive Dropdown immer darüber */
.container-header {
    position: relative;
    z-index: 2000;
}

.container-header .metismenu.mod-menu .metismenu-item > ul {
    z-index: 2100;
}

/* Seitenhintergrund */
html,
body.site,
.site-grid,
.grid-child.container-component {
    background: #dce6f2 !important;
}

/* Inhalte transparent lassen */
main,
.com-content-category-blog,
.com-content-category-blog__items,
.blog-item,
.item-content,
.item-page {
    background: transparent !important;
}

.grid-child.container-sidebar-left h3.card-header {
    font-size: 0.95rem !important;
    padding: 0.25rem 0.75rem !important;
    margin: 0 !important;
    font-weight: 600 !important;
}