:root {
    --scs-blue: #087cf0;
    --scs-blue-dark: #0056c9;
    --scs-text: #111827;
    --scs-muted: #64748b;
    --scs-border: #dbe2ea;
    --scs-bg: #f4f7fb;
    --scs-white: #ffffff;
    --scs-header-height: 104px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--scs-text);
    background:
        radial-gradient(circle at top right, rgba(0, 110, 255, .10), transparent 34%),
        linear-gradient(135deg, #f8fafc 0%, #ffffff 48%, #eef5ff 100%);
}

.scs-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.scs-header {
    position: relative;
    z-index: 50;
    width: 100%;
    min-height: var(--scs-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 32px;
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(219,226,234,.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.scs-brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.scs-brand img { display: block; width: 150px; max-width: 100%; height: auto; }

.scs-nav { display: flex; align-items: center; gap: 8px; }
.scs-nav a,
.scs-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}
.scs-nav a:hover,
.scs-nav-button:hover,
.scs-nav .is-active {
    background: #eef5ff;
    border-color: #cfe1ff;
    color: #075fc9;
}
.scs-nav-login {
    background: linear-gradient(135deg, var(--scs-blue), var(--scs-blue-dark)) !important;
    color: #fff !important;
    border-color: transparent !important;
}
.scs-logout-form { margin: 0; }

.scs-main {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.scs-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 22px 20px 28px;
    color: #8a94a3;
    font-size: 13px;
}
.scs-footer a { color: #66758a; text-underline-offset: 3px; }
.scs-footer a:hover { color: #075fc9; }

.scs-mobile-menu { display: none; position: relative; }
.scs-mobile-menu summary {
    list-style: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--scs-border);
    border-radius: 11px;
    background: #fff;
    display: grid;
    place-content: center;
    gap: 5px;
    cursor: pointer;
}
.scs-mobile-menu summary::-webkit-details-marker { display: none; }
.scs-mobile-menu summary span { display: block; width: 20px; height: 2px; background: #25344a; border-radius: 999px; }
.scs-mobile-panel {
    position: absolute;
    right: 0;
    top: 52px;
    width: min(280px, calc(100vw - 32px));
    padding: 10px;
    background: #fff;
    border: 1px solid var(--scs-border);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(15,23,42,.16);
    display: grid;
    gap: 4px;
}
.scs-mobile-panel a,
.scs-mobile-panel button {
    width: 100%;
    display: block;
    padding: 11px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #26354a;
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.scs-mobile-panel a:hover,
.scs-mobile-panel button:hover { background: #eef5ff; color: #075fc9; }
.scs-mobile-panel form { margin: 4px 0 0; border-top: 1px solid #eef1f5; padding-top: 5px; }

/* Ein gemeinsamer Seitenrahmen fuer alle Funktionsseiten. */
.scs-content-page {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 28px 0 42px;
}

@media (max-width: 760px) {
    :root { --scs-header-height: 76px; }
    .scs-header { min-height: var(--scs-header-height); padding: 10px 16px; }
    .scs-brand img { width: 118px; }
    .scs-nav-desktop { display: none; }
    .scs-mobile-menu { display: block; }
    .scs-footer { padding: 18px 14px 22px; font-size: 12px; }
    .scs-content-page { width: min(100% - 24px, 1180px); padding: 18px 0 28px; }
}
