/* ── CSS-Variablen ────────────────────────────────────────────────────────── */
html {
    --primary-color:    rgb(0, 0, 87);
    --black-color:      black;
    --dark-color:       rgb(51, 51, 51);
    --lightdark-color:  rgb(87, 87, 87);
    --light-color:      rgb(244, 244, 244);
    --errortext-color:  rgb(255, 0, 0);
    --white-color:      white;
    --textfont:         Arial, sans-serif;
}

body {
    font-family: var(--textfont);
    margin:      0;
    padding:     0;
    line-height: 1.6;
}


/* ── HEADER / NAV ─────────────────────────────────────────────────────────── */
header {
    position:   sticky;
    top:        0;
    z-index:    1000;
    background: var(--dark-color);
    color:      var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

nav {
    display:         flex;
    justify-content: center;
    align-items:     center;
    padding:         0.75rem 1.5rem;
    position:        relative;
}

/* Brand — nur auf Mobile sichtbar */
.nav-brand {
    display:     none;
    font-weight: bold;
    font-size:   1rem;
    color:       var(--white-color);
}

/* Hamburger — nur auf Mobile sichtbar */
.hamburger {
    display:         none;
    flex-direction:  column;
    justify-content: space-between;
    width:           26px;
    height:          18px;
    background:      transparent;
    border:          none;
    cursor:          pointer;
    padding:         0;
    flex-shrink:     0;
}
.hamburger span {
    display:       block;
    height:        3px;
    width:         100%;
    background:    var(--white-color);
    border-radius: 2px;
    transition:    transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -6px); }

/* Desktop-Menü */
.menu {
    display:         flex;
    justify-content: center;
    list-style:      none;
    margin:          0;
    padding:         0;
}
.menu li    { margin: 0 0.5rem; }
.menu a {
    color:          var(--white-color);
    text-decoration: none;
    padding:        0.5rem 1rem;
    border-radius:  5px;
    transition:     background 0.3s;
    display:        block;
}
.menu a:hover { background: var(--lightdark-color); }


/* ── HERO ─────────────────────────────────────────────────────────────────── */
.start {
    background:      var(--lightdark-color);
    height:          100vh;
    width:           100vw;
    display:         flex;
    flex-direction:  column;
    justify-content: center;
    align-items:     center;
    position:        relative;
    overflow:        hidden;
}
.start .background {
    position:            absolute;
    inset:               0;
    filter:              blur(5px);
    -webkit-filter:      blur(5px);
    background-position: center;
    background-repeat:   no-repeat;
    background-size:     cover;
    transition:          background-image 1s ease-in-out;
    transform:           scale(1.05); /* verhindert blur-Rand */
}
.start .title {
    position:         relative;
    z-index:          1;
    width:            min(90%, 600px);
    padding:          2rem;
    color:            var(--white-color);
    background-color: rgba(0, 0, 0, 0.45);
    border:           2px solid rgba(255,255,255,0.6);
    text-align:       center;
    border-radius:    4px;
}
.start h1       { margin-top: 0; font-size: clamp(1.4rem, 4vw, 2rem); }
.start p        { margin: 0 0 1rem; }
.start a:hover  { background: none; font-weight: bold; }

/* Hero-Menü auf Mobile ausblenden (doppelt zur Sticky-Nav) */
.hero-menu { flex-wrap: wrap; justify-content: center; }


/* ── ÜBER MICH ────────────────────────────────────────────────────────────── */
.about {
    padding:    2rem;
    background: var(--light-color);
}
.about h2 { margin-top: 0; }

.steckbrief {
    display:     flex;
    align-items: flex-start;
    gap:         1.5rem;
    flex-wrap:   wrap;
}
.portrait {
    border-radius: 50%;
    width:         150px;
    height:        150px;
    object-fit:    cover;
    flex-shrink:   0;
}
.steckbrief ul {
    list-style: none;
    margin:     0;
    padding:    0;
}
.steckbrief li { margin: 0.3rem 0; }


