/* =========================================================
   Neonbase Netzwerk Community
   Zentrale Stylesheet-Datei
   Hier kannst du Farben, Abstände und Layout zentral ändern.
   ========================================================= */

/* ---------- GRUNDEINSTELLUNGEN ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

/* =========================================================
   STARTSEITE / INDEX.PHP
   - Hintergrundbild genau EINMAL auf body.home-page
   - normale Browser-Scrollleiste am rechten Fensterrand
   ========================================================= */

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body.home-page {
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    overflow-y: visible;
    background-color: #02070d;
    background-image:
        linear-gradient(rgba(0, 5, 12, 0.42), rgba(0, 5, 12, 0.58)),
        url("img/neonbase.png");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Header */
.home-page .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 88px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    gap: 28px;
    padding: 12px clamp(22px, 4vw, 64px);
    background: rgba(0, 4, 8, 0.94);
    border-bottom: 1px solid rgba(0, 174, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.home-page .brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: max-content;
    color: #fff;
    text-decoration: none;
}

.home-page .brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(95, 199, 255, 0.6);
    box-shadow: 0 0 18px rgba(0, 153, 255, 0.14);
}

.home-page .brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.home-page .brand-copy strong {
    font-size: 22px;
    letter-spacing: -0.3px;
}

.home-page .brand-copy small {
    margin-top: 5px;
    color: rgba(255,255,255,.70);
    font-size: 12px;
}

/* Navigation */
.home-page .main-nav {
    justify-self: center;
}

.home-page .main-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 3vw, 48px);
    list-style: none;
}

.home-page .main-nav a {
    position: relative;
    display: block;
    padding: 31px 2px 28px;
    color: rgba(255,255,255,.88);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.home-page .main-nav a:hover,
.home-page .main-nav a.active {
    color: #00aaff;
}

.home-page .main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17px;
    height: 3px;
    border-radius: 999px;
    background: #009dff;
    box-shadow: 0 0 11px rgba(0, 157, 255, .48);
}

/* Rechte Header-Seite */
.home-page .header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-page .system-status,
.home-page .portal-button {
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: 8px;
    background: rgba(4, 8, 12, .76);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.home-page .system-status {
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
}

.home-page .system-status i {
    width: 10px;
    height: 10px;
    display: block;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 12px rgba(40, 200, 64, .75);
}

.home-page .portal-button {
    color: #00aaff;
    border: 1px solid #009dff;
    font-weight: 700;
    transition: .2s ease;
}

.home-page .portal-button:hover {
    color: #fff;
    background: rgba(0, 157, 255, .18);
    box-shadow: 0 0 20px rgba(0, 157, 255, .18);
}

/* Hauptinhalt – KEIN innerer Scrollcontainer */
.home-page .home-main {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 88px);
    padding: 0 clamp(22px, 6.5vw, 100px) 28px;
    background: transparent;
    overflow: visible;
}

.home-page .hero {
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 76px 20px 48px;
}

.home-page .hero-inner {
    width: min(850px, 100%);
    padding: 34px 34px 40px;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(0,0,0,.58) 0%, rgba(0,0,0,.36) 48%, rgba(0,0,0,0) 78%);
}

.home-page .hero-kicker {
    margin-bottom: 4px;
    color: #fff;
    font-size: clamp(30px, 3.6vw, 52px);
    line-height: 1.05;
    font-weight: 800;
    text-shadow: 0 3px 18px rgba(0,0,0,.65);
}

.home-page .hero h1 {
    color: #009dff;
    font-size: clamp(48px, 6.2vw, 76px);
    line-height: 1;
    letter-spacing: -2px;
    text-shadow: 0 5px 28px rgba(0, 130, 255, .25), 0 4px 10px rgba(0,0,0,.7);
}

.home-page .hero-line {
    display: block;
    width: 84px;
    height: 3px;
    margin: 28px auto 25px;
    border-radius: 99px;
    background: #00aaff;
    box-shadow: 0 0 15px rgba(0, 170, 255, .4);
}

.home-page .hero h2 {
    margin: 0 0 9px;
    color: #fff;
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.3;
    font-weight: 500;
}

.home-page .hero-text {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255,255,255,.78);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.55;
}

.home-page .hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 31px;
}

.home-page .button {
    min-width: 180px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 22px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-page .button:hover {
    transform: translateY(-2px);
}

.home-page .button-primary {
    background: linear-gradient(135deg, #0088f0, #00aaff);
    border: 1px solid #17b1ff;
    box-shadow: 0 10px 24px rgba(0, 130, 255, .20);
}

.home-page .button-primary:hover {
    box-shadow: 0 12px 30px rgba(0, 157, 255, .34);
}

.home-page .button-secondary {
    background: rgba(0,0,0,.58);
    border: 1px solid rgba(255,255,255,.32);
}

.home-page .button-secondary:hover {
    background: rgba(0, 157, 255, .12);
    border-color: rgba(0, 170, 255, .65);
}

/* Karten */
.home-page .feature-grid {
    width: min(1320px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 0 0 30px;
}

.home-page .feature-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    padding: 28px 25px 24px;
    border: 1px solid rgba(255,255,255,.27);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(3, 10, 18, .86), rgba(1, 5, 10, .92));
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-page .feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 170, 255, .75);
    box-shadow: 0 18px 48px rgba(0, 130, 255, .14);
}

.home-page .feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 19px;
    color: #00aaff;
    filter: drop-shadow(0 0 8px rgba(0, 157, 255, .55));
}

.home-page .feature-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-page .feature-card h3 {
    margin-bottom: 9px;
    color: #fff;
    font-size: 22px;
}

.home-page .feature-card p {
    margin-bottom: 20px;
    color: rgba(255,255,255,.72);
    line-height: 1.55;
    font-size: 16px;
}

.home-page .feature-card a {
    margin-top: auto;
    color: #00aaff;
    font-weight: 700;
    text-decoration: none;
}

