@charset "UTF-8";
/* CSS Document */
@import url("https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap");

:root {
    --fg-snow: #F6F6F4;
    --fg-linen: #EAE7DF;
    --fg-jade-blue: #89AFA6;
    --fg-deep-teal: #506D66;
    --fg-soft-terracotta: #C79A87;
    --fg-clay-greige: #A89688;

    --bg: var(--fg-snow);
    --card: rgba(255,255,255,0.76);
    --text: #1f2d2b;
    --muted: #6f7773;
    --border: rgba(80,109,102,0.15);

    --primary: var(--fg-deep-teal);
    --primary-soft: var(--fg-jade-blue);
    --accent: var(--fg-soft-terracotta);
    --warm-neutral: var(--fg-clay-greige);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "General Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    background:
        radial-gradient(circle at top left, rgba(137,175,166,0.16), transparent 34%),
        linear-gradient(135deg, var(--fg-snow), var(--fg-linen));
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(
        180deg,
        #5B7A72 0%,
        #506D66 44%,
        #3F5852 100%
    );
    color: white;
    padding: 28px 22px;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 42px;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    flex: 0 0 54px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    opacity: 0.94;
    display: block;
}

.brand-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.brand-subtitle {
    margin-top: 4px;
    font-weight: 400;
    font-size: 13px;
    color: rgba(255,255,255,0.76);
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav a {
    color: rgba(255,255,255,0.84);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.01em;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    transform: translateX(2px);
}

.main {
    padding: 34px;
}

.page-header {
    margin-bottom: 24px;
}

.eyebrow {
    color: var(--primary-soft);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

h1 {
    margin: 8px 0 6px;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.045em;
    color: var(--primary);
}

h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: var(--primary);
}

p {
    color: var(--muted);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.kpi-card,
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 44px rgba(80,109,102,0.09);
    backdrop-filter: blur(10px);
}

.kpi-label {
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: -0.01em;
}

.kpi-value {
    margin-top: 8px;
    font-size: 42px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--primary);
}

.kpi-card.warning .kpi-value {
    color: var(--accent);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

input,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    font-family: inherit;
    font-weight: 400;
    font-size: 14px;
    background: rgba(255,255,255,0.84);
    color: var(--text);
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--primary-soft);
    box-shadow: 0 0 0 4px rgba(137,175,166,0.18);
}

button {
    border: none;
    border-radius: 14px;
    padding: 13px 18px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(80,109,102,0.17);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

button:hover {
    background: #5B7A72;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(80,109,102,0.20);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    text-align: left;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
    padding: 12px 10px;
}

td {
    border-bottom: 1px solid var(--border);
    padding: 14px 10px;
    color: var(--text);
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(137,175,166,0.16);
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
}

.severity-warning {
    background: rgba(199,154,135,0.20);
    color: #8f5f4e;
}

.severity-critical {
    background: #f7e3df;
    color: #9f3f34;
}

.severity-info {
    background: rgba(137,175,166,0.18);
    color: var(--primary);
}

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

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .form-grid,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 22px;
    }
}


/* --- FamilyGuard: Seiten vereinheitlichen --- */

.page-header {
    max-width: 1180px;
    margin: 0 auto 28px;
}

.main > .card,
.main > .kpi-grid {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.main > .card + .card {
    margin-top: 22px;
}

.card h2 {
    margin-bottom: 22px;
}

.form-grid {
    align-items: end;
}

input,
select {
    min-height: 54px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

button {
    min-height: 54px;
}

table {
    margin-top: 8px;
}

th {
    color: rgba(31,45,43,0.58);
}

td,
th {
    height: 52px;
}

@media (min-width: 901px) {
    .main {
        padding: 46px 48px;
    }
}


/* --- Mobile Navigation / Burger Menü --- */

.mobile-nav-toggle,
.mobile-menu-button {
    display: none;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 18px 22px;
    }

    .brand {
        margin-bottom: 0;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-subtitle {
        font-size: 12px;
    }

    .mobile-menu-button {
        display: inline-flex;
        flex-direction: column;
        gap: 5px;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.13);
        border: 1px solid rgba(255,255,255,0.16);
        cursor: pointer;
    }

    .mobile-menu-button span {
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: rgba(255,255,255,0.92);
    }

    .nav {
        display: none;
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.14);
    }

    .mobile-nav-toggle:checked ~ .nav {
        display: flex;
    }

    .nav a {
        padding: 13px 10px;
        font-size: 15px;
    }

    .main {
        padding: 32px 22px;
    }

    h1 {
        font-size: 38px;
    }
}

