/* RH Systemtechnik – osTicket Kundenportal */
body {
    background: #DCE6EC !important;
    color: #243746;
}
#container {
    background: #F4F8FA;
    box-shadow: 0 8px 28px rgba(6,43,73,.18);
    border-radius: 8px;
    overflow: hidden;
}
#header {
    background: #062B49;
    min-height: 82px;
}
#header p,
#header p a {
    color: #FFFFFF;
}
#header #logo img {
    max-height: 72px;
}
#nav {
    background: #0A3858;
    border-top: 2px solid #009BAA;
    box-shadow: none;
}
#nav li a {
    color: #FFFFFF;
    border-radius: 4px;
}
#nav li a.active,
#nav li a:hover {
    background: #009BAA;
    color: #FFFFFF;
}
#content {
    background: #F4F8FA;
}
.thread-body {
    background: #EAF2F6;
    border-left: 4px solid #009BAA;
    border-radius: 5px;
    padding: 24px;
    margin: 8px 0 24px;
}
h1 {
    color: #062B49;
}
a, .link {
    color: #007F8B;
}
a:hover, .link:hover {
    color: #005F69;
}
.button,
.button:visited,
.green.button,
.green.button:visited,
.blue.button,
.blue.button:visited {
    background: #009BAA;
    color: #FFFFFF;
    border: none;
    text-shadow: none;
    box-shadow: none;
    border-radius: 5px;
}
.button:hover,
.green.button:hover,
.blue.button:hover {
    background: #007F8B;
    color: #FFFFFF;
}
input, select, textarea {
    border-radius: 4px;
}
#footer,
#footer a {
    color: #526875;
}

/* RH Systemtechnik – Startseiten-Kacheln */
.rh-sidebar {
    float: none !important;
    width: 100% !important;
    margin: 28px 0 20px !important;
}
.rh-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 !important;
}
.rh-action-grid .rh-action {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-height: 112px;
    padding: 22px 24px !important;
    margin: 0 !important;
    text-align: left !important;
    white-space: normal;
    border-radius: 8px;
    text-decoration: none;
}
.rh-action-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.rh-action-description {
    display: block;
    font-size: 13px;
    font-weight: normal;
    opacity: .9;
}
.rh-action-primary {
    background: #009BAA !important;
    color: #FFFFFF !important;
}
.rh-action-primary:hover {
    background: #007F8B !important;
}
.rh-action-secondary {
    background: #FFFFFF !important;
    color: #062B49 !important;
    border: 2px solid #009BAA !important;
}
.rh-action-secondary:hover {
    background: #E5F5F6 !important;
}
@media (max-width: 640px) {
    .rh-action-grid {
        grid-template-columns: 1fr;
    }
}

/* RH Systemtechnik – dunkleres Farbkonzept */
body {
    background: #B8CAD5 !important;
}
#container {
    background: #D2E0E8 !important;
}
#content {
    background: #D2E0E8 !important;
}
.thread-body {
    background: #173F5B !important;
    color: #FFFFFF !important;
    border-left-color: #009BAA !important;
}
.thread-body h1,
.thread-body h2,
.thread-body h3,
.thread-body p,
.thread-body a {
    color: #FFFFFF !important;
}

/* RH Systemtechnik – Farbfeinschliff */
body {
    background: #AFC4D1 !important;
}
#container,
#content {
    background: #C3D5E0 !important;
}

/* Startseite: Begruessung ueber volle Breite unter den Ticket-Kacheln */
#landing_page {
    display: flex;
    flex-direction: column;
}
#landing_page .rh-sidebar {
    order: 1;
}
#landing_page .main-content {
    order: 2;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}
#landing_page .main-content .thread-body {
    width: 100%;
    box-sizing: border-box;
}

/* Startseite: zusaetzlichen Ressourcenblock ausblenden */
#landing_page > .rh-sidebar > .content {
    display: none;
}

/* Footer: Impressum mit mehr Abstand */
#footer .rh-impressum-link {
    margin: 8px 0 12px;
}
