﻿/* =========================
   MAIN CONTENT
========================= */

.page-layout{
    display:flex;
    min-height:calc(100vh - 58px);
}


.main-content{

    max-width:900px;

    /* ⭐ Platz für Login Panel rechts */
    padding:35px 40px;
    padding-right:460px;

    /* ⭐ schöner ruhiger Hintergrund */
    background:rgba(255,255,255,0.90);
    backdrop-filter:blur(10px);

    border-radius:14px;

    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

/* =========================
   FLOATING SIDE PANEL
========================= */

.side-panel{
    width:360px;
    position:fixed;
    right:30px;
    top:120px;

    padding:22px;

    background:rgba(255,255,255,0.85);
    backdrop-filter:blur(14px);

    border-radius:16px;
    box-shadow:0 10px 35px rgba(0,0,0,.18);

    transition:.4s ease;
}

/* ZENTRIERT */

.side-panel.active{
    right:50%;
    top:50%;
    transform:translate(50%,-50%);
}

/* TITLES */

h3{
    margin-top:0;
    font-size:16px;
}

/* INPUTS */

.field{
  position:relative;
  margin-top:14px;
}

.field input{
  width:100%;
  padding:14px 10px 10px; /* oben mehr Platz fürs Label */
  border-radius:8px;
  border:1px solid #ddd;
  background:#ffffff88;
  font-size:13px;
}

.field label{
  position:absolute;
  left:10px;
  top:11px;
  font-size:12px;
  color:#555;
  transition:.18s ease;
  pointer-events:none;
  background:transparent;
  padding:0 4px;
}

/* Label hochschieben bei Fokus ODER wenn Input gefüllt ist */
.field input:focus + label,
.field input:not(:placeholder-shown) + label{
  top:-8px;
  font-size:11px;
  background:rgba(255,255,255,0.92);
}

.input-danger{
  border-color:#c0392b !important;
  box-shadow:0 0 0 3px rgba(192,57,43,0.15);
}

.login-options{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:10px;
  font-size:12px;
  color:#444;
}

.pw-toggle{
  display:flex;
  gap:8px;
  align-items:center;
}

.forgot-link{
  text-decoration:none;
  color:#4582B4;
}
.forgot-link:hover{ text-decoration:underline; }


/* BUTTON */

.btn-main{
    margin-top:18px;
    padding:10px;
    width:100%;
    border:none;
    border-radius:8px;
    background:#2C4754;
    color:white;
    font-size:13px;
}

/* NEWS */

.news-item{
    display:flex;
    align-items:center;
    margin-top:12px;
}

.news-icon{
    width:28px;
    height:28px;
    border-radius:6px;
    margin-right:8px;
}

.training{background:#A8DADC;}
.document{background:#FFD6A5;}
.info{background:#4582B4;}
.maintenance{background:#c0392b;}

/* =========================
   LOGIN MODES
========================= */

.login-expanded{
    display:none;
}

.side-panel.show-login .login-expanded{
    display:block;
}

.side-panel.show-login .login-compact{
    display:none;
}
/* ====================================
   TABLET + HANDY LAYOUT
==================================== */

@media(max-width:1100px){

    .page-layout{
        display:flex;
        flex-direction:column;
    }

    /* 👉 Login Panel soll oben erscheinen */
    .side-panel{
        position:relative;
        right:auto;
        top:auto;
        transform:none;

        width:100%;
        max-width:600px;
        margin:0 auto 25px auto;

        order:-1; /* ⭐ DAS IST DER WICHTIGE FIX */
    }

    .side-panel.active{
        transform:none;
        right:auto;
        top:auto;
    }

    .main-content{
        padding:25px;
        padding-right:25px;
    }
}
/* =========================
   TEXT + IMAGE SIDE BY SIDE
========================= */

.text-with-image{
    display:flex;
    align-items:flex-start;
    gap:28px;
    margin:25px 0;
}

.text-block{
    flex:1;
}

.image-block{
    position:relative;
    top: 35px;
    width:270px;
    flex-shrink:0;
    text-align:center
}

.image-block img{
    width:200px;
    border-radius:10px;
    box-shadow:0 6px 18px rgba(0,0,0,0.12);
}

@media(max-width:900px){

    .text-with-image{
        flex-direction:column;
    }

    .image-block{
        width:100%;
        max-width:420px;
    }
}

/* =========================
   CONTACT FORM
========================= */

.contact-wrapper{
    display:flex;
    justify-content:center;
    padding:60px 20px;
}

.contact-card{

    width:100%;
    max-width:520px;

    background:rgba(255,255,255,0.90);
    backdrop-filter:blur(10px);

    border-radius:16px;
    padding:35px;

    box-shadow:0 12px 35px rgba(0,0,0,0.12);
}

.contact-card h2{
    margin-top:0;
}

.contact-info{
    margin-bottom:20px;
    color:#555;
}

/* INPUTS */

.form-field{
    margin-bottom:14px;
}

.form-field input,
.form-field textarea{
    width:100%;
    padding:11px;
    border-radius:8px;
    border:1px solid #ddd;
    background:#ffffffcc;
    font-size:14px;
}

.form-field textarea{
    min-height:100px;
    resize:vertical;
}

/* BUTTON passt zu deinem Design */

.btn-main{
    width:100%;
    margin-top:10px;
}

/* =========================
   ENTERPRISE LEGAL PAGE
========================= */

.legal-wrapper{
    display:flex;
    justify-content:center;
    padding:70px 20px;
}

.legal-card{

    width:100%;
    max-width:900px;

    background:rgba(255,255,255,0.94);
    backdrop-filter:blur(10px);

    border-radius:16px;
    padding:40px 45px;

    box-shadow:0 12px 35px rgba(0,0,0,0.10);
}

.legal-card h2{
    margin-top:0;
    margin-bottom:25px;
}

/* GRID LAYOUT */

.legal-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.legal-section h4,
.legal-section-full h4{
    margin-bottom:8px;
    font-size:15px;
}

.legal-section p,
.legal-section-full p{
    color:#444;
    line-height:1.6;
}

/* DIVIDER */

.legal-divider{
    height:1px;
    background:#e6e6e6;
    margin:25px 0;
}

/* =========================
   TABLET / HANDY
========================= */

@media(max-width:900px){

    .legal-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .legal-card{
        padding:28px;
    }

}

/* =========================
   LONG LEGAL PAGE
========================= */

.legal-long{
    max-width:950px;
}

.legal-section-full h4{
    margin-top:22px;
    font-size:15px;
}

.legal-list{
    margin-left:18px;
    color:#444;
    line-height:1.6;
}

/* ===================================
   PREMIUM PRIVACY UI
=================================== */

.privacy-wrapper{
    display:flex;
    justify-content:center;
    gap:40px;
    padding:60px 20px;
}

/* =========================
   STICKY NAVIGATION
========================= */

.privacy-nav{
    width:220px;
}

.privacy-nav-inner{
    position:sticky;
    top:90px;

    background:rgba(255,255,255,0.85);
    backdrop-filter:blur(10px);

    padding:18px;
    border-radius:12px;

    box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

.privacy-nav h4{
    margin-top:0;
    font-size:14px;
}

/* LINKS */

.privacy-nav a{
    display:block;
    text-decoration:none;
    color:#444;
    font-size:13px;
    margin-top:8px;
    padding-left:10px;
    border-left:2px solid transparent;
    transition:.2s;
}

.privacy-nav a:hover{
    border-left:2px solid #4582B4;
    color:#000;
}

/* =========================
   CONTENT ACCENT LINE
========================= */

.privacy-content{
    position:relative;
}

/* ⭐ Enterprise Accent Line links */

.privacy-content::before{
    content:'';
    position:absolute;
    left:-20px;
    top:0;
    bottom:0;
    width:3px;
    background:#4582B4;
    border-radius:3px;
}

/* SPACING */

.privacy-content section{
    margin-bottom:28px;
}

/* =========================
   TABLET / MOBILE
========================= */

@media(max-width:1100px){

    .privacy-wrapper{
        flex-direction:column;
        align-items:center;
    }

    .privacy-nav{
        width:100%;
        max-width:600px;
    }

    .privacy-content::before{
        display:none;
    }

}

/* ===================================
   ENTERPRISE PACKAGE PAGE
=================================== */

.package-wrapper{
    display:flex;
    justify-content:center;
    padding:70px 20px;
}

.package-card{

    width:100%;
    max-width:900px;

    background:rgba(255,255,255,0.94);
    backdrop-filter:blur(10px);

    border-radius:16px;
    padding:40px;

    box-shadow:0 12px 35px rgba(0,0,0,0.10);
}

/* GRID */

.package-grid{
    display:grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap:12px;
    margin-top:25px;
    align-items:center;
}

/* HEADER */

.package-column.header{
    font-weight:600;
    padding-bottom:8px;
    border-bottom:1px solid #e6e6e6;
}

/* PRODUKT TEXT */

.package-product{
    padding:10px 0;
    border-bottom:1px solid #f0f0f0;
    color:#444;
}

/* CHECKBOX */

.package-check{
    display:flex;
    justify-content:center;
}

.package-check input{
    width:18px;
    height:18px;
    accent-color:#4582B4;
}

.span-2 {
    grid-column: span 2;   /* nimmt 2 Spalten ein */
    text-align: center;
}

@media(max-width:900px){

    .package-grid{
        grid-template-columns:1fr;
    }

    .package-check{
        justify-content:flex-start;
    }
}

/* ===================================
   ENTERPRISE NEWS PAGE
=================================== */

.news-wrapper{
    display:flex;
    justify-content:center;
    gap:40px;
    padding:60px 20px;
}

/* =========================
   SCHWEBENDES MENÜ
========================= */

.news-nav{
    width:240px;
}

.news-nav-inner{
    position:sticky;
    top:90px;

    background:rgba(255,255,255,0.9);
    backdrop-filter:blur(10px);

    padding:18px;
    border-radius:12px;

    box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

.news-nav a{
    display:block;
    text-decoration:none;
    color:#444;
    font-size:13px;
    margin-top:8px;
    padding-left:10px;
    border-left:2px solid transparent;
    transition:.2s;
}

.news-nav a:hover{
    border-left:2px solid #4582B4;
    color:#000;
}

/* =========================
   NEWS CONTENT
========================= */

.news-content{
    max-width:900px;
}

.news-content h4{
    margin-top:30px;
}

/* NEWS ENTRY */

.news-entry{
    background:#fff;
    border-radius:10px;
    padding:14px 16px;
    margin-top:12px;

    box-shadow:0 4px 12px rgba(0,0,0,0.06);
}

.news-entry span{
    display:block;
    font-size:12px;
    color:#888;
    margin-top:4px;
}

/* NEU MARKIERUNG */

.news-entry.new{
    border-left:4px solid #4582B4;
}

/* ÄLTERE EINTRÄGE */

.news-entry.old{
    opacity:0.85;
}

@media(max-width:1100px){

    .news-wrapper{
        flex-direction:column;
        align-items:center;
    }

    .news-nav{
        width:100%;
        max-width:600px;
    }

}
.login-error-box{
  background:#fdecea;
  color:#c0392b;
  padding:12px 14px;
  border-radius:8px;
  margin-bottom:12px;
  font-size:13px;
  border-left:4px solid #c0392b;
}


/* Overlay blockt alles */
#loadingOverlay{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;

  background:rgba(255,255,255,0.55);
  backdrop-filter:blur(3px);

  align-items:center;
  justify-content:center;

  /* Ganz wichtig: Klicks abfangen */
  pointer-events:all;
}

/* Loader */
.loader{
  width:38px; height:38px;
  border-radius:50%;
  border:4px solid #4582B4;
  border-top-color:transparent;
  animation:spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg);} }

/* Wenn loading aktiv: Overlay zeigen + Inhalt leicht bluren */
body.loading #loadingOverlay{ display:flex; }
body.loading .page,
body.loading .topbar{ filter:blur(2px); }


/*AB HIER ------------------------------------------------------------------------------------------------------------*/

/* ===================================
   COCKPIT DASHBOARD
=================================== */

.cockpit-wrapper{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:24px;
    padding:40px;
}

.cockpit-tile{

    background:rgba(255,255,255,0.92);
    backdrop-filter:blur(10px);

    border-radius:16px;
    padding:22px;

    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.cockpit-tile.large{
    grid-column: span 2;
}

.cockpit-tile h4{
    margin-top:0;
}

/* MINI NEWS */

.mini-news{
    padding-left:18px;
    color:#444;
}

/* NOTIZEN */

.cockpit-note{
    width:100%;
    min-height:110px;
    border-radius:10px;
    border:1px solid #ddd;
    padding:10px;
}

/* STATUS */

.status-line{
    padding:8px;
    margin-top:6px;
    border-radius:8px;
    font-size:13px;
}

.status-line.ok{
    background:#e8f5ee;
}

.status-line.warn{
    background:#fff4e5;
}

/* RISIKO */

.risk-box{
    height:100px;
    background:#f4f7fb;
    border-radius:10px;
}

/* =========================
   ROADMAP TIMELINE
========================= */

.roadmap{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.node{
    display:flex;
    flex-direction:column;
    align-items:center;
    font-size:12px;
    color:#444;
}

.circle{
    width:18px;
    height:18px;
    border-radius:50%;
    background:#ddd;
}

.node.done .circle{
    background:#A8DADC; /* Pastell Grün */
}

.node.current .circle{
    background:#4582B4;
}

.node.locked .circle{
    background:#ccc;
}

/* Schloss Symbol */
.circle.lock::after{
    content:"🔒";
    font-size:10px;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Verbindungslinie */

.line{
    width:60px;
    height:2px;
    background:#ccc;
}

/* ===================================
   PREMIUM COCKPIT GRID
=================================== */

.cockpit-grid{
    display:grid;
    grid-template-columns: repeat(2,1fr);
    gap:26px;
    padding:40px;
}

/* TILE DESIGN */

.tile{
    background:rgba(255,255,255,0.92);
    backdrop-filter:blur(12px);
    border-radius:18px;
    padding:24px;
    box-shadow:0 12px 35px rgba(0,0,0,0.08);
    transition:.25s ease;
}

.tile:hover{
    transform:translateY(-4px);
}

.tile-large{
    grid-column:span 2;
}

.tile-header h3{
    margin-top:0;
}

/* =========================
   NEWS
========================= */

.news-list{
    padding-left:18px;
    line-height:1.7;
}

.badge{
    width:8px;
    height:8px;
    display:inline-block;
    border-radius:50%;
    margin-right:8px;
}

.badge.new{ background:#A8DADC;}
.badge.tip{ background:#BDE0FE;}
.badge.doc{ background:#FFD6A5;}
.badge.soon{ background:#EDEDED;}

/* =========================
   NOTES
========================= */

.note-area{
    width:100%;
    min-height:120px;
    border-radius:10px;
    border:1px solid #ddd;
    padding:10px;
}

/* =========================
   STATUS
========================= */

.status{
    padding:8px;
    border-radius:8px;
    margin-top:8px;
}

.status.ok{ background:#e8f5ee;}
.status.warn{ background:#fff4e5;}

/* =========================
   RISIKO MATRIX
========================= */

.risk-grid{
    display:flex;
    gap:10px;
}

.risk{
    width:60px;
    height:60px;
    border-radius:8px;
}

.risk.high{ background:#FFD6D6;}
.risk.medium{ background:#FFF4C2;}
.risk.low{ background:#DFF5E1;}

/* =========================
   TIMELINE (MEILENSTEINE)
========================= */

.timeline{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.step{
    display:flex;
    flex-direction:column;
    align-items:center;
    font-size:12px;
    color:#444;
}

.dot{
    width:18px;
    height:18px;
    border-radius:50%;
    background:#ccc;
}

.step.done .dot{
    background:#A8DADC;
}

.step.current .dot{
    background:#4582B4;
}

.step.locked .dot{
    background:#ddd;
}

.dot.lock::after{
    content:"🔒";
    font-size:10px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.connector{
    width:60px;
    height:2px;
    background:#ccc;
}
/* ===================================
   ULTRA ENTERPRISE COCKPIT
=================================== */

.ultra-cockpit{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:28px;
    padding:40px;
}

/* TILE */

.u-tile{
    background:rgba(255,255,255,0.94);
    backdrop-filter:blur(14px);
    border-radius:20px;
    padding:24px;
    box-shadow:0 18px 45px rgba(0,0,0,0.08);
    transition:.25s ease;
}

.u-tile:hover{
    transform:translateY(-6px);
}

.u-wide{
    grid-column:span 2;
}

.tile-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.status-badge{
    padding:4px 8px;
    border-radius:6px;
    font-size:11px;
}

.status-badge.ok{ background:#e8f5ee; }

/* =========================
   SCORE RING
========================= */

.score-ring{
    width:120px;
    height:120px;
    border-radius:50%;
    background:conic-gradient(#4582B4 78%, #eee 0);
    display:flex;
    align-items:center;
    justify-content:center;
    margin:auto;
}

.score-ring span{
    font-weight:600;
    font-size:18px;
}

/* NEWS */

.news-mini{
    padding-left:18px;
}

.dot-new{background:#A8DADC;}
.dot-tip{background:#BDE0FE;}
.dot-doc{background:#FFD6A5;}

.dot-new,.dot-tip,.dot-doc{
    width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px;
}

/* PROGRESS */

.mini-progress{
    background:#eee;
    border-radius:10px;
    height:10px;
    margin-top:10px;
}
.mini-progress div{
    height:100%;
    background:#4582B4;
    border-radius:10px;
}

/* RISIKO */

.risk-preview{
    height:100px;
    border-radius:12px;
    background:linear-gradient(135deg,#FFD6D6,#FFF4C2,#DFF5E1);
}

/* ===================================
   ⭐ ULTRA MILESTONE TIMELINE
=================================== */

.milestone-flow{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}

/* NODE CONTAINER */

.milestone{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    font-size:12px;
    color:#444;
}

/* NODE */

.node{
    width:22px;
    height:22px;
    border-radius:50%;
    background:#ddd;
    position:relative;
    transition:.3s ease;
}

/* DONE */

.milestone.done .node{
    background:#A8DADC;
    box-shadow:0 0 0 6px rgba(168,218,220,0.25);
}

/* ACTIVE */

.milestone.active .node{
    background:#4582B4;
    box-shadow:0 0 0 6px rgba(69,130,180,0.2);
}

/* LOCKED */

.milestone.locked .node{
    background:#ccc;
}

.node.lock::after{
    content:"🔒";
    font-size:11px;
    position:absolute;
    top:2px;
    left:4px;
}

/* FLOW LINE */

.flow-line{
    width:70px;
    height:2px;
    background:#d9d9d9;
}

.flow-line.done{
    background:#A8DADC;
}

/* ===================================
   ⭐ ANIMATED COMPLIANCE TIMELINE PRO
=================================== */

.timeline-pro{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
    position:relative;
}

/* MILESTONE */

.milestone-pro{
    display:flex;
    flex-direction:column;
    align-items:center;
    font-size:12px;
    color:#444;
    opacity:0;
    transform:translateY(10px);
    transition:.4s ease;
}

.milestone-pro.show{
    opacity:1;
    transform:translateY(0);
}

/* NODE */

.node{
    width:26px;
    height:26px;
    border-radius:50%;
    background:#ddd;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
}

/* DONE */

.milestone-pro.done .node{
    background:#A8DADC;
    box-shadow:0 0 0 6px rgba(168,218,220,0.25);
}

.milestone-pro.done .node::after{
    content:"✓";
    font-weight:bold;
}

/* ACTIVE */

.milestone-pro.active .node{
    background:#4582B4;
    color:#fff;
    box-shadow:0 0 0 6px rgba(69,130,180,0.2);
}

/* LOCKED */

.milestone-pro.locked .node{
    background:#ccc;
}

.milestone-pro.locked .node::after{
    content:"🔒";
    font-size:12px;
}

/* LINE */

.line-pro{
    width:80px;
    height:3px;
    background:#ddd;
    border-radius:3px;
    transform:scaleX(0);
    transform-origin:left;
    transition:.6s ease;
}

.line-pro.show{
    transform:scaleX(1);
}

.line-pro.done{
    background:#A8DADC;
}

/* TOOLTIP */

.milestone-pro::after{
    content:attr(data-info);
    position:absolute;
    bottom:50px;
    background:#fff;
    padding:6px 10px;
    border-radius:6px;
    box-shadow:0 6px 18px rgba(0,0,0,0.1);
    font-size:11px;
    white-space:nowrap;
    opacity:0;
    pointer-events:none;
    transition:.2s;
}

.milestone-pro:hover::after{
    opacity:1;
}

/* MOBILE */

@media(max-width:900px){

    .timeline-pro{
        flex-direction:column;
        align-items:flex-start;
    }

    .line-pro{
        width:3px;
        height:40px;
    }
}


/* ===================================
   DPO COMMAND CENTER
=================================== */

.dpo-shell{
  padding:34px 40px;
}

.dpo-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:18px;
}

.dpo-title h2{
  margin:0;
  font-size:20px;
  font-weight:650;
}
.dpo-sub{
  color:#5a5a5a;
  margin-top:6px;
  font-size:13px;
  line-height:1.4;
}

.dpo-controls{
  display:flex;
  align-items:center;
  gap:10px;
}

.dpo-select{
  border:1px solid #ddd;
  border-radius:10px;
  padding:9px 10px;
  background:rgba(255,255,255,0.85);
  font-size:13px;
}

.btn-compact{
  padding:9px 12px;
  font-size:13px;
}

/* KPI ROW */

.dpo-kpis{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
  margin-bottom:22px;
}

.kpi-card{
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(14px);
  border-radius:16px;
  padding:16px;
  box-shadow:0 12px 30px rgba(0,0,0,0.07);
}

.kpi-label{
  font-size:12px;
  color:#6a6a6a;
  margin-bottom:10px;
}

.kpi-value-lg{
  font-size:18px;
  font-weight:650;
  color:#222;
}

.kpi-hint{
  font-size:12px;
  color:#777;
  margin-top:6px;
}

.kpi-split{
  display:flex;
  gap:14px;
  align-items:center;
}

.kpi-meta .kpi-value{
  font-size:16px;
  font-weight:650;
  color:#222;
}

/* score ring reused */

.score-ring{
  width:84px;
  height:84px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.score-ring span{
  font-weight:650;
  font-size:14px;
  background:rgba(255,255,255,0.9);
  padding:6px 8px;
  border-radius:999px;
}

/* GRID */

.dpo-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.cc-tile{
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(14px);
  border-radius:18px;
  padding:18px;
  box-shadow:0 14px 36px rgba(0,0,0,0.08);
  transition:.22s ease;
}

.cc-tile:hover{
  transform:translateY(-4px);
}

.cc-tile.span-2{ grid-column:span 2; }


.cc-tile.span-3{ grid-column:span 3; }

.tile-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.tile-head h3{
  margin:0;
  font-size:14px;
  font-weight:650;
}

.tile-tools{
  display:flex;
  gap:8px;
  align-items:center;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  padding:5px 8px;
  border-radius:999px;
  background:#f2f6fb;
  color:#444;
}

.chip-ok{ background:#e8f5ee; }
.chip-low{ background:#DFF5E1; }
.chip-med{ background:#FFF4C2; }
.chip-high{ background:#FFD6D6; }

/* Secondary buttons */
.btn-secondary{
  border:none;
  background:#f2f6fb;
  border-radius:10px;
  cursor:pointer;
  color:#2a2a2a;
}
.btn-secondary:hover{ filter:brightness(0.98); }

/* Alerts */
.alert-list{ display:flex; flex-direction:column; gap:10px; }

.alert-item{
  border-radius:12px;
  padding:12px;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  background:#fff;
  border-left:4px solid #ddd;
}

.alert-title{ font-size:13px; font-weight:600; }
.alert-meta{ font-size:12px; color:#777; margin-top:4px; }

.a-info{ border-left-color:#BDE0FE; }
.a-warn{ border-left-color:#FFD6A5; }
.a-neutral{ border-left-color:#EDEDED; }

/* Doc chart legend */
.mini-legend{
  display:flex;
  gap:14px;
  margin-top:10px;
  color:#666;
  font-size:12px;
}
.mini-legend .lg{
  width:10px; height:10px; border-radius:3px; display:inline-block; margin-right:6px;
}
.lg-done{ background:#A8DADC; }
.lg-open{ background:#FFD6A5; }
.lg-work{ background:#BDE0FE; }

/* Notes */
.note-area{
  width:100%;
  min-height:130px;
  border-radius:12px;
  border:1px solid #ddd;
  padding:12px;
  font-size:13px;
  background:rgba(255,255,255,0.85);
}

.note-actions, .roadmap-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}

/* Risk Matrix */
.risk-matrix{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:6px;
}
.rm-row{ display:flex; gap:8px; }
.rm-cell{
  flex:1;
  height:38px;
  border-radius:10px;
  box-shadow:0 6px 16px rgba(0,0,0,0.06);
}
.rm-cell.low{ background:#DFF5E1; }
.rm-cell.med{ background:#FFF4C2; }
.rm-cell.high{ background:#FFD6D6; }

.risk-foot{
  display:flex;
  gap:8px;
  margin-top:12px;
}

/* =========================
   Responsive
========================= */
@media(max-width:1100px){
  .dpo-kpis{ grid-template-columns:repeat(2,1fr); }
  .dpo-grid{ grid-template-columns:1fr; }
  .cc-tile.span-2{ grid-column:span 1; }
  .dpo-shell{ padding:24px; }
}
/* ===================================
   COMPLIANCE ROADMAP - FIXED VERSION
=================================== */

.compliance-roadmap{
    display:flex;
    align-items:center;
    gap:0;                /* ⭐ wichtig */
    overflow-x:auto;
    padding:14px 0;
}

/* STEP */

.roadmap-step{
    display:flex;
    flex-direction:column;
    align-items:center;
    min-width:140px;
    text-align:center;
    position:relative;
}

/* NODE */

.roadmap-step .node{
    width:26px;
    height:26px;
    border-radius:50%;
    background:#ddd;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* DONE */

.roadmap-step.done .node{
    background:#A8DADC;
    box-shadow:0 0 0 6px rgba(168,218,220,0.25);
}

.roadmap-step.done .node::after{
    content:"✓";
    font-weight:bold;
}

/* ACTIVE */

.roadmap-step.active .node{
    background:#4582B4;
    color:#fff;
}

/* LOCKED */

.roadmap-step.locked .node{
    background:#ccc;
}

.roadmap-step.locked .node::after{
    content:"🔒";
}

/* ⭐⭐ DIE LINIE (JETZT IMMER SICHTBAR) */

.roadmap-line{
    height:3px;
    width:100px;
    background:#d9d9d9;
    display:block;          /* ⭐ wichtig */
    margin:0 6px;
    flex-shrink:0;
}

/* DONE LINE */

.roadmap-line.done{
    background:#A8DADC;
}
.compliance-roadmap{
    align-items:flex-start;
}

.roadmap-line{
    margin-top:12px;  /* Höhe der Node Mitte */
}
/* ===================================
   ENTERPRISE LOCK NODES
=================================== */

/* Locked Node Grundstil */
.roadmap-step.locked .node{
    background:#d4d4d4;
    position:relative;
    box-shadow:none;
    border:1px solid rgba(0,0,0,0.08);
}

/* Schloss – sauber als CSS-Icon gezeichnet */
.roadmap-step.locked .node::before{
    content:"";
    position:absolute;
    width:10px;
    height:8px;
    border:2px solid #6b6b6b;
    border-bottom:none;
    border-radius:7px 7px 0 0;
    top:5px;
    left:50%;
    transform:translateX(-50%);
}

.roadmap-step.locked .node::after{
    content:"";
    position:absolute;
    width:14px;
    height:10px;
    background:#6b6b6b;
    border-radius:3px;
    bottom:5px;
    left:50%;
    transform:translateX(-50%);
}

/* Locked Titel etwas gedimmt */
.roadmap-step.locked .title{
    color:#7a7a7a;
}

/* Linie nach einem locked Schritt (und generell locked Bereich) grau lassen */
.roadmap-step.locked + .roadmap-line{
    background:#cfcfcf !important;
    opacity:0.9;
}

/* Optional: Wenn du eine Linie explizit als locked markieren willst */
.roadmap-line.locked{
    background:#cfcfcf !important;
    opacity:0.9;
}

/* Hover: Enterprise Glow + Badge */
.roadmap-step.locked:hover .node{
    box-shadow:0 0 0 6px rgba(120,120,120,0.12);
}

/* Badge über dem Node (aus data-lock) */
.roadmap-step.locked::after{
    content:attr(data-lock);
    position:absolute;
    bottom:60px;
    left:50%;
    transform:translateX(-50%);
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(8px);
    border:1px solid rgba(0,0,0,0.06);
    box-shadow:0 8px 22px rgba(0,0,0,0.10);
    padding:7px 10px;
    border-radius:10px;
    font-size:11px;
    color:#444;
    opacity:0;
    pointer-events:none;
    white-space:nowrap;
    transition:.18s ease;
}

.roadmap-step.locked:hover::after{
    opacity:1;
}

/* ===================================
   ROADMAP SUB NODES
=================================== */

.roadmap-step{
    position:relative;
}

/* Container unter dem Node */

.subnodes{
    position:absolute;
    top:60px;
    left:50%;
    transform:translateX(-50%);
    display:none;
    flex-direction:column;
    gap:6px;
    min-width:160px;
}

/* Wenn offen */

.roadmap-step.open .subnodes{
    display:flex;
}

/* Subnode Design */

.subnode{
    background:#fff;
    border-radius:10px;
    padding:6px 10px;
    font-size:11px;
    box-shadow:0 6px 14px rgba(0,0,0,0.08);
    text-align:center;
}

/* STATUS */

.subnode.done{ background:#E8F6F0; }
.subnode.active{ background:#EDF4FB; }
.subnode.locked{ background:#f3f3f3; }

/* Kleine Verbindungslinie */

.roadmap-step.has-children::after{
    content:"";
    position:absolute;
    top:32px;
    left:50%;
    width:2px;
    height:28px;
    background:#ddd;
}


/* ===================================
   COMPLIANCE TREE
=================================== */

.compliance-tree{
    display:flex;
    flex-direction:column;
    gap:18px;
}

/* NODE */

.tree-node{
    position:relative;
    margin-left:20px;
    cursor:pointer;
}

/* Verbindungslinie */

.tree-node::before{
    content:"";
    position:absolute;
    left:-12px;
    top:0;
    width:2px;
    height:100%;
    background:#ddd;
}

/* DOT */

.node-dot{
    width:24px;
    height:24px;
    border-radius:50%;
    background:#ccc;
    display:inline-block;
    margin-right:8px;
    position:relative;
}

.node-dot.small{ width:18px; height:18px; }
.node-dot.tiny{ width:14px; height:14px; }

/* STATUS */

.tree-node.done .node-dot{
    background:#A8DADC;
}

.tree-node.active .node-dot{
    background:#4582B4;
}

.tree-node.locked .node-dot{
    background:#ddd;
}

/* TITLE */

.node-title{
    display:inline-block;
    font-size:13px;
}

/* CHILDREN */

.children{
    margin-left:22px;
    margin-top:10px;
    display:none;
}

.tree-node.open > .children{
    display:block;
}

/* ⭐ TASK BADGE */

.tree-node[data-tasks]:not([data-tasks="0"]) .node-dot::after{
    content:attr(data-tasks);
    position:absolute;
    top:-6px;
    right:-6px;
    background:#FFD6A5;
    font-size:10px;
    padding:2px 4px;
    border-radius:6px;
}

/* ===== Horizontal Roadmap ===== */
.roadmap-h{
  display:flex;
  align-items:flex-start;
  gap:0;
  overflow-x:auto;
  padding:10px 4px;
}

.rh-step{
  position:relative;
  min-width:170px;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:6px 10px;
}

.rh-line{
  width:90px;
  height:3px;
  background:#d9d9d9;
  border-radius:4px;
  margin-top:20px;   /* auf Node-Mitte ausrichten */
  flex:0 0 auto;
}
.rh-line.done{ background:#A8DADC; }

/* Node + Title getrennt klickbar */
.rh-node{
  width:26px; height:26px;
  border-radius:50%;
  border:none;
  background:#d7d7d7;
  cursor:pointer;
  position:relative;
}
.rh-title{
  border:none;
  background:transparent;
  margin-top:8px;
  font-size:12px;
  color:#333;
  cursor:pointer;
}

/* Status */
.rh-step.done .rh-node{ background:#A8DADC; }
.rh-step.done .rh-node::after{ content:"✓"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:12px; color:#1d1d1d; }

.rh-step.active .rh-node{ background:#4582B4; box-shadow:0 0 0 6px rgba(69,130,180,0.18); }

.rh-step.locked .rh-node{ background:#cfcfcf; border:1px solid rgba(0,0,0,0.08); }
.rh-step.locked .rh-node::before{
  content:""; position:absolute; width:9px; height:7px; border:2px solid #6b6b6b; border-bottom:none;
  border-radius:7px 7px 0 0; top:5px; left:50%; transform:translateX(-50%);
}
.rh-step.locked .rh-node::after{
  content:""; position:absolute; width:12px; height:9px; background:#6b6b6b; border-radius:3px;
  bottom:5px; left:50%; transform:translateX(-50%);
}

/* Tasks Badge */
.rh-step[data-tasks]:not([data-tasks="0"]) .rh-node::marker{ content:""; }
.rh-step[data-tasks]:not([data-tasks="0"]) .rh-node::after{
  /* wenn done schon ✓ hat, brauchen wir Badge separat -> nutzen ::before Badge-Layer */
}
.rh-step[data-tasks]:not([data-tasks="0"])::after{
  content:attr(data-tasks);
  position:absolute;
  top:0px;
  right:18px;
  font-size:11px;
  padding:4px 6px;
  border-radius:10px;
  background:#FFD6A5;
  color:#222;
  box-shadow:0 6px 14px rgba(0,0,0,0.12);
}

/* Expand Button */
.rh-expand{
  margin-top:6px;
  border:none;
  background:#f2f6fb;
  border-radius:10px;
  padding:4px 8px;
  font-size:12px;
  cursor:pointer;
}
.rh-step.open .rh-expand{ background:#eaf1fb; }

/* Subnodes Panel (unter dem Step) */
.rh-sub{
  display:none;
  margin-top:10px;
  width:450px;
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(0,0,0,0.06);
  border-radius:14px;
  box-shadow:0 14px 36px rgba(0,0,0,0.08);
  padding:10px;
}

.rh-step.open .rh-sub{ display:block; }

.rh-subitem{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 8px;
  border-radius:10px;
}
.rh-subitem:hover{ background:#f2f6fb; }

.mini-dot{
  width:10px; height:10px; border-radius:50%;
  background:#d7d7d7;
  flex:0 0 auto;
}
.mini-dot.tiny{ width:8px; height:8px; }
.mini-dot.lock{ background:#cfcfcf; border:1px solid rgba(0,0,0,0.12); }

.rh-subitem.done .mini-dot{ background:#A8DADC; }
.rh-subitem.active .mini-dot{ background:#4582B4; }
.rh-subitem.locked .mini-dot{ background:#cfcfcf; }

.sub-title{
  border:none;
  background:transparent;
  font-size:12px;
  color:#333;
  cursor:pointer;
  text-align:left;
  flex:1;
}

.sub-expand{
  border:none;
  background:#f2f6fb;
  border-radius:10px;
  padding:3px 7px;
  cursor:pointer;
}

.rh-sub2{
  display:none;
  margin-top:8px;
  margin-left:18px;
  border-left:2px solid #ddd;
  padding-left:10px;
}
.rh-subitem.open > .rh-sub2{ display:block; }

/* Modal (wie vorher) – wenn du es schon hast, kannst du es lassen */
.cc-modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,0.32); z-index:10000; }
.cc-modal.open{ display:flex; }
.cc-modal-box{ width:min(520px, calc(100% - 28px)); background:rgba(255,255,255,0.96); backdrop-filter:blur(12px); border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,0.22); padding:16px; }
.cc-modal-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:10px; }
.cc-modal-title{ font-weight:700; font-size:14px; color:#222; }
.cc-modal-sub{ font-size:12px; color:#666; margin-top:4px; }
.cc-x{ border:none; background:#f2f6fb; border-radius:10px; padding:8px 10px; cursor:pointer; }
.cc-label{ display:block; font-size:12px; color:#666; margin:10px 0 6px; }
.cc-input{ width:100%; border:1px solid #ddd; border-radius:12px; padding:10px 12px; font-size:13px; background:rgba(255,255,255,0.9); }
.cc-modal-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:14px; }


/* ===================================
   ⭐ SIGNATURE TENANT SWITCHER
=================================== */

.tenant-switcher{
    position:relative;
}

.tenant-card{
    display:flex;
    align-items:center;
    gap:8px;
    padding:6px 14px;
    border-radius:999px;
    background:#f3f6fa;
    font-size:12px;
    cursor:pointer;
}

.tenant-status{
    width:8px;
    height:8px;
    background:#A8DADC;
    border-radius:50%;
}

/* DROPDOWN */

.tenant-dropdown{
    position:absolute;
    top:42px;
    left:50%;
    transform:translateX(-50%);
    width:260px;

    background:#fff;
    border-radius:14px;
    box-shadow:0 20px 40px rgba(0,0,0,0.15);

    display:none;
    overflow:hidden;
}

.tenant-dropdown.open{
    display:block;
}

#tenantSearch{
    width:100%;
    border:none;
    border-bottom:1px solid #eee;
    padding:12px;
    font-size:12px;
    outline:none;
}

/* LISTE */

.tenant-list{
    max-height:260px;
    overflow:auto;
}

/* GROUP */

.group-title{
    font-size:11px;
    padding:8px 12px;
    color:#777;
    background:#fafafa;
}

.tenant-item{
    padding:10px 12px;
    font-size:12px;
    cursor:pointer;
}

.tenant-item:hover{
    background:#f2f6fb;
}

/* ===================================
   ⭐ DPO SIGNATURE HEADER
=================================== */

.dpo-header{
    position:sticky;
    top:14px;
    margin:0 24px;
    z-index:1000;

    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;

    border-radius:16px;

    background:rgba(255,255,255,0.78);
    backdrop-filter:blur(20px);

    box-shadow:
        0 18px 45px rgba(0,0,0,0.08),
        0 0 0 1px rgba(255,255,255,0.4) inset;

    transition:.35s ease;
}

/* Ambient Light Effekt */

.dpo-header::before{
    content:"";
    position:absolute;
    inset:0;
   
    pointer-events:none;
}

/* LEFT */

.dpo-left{
    display:flex;
    align-items:center;
    gap:28px;
}

.dpo-logo{
    font-weight:700;
    font-size:14px;
    color:#4582B4;
}

.dpo-nav a{
    text-decoration:none;
    color:#444;
    font-size:13px;
    margin-right:18px;
    position:relative;
}

.dpo-nav a::after{
    content:"";
    position:absolute;
    bottom:-6px;
    left:0;
    height:2px;
    width:0%;
    background:#4582B4;
    transition:.25s;
}

.dpo-nav a:hover::after{
    width:100%;
}

/* TENANT SWITCHER */

.tenant-switcher{
    display:flex;
    justify-content:center;
}

.tenant-card{
    position:relative;
    display:flex;
    align-items:center;
    gap:8px;
    padding:6px 14px;
    border-radius:999px;
    background:#f3f6fa;
    font-size:12px;
}

.tenant-status{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#A8DADC;
}

.tenant-card select{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}

/* RIGHT */

.dpo-right{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:14px;
}

/* LANGUAGE ICON */

.lang-icon{
    font-size:16px;
    opacity:.7;
    cursor:pointer;
}

/* AVATAR */

.user-box{
    position:relative;
}

.avatar{
    width:36px;
    height:36px;
    border-radius:50%;
    background:#4582B4;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    cursor:pointer;
    position:relative;
}

/* Online Dot */

.online-dot{
    position:absolute;
    width:8px;
    height:8px;
    background:#A8DADC;
    border-radius:50%;
    bottom:2px;
    right:2px;
    border:2px solid #fff;
}

/* USER MENU */

.user-menu{
    position:absolute;
    right:0;
    top:46px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 16px 40px rgba(0,0,0,0.15);
    min-width:180px;
    display:none;
    overflow:hidden;
}

.user-menu a{
    display:block;
    padding:12px;
    font-size:12px;
    text-decoration:none;
    color:#333;
}

.user-menu a:hover{
    background:#f2f6fb;
}

.user-menu .divider{
    height:1px;
    background:#eee;
}

.logout{
    color:#c0392b;
}

/* Highlight Treffer */
.tenant-item mark{
    background:rgba(69,130,180,0.15);
    padding:0 2px;
    border-radius:3px;
}

/* Keyboard Hover */
.tenant-item.focused{
    background:#f2f6fb;
}

/* Aktiver Mandant */
.tenant-item.active{
    font-weight:600;
    color:#4582B4;
}

.node-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.3);
    display:none;
    align-items:center;
    justify-content:center;
}

.node-popup.open{
    display:flex;
}

.popup-box{
    background:#fff;
    padding:22px;
    border-radius:14px;
    min-width:260px;
}

.save-pulse {
    animation: pulse 1.2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.shake {
    animation: shake .35s;
}
@keyframes shake {
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-3px); }
}

/* =========================================================
   Portal Enterprise Theme System (Bootstrap-friendly)
   - 1 Base Design (Wiedererkennungswert)
   - N Theme Variants (klare Unterscheidung je Kontext)
   ========================================================= */

/* ---------- Base Tokens (Default) ---------- */
:root {
  --p-radius: 16px;
  --p-radius-sm: 12px;
  --p-shadow: 0 8px 24px rgba(16, 24, 40, .06);
  --p-shadow-sm: 0 3px 10px rgba(16, 24, 40, .06);

  --p-bg: #f6f7fb;
  --p-surface: #ffffff;
  --p-surface-2: #fbfbff;
  --p-border: rgba(16, 24, 40, .10);
  --p-border-soft: rgba(16, 24, 40, .06);

  --p-text: #0f172a;
  --p-muted: rgba(15, 23, 42, .62);

  /* Accent default */
  --p-accent: #0d6efd;
  --p-accent-soft: rgba(13, 110, 253, .10);
  --p-accent-soft-2: rgba(13, 110, 253, .06);

  /* Component tokens */
  --p-section-marker: var(--p-accent);
  --p-sticky-border: var(--p-accent);
}

/* ---------- Wrapper: use this on your page root ---------- */
.portal-page {
  background: var(--p-bg);
  color: var(--p-text);
}

.portal-page .card {
  border-radius: var(--p-radius);
  border: 1px solid var(--p-border-soft);
  box-shadow: var(--p-shadow-sm);
  background: var(--p-surface);
}

.portal-page .card-header {
  border-top-left-radius: var(--p-radius);
  border-top-right-radius: var(--p-radius);
  background: var(--p-surface);
  border-bottom: 1px solid var(--p-border-soft);
}

.portal-page .form-control,
.portal-page .form-select,
.portal-page .input-group-text {
  border-color: var(--p-border);
}

.portal-page .text-muted { color: var(--p-muted) !important; }

/* ---------- Signature Patterns (Wiedererkennung) ---------- */
.portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 8px;
}

.portal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--p-accent-soft);
  color: var(--p-accent);
  font-size: 20px;
}

.portal-subtitle {
  color: var(--p-muted);
  font-size: .86rem;
}

/* Section marker: same pattern everywhere, theme changes look */
.portal-section-marker {
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: var(--p-section-marker);
  display: inline-block;
  margin-right: 10px;
  transform: translateY(1px);
}

/* Sticky action bar (signature element across portal) */
.portal-sticky {
  position: sticky;
  top: 12px;
  z-index: 20;
  border-radius: var(--p-radius-sm);
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--p-surface) 92%, transparent);
  border: 1px solid var(--p-border-soft);
  box-shadow: var(--p-shadow);
}

.portal-sticky .card-body {
  padding-top: .55rem;
  padding-bottom: .55rem;
}

.portal-sticky--accent {
  border-left: 4px solid var(--p-sticky-border);
}

/* Sidebar: consistent but slightly distinct surface */
.portal-sidebar .card {
  background: var(--p-surface);
}

.portal-main .card {
  background: var(--p-surface-2);
}

/* Logo preview (re-usable) */
.portal-logo-preview {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  border: 1px dashed color-mix(in srgb, var(--p-border) 80%, transparent);
  display: grid;
  place-items: center;
  font-size: 28px;
  color: color-mix(in srgb, var(--p-text) 35%, transparent);
  background: color-mix(in srgb, var(--p-surface) 95%, transparent);
  flex: 0 0 auto;
}

/* Backoffice / Warning card pattern */
.portal-callout-warn {
  background: rgba(255, 193, 7, .08);
  border-left: 4px solid #ffc107;
}

/* ---------- Theme Variants ----------
   Apply ONE of these on .portal-page:
   - theme-company, theme-project, theme-training, theme-privacy, etc.
------------------------------------ */

/* Company: Indigo (ruhig, seriös) */
.portal-page.theme-company {
  --p-accent: #6366f1;
  --p-accent-soft: rgba(99, 102, 241, .12);
  --p-accent-soft-2: rgba(99, 102, 241, .07);
  --p-section-marker: #6366f1;
  --p-sticky-border: #6366f1;
  --p-surface-2: #fbfbff;
}

/* Project: Teal (aktiv, operativ) */
.portal-page.theme-project {
  --p-accent: #14b8a6;
  --p-accent-soft: rgba(20, 184, 166, .12);
  --p-accent-soft-2: rgba(20, 184, 166, .07);
  --p-section-marker: #14b8a6;
  --p-sticky-border: #14b8a6;
  --p-surface-2: #f7fffd;
}

/* Training: Orange (lern-/content-lastig) */
.portal-page.theme-training {
  --p-accent: #f97316;
  --p-accent-soft: rgba(249, 115, 22, .14);
  --p-accent-soft-2: rgba(249, 115, 22, .08);
  --p-section-marker: #f97316;
  --p-sticky-border: #f97316;
  --p-surface-2: #fff9f3;
}

/* Privacy/Compliance: Slate (ernst, kontrolliert) */
.portal-page.theme-privacy {
  --p-accent: #334155;
  --p-accent-soft: rgba(51, 65, 85, .10);
  --p-accent-soft-2: rgba(51, 65, 85, .06);
  --p-section-marker: #334155;
  --p-sticky-border: #334155;
  --p-surface-2: #f8fafc;
}

/* ---------- Optional: small UI polish ---------- */
.portal-page .btn-primary {
  background: var(--p-accent);
  border-color: var(--p-accent);
}

.portal-page .btn-outline-secondary:hover {
  box-shadow: var(--p-shadow-sm);
}

/* Make badges feel consistent (works with Bootstrap badges) */
.portal-page .badge.portal-status {
  border: 1px solid color-mix(in srgb, var(--p-accent) 30%, transparent);
  background: var(--p-accent-soft);
  color: var(--p-accent);
}


@media print {

  /* Sticky komplett deaktivieren */
  .topnav,
  .toolbar {
      display: none !important;
  }

  /* Nur aktive View anzeigen */
  #tableView.hidden,
  #treeView.hidden {
      display: none !important;
  }

  /* Rest ausblenden */
  .chip,
  .icon-btn,
  .dropdown,
  .btn,
  .modal,
  .modal-backdrop {
      display: none !important;
  }

  /* Container volle Breite */
  .container {
      max-width: 100% !important;
      width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
  }

  .panel {
      border: none !important;
      box-shadow: none !important;
      overflow: visible !important;
  }

  .view-wrap {
      padding: 0 !important;
  }

  table {
      width: 100% !important;
      table-layout: auto !important;
      font-size: 12px;
  }

  body {
      background: white !important;
  }

}

/* MOBILE MODE */
@media (max-width:1100px){

    .qe-wrap{
        grid-template-columns: 1fr;
    }

    .qe-menuToggle{
        display:inline-block;
    }

    .qe-nav{
        position:fixed;
        top:0;
        left:0;
        height:100%;
        width:300px;
        z-index:999;
        transform:translateX(-100%);
        transition:transform .3s ease;
        border-radius:0;
    }

    .qe-nav--open{
        transform:translateX(0);
    }

}