/**
 * ==========================================================
 * Wohnmobile Junker
 * Joomla 6.x Template
 * Übergreifende Template-Regeln
 * css/template.css
 * ==========================================================
 */


/* ==========================================================
   SEITENSTRUKTUR
========================================================== */

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
}

.site-content {
    width: 100%;
}


/* ==========================================================
   ALLGEMEINE LAYOUT-HILFSKLASSEN
========================================================== */

.site-container {
    width: 100%;
    max-width: var(--template-container-max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--template-container-padding-x);
    padding-left: var(--template-container-padding-x);
}

.site-text-center {
    text-align: center;
}

.site-text-left {
    text-align: left;
}

.site-text-right {
    text-align: right;
}

.site-hidden {
    display: none !important;
}


/* ==========================================================
   ABSTÄNDE
========================================================== */

.site-margin-top {
    margin-top: var(--template-space-xl);
}

.site-margin-bottom {
    margin-bottom: var(--template-space-xl);
}

.site-padding {
    padding: var(--template-space-xl);
}


/* ==========================================================
   TRENNLINIEN
========================================================== */

.site-divider {
    width: 100%;
    height: 1px;
    margin: 2rem 0;
    background: var(--template-border);
    border: 0;
}


/* ==========================================================
   NACH OBEN BUTTON
========================================================== */

.site-back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: var(--template-z-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #FFFFFF;
    background: var(--template-primary);
    border: 0;
    border-radius: 50%;
    box-shadow: var(--template-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--template-transition-base);
}

.site-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-back-to-top:hover {
    color: #FFFFFF;
    background: var(--template-accent);
}


/* ==========================================================
   JOOMLA SYSTEMMELDUNGEN
========================================================== */

#system-message-container {
    width: 100%;
}

.alert,
.alert-message {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--template-border);
    border-radius: var(--template-radius-md);
}

.alert-success {
    color: #1F6848;
    background: #E8F5EE;
    border-color: #B9E3CA;
}

.alert-danger,
.alert-error {
    color: #922F2F;
    background: #FCECEC;
    border-color: #F2C2C2;
}

.alert-warning {
    color: #80551E;
    background: #FFF6E6;
    border-color: #F0D7A7;
}

.alert-info {
    color: #315F7B;
    background: #EAF3F9;
    border-color: #C4DCEB;
}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.8rem 1.2rem;
    color: #FFFFFF;
    background: var(--template-dark);
    border-radius: var(--template-radius-sm);
}

.skip-link:focus {
    top: 1rem;
}


/* ==========================================================
   DRUCKANSICHT
========================================================== */

@media print {

    .site-header,
    .site-footer,
    .site-menu-toggle,
    .site-back-to-top,
    .site-hero-buttons {
        display: none !important;
    }

    body {
        color: #000000;
        background: #FFFFFF;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }

    .site-main {
        width: 100%;
    }

}