/* Lebenslauf-Timeline */
.lebenslauf {
    margin:  2rem 0;
    padding: 1rem 0;
}
.lebenslauf-strahl { position: relative; }

/* Vertikale Linie */
.lebenslauf-strahl::before {
    content:    '';
    position:   absolute;
    top:        0;
    bottom:     0;
    left:       22%;
    width:      3px;
    background: var(--primary-color);
    transform:  translateX(-50%);
}

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

.lebenslauf-strahl li {
    position:   relative;
    margin:     2rem 0;
    padding:    0.25rem 0 0.25rem 26%;
    min-height: 2.5rem;
}

.lebenslauf-strahl li .zeit {
    position:    absolute;
    left:        0;
    width:       18%;
    text-align:  right;
    font-weight: bold;
    color:       var(--primary-color);
    font-size:   0.85rem;
    line-height: 1.3;
    padding-right: 0.5rem;
}

.lebenslauf-strahl li .beschreibung {
    display:     block;
    line-height: 1.5;
}

/* Kreis auf der Linie */
.lebenslauf-strahl li::before {
    content:       '';
    position:      absolute;
    top:           0.6rem;
    left:          22%;
    transform:     translateX(-50%);
    width:         13px;
    height:        13px;
    background:    var(--light-color);
    border:        3px solid var(--primary-color);
    border-radius: 50%;
    z-index:       1;
}


