/* ============================================================
   Base & Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: white;
    font-family: monospace;
}

/* ============================================================
   Typography
   ============================================================ */
tt {
    font-family: arial;
    color: #000040;
    font-weight: bold;
    font-size: 10pt;
}

.wrapper {
    font-family: Arial;
    font-size: 12px;
}

/* ============================================================
   Links
   ============================================================ */
a:link    { text-decoration: none; color: #000000; }
a:visited { text-decoration: none; color: #000000; }
a:hover   { text-decoration: none; color: #008080; }
a:active  { text-decoration: none; color: #008080; }
a:focus   { text-decoration: none; color: #000000; }

/* ============================================================
   Layout — full-viewport shell
   ============================================================ */
#wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* --- Header --- */
#header {
    background: darkgray;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Simple header: logo + items in a row with padding (supportteam, bmw, 21) */
#header.header--simple {
    padding: 9px 18px;
    gap: 16px;
    justify-content: space-between;
}

/* Gradient header: background image layer + content overlay (root index.php) */
#header.header--gradient {
    padding: 0;
    height: 160px;
    position: relative;
    overflow: hidden;
}
#header-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
#header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 9px 18px;
}

/* --- Main area --- */
#main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* --- Nav sidebar --- */
#nav {
    background: darkgray;
    padding: 9px;
    overflow-y: auto;
    flex-shrink: 0;
}
#nav a             { color: white; font-family: arial; font-size: x-small; text-decoration: none; }
#nav a:hover       { color: white; text-decoration: underline; }
#nav p             { margin-top: 20px; margin-bottom: 0; }
#nav table         { width: 95%; }
#nav td            { padding: 3px 0; vertical-align: top; }

#nav.nav--wide     { width: 160px; font-size: small; } /* root public site */
#nav.nav--support  { width: 158px; }                   /* supportteam */
#nav.nav--slim     { width: 140px; font-size: small; } /* bmw / 21 */

/* --- Content area --- */
#content {
    flex: 1;
    padding: 9px 50px;
    overflow-y: auto;
}

/* ============================================================
   Theme — Supportteam (navajowhite background, neutral links)
   ============================================================ */
body.theme-support {
    background-color: #FFDEAD;
}
body.theme-support a:hover,
body.theme-support a:active {
    color: #000000;
}

/* ============================================================
   Forms
   ============================================================ */
table.form-table td { padding: 5px; margin: 5px; }

/* ============================================================
   Utilities
   ============================================================ */
.button { color: orange; width: 100px; }

.color1 { background-color: #cccccc; }
.color2 { background-color: transparent; }

@page { size: portrait; }
@media print {
    .noprint { display: none; }
}
