﻿/* ================================================= */
/* GRUNDLAYOUT & HINTERGRUND                         */
/* ================================================= */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

/* Hintergrundfarben je Bereich */
body.bg-public {
    background-color: #eef2f7;
}

body.bg-login {
    background-color: #eef5f0;
}

body.bg-intern {
    background-color: #e9eef4;
}

body.bg-admin {
    background-color: #f0edf7;
}

/* Container – ca. 90 % Breite */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* ================================================= */
/* TOPBAR / HEADER                                  */
/* ================================================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 8px 12px;
    color: #ffffff;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.icon-link,
.topbar-user {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-right: 10px;
    color: inherit;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

/* Header-Icons: überall gleich groß */
body .topbar a svg,
body .topbar span svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    display: inline-block;
}

/* Header-Farben */
body.bg-public .topbar { background-color: #4f6f8f; }
body.bg-login  .topbar { background-color: #3b7a57; }
body.bg-intern .topbar { background-color: #2f4f6f; }
body.bg-admin  .topbar { background-color: #6b5aa6; }

/* ================================================= */
/* LOGIN-SEITE                                      */
/* ================================================= */

.login-container {
    max-width: 480px;
    margin: 40px auto;
    text-align: center;
}

.login-hint {
    margin-bottom: 20px;
    font-size: 0.95em;
    color: #333;
}

.login-error {
    color: #b00000;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Login-Rahmen */
.login-box {
    background-color: #f2f4f7;      /* helle Fläche */
    border: 1px solid #ccd2da;      /* Rahmen */
    border-radius: 12px;

    padding: 20px;

    display: flex;
    flex-direction: column;         /* UNTEREINANDER */
    gap: 12px;
}

/* Eingabefelder */
.login-box input {
    width: 100%;
    padding: 10px 12px;
    font-size: 1em;

    border: 1px solid #bfc6cf;
    border-radius: 6px;
}

/* Login-Button */
.login-box button {
    margin-top: 10px;
    padding: 10px;

    font-size: 1em;
    font-weight: bold;

    background-color: #3b7a57;
    color: #ffffff;

    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.login-box button:hover {
    opacity: 0.9;
}

/* ================================================= */
/* BREITE KACHELN (INTERNER BEREICH)                 */
/* ================================================= */

.kachel-breit {
    display: block;
    width: 100%;
    margin-bottom: 20px;

    padding: 25px;
    border-radius: 14px;

    font-size: 1.4em;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kachel-breit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.kachel-admin { background-color: #6b5aa6; }
.kachel-fusi  { background-color: #3b7a57; }
.kachel-usa   { background-color: #4f6f8f; }

/* ================================================= */
/* GRID-KACHELN (ADMIN / TOOLS)                      */
/* ================================================= */

.kachel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.kachel {
    display: flex;
    justify-content: center;
    align-items: center;

    height: 120px;
    border-radius: 12px;

    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kachel:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