/* Referenzen */
.referenzen-liste { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.referenz {
    flex:       1 1 280px;
    border:     1px solid var(--lightdark-color);
    padding:    1rem;
    transition: transform 0.3s;
    max-width:  400px;
}
.referenz:hover { transform: scale(1.02); }
.referenz p, .referenz a {
    margin:          0;
    text-decoration: none;
    color:           var(--black-color);
}
.referenz .name { margin-bottom: 0.5rem !important; }
.referenz .telefon::before { content: '☎    '; }
.referenz .email::before   { content: '✉    '; }
.referenz a:hover { text-decoration: underline; }


/* ── PROJEKTE ─────────────────────────────────────────────────────────────── */
.projects {
    padding:    2rem;
    background: var(--white-color);
}
.projekt-liste { padding: 0; }
.projekt {
    border:     1px solid var(--lightdark-color);
    padding:    1.25rem;
    margin:     1rem 0;
    transition: transform 0.3s;
    border-radius: 3px;
}
.projekt:hover { transform: scale(1.01); }
.projekt h3    { margin-top: 0; }
.projekt-link  {
    display:          inline-block;
    margin-top:       0.5rem;
    color:            var(--primary-color);
    text-decoration:  none;
    font-weight:      bold;
}
.projekt-link:hover { text-decoration: underline; }


/* ── KONTAKT ──────────────────────────────────────────────────────────────── */
.contact {
    padding:    2rem;
    text-align: center;
    background: var(--lightdark-color);
    color:      var(--white-color);
}
.contact p, .contact a {
    margin:          0.25rem 0;
    text-decoration: none;
    color:           var(--white-color);
}
.contact .telefon::before { content: '☎    '; }
.contact .email::before   { content: '✉    '; }
.contact a:hover { text-decoration: underline; }


/* ── FOOTER ───────────────────────────────────────────────────────────────── */
footer {
    position:   relative;
    text-align: center;
    padding:    1rem;
    background: var(--dark-color);
    color:      var(--white-color);
}
footer p { margin: 0.15rem 0; }

/* Diskreter Admin-Link */
.admin-link {
    position:        absolute;
    right:           1rem;
    bottom:          0.5rem;
    font-size:       0.65rem;
    color:           rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition:      color 0.3s;
}
.admin-link:hover { color: rgba(255, 255, 255, 0.55); }


/* ── LOGIN-SEITE ──────────────────────────────────────────────────────────── */
.login-page {
    background: var(--light-color);
    min-height: 100vh;
    display:    flex;
    flex-direction: column;
}
.login-main {
    flex:            1;
    display:         flex;
    justify-content: center;
    align-items:     center;
    padding:         2rem;
}
.login-card {
    background:    var(--white-color);
    padding:       2.5rem;
    border-radius: 6px;
    box-shadow:    0 4px 20px rgba(0,0,0,0.12);
    width:         100%;
    max-width:     380px;
    text-align:    center;
}
.login-card h1 {
    margin:     0 0 1.5rem;
    color:      var(--primary-color);
    font-size:  1.5rem;
}
.login-card .form-group {
    margin-bottom: 1rem;
    text-align:    left;
}
.login-card label {
    display:       block;
    margin-bottom: 0.3rem;
    font-size:     0.9rem;
    font-weight:   bold;
    color:         var(--dark-color);
}
.login-card input {
    width:         100%;
    padding:       0.65rem 0.75rem;
    border:        1px solid #ccc;
    border-radius: 4px;
    font-size:     1rem;
    box-sizing:    border-box;
    transition:    border-color 0.2s;
}
.login-card input:focus {
    outline:      none;
    border-color: var(--primary-color);
}
.login-btn {
    width:         100%;
    padding:       0.75rem;
    background:    var(--primary-color);
    color:         var(--white-color);
    border:        none;
    border-radius: 4px;
    font-size:     1rem;
    cursor:        pointer;
    margin-top:    0.5rem;
    transition:    background 0.2s;
}
.login-btn:hover { background: rgb(0, 0, 120); }
.back-link {
    display:         block;
    margin-top:      1.25rem;
    font-size:       0.85rem;
    color:           var(--lightdark-color);
    text-decoration: none;
}
.back-link:hover { text-decoration: underline; }


/* ══════════════════════════════════════════════════════════════════════════ */
/* MOBILE RESPONSIVE — max 768px                                             */
/* ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Nav */
    nav {
        justify-content: space-between;
        padding:         0.75rem 1rem;
    }
    .nav-brand  { display: block; }
    .hamburger  { display: flex; }

    /* Dropdown-Menü */
    .menu#nav-menu {
        display:    none;
        position:   absolute;
        top:        100%;
        left:       0;
        right:      0;
        background: var(--dark-color);
        flex-direction: column;
        padding:    0.5rem 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.35);
        z-index:    999;
    }
    .menu#nav-menu.open { display: flex; }
    .menu#nav-menu li   { margin: 0; }
    .menu#nav-menu a    { padding: 0.85rem 1.5rem; border-radius: 0; }

    /* Hero */
    .start .title { padding: 1.25rem; }
    .hero-menu    { display: none; } /* redundant zur sticky Nav auf Mobile */

    /* Steckbrief: Portrait oben, Info unten */
    .steckbrief {
        flex-direction: column;
        align-items:    center;
    }
    .portrait { width: 120px; height: 120px; }

    /* Lebenslauf-Timeline vereinfacht */
    .lebenslauf-strahl::before {
        left: 9px;
    }
    .lebenslauf-strahl li {
        padding:    0 0 0 1.75rem;
        min-height: unset;
        margin:     1.5rem 0;
    }
    .lebenslauf-strahl li .zeit {
        position:    static;
        width:       auto;
        text-align:  left;
        display:     block;
        margin-bottom: 0.2rem;
        padding-right: 0;
    }
    .lebenslauf-strahl li .beschreibung {
        display: block;
    }
    .lebenslauf-strahl li::before {
        left:      9px;
        top:       0.35rem;
        width:     11px;
        height:    11px;
        transform: translateX(-50%);
    }

    /* Referenzen & Projekte */
    .referenz { flex: 1 1 100%; max-width: 100%; }

    /* Footer */
    .admin-link {
        position: static;
        display:  block;
        margin-top: 0.5rem;
    }
}

/* ── Klein-Mobil (max 480px) ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    .start h1   { font-size: 1.3rem; }
    .about,
    .projects,
    .contact    { padding: 1.5rem 1rem; }
    .login-card { padding: 1.75rem 1.25rem; }
}


.errortext {
    color: var(--errortext-color);
}