:root {
    color-scheme:dark;
    --bg:#030b15;
    --side:#06111e;
    --panel:#081523;
    --line:#19314d;
    --text:#f3f7ff;
    --muted:#98abc3;
    --blue:#2596ff;
    --green:#12d66d;
    --purple:#a249ff;
    --amber:#ffb000;
    --sw:300px
}


html.light-mode {
    color-scheme: light;
    --bg: #eef3f8;
    --sidebar: #ffffff;
    --panel: #ffffff;
    --panel-hover: #f6f9fc;
    --line: #cdd9e6;
    --line-soft: #dce5ee;
    --text: #102033;
    --muted: #60748c;
    --blue: #1479d4;
    --green: #059c53;
    --purple: #7b35d1;
    --amber: #c77a00;
    --shadow: 0 16px 40px rgba(36, 58, 82, .12);
}


html.light-mode body {
    background: radial-gradient(circle at 82% 0%, rgba(37,150,255,.12), transparent 30%), linear-gradient(180deg, #f8fbfe, var(--bg));
}


html.light-mode .sidebar {
    background: rgba(255,255,255,.97);
}


html.light-mode .stat-card, html.light-mode .tool-card {
    background: linear-gradient(145deg, #ffffff, #f5f8fb);
}


html.light-mode .theme-button, html.light-mode .outline-button, html.light-mode .system-card {
    background: #ffffff;
}


* {
    box-sizing:border-box
}


body {
    margin:0;
    min-height:100vh;
    font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
    color:var(--text);
    background:radial-gradient(circle at 82% 0,rgba(0,134,255,.08),transparent 30%),linear-gradient(180deg,#020a13,var(--bg))
}


a {
    color:inherit
}


.icon {
    width:24px;
    height:24px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex:0 0 auto
}


.sidebar {
    position:fixed;
    inset:0 auto 0 0;
    width:var(--sw);
    display:flex;
    flex-direction:column;
    padding:23px 18px 20px;
    overflow-y:auto;
    background:rgba(4,15,27,.97);
    border-right:1px solid #12263d
}


.brand {
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 5px 23px;
    border-bottom:1px solid #12263d
}


.brand-logo {
    display:block;
    width:100%;
    max-width:245px;
    height:auto;
    object-fit:contain;
    border-radius:10px
}


.brand-mark {
    display:none
}


.brand-mark:before,.brand-mark:after {
    content:"";
    position:absolute;
    inset:4px;
    clip-path:polygon(25% 0,100% 0,100% 35%,48% 35%,48% 66%,100% 66%,100% 100%,25% 100%,0 75%,0 25%);
    transform:rotate(30deg)
}


.brand-mark:before {
    background:linear-gradient(145deg,#32c2ff,#0066e8 54%,#113b88)
}


.brand-mark:after {
    inset:14px;
    background:var(--side)
}


.brand {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding-bottom: 18px;
}


.brand-logo {
    max-width: 190px;
}


.brand-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.brand-info strong {
    font-size: 13px;
    letter-spacing: .18em;
}


.brand-info small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .05em;
}


.brand-version {
    display: inline-flex;
    margin-top: 10px;
    padding: 5px 9px;
    color: #58b4ff;
    background: rgba(37, 150, 255, .09);
    border: 1px solid rgba(37, 150, 255, .18);
    border-radius: 999px;
    font-size: 10px;
}


.nav {
    padding-top:17px
}


.nav-label {
    margin:18px 10px 10px;
    color:#7388a2;
    font-size:11px;
    text-transform:uppercase
}


.nav-link {
    display:flex;
    align-items:center;
    gap:14px;
    min-height:49px;
    margin:3px 0;
    padding:0 13px;
    color:#b8c7d9;
    border:1px solid transparent;
    border-radius:10px;
    text-decoration:none
}


.nav-link:hover,.nav-link.active {
    color:#58b4ff;
    background:linear-gradient(90deg,rgba(13,91,170,.34),rgba(18,67,116,.22));
    border-color:rgba(37,150,255,.12)
}


.nav-divider {
    height:1px;
    margin:13px 5px;
    background:#12263d
}


.system-card {
    display:flex;
    align-items:center;
    gap:11px;
    margin-top:auto;
    padding:15px;
    background:#071523;
    border:1px solid #12263d;
    border-radius:12px;
    text-decoration:none
}


.dot {
    width:11px;
    height:11px;
    border-radius:50%;
    background:var(--green);
    box-shadow:0 0 16px rgba(18,214,109,.55)
}


.system-card strong {
    display:block;
    font-size:12px
}


.system-card small {
    display:block;
    margin-top:5px;
    color:var(--muted);
    font-size:11px
}


.arrow {
    margin-left:auto;
    color:var(--muted)
}


.main {
    min-height:100vh;
    margin-left:var(--sw);
    padding:25px 34px 30px
}


.topbar {
    display:flex;
    justify-content:flex-end;
    gap:28px;
    align-items:center;
    min-height:40px
}


.theme {
    padding:10px 15px;
    background:#061321;
    border:1px solid #12263d;
    border-radius:14px;
    color:#c7d4e4
}


.platform {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:13px
}


.platform i {
    width:14px;
    height:14px;
    border-radius:50%;
    background:#0ebf66;
    box-shadow:0 0 16px rgba(14,191,102,.5)
}


.hero {
    padding:0 5px 22px
}


.hero .welcome {
    margin:0 0 7px;
    color:#37a6ff;
    font-size:21px
}


.hero h1 {
    margin:0;
    font-size:clamp(42px,5vw,60px);
    line-height:1.05
}


.hero p {
    margin:13px 0 0;
    color:var(--muted);
    font-size:16px
}


.stats {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin-bottom:34px
}


.stat {
    position:relative;
    min-height:147px;
    padding:21px;
    background:linear-gradient(145deg,rgba(12,29,48,.95),rgba(6,20,34,.9));
    border:1px solid var(--line);
    border-radius:13px;
    overflow:hidden
}


.stat:after {
    content:"";
    position:absolute;
    inset:auto 0 0;
    height:4px;
    background:var(--c)
}


.stat-head {
    display:flex;
    align-items:center;
    gap:15px
}


.stat-icon {
    display:grid;
    width:57px;
    height:57px;
    place-items:center;
    color:var(--c);
    background:color-mix(in srgb,var(--c) 12%,transparent);
    border:1px solid color-mix(in srgb,var(--c) 28%,transparent);
    border-radius:13px
}


.stat span {
    color:#aebdd0;
    font-size:13px
}


.stat strong {
    display:block;
    margin-top:4px;
    font-size:25px
}


.stat p {
    margin:14px 0 0;
    color:var(--muted);
    font-size:13px
}


.section-head {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px
}


.section-head h2 {
    margin:0;
    font-size:22px
}


.section-head p {
    margin:7px 0 0;
    color:var(--muted);
    font-size:14px
}


.outline {
    padding:12px 16px;
    background:#061321;
    border:1px solid #12263d;
    border-radius:11px;
    text-decoration:none
}


.tools {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px
}


.card {
    display:flex;
    flex-direction:column;
    min-height:454px;
    padding:21px;
    background:linear-gradient(150deg,rgba(11,28,46,.97),rgba(5,18,31,.97));
    border:1px solid var(--line);
    border-radius:17px;
    transition:.17s
}


.card:hover {
    transform:translateY(-3px);
    border-color:color-mix(in srgb,var(--tc) 48%,var(--line))
}


.card-top {
    display:flex;
    justify-content:space-between
}


.tool-icon {
    display:grid;
    width:58px;
    height:58px;
    place-items:center;
    color:var(--tc);
    background:color-mix(in srgb,var(--tc) 11%,transparent);
    border:1px solid color-mix(in srgb,var(--tc) 28%,transparent);
    border-radius:13px
}


.badge {
    padding:7px 10px;
    color:var(--bc);
    background:color-mix(in srgb,var(--bc) 12%,transparent);
    border:1px solid color-mix(in srgb,var(--bc) 22%,transparent);
    border-radius:10px;
    font-size:11px;
    font-weight:700
}


.card h3 {
    margin:25px 0 9px;
    font-size:21px
}


.desc {
    margin:0;
    min-height:94px;
    color:#b4c2d3;
    font-size:14px;
    line-height:1.8
}


.version {
    margin-top:14px;
    padding:17px 0;
    color:var(--tc);
    border-top:1px solid #12263d;
    border-bottom:1px solid #12263d;
    font-size:13px
}


.links {
    display:flex;
    gap:25px;
    padding:17px 0
}


.links a {
    color:#4dadff;
    font-size:13px;
    text-decoration:none
}


.launch {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:14px;
    min-height:48px;
    margin-top:auto;
    color:#fff;
    background:linear-gradient(135deg,color-mix(in srgb,var(--tc) 75%,#034c96),color-mix(in srgb,var(--tc) 45%,#05285c));
    border:1px solid color-mix(in srgb,var(--tc) 55%,transparent);
    border-radius:7px;
    text-decoration:none;
    font-weight:700
}


.disabled {
    opacity:.55
}


.footer {
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-top:28px;
    padding-top:27px;
    color:var(--muted);
    border-top:1px solid #12263d;
    font-size:12px
}


.mobile {
    display:none
}

/* ==========================================================
   BRAND LOGO ANIMATION
========================================================== */

.brand-logo-wrap {
    position: relative;
    display: inline-flex;
    justify-content: center;
    animation: logo-entry 800ms ease-out both;
}

.brand-logo-wrap::before {
    content: "";
    position: absolute;
    inset: 15% 10%;
    z-index: -1;
    border-radius: 50%;
    background: rgba(37, 150, 255, .18);
    filter: blur(22px);
    opacity: 0;
    pointer-events: none;
    animation: logo-glow 6s ease-in-out 1.2s infinite;
}

.brand-logo {
    display: block;
    transition:
        transform 300ms ease,
        filter 300ms ease;
    transform-origin: center;
}

.brand-logo-wrap:hover .brand-logo {
    transform: scale(1.04);
    filter:
        brightness(1.1)
        drop-shadow(0 0 14px rgba(37, 150, 255, .38));
}

@keyframes logo-entry {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.98);
        filter: blur(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes logo-glow {
    0%,
    78%,
    100% {
        opacity: 0;
        transform: scale(.92);
    }

    88% {
        opacity: .8;
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo-wrap,
    .brand-logo-wrap::before {
        animation: none;
    }

    .brand-logo {
        transition: none;
    }
}


@media(max-width:1250px) {

    .stats,.tools {
        grid-template-columns:repeat(2,1fr)
    }

}


@media(max-width:820px) {

    :root {
        --sw:0px
    }


    .sidebar {
        transform:translateX(-100%);
        width:286px;
        z-index:20
    }


    .menu-open .sidebar {
        transform:translateX(0)
    }


    .mobile {
        position:sticky;
        top:0;
        z-index:15;
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:12px 16px;
        background:rgba(3,11,21,.92);
        border-bottom:1px solid #12263d
    }


    .main {
        margin-left:0;
        padding:22px 16px
    }


    .topbar {
        display:none
    }


    .stats,.tools {
        grid-template-columns:1fr
    }


    .section-head,.footer {
        align-items:flex-start;
        flex-direction:column
    }

}


/* =========================================================
   CKO TOOL APPS
   Gemeinsame Oberfläche für eigenständige Toolbox-Tools
   ========================================================= */

.tool-app {
    width: 100%;
    min-height: calc(100vh - 72px);
    padding: 28px clamp(18px, 3vw, 38px) 40px;
    color: var(--text);
}

.tool-app-shell {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}


/* Navigation innerhalb eines Tools */

.tool-breadcrumb {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--muted);
}

.tool-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.tool-breadcrumb a:hover {
    color: var(--text);
}

.tool-breadcrumb span {
    margin: 0 7px;
}


/* Tool-Kopf */

.tool-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin: 0 0 24px;
    padding: 8px 2px 22px;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.tool-hero-copy {
    min-width: 0;
}

.tool-eyebrow {
    margin: 0 0 7px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tool-hero h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
}

.tool-description {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.tool-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}


/* Buttons und Projektanzeige */

.tool-project-pill {
    max-width: 340px;
    padding: 7px 11px;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 999px;
}

.tool-primary-button,
.tool-secondary-button {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.tool-primary-button {
    color: #fff;
    background: var(--blue);
    border: 1px solid var(--blue);
}

.tool-primary-button:hover {
    filter: brightness(1.1);
}

.tool-secondary-button {
    color: var(--text);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(148, 163, 184, .24);
}

.tool-secondary-button:hover {
    background: rgba(255, 255, 255, .08);
}


/* Datenschutz-Hinweis */

.tool-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 22px;
    padding: 15px 17px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    background: rgba(18, 214, 109, .075);
    border: 1px solid rgba(18, 214, 109, .28);
    border-radius: 14px;
}

.tool-privacy-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    font-size: 19px;
    background: rgba(18, 214, 109, .12);
    border-radius: 10px;
}

.tool-privacy-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tool-privacy-text strong {
    color: var(--text);
    font-size: 14px;
}


/* Grundlayout */

.tool-layout {
    display: grid;
    gap: 22px;
}

.tool-layout-two-columns {
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, .95fr);
    align-items: start;
}


/* Karten */

.tool-card {
    min-width: 0;
    padding: 20px;
    background: rgba(8, 21, 35, .86);
    border: 1px solid rgba(37, 150, 255, .18);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(2, 6, 23, .35);
}

.tool-card h2 {
    margin: 0 0 10px;
    font-size: 19px;
}

.tool-card-subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}


/* Formulare */

.tool-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.tool-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.tool-field-full {
    grid-column: 1 / -1;
}

.tool-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.tool-label small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

.tool-app input[type="text"],
.tool-app input[type="number"],
.tool-app input[type="email"],
.tool-app select,
.tool-app textarea {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    background: rgba(2, 10, 25, .78);
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 12px;
    outline: none;
}

.tool-app textarea {
    min-height: 110px;
    resize: vertical;
}

.tool-app input:focus,
.tool-app select:focus,
.tool-app textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(37, 150, 255, .16);
}


/* Gruppen und hervorgehobene Bereiche */

.tool-section-box {
    padding: 14px;
    border: 1px solid rgba(37, 150, 255, .25);
    border-radius: 14px;
    background: rgba(37, 150, 255, .07);
}

.tool-section-box-green {
    border-color: rgba(18, 214, 109, .30);
    background: rgba(18, 214, 109, .08);
}

.tool-section-box-amber {
    border-color: rgba(255, 176, 0, .35);
    background: rgba(255, 176, 0, .09);
}

.tool-section-title {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}


/* Ergebnisse */

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

.tool-result-row {
    min-width: 0;
    min-height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    background: rgba(4, 15, 31, .70);
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 12px;
}

.tool-result-label {
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
}

.tool-result-value {
    max-width: 60%;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.tool-result-value-accent {
    color: var(--green);
    font-size: 16px;
}


/* Hinweise und Meldungen */

.tool-notice {
    padding: 11px 13px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 12px;
    background: rgba(148, 163, 184, .06);
}

.tool-notice-warning {
    color: #ffd38a;
    border-color: rgba(255, 176, 0, .38);
    background: rgba(255, 176, 0, .10);
}

.tool-notice-error {
    color: #fecaca;
    border-color: rgba(239, 68, 68, .38);
    background: rgba(239, 68, 68, .10);
}


/* Helles Design */

html.light-mode .tool-card {
    background: rgba(255, 255, 255, .94);
    border-color: rgba(15, 23, 42, .12);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .10);
}

html.light-mode .tool-app input[type="text"],
html.light-mode .tool-app input[type="number"],
html.light-mode .tool-app input[type="email"],
html.light-mode .tool-app select,
html.light-mode .tool-app textarea,
html.light-mode .tool-result-row {
    color: #102033;
    background: #fff;
}

html.light-mode .tool-secondary-button {
    color: #102033;
    background: #fff;
}


/* Mobil */

@media (max-width: 1050px) {
    .tool-layout-two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .tool-app {
        padding: 20px 16px 32px;
    }

    .tool-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .tool-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .tool-form-grid,
    .tool-results {
        grid-template-columns: 1fr;
    }

    .tool-field-full {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .tool-card {
        padding: 16px;
    }

    .tool-privacy-note {
        padding: 13px;
    }

    .tool-result-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .tool-result-value {
        max-width: 100%;
        text-align: left;
    }
}


/* Drucken */

@media print {
    .sidebar,
    .mobile,
    .topbar,
    .tool-breadcrumb,
    .tool-hero,
    .tool-privacy-note,
    .tool-screen-only {
        display: none !important;
    }

    .main {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .tool-app {
        min-height: auto;
        padding: 0 !important;
        color: #000 !important;
        background: #fff !important;
    }

    .tool-card {
        color: #000;
        background: #fff;
        border: 1px solid #bbb;
        box-shadow: none;
    }
}


/* =========================================================
   Zentrale Sidebar – geplante Tools
   Auf allen Toolbox-Seiten identische Darstellung
   ========================================================= */

.sidebar .nav-link.coming-soon-link {
  opacity: 1 !important;
  color: inherit !important;
  filter: none !important;
  cursor: default;
  pointer-events: auto;
}

.sidebar .nav-link.coming-soon-link span {
  color: inherit !important;
  opacity: 1 !important;
}

.sidebar .nav-link.coming-soon-link:hover {
  background: rgba(255, 255, 255, 0.035);
  color: inherit !important;
}
