/* --- Grundlayout --- */
html, body {
    height: 100%;
    margin: 0;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    position: relative;
    flex: 1 0 auto;
    padding: 3rem 2rem;
    max-width: 900px;
    margin: auto;
}

/* Abstand zum Dokumenten-Tab bei schmalen Layouts */
@media (max-width: 1100px) {
    main {
        padding-left: calc(28px + 1rem);
    }
}

/* --- Footer immer unten --- */
footer {
    flex-shrink: 0;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 1.5rem 2rem;
    font-size: 0.9rem;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- Hintergrundfarben der Unterseiten (dunkel) --- */
.bg-person {
    background: #2a1a4a url("../img/heiko.png") no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    color: #e6d9ff;
}

.bg-werdegang {
    background: #003366 url("../img/BigProcess.png") no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    color: #cce6ff;
}

.cta-link {
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
}

.cta-link:hover {
    color: #ff3333;
    text-decoration: underline;
    text-shadow: 0 0 6px rgba(255, 80, 80, 0.6);
}

.bg-projektpraxis {
    background: #004d26 url("../img/RFZ_2024.png") no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    color: #ccffdd;
}

.bg-methode {
    background: #665500 url("../img/LLM_lokal_installieren_und_verwenden_Banner.png") no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    color: #fff7cc;
}

.bg-angebote {
    background: #663300 url("../img/EventStorming.png") no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    color: #ffe6cc;
}

.bg-standpunkte {
    background: #660000 url("../img/RFZ_2024b.png") no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    color: #ffcccc;
}

.bg-zusammenarbeit {
    background: #4d004d url("../img/BulkMessageProducer.png") no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    color: #ffccff;
}

/* --- Startseite: Regenbogenverlauf --- */
.bg-gradient {
    background: linear-gradient(
        135deg,
        #2a1a4a,
        #003366,
        #004d26,
        #665500,
        #663300,
        #660000,
        #4d004d
    );
    background-repeat: no-repeat;
    background-size: 400% 800%;
    animation: gradientMove 25s ease infinite;
    color: white;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Navigation oben --- */
header {
    background: rgba(0,0,0,0.75);
    padding: 1rem 2rem;
}

nav.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 1.05rem;
}

nav.main-nav a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Farbcodierte Menülinks */
.nav-person { color: #e6d9ff; }
.nav-werdegang { color: #cce6ff; }
.nav-projektpraxis { color: #ccffdd; }
.nav-methode { color: #fff7cc; }
.nav-angebote { color: #ffe6cc; }
.nav-standpunkte { color: #ffcccc; }
.nav-zusammenarbeit { color: #ffccff; }

/* --- Aktive Seite: dezente helle Unterstreichung --- */
.active {
    border-bottom: 3px solid currentColor;
    padding-bottom: 3px;
}

/* Kontaktformular – Eingabefelder volle Breite */
form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.2);
    color: white;
    border-radius: 0;
    margin-top: 4px;
}

form button {
    float: right;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    margin-top: 10px;
}

form button:hover {
    background: rgba(255,255,255,0.25);
}

.person-photo {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
    width: 120px;
}

/* --- Dokumenten-Tab und Drawer --- */

.docmenu-toggle {
    display: none;
}

/* Der sichtbare Tab links am Rand */
.docmenu-tab {
    position: fixed;
    left: 0;
    top: 40%;
    width: 28px;
    background: #444;
    color: #fff;
    padding: 6px 4px;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 14px;
    z-index: 2000;
}

.docmenu-text {
    display: inline-block;
    transform: rotate(180deg);
}

/* Der ausgeklappte Drawer */
.docmenu {
    position: fixed;
    left: -260px;              /* weiter versteckt, damit 20px Abstand beim Ausfahren */
    top: 0;
    width: 220px;
    height: 100%;
    background: rgba(0,0,0,0.6);
    color: inherit;
    padding: 10px 10px 10px 30px; /* links 30px Abstand */
    transition: left 0.3s;
    overflow-y: auto;
    box-shadow: 2px 0 4px rgba(0,0,0,0.3);
    z-index: 1999;

    border: 2px solid currentColor;
    border-radius: 10px;
}

/* Drawer sichtbar */
.docmenu-toggle:checked ~ .docmenu {
    left: 20px; /* Abstand zum Tab */
}

/* Überschriften in Seitenfarbe */
.docmenu h3 {
    color: inherit;
    margin-top: 15px;
    font-size: 14px;
}

.docmenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Dokumentenlinks immer weiß */
.docmenu a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
}

.docmenu a:hover {
    text-decoration: underline;
}
