/* ========================================
   Grundeinstellungen
======================================== */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #eaf2ff;
    background-image: linear-gradient( rgba(234, 242, 255, 0.12), rgba(234, 242, 255, 0.12) ), url("bilder/hintergrund.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}


/* ========================================
   Navigation
======================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    width: 100%;
    min-height: 64px;
    padding: 10px max(5%, 20px);
    color: white;
    background-color: rgba(0, 47, 115, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}

.navbar-logo {
    color: white;
    font-size: 1.15rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .navbar-links a {
        padding: 8px 13px;
        color: white;
        font-weight: bold;
        text-decoration: none;
        border-radius: 6px;
        transition: color 0.2s ease, background-color 0.2s ease;
    }

        .navbar-links a:hover,
        .navbar-links a:focus {
            color: #002f73;
            background-color: white;
        }

        .navbar-links a[aria-current="page"] {
            color: #002f73;
            background-color: #dbeafe;
        }

.navbar-schalter {
    display: none;
    padding: 5px 10px;
    color: white;
    font-size: 1.6rem;
    line-height: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    cursor: pointer;
}


/* ========================================
   Kopfbereich
======================================== */

.kopfbereich {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 40px max(5%, 20px);
    color: white;
    background: linear-gradient( 135deg, rgba(0, 47, 115, 0.96), rgba(0, 71, 171, 0.92) );
    border-bottom: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 20px rgba(0, 47, 115, 0.25);
}

.kopftext {
    max-width: 750px;
}

.kopfbereich h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
}

.kopfbereich p {
    margin: 0;
    font-size: 1.1rem;
}


/* Kopfbereich auf Unterseiten */

.unterseiten-kopf {
    min-height: 190px;
}


/* ========================================
   Profilbild
======================================== */

.profilbild {
    width: 170px;
    height: 170px;
    object-fit: cover;
    background-color: white;
    border: 5px solid blue;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 47, 115, 0.96);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .profilbild:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }


/* ========================================
   Hauptinhalt
======================================== */

main {
    flex: 1;
    width: min(1100px, 92%);
    margin: 40px auto;
}


/* ========================================
   Inhaltskarten
======================================== */

.karte {
    margin-bottom: 30px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 71, 171, 0.15);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 47, 115, 0.14);
    backdrop-filter: blur(5px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .karte:hover {
        transform: translateY(-2px);
        box-shadow: 0 9px 25px rgba(0, 47, 115, 0.18);
    }

    .karte h2 {
        margin-top: 0;
        margin-bottom: 20px;
        padding-bottom: 10px;
        color: #0047ab;
        font-size: 1.6rem;
        border-bottom: 3px solid #0047ab;
    }

    .karte h3 {
        color: #0047ab;
    }

    .karte p:last-child {
        margin-bottom: 0;
    }

    .karte ul {
        padding-left: 24px;
    }

    .karte li {
        margin-bottom: 6px;
    }


    /* ========================================
   Links im Hauptinhalt
======================================== */

    .karte a {
        color: #0047ab;
        font-weight: bold;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
    }

        .karte a:hover,
        .karte a:focus {
            color: #002f73;
            text-decoration-thickness: 2px;
        }


/* ========================================
   Tabellen
======================================== */

.tabellen-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.88);
}

th,
td {
    padding: 14px;
    text-align: left;
    vertical-align: top;
    border: 1px solid #cbd5e1;
}

thead th {
    color: white;
    background-color: #0047ab;
}

tbody th {
    width: 220px;
    color: #0047ab;
    background-color: #eaf2ff;
}

tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

tbody tr:hover {
    background-color: #eaf2ff;
}


/* ========================================
   Kontaktdaten
======================================== */

.kontaktdaten {
    padding: 20px;
    font-style: normal;
    line-height: 1.8;
    background-color: rgba(248, 250, 252, 0.9);
    border-left: 5px solid #0047ab;
    border-radius: 6px;
}


/* ========================================
   Hinweiskarte
======================================== */

.hinweis {
    border-left: 5px solid #0047ab;
}


/* ========================================
   Kenntnisse
======================================== */

.kenntnisse {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .kenntnisse span {
        display: inline-block;
        padding: 8px 14px;
        color: #0047ab;
        font-weight: bold;
        background-color: #eaf2ff;
        border: 1px solid #bfdbfe;
        border-radius: 20px;
    }


/* ========================================
   Kontakt und Dokumente
======================================== */

.kontaktbereich p {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


/* ========================================
   Schaltflächen
======================================== */

.schaltflaeche {
    display: inline-block;
    padding: 11px 18px;
    color: white !important;
    font-weight: bold;
    text-decoration: none !important;
    background-color: #0047ab;
    border: 2px solid #0047ab;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 71, 171, 0.2);
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .schaltflaeche:hover,
    .schaltflaeche:focus {
        color: #0047ab !important;
        background-color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0, 71, 171, 0.3);
    }


/* ========================================
   SERVER STATUS
======================================== */

.server-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px auto;
    color: white;
    font-size: 13px;
}

/* Status-Punkt */

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
}

    /* Online – grün und blinkend */

    .status-dot.online {
        background-color: #00ff00;
        box-shadow: 0 0 8px #00ff00;
        animation: statusBlink 1.5s infinite;
    }

