@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Nunito:ital,wght@0,200;0,400;0,600;0,800;1,200;1,400;1,600;1,800&display=swap');


/* ===============================
   Root / Farbvariablen
=============================== */
:root {
    --bg-color: #0c0c0c;
    --text-color: #e8e8e8;
    --text-color-alt: #cfcfcf;
    --header-gradient-start: #ece9e9;
    --header-gradient-end: #d4d2da;
    --link-color: #b3c5d6;
    --button-text-color: #121212;
    --footer-color: #888;
    --header-bg: rgba(255, 255, 255, 0.02);
    --header-border: rgba(255, 255, 255, 0.08);
    --footer-bg: rgba(255, 255, 255, 0.02);
    --footer-border: rgba(255, 255, 255, 0.08);

        /* Neue Farben für Notizen */
    --note-info: #4da6ff;      /* Blau für Info */
    --note-warning: #ffcc00;   /* Gelb für Warnung */
    --note-critical: #ff4d4d;  /* Rot für kritisch */
}


/* ===============================
   Table Design – User Manager (mit Textschutz)
=============================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: "Nunito", sans-serif;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 12px;
    overflow: hidden; /* runde Ecken greifen */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

thead {
    background: linear-gradient(90deg, var(--header-gradient-start), var(--header-gradient-end));
}

thead th {
    color: var(--bg-color);
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    font-size: 0.95rem;
}

tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem;
    color: var(--text-color-alt);

    /* Schutz vor langen Texten */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 1px; /* zwingt Ellipsis bei flexiblen Layouts */
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

tbody tr:hover {
    background: rgba(77, 166, 255, 0.1);
    color: var(--text-color);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Scrollbar für große Tabellen */
tbody {
    display: block;
    max-height: 500px;
    overflow-y: auto;
}

thead, tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed; /* wichtig, damit Ellipsis funktioniert */
}

/* Optional: Tooltip für volle Inhalte */
tbody td:hover {
    position: relative;
}
tbody td[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 100;
    font-size: 0.85rem;
}

/* Responsive – Mobilgeräte */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tbody tr {
        margin-bottom: 15px;
        background: rgba(20,20,20,0.95);
        border-radius: 12px;
        padding: 10px;
    }

    tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 12px;
        border-bottom: 1px solid rgba(255,255,255,0.08);

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-color-alt);
        margin-right: 5px;
        flex-shrink: 0;
    }

    tbody td:last-child {
        border-bottom: none;
    }
}



/* ===============================
   Reset & Base
=============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Sticky Footer Fix */
}


body {
    font-family: "Nunito", "Fredoka", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

/* ===============================
   Forms
=============================== */

form.time-calc-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: center; /* Formular-Inhalt zentriert */
}

form.time-calc-form label {
    display: block;
    margin: 10px 0 5px;
    color: var(--text-color-alt);
    font-weight: 500;
    font-size: 0.95rem;
}

.time-calc-inputs {
    display: flex;
    justify-content: center; /* Inputs zentrieren */
    gap: 10px; /* Abstand zwischen Stunde & Minute */
    margin-bottom: 15px;
}

.time-calc-inputs input[type="text"] {
    width: 60px; /* kompakt */
    padding: 10px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.time-calc-inputs input[type="text"]:focus {
    border-color: var(--link-color);
    outline: none;
    box-shadow: 0 0 6px rgba(156, 207, 255, 0.4);
}

form.time-calc-form span.result {
    display: block;
    margin-top: 10px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-color-alt);
}