/* =========================
   LOGIN PAGE
========================= */

.login-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at bottom left, rgba(120,150,140,0.08), transparent 25%),
        radial-gradient(circle at top right, rgba(120,150,140,0.05), transparent 20%),
        linear-gradient(180deg, #f8f8f6 0%, #eef1ed 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(14px, 2vh, 24px) 20px;
    overflow-y: auto;
}

.login-page {
    width: 100%;
    max-width: 900px;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vh, 24px);
}

.login-hero {
    text-align: center;
    max-width: 760px;
}

.login-logo {
    width: clamp(150px, 18vh, 240px);
    max-width: 72%;
    height: auto;
    margin-bottom: clamp(10px, 1.5vh, 18px);
}

.login-kicker {
    color: #86a197;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.login-copy h1 {
    margin: 0 0 clamp(8px, 1.2vh, 14px);
    font-size: clamp(42px, 8vh, 82px);
    line-height: 0.92;
    letter-spacing: -0.06em;
    color: #21463d;
    font-weight: 700;
}

.login-copy p {
    margin: 0 auto;
    max-width: 760px;
    font-size: clamp(16px, 2vh, 20px);
    line-height: 1.45;
    color: #7a847f;
}

.login-panel {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-panel-inner {
    width: 100%;
    max-width: 520px;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(80,109,102,0.08);
    border-radius: 32px;
    padding: clamp(24px, 3vh, 38px);
    box-shadow: 0 16px 50px rgba(50,60,60,0.08);
    backdrop-filter: blur(10px);
}

.login-panel-inner h2 {
    margin: 0 0 10px;
    font-size: 40px;
    letter-spacing: -0.04em;
    color: #21463d;
    font-weight: 700;
    text-align: center;
}

.login-hint {
    margin: 0 0 28px;
    color: #7b857f;
    font-size: 17px;
    text-align: center;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    display: grid;
    gap: 10px;
    color: #31443f;
    font-size: 14px;
    font-weight: 700;
}

.login-form input {
    min-height: clamp(46px, 6vh, 58px);
    border-radius: 18px;
    border: 1px solid rgba(80,109,102,0.12);
    background: rgba(255,255,255,0.75);
    padding: 13px 18px;
    font-size: 16px;
}

.login-form input:focus {
    border-color: rgba(137,175,166,0.45);
    box-shadow: 0 0 0 4px rgba(137,175,166,0.10);
    outline: none;
}

.login-form button {
    margin-top: 6px;
    min-height: clamp(46px, 6vh, 58px);
    border-radius: 18px;
    border: none;
    background: linear-gradient(
        135deg,
        #efc9b6 0%,
        #e7d2c0 100%
    );
    color: #21463d;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.login-form button:hover {
    transform: translateY(-1px);
    background: linear-gradient(
        135deg,
        #e8c0ac 0%,
        #dcc7b5 100%
    );
}

.login-footer-note {
    margin-top: 22px;
    text-align: center;
    color: #6d857d;
    font-size: 11px;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    font-weight: 800;
}

.error-box {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fdeaea;
    color: #a83d3d;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 900px) {

    .login-body {
        padding: 20px;
        overflow: auto;
    }

    .login-logo {
        width: 180px;
    }

    .login-copy h1 {
        font-size: 54px;
    }

    .login-copy p {
        font-size: 18px;
    }

    .login-panel-inner {
        padding: 28px 24px;
    }

    .login-panel-inner h2 {
        font-size: 34px;
    }
}

/*Ereignis Quittieren */

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-buttons form {
    margin: 0;
}

.mini-button {
    min-height: auto;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none;
}

.mini-button.secondary {
    background: rgba(137,175,166,0.18);
    color: var(--primary);
}

.status-new {
    background: rgba(199,154,135,0.20);
    color: #8f5f4e;
}

.status-acknowledged {
    background: rgba(254,193,13,0.18);
    color: #8a6a00;
}

.status-resolved {
    background: rgba(137,175,166,0.18);
    color: var(--primary);
}