.home-page .feature-card a span {
    margin-left: 10px;
}

/* Footer – nicht fixed, damit nur der Browser selbst scrollt */
.home-page .footer {
    position: relative;
    width: 100%;
    min-height: 76px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px clamp(22px, 4vw, 64px);
    color: rgba(255,255,255,.72);
    background: rgba(0, 4, 8, .96);
    border-top: 1px solid #009dff;
}

.home-page .footer-left {
    justify-self: start;
    font-size: 14px;
}

.home-page .footer-center {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 18px;
}

.home-page .footer-center a {
    color: #00aaff;
    text-decoration: none;
}

.home-page .footer-center a:hover {
    color: #fff;
}

.home-page .footer-center span {
    color: rgba(255,255,255,.40);
}

.home-page .footer-right {
    justify-self: end;
}

@media (max-width: 1180px) {
    .home-page .site-header {
        grid-template-columns: auto 1fr auto;
        gap: 18px;
        padding-left: 22px;
        padding-right: 22px;
    }

    .home-page .brand-copy small,
    .home-page .system-status {
        display: none;
    }

    .home-page .main-nav ul {
        gap: 20px;
    }

    .home-page .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .home-page .site-header {
        position: relative;
        grid-template-columns: 1fr auto;
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .home-page .brand img {
        width: 50px;
        height: 50px;
    }

    .home-page .brand-copy strong {
        font-size: 18px;
    }

    .home-page .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .home-page .main-nav ul {
        justify-content: flex-start;
        gap: 24px;
        min-width: max-content;
    }

    .home-page .main-nav a {
        padding: 9px 0 12px;
        font-size: 14px;
    }

    .home-page .main-nav a.active::after {
        bottom: 3px;
    }

    .home-page .hero {
        min-height: 500px;
        padding-top: 48px;
    }

    .home-page .hero-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-page .feature-grid {
        grid-template-columns: 1fr;
    }

    .home-page .feature-card {
        min-height: 220px;
    }

    .home-page .footer {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .home-page .footer-left,
    .home-page .footer-center {
        justify-self: center;
    }

    .home-page .footer-right {
        display: none;
    }
}

@media (max-width: 520px) {
    .home-page .brand-copy {
        display: none;
    }

    .home-page .header-actions {
        gap: 8px;
    }

    .home-page .portal-button {
        height: 39px;
        padding: 0 12px;
    }

    .home-page .home-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .home-page .hero {
        padding-left: 0;
        padding-right: 0;
    }

    .home-page .hero h1 {
        letter-spacing: -1px;
    }

    .home-page .button {
        width: 100%;
    }
}

/* =========================================================
   DASHBOARD.HTML
   ========================================================= */

.dashboard-page {
    background: #101010;
    color: #fff;
}

/* Sidebar */
.dashboard-page .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: #050505;
    border-right: 2px solid #00d4ff;
    padding: 25px 15px;
}

.dashboard-page .sidebar h2 {
    color: #00d4ff;
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-page .sidebar a {
    display: block;
    padding: 14px 15px;
    margin-bottom: 8px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.dashboard-page .sidebar a:hover {
    background: #00d4ff;
    color: #000;
}

/* Dashboard Hauptbereich */
.dashboard-page .dashboard {
    margin-left: 240px;
    min-height: 100vh;
    padding: 30px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("img/hintergrund.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.dashboard-page .dashboard h1 {
    margin-bottom: 30px;
}

/* Dashboard Karten */
.dashboard-page .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.dashboard-page .card {
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid #00d4ff;
    border-radius: 12px;
    padding: 25px;
}

.dashboard-page .card h3 {
    color: #00d4ff;
    margin-bottom: 10px;
}

.dashboard-page .card p {
    color: #ccc;
}

/* Zur Webseite / Abmelden */
.dashboard-page .logout {
    position: absolute;
    bottom: 25px;
    left: 15px;
    right: 15px;
    background: #c62828;
    text-align: center;
}

.dashboard-page .logout:hover {
    background: #35b3e5 !important;
    color: rgb(12, 0, 0) !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .dashboard-page .sidebar {
        width: 200px;
    }

    .dashboard-page .dashboard {
        margin-left: 200px;
    }
}


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

.login-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url("img/hintergrund.png") center center / cover no-repeat fixed;
    color: #fff;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: rgba(10, 10, 10, 0.94);
    border: 1px solid #00d4ff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.18);
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.login-logo h1 {
    color: #00d4ff;
    margin-bottom: 6px;
}

.login-logo p {
    color: #aaa;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form label {
    margin-top: 8px;
    color: #ddd;
}

.login-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #181818;
    color: #fff;
    outline: none;
}

.login-form input:focus {
    border-color: #00d4ff;
}

.login-form button {
    margin-top: 14px;
    border: 0;
    border-radius: 8px;
    padding: 13px;
    background: #00d4ff;
    color: #000;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

.login-form button:hover {
    background: #00a8cc;
}

.login-error,
.login-success {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.login-error {
    background: rgba(198, 40, 40, 0.25);
    border: 1px solid #c62828;
}

.login-success {
    background: rgba(25, 200, 25, 0.18);
    border: 1px solid #19c819;
}

.login-links {
    text-align: center;
    margin-top: 22px;
}

.login-links a {
    color: #00d4ff;
    text-decoration: none;
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-topbar h1 {
    margin-bottom: 0 !important;
}

.user-box {
    background: rgba(20,20,20,0.9);
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 10px 14px;
}


/* =========================================================
   CMS / ADMIN
   ========================================================= */
.admin-grid{display:grid;grid-template-columns:minmax(300px,1fr) minmax(400px,1.4fr);gap:22px;align-items:start}
.admin-panel{background:rgba(15,15,15,.94);border:1px solid #00d4ff;border-radius:12px;padding:22px;margin-bottom:22px}
.admin-panel h2{color:#00d4ff;margin-bottom:18px}
.admin-form{display:flex;flex-direction:column;gap:10px}
.admin-form input,.admin-form textarea,.admin-form select,.member-head select{background:#181818;border:1px solid #444;color:#fff;border-radius:7px;padding:11px}
.admin-form textarea{resize:vertical}
.admin-form button,.admin-panel button{background:#00d4ff;color:#000;border:0;border-radius:7px;padding:10px 15px;font-weight:bold;cursor:pointer}
.admin-success{background:rgba(25,200,25,.16);border:1px solid #19c819;border-radius:8px;padding:12px;margin-bottom:18px}
.admin-table{width:100%;border-collapse:collapse}
.admin-table th,.admin-table td{text-align:left;padding:10px;border-bottom:1px solid #333;vertical-align:middle}
.admin-table a{color:#00d4ff}
.inline-form{display:inline}
button.danger,.danger{background:#c62828!important;color:#fff!important;margin-left:8px}
.check{display:flex;align-items:center;gap:8px}
.check input{width:auto}
.media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.media-card{background:#151515;border:1px solid #333;border-radius:10px;padding:12px}
.media-card img{width:100%;height:150px;object-fit:contain;border-radius:7px;background:#09131c}
.media-card p{margin-top:8px;word-break:break-word}
.media-card small{display:block;color:#999;word-break:break-all;margin:5px 0 10px}
.row-form{display:grid;grid-template-columns:1fr 1fr 1fr auto auto;align-items:end}
.member-panel{position:relative}
.member-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}
.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:15px 0}
.delete-member{position:absolute;right:20px;bottom:20px}
.public-content{max-width:1200px;margin:0 auto;width:100%}
.public-content h1{font-size:42px;margin:20px 0 10px}
.public-content h2{font-size:22px;color:#00d4ff;margin-bottom:20px}
.page-text{max-width:850px;line-height:1.7;font-size:18px}
.hero-image{width:100%;max-height:360px;object-fit:cover;border-radius:14px;margin-bottom:20px}
.cta-button{display:inline-block;margin-top:22px;background:#00d4ff;color:#000;text-decoration:none;padding:12px 20px;border-radius:8px;font-weight:bold}

@media(max-width:1000px){
 .admin-grid{grid-template-columns:1fr}
 .row-form{grid-template-columns:1fr}
 .dashboard-page .sidebar{position:relative;width:100%;height:auto}
 .dashboard-page .dashboard{margin-left:0}
}


/* Registrierung */
.register-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    border: 1px solid #00d4ff;
    border-radius: 8px;
    transition: 0.3s;
}

.register-link:hover {
    background: #00d4ff;
    color: #000;
}

/* =========================================================
   NEONBASE CONTROL CENTER – PROFESSIONAL ADMIN UI
   ========================================================= */
.dashboard-page {
    min-height: 100vh;
    background: #071019;
    color: #eef6ff;
}

.dashboard-page .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 274px;
    height: 100vh;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(7,17,28,.98), rgba(3,9,15,.99)),
        url("img/hintergrund.png") center / cover no-repeat;
    border-right: 1px solid rgba(0, 174, 255, .24);
    box-shadow: 22px 0 50px rgba(0,0,0,.22);
    overflow-y: auto;
    z-index: 1200;
}

.dashboard-page .admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 22px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.dashboard-page .admin-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(0,174,255,.45);
    box-shadow: 0 0 20px rgba(0,157,255,.12);
}

.dashboard-page .admin-brand span,
.dashboard-page .sidebar-user > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dashboard-page .admin-brand strong { font-size: 18px; line-height: 1.2; }
.dashboard-page .admin-brand small,
.dashboard-page .sidebar-user small { margin-top: 3px; color: #7890a6; font-size: 11px; }
.dashboard-page .admin-nav-label { padding: 24px 12px 10px; color: #526b81; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.dashboard-page .admin-nav { display: grid; gap: 6px; }
.dashboard-page .sidebar a { margin: 0; }

.dashboard-page .admin-nav-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 13px !important;
    color: #9eb1c3 !important;
    border: 1px solid transparent;
    border-radius: 11px !important;
    font-weight: 600;
    transition: .18s ease !important;
}

.dashboard-page .admin-nav-link:hover {
    color: #fff !important;
    background: rgba(0,157,255,.09) !important;
    border-color: rgba(0,157,255,.14);
}

.dashboard-page .admin-nav-link.active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(0,157,255,.22), rgba(0,157,255,.08)) !important;
    border-color: rgba(0,157,255,.32);
    box-shadow: inset 3px 0 0 #00aaff, 0 8px 24px rgba(0,0,0,.12);
}

.dashboard-page .admin-nav-icon {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    color: #00aaff;
    font-size: 17px;
}

.dashboard-page .sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.dashboard-page .sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 8px 13px; }
.dashboard-page .sidebar-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.dashboard-page .sidebar-avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid !important;
    place-items: center;
    border-radius: 50%;
    color: #00111d;
    background: #00aaff;
    font-weight: 900;
}
.dashboard-page .sidebar-logout {
    display: block !important;
    padding: 10px 12px !important;
    text-align: center;
    color: #ff9393 !important;
    background: rgba(197,57,57,.08);
    border: 1px solid rgba(255,92,92,.16);
    border-radius: 9px !important;
    text-decoration: none;
}
.dashboard-page .sidebar-logout:hover { color: #fff !important; background: rgba(197,57,57,.20) !important; }

.dashboard-page .dashboard {
    margin-left: 274px;
    min-height: 100vh;
    padding: 30px clamp(24px, 3.2vw, 52px) 54px;
    background:
        radial-gradient(circle at 90% 0%, rgba(0,145,255,.10), transparent 30%),
        linear-gradient(rgba(5,13,22,.94), rgba(5,13,22,.97)),
        url("img/hintergrund.png") center / cover fixed no-repeat;
}

.dashboard-page .admin-page-header {
    min-height: 66px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}
.dashboard-page .admin-page-header h1 { margin: 0 !important; color: #fff; font-size: clamp(27px, 3vw, 36px); letter-spacing: -.6px; }
.dashboard-page .admin-page-header p { margin-top: 5px; color: #7790a6; font-size: 14px; }
.dashboard-page .admin-header-site {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    color: #c5d7e7;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
}
.dashboard-page .admin-header-site:hover { color: #fff; border-color: rgba(0,170,255,.42); }

.dashboard-page .dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 30px;
    margin-bottom: 22px;
    background: linear-gradient(115deg, rgba(0,157,255,.16), rgba(14,27,40,.84) 55%, rgba(14,27,40,.72));
    border: 1px solid rgba(0,170,255,.22);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0,0,0,.16);
}
.dashboard-page .dashboard-eyebrow,
.dashboard-page .panel-kicker { display: block; margin-bottom: 7px; color: #00aaff; font-size: 10px; font-weight: 900; letter-spacing: 1.7px; }
.dashboard-page .dashboard-welcome h2 { margin: 0 0 8px; color: #fff; font-size: 26px; }
.dashboard-page .dashboard-welcome p { max-width: 720px; margin: 0; color: #9bb0c3; line-height: 1.6; }
.dashboard-page .dashboard-system-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    color: #c7d7e4;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}
.dashboard-page .dashboard-system-pill span { width: 9px; height: 9px; border-radius: 50%; }
.dashboard-page .dashboard-system-pill.is-online span { background: #35d164; box-shadow: 0 0 11px rgba(53,209,100,.7); }
.dashboard-page .dashboard-system-pill.is-offline span { background: #ffb020; box-shadow: 0 0 11px rgba(255,176,32,.6); }

.dashboard-page .stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.dashboard-page .stat-card {
    min-height: 132px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    color: inherit;
    background: rgba(12,25,38,.88);
    border: 1px solid rgba(126,159,187,.15);
    border-radius: 15px;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.dashboard-page .stat-card:hover { transform: translateY(-2px); border-color: rgba(0,170,255,.36); background: rgba(14,30,45,.94); }
.dashboard-page .stat-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #00aaff;
    background: rgba(0,157,255,.10);
    border: 1px solid rgba(0,157,255,.18);
    border-radius: 12px;
    font-size: 22px;
}
.dashboard-page .stat-copy { display: flex; flex-direction: column; min-width: 0; }
.dashboard-page .stat-copy > span { color: #8ea3b7; font-size: 12px; font-weight: 700; }
.dashboard-page .stat-copy strong { margin: 2px 0; color: #fff; font-size: 29px; line-height: 1.15; }
.dashboard-page .stat-copy small { color: #60778c; font-size: 11px; }

.dashboard-page .dashboard-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,.8fr); gap: 18px; }
.dashboard-page .dashboard-layout-wide { grid-template-columns: minmax(0,1.45fr) minmax(320px,.75fr); }
.dashboard-page .admin-panel {
    padding: 22px;
    margin-bottom: 18px;
    background: rgba(10,22,34,.90);
    border: 1px solid rgba(123,157,184,.16);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,.13);
}
.dashboard-page .admin-panel h2 { color: #fff; font-size: 19px; margin-bottom: 16px; }
.dashboard-page .dashboard-panel { min-width: 0; }
.dashboard-page .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.dashboard-page .panel-heading h2 { margin: 0; }
.dashboard-page .panel-heading > a { color: #00aaff; text-decoration: none; font-size: 12px; font-weight: 700; }

.dashboard-page .quick-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.dashboard-page .quick-actions a {
    min-height: 88px;
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-content: center;
    padding: 13px;
    color: #fff;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
    text-decoration: none;
}
.dashboard-page .quick-actions a:hover { border-color: rgba(0,170,255,.28); background: rgba(0,157,255,.06); }
.dashboard-page .quick-actions a > span { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; color: #00aaff; background: rgba(0,157,255,.09); border-radius: 9px; font-size: 18px; }
.dashboard-page .quick-actions strong { font-size: 13px; }
.dashboard-page .quick-actions small { margin-top: 3px; color: #6d8498; font-size: 11px; }

.dashboard-page .system-list { display: grid; }
.dashboard-page .system-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); color: #849bb0; font-size: 12px; }
.dashboard-page .system-list > div:last-child { border: 0; }
.dashboard-page .system-list strong { color: #d8e5ef; font-weight: 700; }
.dashboard-page .status-ok { color: #54d67d !important; }
.dashboard-page .status-warn { color: #ffbd4a !important; }

.dashboard-page .dashboard-table-wrap { overflow-x: auto; }
.dashboard-page .dashboard-table { min-width: 620px; }
.dashboard-page .admin-table th { color: #5f788e; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; font-weight: 800; }
.dashboard-page .admin-table th,
.dashboard-page .admin-table td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.dashboard-page .admin-table td { color: #aebfcd; font-size: 12px; }
.dashboard-page .admin-table td strong { display: block; color: #eef6ff; font-size: 13px; }
.dashboard-page .admin-table td small { display: block; margin-top: 3px; color: #546c81; }
.dashboard-page .table-action { color: #00aaff; text-decoration: none; font-weight: 700; }
.dashboard-page .content-status,
.dashboard-page .home-badge { display: inline-flex; padding: 4px 7px; margin-right: 5px; border-radius: 99px; font-size: 10px; font-weight: 800; }
.dashboard-page .content-status.published { color: #65df8a; background: rgba(48,190,92,.10); }
.dashboard-page .content-status.draft { color: #e6ad4e; background: rgba(230,173,78,.10); }
.dashboard-page .home-badge { color: #61bcff; background: rgba(0,157,255,.10); }
.dashboard-page .empty-state { padding: 28px !important; text-align: center !important; color: #61778a !important; }
.dashboard-page .empty-card { padding: 35px 15px; color: #657b8e; text-align: center; border: 1px dashed rgba(255,255,255,.08); border-radius: 10px; }

.dashboard-page .dashboard-media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.dashboard-page .dashboard-media-grid a { position: relative; min-width: 0; color: #fff; text-decoration: none; overflow: hidden; border-radius: 10px; border: 1px solid rgba(255,255,255,.07); background: #07111a; }
.dashboard-page .dashboard-media-grid img { width: 100%; aspect-ratio: 16/10; display: block; object-fit: cover; }
.dashboard-page .dashboard-media-grid span { display: block; padding: 8px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8fa5b8; font-size: 10px; }

.dashboard-page .admin-form { gap: 11px; }
.dashboard-page .admin-form label { color: #91a7ba; font-size: 12px; font-weight: 700; }
.dashboard-page .admin-form input,
.dashboard-page .admin-form textarea,
.dashboard-page .admin-form select,
.dashboard-page .member-head select {
    min-height: 42px;
    background: rgba(4,12,19,.82);
    border: 1px solid rgba(126,157,181,.22);
    border-radius: 9px;
    color: #f2f7fb;
    outline: none;
}
.dashboard-page .admin-form input:focus,
.dashboard-page .admin-form textarea:focus,
.dashboard-page .admin-form select:focus,
.dashboard-page .member-head select:focus { border-color: rgba(0,170,255,.7); box-shadow: 0 0 0 3px rgba(0,157,255,.08); }
.dashboard-page .admin-form button,
.dashboard-page .admin-panel button { min-height: 40px; border-radius: 9px; background: #00aaff; }
.dashboard-page .admin-form button:hover,
.dashboard-page .admin-panel button:hover { filter: brightness(1.08); }
.dashboard-page .admin-success,
.dashboard-page .login-error,
.dashboard-page .admin-alert { padding: 13px 15px; margin-bottom: 18px; border-radius: 10px; font-size: 13px; }
.dashboard-page .admin-alert-error { color: #ffd3d3; background: rgba(198,40,40,.12); border: 1px solid rgba(255,92,92,.24); }
.dashboard-page .media-card { background: rgba(7,17,27,.92); border-color: rgba(126,157,181,.16); border-radius: 12px; }
.dashboard-page .media-card img { height: 180px; }
.dashboard-page .media-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.dashboard-page .media-card { min-width:0; }
.dashboard-page .media-card img { width:100%; height:150px; object-fit:contain; }
@media(max-width:1150px){.dashboard-page .media-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:780px){.dashboard-page .media-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:460px){.dashboard-page .media-grid{grid-template-columns:1fr;}}
.dashboard-page .member-panel { padding-bottom: 72px; }

/* Public sub pages use the same professional header and one single background. */
.home-page.public-page .public-content {
    position: relative;
    max-width: 1180px;
    min-height: calc(100vh - 180px);
    margin: 0 auto;
    padding: clamp(54px,7vw,90px) clamp(22px,5vw,72px) 70px;
    background: rgba(2,9,15,.72);
    border-left: 1px solid rgba(0,170,255,.08);
    border-right: 1px solid rgba(0,170,255,.08);
    backdrop-filter: blur(5px);
}
.home-page.public-page .public-content h1 { margin-top: 0; color: #fff; font-size: clamp(34px,5vw,56px); }
.home-page.public-page .public-content h2 { color: #00aaff; }
.home-page.public-page .page-text { color: #cad6df; }

@media (max-width: 1180px) {
    .dashboard-page .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-page .dashboard-layout,
    .dashboard-page .dashboard-layout-wide { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .dashboard-page .sidebar { position: relative; width: 100%; height: auto; max-height: none; padding: 14px; }
    .dashboard-page .admin-brand { padding-bottom: 14px; }
    .dashboard-page .admin-nav-label { display: none; }
    .dashboard-page .admin-nav { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 12px; }
    .dashboard-page .admin-nav-link { justify-content: center; }
    .dashboard-page .sidebar-footer { display: none; }
    .dashboard-page .dashboard { margin-left: 0; padding: 24px 18px 42px; }
    .dashboard-page .admin-page-header { align-items: flex-start; }
}

@media (max-width: 640px) {
    .dashboard-page .admin-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-page .admin-page-header { flex-direction: column; }
    .dashboard-page .dashboard-welcome { flex-direction: column; align-items: flex-start; padding: 22px; }
    .dashboard-page .stat-grid { grid-template-columns: 1fr; }
    .dashboard-page .stat-card { min-height: 110px; }
    .dashboard-page .quick-actions { grid-template-columns: 1fr; }
    .dashboard-page .dashboard-media-grid { grid-template-columns: 1fr; }
    .dashboard-page .row-form { grid-template-columns: 1fr; }
    .dashboard-page .member-head { align-items: flex-start; flex-direction: column; }
    .dashboard-page .delete-member { position: static; margin-top: 14px; }
    .dashboard-page .member-panel { padding-bottom: 22px; }
}

/* =========================================================
   HEADER MANAGER / dynamische Header-Einstellungen
   ========================================================= */
.home-page .site-header {
    min-height: var(--tc1-header-height, 88px);
    background: var(--tc1-header-bg, rgba(0,4,8,.94));
    border-bottom-color: var(--tc1-accent, #00aaff);
}
.home-page .site-header:not(.is-sticky) { position: relative; }
.home-page .site-header.is-sticky { position: sticky; top: 0; }
.home-page .main-nav a:hover,
.home-page .main-nav a.active,
.home-page .portal-button { color: var(--tc1-accent, #00aaff); }
.home-page .main-nav a.active::after { background: var(--tc1-accent, #00aaff); }
.home-page .portal-button { border-color: var(--tc1-accent, #00aaff); }

.dashboard-page .header-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}
.dashboard-page .header-settings-grid .admin-panel { margin-bottom: 0; }
.dashboard-page .header-preview-panel { overflow: hidden; }
.dashboard-page .header-preview-frame {
    overflow-x: auto;
    padding: 16px;
    border-radius: 13px;
    background: #03080d;
    border: 1px solid rgba(255,255,255,.07);
}
.dashboard-page .header-preview-bar {
    --preview-accent: #00aaff;
    min-width: 850px;
    min-height: 70px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 8px 22px;
    border-bottom: 1px solid var(--preview-accent);
    border-radius: 9px;
    transition: .2s ease;
}
.dashboard-page .header-preview-brand { display:flex; align-items:center; gap:10px; min-width:0; }
.dashboard-page .header-preview-brand img { width:48px; height:48px; object-fit:contain; border-radius:8px; border:1px solid rgba(255,255,255,.13); }
.dashboard-page .header-preview-brand span { display:flex; flex-direction:column; min-width:0; }
.dashboard-page .header-preview-brand strong { color:#fff; font-size:15px; }
.dashboard-page .header-preview-brand small { color:#7d93a7; font-size:9px; margin-top:3px; }
.dashboard-page .header-preview-nav { display:flex; gap:22px; color:#d4e0ea; font-size:11px; font-weight:700; }
.dashboard-page .header-preview-nav span:first-child { color:var(--preview-accent); }
.dashboard-page .header-preview-actions { justify-self:end; display:flex; align-items:center; gap:8px; }
.dashboard-page .header-preview-status,
.dashboard-page .header-preview-button { min-height:32px; display:inline-flex; align-items:center; gap:7px; padding:0 10px; border-radius:7px; font-size:10px; font-weight:700; white-space:nowrap; }
.dashboard-page .header-preview-status { color:#fff; border:1px solid rgba(255,255,255,.18); }
.dashboard-page .header-preview-status i { width:7px; height:7px; border-radius:50%; background:#35d164; box-shadow:0 0 8px rgba(53,209,100,.7); }
.dashboard-page .header-preview-button { color:var(--preview-accent); border:1px solid var(--preview-accent); }
.dashboard-page .header-logo-current { display:flex; align-items:center; gap:12px; padding:10px; border:1px solid rgba(255,255,255,.07); border-radius:9px; background:rgba(255,255,255,.02); }
.dashboard-page .header-logo-current img { width:58px; height:58px; object-fit:contain; border-radius:8px; background:#071019; }
.dashboard-page .header-logo-current span { color:#7f96aa; font-size:11px; }
.dashboard-page .form-hint { color:#61798d; font-size:10px; line-height:1.5; }
.dashboard-page .color-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.dashboard-page .color-fields label { display:flex; flex-direction:column; gap:7px; }
.dashboard-page .color-fields input[type=color] { width:100%; height:46px; padding:4px; cursor:pointer; }
.dashboard-page .header-savebar { position:sticky; bottom:16px; z-index:20; display:flex; align-items:center; gap:12px; margin:18px 0; padding:12px; border:1px solid rgba(0,170,255,.18); border-radius:12px; background:rgba(5,15,24,.96); box-shadow:0 16px 40px rgba(0,0,0,.26); backdrop-filter:blur(12px); }
.dashboard-page .header-savebar button { min-height:42px; padding:0 20px; border:0; border-radius:9px; color:#fff; background:#00aaff; font-weight:800; cursor:pointer; }
.dashboard-page .header-savebar a { color:#91a8bb; text-decoration:none; font-size:12px; }
.dashboard-page .header-reset-form { margin-top:4px; }
.dashboard-page .header-reset-form .danger { min-height:38px; padding:0 14px; border:1px solid rgba(255,90,90,.24); border-radius:9px; color:#ff9f9f; background:rgba(190,35,35,.10); cursor:pointer; }
.dashboard-page input[type=range] { accent-color:#00aaff; }

@media (max-width: 900px) {
    .dashboard-page .header-settings-grid { grid-template-columns:1fr; }
}
@media (max-width: 640px) {
    .dashboard-page .color-fields { grid-template-columns:1fr; }
    .dashboard-page .header-savebar { align-items:stretch; flex-direction:column; }
}


/* ===== Öffentliche Seitenbilder ===== */
.home-page .hero { position: relative; overflow: hidden; }
.home-page .hero.has-page-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(2,8,14,.88), rgba(2,8,14,.62) 48%, rgba(2,8,14,.78));
    pointer-events: none;
}
.home-page .hero-page-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.home-page .hero-page-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
.home-page .hero.has-page-image .hero-inner { position: relative; z-index: 2; }
.home-page .hero.layout-image_left,
.home-page .hero.layout-image_right {
    width: min(1320px, 100%);
    min-height: 500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
    gap: clamp(28px, 5vw, 72px);
    text-align: left;
}
.home-page .hero.layout-image_right .hero-side-image { order: 2; }
.home-page .hero.layout-image_right .hero-inner { order: 1; }
.home-page .hero-side-image {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(0,170,255,.38);
    border-radius: 22px;
    box-shadow: 0 24px 65px rgba(0,0,0,.38), 0 0 30px rgba(0,157,255,.12);
}
.home-page .hero-side-image img { width:100%; height:100%; min-height:360px; display:block; object-fit:cover; }
.home-page .hero.layout-image_left .hero-inner,
.home-page .hero.layout-image_right .hero-inner { width:100%; padding:34px 0 40px; background:none; }
.home-page .hero.layout-image_left .hero-line,
.home-page .hero.layout-image_right .hero-line { margin-left:0; }
.home-page .hero.layout-image_left .hero-text,
.home-page .hero.layout-image_right .hero-text { margin-left:0; }
.home-page .hero.layout-image_left .hero-actions,
.home-page .hero.layout-image_right .hero-actions { justify-content:flex-start; }
@media (max-width: 820px) {
    .home-page .hero.layout-image_left,
    .home-page .hero.layout-image_right { display:flex; flex-direction:column; padding-top:36px; text-align:center; }
    .home-page .hero.layout-image_right .hero-side-image,
    .home-page .hero.layout-image_right .hero-inner { order:initial; }
    .home-page .hero-side-image { width:100%; }
    .home-page .hero-side-image img { min-height:240px; max-height:420px; }
    .home-page .hero.layout-image_left .hero-line,
    .home-page .hero.layout-image_right .hero-line { margin-left:auto; }
    .home-page .hero.layout-image_left .hero-text,
    .home-page .hero.layout-image_right .hero-text { margin-left:auto; }
    .home-page .hero.layout-image_left .hero-actions,
    .home-page .hero.layout-image_right .hero-actions { justify-content:center; }
}
.home-page.public-page .page-hero-image {
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(0,170,255,.2);
    box-shadow: 0 20px 55px rgba(0,0,0,.26);
}
.home-page.public-page .page-hero-image .hero-image {
    width: 100%;
    height: clamp(220px, 38vw, 480px);
    max-height: none;
    margin: 0;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}
.dashboard-page .admin-image-preview {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 14px;
    margin: 10px 0 6px;
    padding: 10px;
    border: 1px solid rgba(0,170,255,.18);
    border-radius: 12px;
    background: rgba(0,170,255,.05);
}
.dashboard-page .admin-image-preview img {
    width: 110px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}
.dashboard-page .admin-image-preview span,
.dashboard-page .field-help { color: #8fa5b8; font-size: 12px; }
.dashboard-page .content-button-fields { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:6px; }
.dashboard-page .content-button-fields > div { display:flex; flex-direction:column; gap:10px; padding:14px; border:1px solid rgba(0,170,255,.16); border-radius:10px; background:rgba(0,170,255,.035); }
.dashboard-page .sort-actions { display:flex; gap:5px; }
.dashboard-page .sort-actions form { margin:0; }
.dashboard-page .sort-actions button { min-width:32px; padding:6px 9px; color:#bdeeff; background:rgba(0,170,255,.12); border:1px solid rgba(0,170,255,.2); }
@media (max-width:700px) { .dashboard-page .content-button-fields { grid-template-columns:1fr; } }

/* ===== Editor für Startseiten-Karten ===== */
.dashboard-page .cards-manager { max-width: 1180px; }
.dashboard-page .add-card-button { padding:10px 15px; border:0; border-radius:8px; color:#001019; background:#00d4ff; font-weight:800; cursor:pointer; }
.dashboard-page .cards-help { margin:0 0 18px; color:#8fa5b8; line-height:1.55; }
.dashboard-page .cards-editor-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.dashboard-page .card-editor { padding:18px; border:1px solid rgba(0,170,255,.18); border-radius:13px; background:rgba(0,8,15,.52); }
.dashboard-page .card-editor-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:15px; }
.dashboard-page .card-editor-head strong { color:#fff; font-size:16px; }
.dashboard-page .card-editor-head div { display:flex; gap:6px; }
.dashboard-page .card-editor-head button { min-width:34px; min-height:34px; padding:5px 9px; }
.dashboard-page .card-editor-head .card-move { color:#bdeeff; background:rgba(0,170,255,.12); }
.dashboard-page .card-editor-head .card-remove { color:#ffaaaa; background:rgba(200,40,40,.15); }
.dashboard-page .card-editor-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.dashboard-page .card-editor-fields label { display:flex; flex-direction:column; gap:7px; color:#91a7ba; font-size:12px; font-weight:700; }
.dashboard-page .card-editor-fields input,
.dashboard-page .card-editor-fields textarea,
.dashboard-page .card-editor-fields select { width:100%; padding:11px; border:1px solid #314252; border-radius:8px; color:#fff; background:#101820; }
.dashboard-page .card-editor-fields textarea { resize:vertical; }
.dashboard-page .card-editor-fields .card-wide { grid-column:1/-1; }
@media (max-width: 900px) { .dashboard-page .cards-editor-list { grid-template-columns:1fr; } }
@media (max-width: 580px) { .dashboard-page .card-editor-fields { grid-template-columns:1fr; } .dashboard-page .card-editor-fields .card-wide { grid-column:auto; } }

/* ===== Fest verankerter öffentlicher Header und Footer ===== */
.home-page .site-header,
.home-page .site-header.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
}
.home-page .header-spacer { width:100%; flex:0 0 auto; }
.home-page .footer,
.home-page .footer.is-fixed {
    display: grid !important;
    visibility: visible !important;
    opacity: 1;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    min-height: 76px;
    background: color-mix(in srgb, var(--tc1-footer-bg, #000408) 96%, transparent);
    border-top-color: var(--tc1-footer-accent, #00aaff);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.home-page .footer-center { flex-wrap:wrap; }
.home-page .footer-center a,
.home-page .footer-socials a { color:var(--tc1-footer-accent,#00aaff); }
.home-page .footer-right.footer-socials { display:flex !important; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; }
.home-page .footer-socials a { width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; border:1px solid color-mix(in srgb,var(--tc1-footer-accent,#00aaff) 45%,transparent); border-radius:9px; background:rgba(0,0,0,.25); }
.home-page .footer-socials a:hover { color:#fff; background:color-mix(in srgb,var(--tc1-footer-accent,#00aaff) 20%,transparent); }
.home-page .footer-socials svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.home-page .footer-spacer { height:76px; }

/* Footer-Einstellungen im Dashboard */
.dashboard-page .footer-settings-form .header-settings-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.dashboard-page .footer-icons-panel { grid-column:1/-1; }
.dashboard-page .footer-editor-list { display:flex; flex-direction:column; gap:10px; }
.dashboard-page .footer-activation { display:flex; align-items:center; gap:10px; margin:0 0 12px; padding:12px; border:1px solid rgba(0,212,255,.2); border-radius:9px; color:#d8f7ff; background:rgba(0,212,255,.06); font-weight:800; }
.dashboard-page .footer-activation input { width:18px; height:18px; accent-color:#00d4ff; }
.dashboard-page .footer-main-switch { border-color:rgba(41,210,96,.28); color:#caffdc; background:rgba(41,210,96,.07); font-size:14px; }

/* ===== Impressum und Datenschutz ===== */
.dashboard-page .legal-jump-nav { position:sticky; top:12px; z-index:20; display:flex; flex-wrap:wrap; gap:9px; margin:0 0 18px; padding:10px; border:1px solid rgba(0,170,255,.17); border-radius:11px; background:rgba(5,15,24,.94); backdrop-filter:blur(12px); }
.dashboard-page .legal-jump-nav a { padding:9px 14px; border-radius:8px; color:#c9efff; background:rgba(0,170,255,.1); text-decoration:none; font-weight:800; }
.dashboard-page .legal-jump-nav a:hover { color:#fff; background:rgba(0,170,255,.22); }
.dashboard-page .legal-editor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.dashboard-page .legal-editor { scroll-margin-top:90px; }
.dashboard-page .legal-editor textarea { min-height:320px; line-height:1.55; }
@media(max-width:1180px){.dashboard-page .legal-editor-grid{grid-template-columns:1fr;}.dashboard-page .legal-editor textarea{min-height:240px;}}
.dashboard-page .footer-editor-row { display:grid; grid-template-columns:minmax(140px,.7fr) minmax(220px,1.3fr) auto; gap:9px; }
.dashboard-page .footer-icon-row { grid-template-columns:150px minmax(130px,.7fr) minmax(220px,1.3fr) auto; }
.dashboard-page .footer-editor-row input,
.dashboard-page .footer-editor-row select { min-width:0; padding:10px; border:1px solid #314252; border-radius:8px; color:#fff; background:#101820; }
.dashboard-page .footer-row-controls { display:flex; gap:4px; }
.dashboard-page .footer-editor-row button { min-width:32px; padding:7px; color:#bdeeff; background:rgba(0,170,255,.12); }
.dashboard-page .footer-editor-row button[data-remove] { color:#ffaaaa; background:rgba(200,40,40,.15); }
@media (max-width:820px) {
    .home-page .header-spacer { height:132px !important; }
    .home-page .footer { grid-template-columns:1fr; gap:5px; min-height:116px; padding-top:9px; padding-bottom:9px; }
    .home-page .footer-socials { justify-content:center; }
    .home-page .footer-spacer { height:116px; }
    .dashboard-page .footer-settings-form .header-settings-grid { grid-template-columns:1fr; }
    .dashboard-page .footer-icons-panel { grid-column:auto; }
    .dashboard-page .footer-icon-row { grid-template-columns:1fr 1fr auto; }
    .dashboard-page .footer-icon-row input[name="icon_url[]"] { grid-column:1/3; }
}
@media (max-width:560px) {
    .home-page .footer-left { font-size:11px; }
    .home-page .footer-center { gap:10px; font-size:12px; }
    .home-page .footer-socials a { width:30px; height:30px; }
    .home-page .footer { min-height:148px; }
    .home-page .footer-spacer { height:148px; }
    .dashboard-page .footer-editor-row,
    .dashboard-page .footer-icon-row { grid-template-columns:1fr auto; }
    .dashboard-page .footer-editor-row input,
    .dashboard-page .footer-icon-row input,
    .dashboard-page .footer-icon-row select,
    .dashboard-page .footer-icon-row input[name="icon_url[]"] { grid-column:1; }
    .dashboard-page .footer-row-controls { grid-column:2; grid-row:1; }
}


/* KI-/Video-Kennzeichnung im Medienbereich */
.media-preview{position:relative;display:block;overflow:hidden}
.media-card video{width:100%;height:150px;object-fit:contain;border-radius:7px;background:#09131c;display:block}
.media-video-preview .video-play-mark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:46px;height:46px;border-radius:50%;background:rgba(0,0,0,.72);display:grid;place-items:center;color:#fff;font-size:20px;pointer-events:none}
.ai-media-badge{position:absolute;top:9px;left:9px;background:#fff;color:#111;border-radius:999px;padding:5px 9px;font-weight:800;font-size:12px;box-shadow:0 3px 14px rgba(0,0,0,.38)}
.ai-info-panel{border-left:4px solid rgba(255,255,255,.7)}
.ai-info-panel p{margin:7px 0;line-height:1.55}
.ai-info-panel small{display:block;opacity:.78;line-height:1.5}
.ai-upload-options{display:grid;gap:8px;padding:12px;border:1px solid rgba(255,255,255,.10);border-radius:10px;background:rgba(255,255,255,.025)}
.media-type-line{font-size:12px;color:#aebdca;margin:8px 0}
.ai-mark-form{display:grid;gap:8px;margin:10px 0;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:rgba(255,255,255,.02)}
.ai-mark-form input[type=text]{width:100%}

.media-view-page{margin:0;min-height:100vh;background:#07111a;color:#fff;font-family:Arial,sans-serif;padding:30px}
.public-media-viewer{max-width:1100px;margin:0 auto}
.public-video-wrap{position:relative;background:#000;border-radius:16px;overflow:hidden;box-shadow:0 16px 50px rgba(0,0,0,.45)}
.public-video-wrap video{display:block;width:100%;max-height:78vh;background:#000}
.public-ai-label{position:absolute;left:16px;top:16px;z-index:4;background:rgba(0,0,0,.88);color:#fff;border:2px solid #fff;border-radius:999px;padding:9px 14px;font-size:14px;font-weight:800;line-height:1.2;max-width:calc(100% - 32px)}
.public-media-viewer h1{font-size:clamp(22px,4vw,38px);margin:22px 0 8px;word-break:break-word}
.public-ai-explanation{line-height:1.6;color:#cad8e4;margin-top:8px}
@media(max-width:640px){.media-view-page{padding:12px}.public-ai-label{left:8px;top:8px;max-width:calc(100% - 16px);font-size:12px;padding:7px 10px}}