section.note {
    background: var(--header-bg);
    border-left: 4px solid var(--link-color);
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* Unterklassen nach Wichtigkeit */
section.note.info {
    border-left-color: var(--note-info);
}

section.note.warning {
    border-left-color: var(--note-warning);
}

section.note.critical {
    border-left-color: var(--note-critical);
}



section.note h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--header-gradient-start), var(--header-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

section.note p {
    font-size: 1rem;
    color: var(--text-color-alt);
    margin-bottom: 5px;
}


form.login-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

form.login-form label {
    display: block;
    margin: 10px 0 5px;
    color: var(--text-color-alt);
    font-weight: 500;
    font-size: 0.95rem;
}

form.login-form input[type="text"],
form.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

form.login-form input[type="text"]:focus,
form.login-form input[type="password"]:focus {
    border-color: var(--link-color);
    outline: none;
    box-shadow: 0 0 6px rgba(156, 207, 255, 0.4);
}

.disabled-link {
    pointer-events: none;
    cursor: not-allowed;
    color: gray;
    text-decoration: none;
}

/* ===============================
   Layout
=============================== */
main {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    flex: 1; /* Sticky Footer Fix */
}

section {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 0;
    margin: 0;
}

section.privacy {
    text-align: left;
}

/* ===============================
   Header
=============================== */
header {
    padding: 90px 20px 0;
    backdrop-filter: blur(12px);
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--header-gradient-start), var(--header-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

header p {
    font-size: 1.15rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
}

/* ===============================
   Navbar
=============================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
}

.navbar .logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-color);
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar .nav-links li a {
    color: var(--text-color-alt);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navbar .nav-links li a:hover {
    color: var(--link-color);
    transform: translateY(-2px);
}

/* ===============================
   Text & Links
=============================== */
h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--header-gradient-start), var(--header-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    font-size: 1rem;
    color: var(--text-color-alt);
    margin-bottom: 15px;
}

a {
    color: var(--link-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}



.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #252525; /* optional */
}

/* Logbox für Console */
#log-box {
    background: #1e1e1e;
    color: #ddd;
    padding: 10px;
    height: 500px;
    overflow-y: auto;        /* nur vertikales Scrollen */
    overflow-x: hidden;      /* horizontales Scrollen deaktiviert */
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;   /* Zeilen umbrechen statt horizontal scrollen */
    text-align: left;
    border: 1px solid #333;
    border-radius: 6px;
}





button {
    align-items: center;   
    justify-content: center;
    display: inline-flex;
    gap: 8px;

    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 160px;
    box-shadow: 0 0 20px rgba(125, 223, 255, 0.2);
    
    /* Wichtig: Border wird nach innen gerechnet */
    box-sizing: border-box;
}


button img {
    width: 20px;                  /* feste Größe für einheitliches Aussehen */
    height: 20px;
}

/* Sekundärer Button – weniger wichtig */
button.secondary {
    background: transparent;
    border: 2px solid var(--header-gradient-end);
    color: var(--header-gradient-end);
    box-shadow: 0 0 20px rgba(36, 36, 36, 0.2);
    padding: 11px 27px;
}

/* Tertiärer Button – minimale Aufmerksamkeit */
button.tertiary {
    background: transparent;
    border: none;
    color: var(--text-color-alt);
    opacity: 0.7;
    box-shadow: none
    
}
.profile-link {
    position: relative;
}

/* Profilanzeige */
.profile-link .profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-color-alt);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 8px; /* macht den Hover-Bereich etwas größer */
}

.profile-link .profile:hover {
    color: var(--link-color);
}

/* Dropdown Menü */
.profile-link .dropdown {
    position: absolute;
    top: 100%;  /* direkt unterhalb vom Profil */
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 160px;
    display: none;
    flex-direction: column;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.profile-link .dropdown li a {
    display: block;
    padding: 10px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.profile-link .dropdown li a:hover {
    background: #1e1e1e;
    color: var(--link-color);
}

/* Sichtbar, wenn li im Hover ist */
.profile-link:hover .dropdown {
    display: flex;
}


/* ===============================
   Footer
=============================== */
footer {
    padding: 40px 20px;
    background: var(--footer-bg);
    backdrop-filter: blur(10px);
    color: var(--footer-color);
    font-size: 0.9rem;
    border-top: 1px solid var(--footer-border);
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: var(--link-color);
    margin: 0 10px;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* ===============================
   Social Icons
=============================== */
.social-icons {
    display: flex;
    gap: 14px;
    justify-content: left;
    margin-top: 15px;
}

.social-icon {
    width: 16px;
    height: 16px;
    fill: var(--text-color-alt);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-icons a:hover .social-icon {
    transform: scale(1.2);
    filter: brightness(1.5);
}


.icon {
    width: 24px; /* Größe des Icons anpassen */
    height: 24px;
}

/* ===============================
   Responsive
=============================== */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Hamburger Icon */
    .navbar::after {
        content: "☰"; /* leer, weil wir ein Bild verwenden */
        display: inline-block;
        width: 24px;   /* Größe des Icons anpassen */
        height: 24px;
        cursor: pointer;
        background-image: url('../img/menu-icon.svg'); /* Pfad zum SVG */
        background-size: contain;  /* sorgt dafür, dass es komplett passt */
        background-repeat: no-repeat;
        background-position: center;
    }


    /* Links standardmäßig verstecken */
    .navbar .nav-links {
        position: absolute;
        top: 100%;
        right: 20px;
        background: rgba(20,20,20,0.95);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 8px;
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        display: none;
        min-width: 150px;
    }

    /* Trick: wenn Navbar fokussiert wird → Menü sichtbar */
    .navbar:focus-within .nav-links,
    .navbar:hover .nav-links {
        display: flex;
    }
}


