/* ==========================================
   VOLKER GÖTZ – SERVICEPARTNER
   Modernes Joomla-Kontaktformular
   ========================================== */

/* Grundgestaltung */
.com-contact.contact {
    --kontakt-blau: #172e40;
    --kontakt-rot: #b51e39;
    --kontakt-hell: #f3f6f9;
    font-family: Arial, sans-serif;
    color: #172e40;
}

/* Kopfbereich */
.com-contact.contact > h1,
.com-contact.contact > h2 {
    background: linear-gradient(135deg, #172e40, #284d68);
    color: #ffffff;
    padding: 28px;
    border-radius: 14px;
    border-bottom: 4px solid #b51e39;
    margin-bottom: 25px;
}

/* Kontaktformular */
.com-contact .contact-form {
    background: #f3f6f9;
    padding: 30px;
    border: 1px solid #dce3eb;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 25px;
}

/* Überschriften */
.com-contact .contact-form legend {
    color: #172e40;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Feldbeschriftungen */
.com-contact .contact-form label {
    font-weight: 600;
    color: #172e40;
    margin-bottom: 8px;
}

/* Eingabefelder */
.com-contact .contact-form input[type="text"],
.com-contact .contact-form input[type="email"],
.com-contact .contact-form textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #c5d1dc;
    border-radius: 9px;
    padding: 13px 15px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Aktives Eingabefeld */
.com-contact .contact-form input:focus,
.com-contact .contact-form textarea:focus {
    border-color: #284d68;
    box-shadow: 0 0 0 3px rgba(40,77,104,0.12);
    outline: none;
}

/* Nachrichtenfeld */
.com-contact .contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

/* Abstand zwischen den Feldern */
.com-contact .contact-form .control-group {
    margin-bottom: 22px;
}

/* Kontrollkästchen */
.com-contact .contact-form input[type="checkbox"] {
    accent-color: #b51e39;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Senden-Schaltfläche */
.com-contact .contact-form button[type="submit"] {
    background: #b51e39;
    border: 1px solid #b51e39;
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 9px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}

/* Senden-Schaltfläche Hover */
.com-contact .contact-form button[type="submit"]:hover {
    background: #8e162c;
    border-color: #8e162c;
}

/* Smartphone-Anpassung */
@media (max-width: 768px) {
    .com-contact .contact-form {
        padding: 18px;
    }

    .com-contact.contact > h1,
    .com-contact.contact > h2 {
        padding: 20px;
    }

    .com-contact .contact-form button[type="submit"] {
        width: 100%;
    }
}
/* ==========================================
   Individueller Kontakt-Kopfbereich
   ========================================== */

.com-contact.contact {
    display: flex;
    flex-direction: column;
}

/* Firmenname */
.com-contact .page-header {
    background: linear-gradient(135deg, #172e40, #284d68);
    color: #ffffff;
    padding: 25px;
    border-radius: 14px;
    border-bottom: 4px solid #b51e39;
    margin-bottom: 20px;
}

.com-contact .page-header h1,
.com-contact .page-header h2 {
    color: #ffffff;
    margin: 0;
}

/* Firmenlogo */
.com-contact .thumbnail {
    max-width: 250px;
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
}

/* Unnötige Adressanzeige ausblenden */
.com-contact .contact-address {
    display: none;
}

/* Begrüßungstext */
.com-contact .contact-miscinfo {
    order: -1;
    background: #f3f6f9;
    border-left: 4px solid #b51e39;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

/* Smartphone */
@media (max-width: 768px) {
    .com-contact .thumbnail {
        max-width: 180px;
    }

    .com-contact .page-header,
    .com-contact .contact-miscinfo {
        padding: 18px;
    }
}
/* Optimierung der Reihenfolge */

.com-contact.contact > .page-header {
    order: -3;
}

.com-contact.contact > .com-contact__container {
    order: -2;
}

.com-contact.contact > .contact-miscinfo {
    order: -1;
}

/* Abstände reduzieren */

.com-contact .contact-miscinfo {
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 20px;
}

.com-contact .contact-form {
    margin-top: 5px;
}

/* Informationssymbol entfernen */

.com-contact .contact-miscinfo .jicons-icons {
    display: none;
}

/* Logo ausrichten */

.com-contact .thumbnail {
    margin: 0 auto 15px;
    max-width: 250px;
}
/* Kopfbereich vereinfachen */

.com-contact .com-contact__container > h2,
.com-contact .contact-position {
    display: none;
}

/* Logo oberhalb des Firmennamens */

.com-contact.contact > .com-contact__container {
    order: -4;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
}

.com-contact .thumbnail {
    float: none !important;
    margin: 0 auto 20px !important;
    padding: 0;
    width: 250px;
    max-width: 100%;
    border: none;
}

.com-contact .thumbnail img {
    width: 100%;
    height: auto;
}

/* Firmenname zentrieren */

.com-contact .page-header {
    text-align: center;
}


/* ==========================================
   VOLKER GÖTZ – SERVICEPARTNER
   Modernes Seitenmenü
   ========================================== */

/* Menücontainer */
.container-sidebar-right .card {
    background: #f3f6f9;
    border: 1px solid #dce3eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Menüüberschrift */
.container-sidebar-right .card-header {
    background: linear-gradient(135deg, #172e40, #284d68);
    color: #ffffff;
    font-size: 19px;
    font-weight: 600;
    padding: 18px;
    border-bottom: 4px solid #b51e39;
}

/* Innenabstand */
.container-sidebar-right .card-body {
    padding: 10px;
}

/* Menüstruktur */
.container-sidebar-right .mod-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Einzelne Menüpunkte */
.container-sidebar-right .mod-menu li {
    margin: 4px 0;
}

/* Menüverlinkungen */
.container-sidebar-right .mod-menu li > a,
.container-sidebar-right .mod-menu li > span {
    display: block;
    padding: 12px 14px;
    color: #172e40;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

/* Maus darüber */
.container-sidebar-right .mod-menu li > a:hover {
    background: #284d68;
    color: #ffffff;
    text-decoration: none;
}

/* Aktuell ausgewählte Seite */
.container-sidebar-right .mod-menu li.current > a {
    background: linear-gradient(135deg, #172e40, #284d68);
    color: #ffffff;
    border-left: 4px solid #b51e39;
    font-weight: 600;
    text-decoration: none;
}

/* Übergeordneter aktiver Menüpunkt */
.container-sidebar-right .mod-menu li.active:not(.current) > a {
    background: #dce5ed;
    color: #172e40;
    font-weight: 600;
}

/* Untermenüs */
.container-sidebar-right .mod-menu ul {
    list-style: none;
    padding-left: 12px;
    margin: 8px 0 8px 10px;
    border-left: 2px solid #b51e39;
}

/* Untermenüpunkte */
.container-sidebar-right .mod-menu ul li > a {
    font-size: 14px;
    padding: 10px 12px;
}

/* Tastaturbedienung */
.container-sidebar-right .mod-menu a:focus-visible {
    outline: 2px solid #b51e39;
    outline-offset: 2px;
}

/* Feinschliff Navigation */

/* Kompaktere Menüabstände */
.container-sidebar-right .mod-menu li {
    margin: 2px 0;
}

/* Untermenüpfeil rechts positionieren */
.container-sidebar-right .mod-menu li.parent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.container-sidebar-right .mod-menu li.parent > a,
.container-sidebar-right .mod-menu li.parent > span {
    flex: 1;
    min-width: 0;
}

.container-sidebar-right .mod-menu li.parent > button {
    margin-left: auto;
    color: #172e40;
    padding: 8px;
}

.container-sidebar-right .mod-menu li.parent > ul {
    flex-basis: 100%;
}

/* Gleichmäßige Innenabstände */
.container-sidebar-right .mod-menu li > a {
    padding: 12px 14px;
}
/* Feststehendes Navigationsmenue */

@media (min-width: 992px) {

    .container-sidebar-right {
        align-self: stretch !important;
        position: relative !important;
        overflow: visible !important;
        max-height: none !important;
        display: block !important;
    }

    .container-sidebar-right > .card {
        position: sticky !important;
        top: 15px !important;
        max-height: calc(100vh - 30px);
        overflow-y: auto;
    }

}