/* Blink-Animation */

@keyframes statusBlink {

    0% {
        opacity: 1;
        box-shadow: 0 0 10px #00ff00;
    }

    50% {
        opacity: 0.25;
        box-shadow: 0 0 2px #00ff00;
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 10px #00ff00;
    }
}

/* Offline – rot */

.status-dot.offline {
    background-color: #ff0000;
    box-shadow: 0 0 8px #ff0000;
}

/* Trennzeichen */

.status-separator {
    color: #777777;
    margin: 0 4px;
}


/* ========================================
   Footer
======================================== */

footer {
    width: 100%;
    padding: 25px 20px;
    text-align: center;
    color: white;
    background: linear-gradient( 135deg, rgba(0, 47, 115, 0.98), rgba(0, 71, 171, 0.96) );
    border-top: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 -4px 18px rgba(0, 47, 115, 0.18);
}

    footer nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 25px;
    }

    footer a {
        padding-bottom: 4px;
        color: white;
        font-weight: bold;
        text-decoration: none;
        border-bottom: 2px solid transparent;
        transition: color 0.2s ease, border-color 0.2s ease;
    }

        footer a:hover,
        footer a:focus {
            color: #dbeafe;
            border-bottom-color: #dbeafe;
        }

        footer a[aria-current="page"] {
            border-bottom-color: white;
        }

.copyright {
    margin-top: 20px;
    margin-bottom: 0;
    color: #dbeafe;
    font-size: 0.9rem;
}


/* ========================================
   Tastaturbedienung
======================================== */

a:focus-visible,
button:focus-visible {
    outline: 3px solid #facc15;
    outline-offset: 4px;
}


/* ========================================
   Darstellung auf Tablets
======================================== */

@media (max-width: 900px) {

    .kopfbereich {
        padding: 35px 5%;
    }

    main {
        width: 94%;
    }

    th,
    td {
        padding: 12px;
    }
}


/* ========================================
   Darstellung auf Smartphones
======================================== */

@media (max-width: 700px) {

    body {
        background-attachment: scroll;
    }

    .navbar-schalter {
        display: block;
    }

    .kopfbereich {
        flex-direction: column-reverse;
        gap: 20px;
        padding: 30px 20px;
        text-align: center;
    }

    .unterseiten-kopf {
        min-height: auto;
    }

    .profilbild {
        width: 140px;
        height: 140px;
    }

    main {
        width: 94%;
        margin: 25px auto;
    }

    .karte {
        margin-bottom: 20px;
        padding: 18px;
    }

        .karte h2 {
            font-size: 1.35rem;
        }

    th,
    td {
        padding: 10px;
        font-size: 0.9rem;
    }

    tbody th {
        width: 150px;
    }

    .kontaktbereich p {
        flex-direction: column;
    }

    .schaltflaeche {
        width: 100%;
        text-align: center;
    }

    footer nav {
        flex-direction: column;
        align-items: center;
    }

    /* Geschichte */

    .geschichte {
        width: calc(100% - 24px);
        margin: 30px auto;
        padding: 22px;
    }

        .geschichte h2 {
            font-size: 1.6rem;
        }

        .geschichte p {
            font-size: 1rem;
            line-height: 1.7;
        }

    /* Server Status */

    .server-status {
        flex-wrap: wrap;
        width: 100%;
        padding: 0 10px;
        text-align: center;
    }
}


/* ========================================
   Bereich „Meine Geschichte“
======================================== */

.geschichte {
    width: min(100% - 40px, 1000px);
    margin: 50px auto;
    padding: 35px;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.94);
    border-left: 6px solid #0050a4;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

    .geschichte h2 {
        margin: 0 0 25px;
        padding-bottom: 12px;
        color: #0050a4;
        font-size: 2rem;
        border-bottom: 2px solid #e5e7eb;
    }

    .geschichte p {
        margin: 0 0 20px;
        font-size: 1.05rem;
        line-height: 1.8;
        text-align: left;
    }

        .geschichte p:last-child {
            margin-bottom: 0;
        }


/* ========================================
   Sehr kleine Bildschirme
======================================== */

@media (max-width: 420px) {

    .kopfbereich h1 {
        font-size: 1.7rem;
    }

    .kopfbereich p {
        font-size: 1rem;
    }

    .profilbild {
        width: 120px;
        height: 120px;
    }

    .karte {
        padding: 15px;
    }

    .server-status {
        font-size: 12px;
    }
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}
