:root {
    --sw6-sidebar-bg: #23243c;
    --sw6-sidebar-active: #21a179;
    --sw6-sidebar-hover: #2f3156;
    --sw6-sidebar-text: #d7dbe8;
    --sw6-sidebar-width: 270px;
    --sw6-content-bg: #f7f8fa;
    --sw6-topbar-bg: #fff;
    --sw6-shadow: 0 2px 10px 0 rgba(34,35,61,0.08);
    --sw6-card-bg: #fff;
    --sw6-card-radius: 13px;
    --sw6-card-shadow: 0 1.5px 10px 0 #23243c0d;
    --sw6-border: #e5e7ef;
    --sw6-search-bg: #f3f5fa;
}

body, html {
    background: var(--sw6-content-bg);
    font-family: 'Inter', Arial, sans-serif;
    height: 100vh;
    margin: 0;
    color: #25304a;
}

.sw6-root {
    display: flex;
    min-height: 100vh;
}

.sw6-sidebar {
    width: var(--sw6-sidebar-width);
    background: var(--sw6-sidebar-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 18px;
	justify-content: flex-start; /* Alles oben anordnen */

}


.sw6-sidebar-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 30px 22px 18px 25px;
}

.sw6-logo {
    width: 39px;
    height: 39px;
    filter: brightness(1.13);
}

.sw6-sidebar-title {
    font-weight: 700;
    font-size: 1.26rem;
    color: #fff;
    letter-spacing: .01em;
}

.sw6-sidebar-nav {
    list-style: none;
    padding: 0 0 0 0;
    margin: 0;
}

.sw6-sidebar-nav li a {
    display: flex;
    align-items: center;
    color: var(--sw6-sidebar-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 11px 0 11px 28px;
    border-left: 4px solid transparent;
    margin-bottom: 3px;
    gap: 15px;
    border-radius: 0 15px 15px 0;
    transition: background 0.11s, color 0.13s, border-color 0.13s;
}

.sw6-sidebar-nav li a i {
    font-size: 21px;
    min-width: 23px;
    text-align: center;
}

.sw6-sidebar-nav li a.active,
.sw6-sidebar-nav li a:focus {
    background: var(--sw6-sidebar-hover);
    color: var(--sw6-sidebar-active);
    border-left: 4px solid var(--sw6-sidebar-active);
}

.sw6-sidebar-nav li a:hover {
    background: var(--sw6-sidebar-hover);
    color: var(--sw6-sidebar-active);
}

.sw6-sidebar-user {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #222341;
    border-radius: 9px;
    margin: 18px 16px 0 14px;
	 margin-top: auto;
    padding: 11px 14px;
}


.sw6-user-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    border-radius: 50%;
    background: var(--sw6-sidebar-active, #21a179);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.21rem;
    line-height: 38px;
    /* kein Extra-Spacing! */
}

.sw6-user-name {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    line-height: 1.1;
}

.sw6-user-role {
    color: #d7dbe8;
    font-size: 0.93rem;
}

.sw6-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--sw6-content-bg);
}

.sw6-topbar {
    background: var(--sw6-topbar-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 10px 28px;
    box-shadow: var(--sw6-shadow);
    z-index: 22;
    border-bottom: 1px solid var(--sw6-border);
}

.sw6-searchbar {
    flex: 1;
    max-width: 740px;
    padding-left: 20px;
}

.sw6-search-input {
    width: 100%;
    border: none;
    background: var(--sw6-search-bg);
    border-radius: 8px;
    padding: 11px 17px;
    font-size: 15px;
    color: #1b263b;
    outline: none;
    transition: box-shadow .13s;
    box-shadow: 0 1.5px 6px 0 #23243c09;
}

.sw6-search-input:focus {
    box-shadow: 0 3px 10px 0 #23243c10;
    background: #eef0f7;
}

.sw6-topbar-actions {
    display: flex;
    align-items: center;
    font-size: 1.35rem;
    color: #adb7d6;
}

.sw6-topbar-actions i {
    cursor: pointer;
    transition: color 0.11s;
}
.sw6-topbar-actions i:hover {
    color: var(--sw6-sidebar-active);
}

.sw6-topbar-user .sw6-user-avatar-mini {
    background: var(--sw6-sidebar-active);
    color: #fff;
    font-weight: 700;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.06rem;
    margin-left: 7px;
}

.sw6-content {
    padding: 36px 44px 32px 44px;
    background: var(--sw6-content-bg);
    min-height: 89vh;
    width: 100%;
}

.sw6-card {
    background: var(--sw6-card-bg);
    border-radius: var(--sw6-card-radius);
    box-shadow: var(--sw6-card-shadow);
    border: 1.2px solid var(--sw6-border);
    padding: 22px 24px;
    margin-bottom: 26px;
}

@media (max-width: 1000px) {
    .sw6-content {
        padding: 18px 6px;
    }
    .sw6-topbar {
        padding-left: 10px;
        padding-right: 10px;
    }
    .sw6-sidebar {
        width: 60px;
        min-width: 60px;
    }
    .sw6-sidebar-title, .sw6-sidebar-user, .sw6-sidebar-nav li a span {
        display: none;
    }
    .sw6-sidebar-nav li a {
        padding: 10px 0 10px 12px;
        justify-content: center;
    }
}


.sw6-topbar-actions {
    display: flex;
    align-items: center;
    gap: 22px; /* Schöner Abstand zwischen den Icons */
    padding-right: 32px;
    font-size: 21px;
}

.sw6-topbar-actions .bi {
    color: #b0b8c7;
    transition: color 0.2s;
    cursor: pointer;
    vertical-align: middle;
}

.sw6-topbar-actions .bi:hover {
    color: #2dbb7f; /* Schöner Grünton als Highlight */
}

.sw6-topbar-user {
    margin-left: 8px; /* Etwas Abstand zum letzten Icon */
}

.sw6-user-avatar-mini {
    background: #2dbb7f;
    color: #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    border: 2px solid #fff;
    transition: box-shadow 0.2s;
}

.sw6-user-avatar-mini:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: .0em;
    vertical-align: .255em;
    content: "";
    border-top: .0em solid;
    border-right: .0em solid transparent;
    border-bottom: 0;
    border-left: .0em solid transparent;
}
/* Sidebar Flyout */
.sw6-has-flyout {
    position: relative;
}
.sw6-has-flyout > .sw6-flyout-arrow {
    margin-left: auto;
    font-size: 18px;
    opacity: 0.7;
    transition: transform 0.17s;
}
.sw6-has-flyout:hover > a .sw6-flyout-arrow {
    transform: translateX(3px);
    opacity: 1;
    color: var(--sw6-sidebar-active);
}
.sw6-flyout-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 182px;
    background: var(--sw6-sidebar-bg);
    box-shadow: 2px 6px 16px rgba(20,28,54,0.16);
    border-radius: 0 0px 0px 0px;
    padding: 7px 0;
    z-index: 999;
    animation: sw6-flyout-appear 0.18s cubic-bezier(.3,.87,.51,1.32);
}
@keyframes sw6-flyout-appear {
    from { opacity: 0; transform: translateX(-18px);}
    to   { opacity: 1; transform: translateX(0);}
}
.sw6-has-flyout:hover > .sw6-flyout-menu,
.sw6-has-flyout:focus-within > .sw6-flyout-menu {
    display: block;
}
.sw6-flyout-menu li a {
    display: flex;
    align-items: center;
    color: var(--sw6-sidebar-text);
    background: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px 10px 25px;
    border-left: 4px solid transparent;
    border-radius: 0 0px 0px 0;
    transition: background 0.11s, color 0.13s, border-color 0.13s;
    gap: 12px;
    white-space: nowrap;
}
.sw6-flyout-menu li a:hover, .sw6-flyout-menu li a.active {
    background: var(--sw6-sidebar-hover);
    color: var(--sw6-sidebar-active);
    border-left: 4px solid var(--sw6-sidebar-active);
}

@keyframes badgeBounce {
  0%   { transform: scale(1);}
  30%  { transform: scale(1.22);}
  50%  { transform: scale(0.93);}
  70%  { transform: scale(1.12);}
  100% { transform: scale(1);}
}
#form-counter.bounce {
  animation: badgeBounce 0.5s;
}


.btn, .btn-modern {
  box-shadow: 0 1.5px 6px 0 rgba(49,53,82,0.09);
  transition: background 0.14s, box-shadow 0.13s, transform 0.12s;
}
.btn:hover, .btn-modern:hover {
  box-shadow: 0 6px 16px 0 rgba(33,161,121,0.13);
  background: var(--accent-blue);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

[data-bs-toggle="tooltip"] {
  cursor: pointer;
  transition: color 0.14s;
}
[data-bs-toggle="tooltip"]:hover {
  color: var(--accent-yellow) !important;
  animation: tooltipBounce 0.6s;
}
@keyframes tooltipBounce {
  0%   { transform: translateY(0);}
  20%  { transform: translateY(-2px);}
  40%  { transform: translateY(1.5px);}
  60%  { transform: translateY(-1px);}
  100% { transform: translateY(0);}
}

.quick-action-card:hover, .quick-action-card:focus {
    box-shadow: 0 8px 36px 0 #21a17935, 0 4px 22px rgba(49,53,82,0.09);
    border-color: #b2c0d3;
    background: #f5f8fb;
    transform: translateY(-3px) scale(1.03);
}

.sw6-sidebar-nav li a.active,
.sw6-sidebar-nav li a:focus {
  background: linear-gradient(90deg,#313552 90%,#21a17912 100%);
  color: var(--sw6-sidebar-active);
  border-left: 4px solid var(--sw6-sidebar-active);
  box-shadow: 0 2px 16px 0 #21a17914;
}
.sw6-sidebar-nav li a:hover {
  filter: brightness(1.08);
  transition: filter 0.13s;
}

.version {
	color: #fff;
	font-size: 10px;
	}
	
.sw6-has-dropdown {
    position: relative;
}
.sw6-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    background: none;
    border: none;
    outline: none;
}
.sw6-dropdown-arrow {
    margin-left: auto;
    font-size: 17px;
    transition: transform 0.22s;
}

.sw6-has-dropdown.open .sw6-dropdown-arrow {
    transform: rotate(180deg);
}

.sw6-dropdown-menu {
    display: none;
    flex-direction: column;
    background: var(--sw6-sidebar-bg);
    border-radius: 0 0 10px 10px;
    padding-left: 32px;
    padding-bottom: 7px;
    margin-bottom: 3px;
    animation: sw6-dropdown-appear 0.18s cubic-bezier(.3,.87,.51,1.32);
}
@keyframes sw6-dropdown-appear {
    from { opacity: 0; transform: translateY(-9px);}
    to   { opacity: 1; transform: translateY(0);}
}
.sw6-has-dropdown.open > .sw6-dropdown-menu {
    display: flex;
}


.sw6-has-dropdown {
    position: relative;
}
.sw6-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    background: none;
    border: none;
    outline: none;
}
.sw6-dropdown-arrow {
    margin-left: auto;
    margin-right: 18px;   /* Abstand nach rechts */
    font-size: 21px;      /* Etwas größer */
    color: #18d49b;       /* Grüner Pfeil (dein Akzent) */
    transition: transform 0.22s, color 0.12s;
    vertical-align: middle;
    pointer-events: none; /* Pfeil selbst nicht klickbar */
    opacity: 0.98;
}
.sw6-has-dropdown.open .sw6-dropdown-arrow {
    transform: rotate(180deg);
    color: #128865;   /* Dunkleres Grün bei geöffnetem Dropdown */
}

.sw6-dropdown-menu {
    display: none;
    flex-direction: column;
    background: var(--sw6-sidebar-bg, #181e27);
    border-radius: 0 0 10px 10px;
    padding-left: 32px;
    padding-bottom: 7px;
    margin-bottom: 3px;
    animation: sw6-dropdown-appear 0.18s cubic-bezier(.3,.87,.51,1.32);
}
@keyframes sw6-dropdown-appear {
    from { opacity: 0; transform: translateY(-9px);}
    to   { opacity: 1; transform: translateY(0);}
}
.sw6-has-dropdown.open > .sw6-dropdown-menu {
    display: flex;
}

/* Sidebar Hauptmenü: klar und flach */
.sw6-sidebar-nav li a {
    display: flex;
    align-items: center;
    color: var(--sw6-sidebar-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 11px 0 11px 22px;
    border-left: 4px solid transparent;
    margin-bottom: 2px;
    gap: 15px;
    border-radius: 0 7px 7px 0; /* nur leicht, nicht mehr „Bubble“ */
    box-shadow: none;
    background: none;
    transition: background 0.11s, color 0.13s, border-color 0.13s;
}

.sw6-sidebar-nav li a.active,
.sw6-sidebar-nav li a:focus {
    background: linear-gradient(90deg,#313552 92%,#21a17910 100%);
    color: var(--sw6-sidebar-active);
    border-left: 4px solid var(--sw6-sidebar-active);
    border-radius: 0 7px 7px 0;
    box-shadow: 0 1px 6px 0 #21a17911;
}

.sw6-sidebar-nav li a:hover {
    background: var(--sw6-sidebar-hover);
    color: var(--sw6-sidebar-active);
    border-radius: 0 7px 7px 0;
    filter: brightness(1.08);
}

/* Dropdown-Menü-Pfeil */
.sw6-dropdown-arrow {
    margin-left: auto;
    margin-right: 12px;
    font-size: 19px;
    color: #18d49b;
    transition: transform 0.22s, color 0.12s;
    vertical-align: middle;
    opacity: 0.98;
}

/* Dropdown auf/zu Effekt */
.sw6-has-dropdown.open .sw6-dropdown-arrow {
    transform: rotate(180deg);
    color: #128865;
}

/* Untermenü kompakter, weniger eingerückt */
.sw6-dropdown-menu {
    display: none;
    flex-direction: column;
    background: var(--sw6-sidebar-bg, #181e27);
    border-radius: 0 0 8px 8px;
    padding-left: 13px;  /* war 32px */
    padding-bottom: 5px;
    margin-bottom: 1px;
    animation: sw6-dropdown-appear 0.17s cubic-bezier(.3,.87,.51,1.32);
    box-shadow: none; /* Kein Shadow für cleaneres Design */
}

.sw6-has-dropdown.open > .sw6-dropdown-menu {
    display: flex;
}

/* Untermenü-Links */
.sw6-dropdown-menu li a {
    display: flex;
    align-items: center;
    color: var(--sw6-sidebar-text);
    background: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0 8px 18px; /* linker Padding reduziert */
    border-left: 3px solid transparent;
    border-radius: 0 7px 7px 0;
    gap: 11px;
    white-space: nowrap;
    margin-bottom: 1.5px;
    transition: background 0.11s, color 0.13s, border-color 0.13s;
}
.sw6-dropdown-menu li a:hover,
.sw6-dropdown-menu li a.active {
    background: var(--sw6-sidebar-hover);
    color: var(--sw6-sidebar-active);
    border-left: 3px solid var(--sw6-sidebar-active);
    border-radius: 0 7px 7px 0;
}

/* Pfeil im Hauptmenü bleibt auf einer Linie */
.sw6-dropdown-toggle {
    min-width: 0;
    padding-right: 0;
}

/* Sidebar User etwas cleaner */
.sw6-sidebar-user {
    margin: 17px 12px 0 12px;
    padding: 10px 10px;
    border-radius: 8px;
    box-shadow: none;
}

.sw6-sidebar-nav {
    flex: 0 1 auto;   /* Bleibt oben */
}

.sw6-sidebar-user {
    margin-top: auto; /* Schiebt Userblock ans Ende */
}

.app-layout {
    display: flex;
    height: 100vh; /* ganze Bildschirmhöhe */
    overflow: hidden; /* verhindert doppeltes Scrollen */
}

.sw6-sidebar {
    width: 252px;       /* oder wie breit du willst */
    height: 100vh;      /* fix an Fensterhöhe */
    flex-shrink: 0;     /* nicht schrumpfen! */
    display: flex;
    flex-direction: column;
    /* ... Rest deiner Sidebar-Styles */
}

.main-content {
    flex: 1 1 0;
    height: 100vh;
    overflow-y: auto;   /* Nur der Content ist scrollbar! */
    /* padding: ...; */
    background: #f6f7fb; /* o.ä. */
}
.sw6-root {
    display: flex;
    flex-direction: row;
    height: 100vh;
    min-height: 0;
    width: 100vw;
    overflow: hidden;
}

.sw6-sidebar {
    width: 252px;          /* Deine gewohnte Sidebar-Breite */
    min-width: 210px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #23243c;   /* Deine Sidebar-Farbe */
    flex-shrink: 0;
}

.sw6-main {
    flex: 1 1 0;
    min-width: 0;
    height: 100vh;
    overflow-y: auto;      /* Nur Main-Content scrollt */
    background: #f6f7fb;
    display: flex;
    flex-direction: column;
}

.sw6-content {
    flex: 1 1 auto;
    min-height: 0;
    /* Optional: padding hier statt in .sw6-main, falls gewünscht */
}
.sw6-sidebar-user {
    margin-top: auto;
    /* weitere Styles wie bisher */
}

#screen-warning-overlay {
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(22, 23, 34, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
}
.screen-warning-inner {
  background: rgba(34,38,55,0.96);
  border-radius: 14px;
  box-shadow: 0 2px 24px #1118;
  padding: 38px 28px 34px 28px;
  text-align: center;
  max-width: 90vw;
}
.screen-warning-inner h2 {
  font-size: 2rem;
  margin: 16px 0 8px 0;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.screen-warning-inner p {
  font-size: 1.17rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Basis-Styles für das Joke-Element */
.sw6-topbar-joke {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    background: rgba(32,40,55,0.06);
    color: #32e45c;
    font-size: 1.09rem;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    border-radius: 24px;
    box-shadow: 0 1px 7px 0 rgba(49,53,68,0.06);
    margin: 12px auto 0 auto;
    max-width: 580px;
    transition: background 0.18s, color 0.18s, box-shadow 0.16s;
    cursor: pointer;
    position: relative;
    z-index: 3;
    gap: 10px;
    opacity: 0.95;
    letter-spacing: 0.01em;
    font-weight: 500;
}

/* Icon-Emoji links */
.sw6-topbar-joke::before {
    content: "🃏";
    margin-right: 10px;
    font-size: 1.15em;
    opacity: 0.86;
    transition: transform .2s cubic-bezier(.4,2,.5,1);
}

/* Hover-Effekt */
.sw6-topbar-joke:hover,
.sw6-topbar-joke:focus {
    background: #212e44;
    color: #fff;
    box-shadow: 0 2px 14px 0 rgba(49,53,68,0.16);
    opacity: 1;
}
.sw6-topbar-joke:hover::before,
.sw6-topbar-joke:focus::before {
    transform: rotate(-18deg) scale(1.15);
}

.sw6-joke-toggle {
    font-size: 1.35em;
    margin: 0 18px;
    cursor: pointer;
    user-select: none;
    transition: filter 0.18s, transform 0.19s;
    color: #24be68;
    opacity: 0.65;
    vertical-align: middle;
}
.sw6-joke-toggle:hover,
.sw6-joke-toggle:focus {
    filter: drop-shadow(0 1px 3px #00e47833);
    opacity: 1;
    transform: rotate(-10deg) scale(1.13);
}

.sw6-topbar-joke-wrap {
    position: absolute;
    left: 50%;
    top: 62px;
    transform: translateX(-50%);
    z-index: 99;
    min-width: 270px;
    max-width: 540px;
    display: flex;
    align-items: center;
    gap: 0;
    background: none;
    border: none;
    box-shadow: none;
    animation: jokeAppear 0.5s;
}
@keyframes jokeAppear {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px);}
    to   { opacity: 1; transform: translateX(-50%) translateY(0);}
}

.sw6-topbar-joke {
    flex: 1;
    background: #fff;
    color: #2adb78;
    border-radius: 21px;
    padding: 9px 28px 9px 18px;
    font-size: 1.07em;
    box-shadow: 0 4px 22px 0 rgba(35,42,60,0.09);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-weight: 500;
    opacity: 1;
    position: relative;
    transition: background .13s, color .13s;
    cursor: pointer;
    letter-spacing: 0.01em;
}
.sw6-joke-close {
    margin-left: -23px;
    margin-right: 4px;
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1;
    color: #aeaeae;
    opacity: .72;
    background: #fff;
    border-radius: 40px;
    padding: 0 7px 0 7px;
    transition: background .15s, color .15s, opacity .15s;
    z-index: 3;
    user-select: none;
}
.sw6-joke-close:hover {
    color: #e0503b;
    background: #e9eaea;
    opacity: 1;
}

@media (max-width: 700px) {
    .sw6-topbar-joke-wrap {
        top: 50px;
        min-width: 170px;
        max-width: 96vw;
    }
    .sw6-topbar-joke {
        font-size: 0.96em;
        padding: 7px 13vw 7px 13px;
    }
}

.sw6-topbar-joke {
    background: #2076fa;
    color: #fff;
    min-width: 390px;
    max-width: 440px;
    min-height: 60px;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 15px;
    padding: 13px 38px 13px 22px;
    font-size: 1.07em;
    box-shadow: 0 4px 22px 0 rgba(35,42,60,0.09);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-weight: 500;
    opacity: 1;
    border: 1.2px solid #c5d3f7;
    letter-spacing: 0.01em;
    transition: box-shadow 0.15s, background 0.15s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sw6-topbar-joke:hover {
    background: #3389ff;
    color: #fff;
    box-shadow: 0 6px 26px 0 rgba(32,118,250,0.11);
}
/* 2-Spalten-Grid ab ~640px, sonst 1 Spalte */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* Kachel */
.tile {
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fafafa);
  box-shadow: 0 1px 0 rgba(17,24,39,.06), 0 12px 24px rgba(17,24,39,.06);
  padding: 16px 16px 14px;
  border: 1px solid rgba(0,0,0,.06);
}

/* Kopf */
.tile-head {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 10px;
}
.tile-title { display:flex; align-items:center; gap:10px; }
.tile-icon { width:22px; height:22px; fill:#111827; opacity:.75 }

/* Status-Pille */
.pill {
  font: 600 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid; letter-spacing:.02em;
  text-transform: uppercase;
}
.pill-up        { background:#ecfdf5; color:#065f46; border-color:#10b981; }
.pill-degraded  { background:#fffbeb; color:#7c2d12; border-color:#f59e0b; }
.pill-down,
.pill-unknown   { background:#fef2f2; color:#7f1d1d; border-color:#ef4444; }

/* Body: zwei Spalten fr Stat-Blocks */
.tile-body {
  display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; margin-top: 6px;
}
.stat .label { color:#6b7280; font-size:12px; }
.stat .value { font-weight:700; font-size:24px; color:#0f172a; }

/* Fuzeile */
.tile-foot { margin-top: 10px; }
.muted { color:#6b7280; font-size:12px; }
.stamp { font-weight:700; font-size:14px; color:#0f172a; }

/* leichte Hover-Animation, subtil bitte */
.tile { transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(17,24,39,.06), 0 16px 28px rgba(17,24,39,.09); }

.dash-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.tile{border-radius:14px;background:linear-gradient(180deg,#fff,#fafafa);box-shadow:0 1px 0 rgba(17,24,39,.06),0 12px 24px rgba(17,24,39,.06);padding:16px 16px 14px;border:1px solid rgba(0,0,0,.06);transition:transform .15s ease,box-shadow .15s ease}
.tile:hover{transform:translateY(-1px);box-shadow:0 1px 0 rgba(17,24,39,.06),0 16px 28px rgba(17,24,39,.09)}
.tile-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.tile-title{display:flex;align-items:center;gap:10px}
.tile-icon{width:22px;height:22px;fill:#111827;opacity:.75}
.pill{font:600 12px/1 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;padding:6px 10px;border-radius:999px;border:1px solid;letter-spacing:.02em;text-transform:uppercase}
.pill-up{background:#ecfdf5;color:#065f46;border-color:#10b981}
.pill-degraded{background:#fffbeb;color:#7c2d12;border-color:#f59e0b}
.pill-down,.pill-unknown{background:#fef2f2;color:#7f1d1d;border-color:#ef4444}
.tile-body.two{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:6px}
.stat .label{color:#6b7280;font-size:12px}
.stat .value{font-weight:700;font-size:22px;color:#0f172a}
.stat .value.small{font-size:16px}

/* ============ SLIDER LAYOUT ============ */

/* Wrapper fllt die Card-Breite; Platz fr Nav-Buttons einkalkulieren */
.docstrip-wrapper{
  position: relative;
  width: 100%;
  padding: 0 42px;            /* Platz fr die Nav-Pfeile links/rechts */
}

/* Horizontales Scrolling ohne Y-Scrollbars */
.docstrip-track{
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: .25rem 0;
}
.docstrip-track.grabbing{ cursor: grabbing; cursor: -webkit-grabbing; }

/* Optional: native Scrollbar ausblenden (Variante A) */
.doc-slider{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: .25rem;
  mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* IE/Edge Legacy */
}
.doc-slider::-webkit-scrollbar{ height: 0; }  /* Chrome/Safari/Edge */

/* Konsistente Item-Breite, kein Schrumpfen */
.docstrip-item{
  flex: 0 0 200px;          /* Kartenbreite  bei Bedarf 180/220 anpassen */
  scroll-snap-align: start;
}

/* Nav-Pfeile absolut mittig am Rand */
.docstrip-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border: none;
  border-radius: .5rem;
  background: #2c3553;
  color: #fff;
  opacity: .9;
  display: grid; place-items: center;
  cursor: pointer;
}
.docstrip-prev{ left: 6px; }
.docstrip-next{ right: 6px; }
.docstrip-nav:disabled{ opacity: .35; cursor: default; }

/* Fades an den Rndern  dezent */
.docstrip-fade{
  position: absolute; top: 0; bottom: 0; width: 20px; pointer-events: none;
}
.docstrip-fade-left{  left: 42px;  background: linear-gradient(90deg,#fff 0,rgba(255,255,255,0)); }
.docstrip-fade-right{ right: 42px; background: linear-gradient(270deg,#fff 0,rgba(255,255,255,0)); }

/* ============ KARTEN ============ */

.doc-card{
  width: 200px;                   /* passt zur .docstrip-item Breite */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(20,23,30,.08);
}
.doc-card-grid{
  display: grid;
  grid-template-rows: auto auto 1fr auto; /* Header, Meta, Spacer, Button */
  gap: .5rem;
  padding: 12px;
}

/* Header: Icon + Titel, darunter die Seitenzahl */
.doc-card-header{
  display: flex;
  flex-direction: column;
}
.doc-card-icon{ font-size: 1.4rem; line-height: 1; }
.doc-card-title{ font-weight: 600; font-size: .95rem; }
.doc-card-pages{
  font-size: .8rem;
  color: #6c757d;
  margin-left: 1.7rem;            /* unter Titel ausrichten (Iconbreite) */
  margin-top: .2rem;
}

/* Meta-Zeile */
.doc-card-meta{
  min-height: 1.25rem;
  font-size: .8rem;
  color: #6c757d;
}

/* Button */
.doc-card .btn.btn-primary{
  padding-top: .4rem; padding-bottom: .4rem;
  font-weight: 600;
  font-size: .85rem;
}

/* Utilities */
.text-truncate-2{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Gleichhhe fr die beiden Top-Karten (Slider + QuickActions) --- */
.card-eq{
  min-height: 360px;          /* anpassen falls dein Slider hher/kleiner ist */
  display: flex;
  flex-direction: column;
}
.card-eq .card-body{
  display: flex;
  flex-direction: column;
}

/* --- Quick-Action Grid --- */
.qa-grid{
  /* 2 Reihen, 3 Spalten responsive  passt in .col-6 */
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
@media (max-width: 1400px){
  .qa-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 992px){
  .qa-grid{ grid-template-columns: 1fr; }
}

.qa-tile{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 2px 6px rgba(20,23,30,.06);
  display: grid;
  grid-template-rows: auto auto auto;
  align-items: start;
  transition: transform .15s ease, box-shadow .15s ease;
  color: inherit;
}
.qa-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20,23,30,.12);
}

.qa-icon{
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(13,110,253,.10), rgba(13,110,253,.04));
  color: #0d6efd;
  font-size: 22px;
  margin-bottom: 10px;
}
.qa-title{
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 2px;
}
.qa-sub{
  font-size: .85rem;
  color: #6c757d;
}

/* Farbakzente pro Icon optional (nur wenn du willst) */
.qa-tile:nth-child(2) .qa-icon{ color:#0dcaf0; background:linear-gradient(180deg, rgba(13,202,240,.12), rgba(13,202,240,.05)); }
.qa-tile:nth-child(3) .qa-icon{ color:#20c997; background:linear-gradient(180deg, rgba(32,201,151,.12), rgba(32,201,151,.05)); }
.qa-tile:nth-child(4) .qa-icon{ color:#6c757d; background:linear-gradient(180deg, rgba(108,117,125,.12), rgba(108,117,125,.05)); }
.qa-tile:nth-child(5) .qa-icon{ color:#ffc107; background:linear-gradient(180deg, rgba(255,193,7,.15), rgba(255,193,7,.06)); }

/* --- Dezent technischer Hintergrund frs Dashboard --- */
/* Leichtes Grid + Noise  performant und subtil */
body {
  background:
    radial-gradient(ellipse at top, rgba(13,110,253,.04), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(32,201,151,.03), transparent 60%),
    linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px) 0 0/24px 24px,
    linear-gradient(0deg, rgba(0,0,0,.02) 1px, transparent 1px) 0 0/24px 24px,
    #f7f8fb;
}

/* Cards drfen nicht schwimmen: weier Hintergrund bleibt */
.card{ background:#fff; }

/* Optional: Welcome-Header etwas heroiger machen */
.stats-card{
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 8px rgba(20,23,30,.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.9)),
    radial-gradient(1000px 200px at 20% -20%, rgba(13,110,253,.06), transparent 60%),
    #fff;
}
/* Sektionen unten: gleiche Optik wie oben */
.section-card{ border-radius: 14px; }
.section-head{
  background: #f8f9fb;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Status-Pill (UP/DOWN/UNKNOWN)  du nutzt pill-classes bereits oben */
.pill{
  display:inline-block; padding:.15rem .6rem; border-radius:999px;
  font-weight:700; font-size:.75rem; letter-spacing:.02em;
  border:1px solid transparent;
}
.pill-up{ background:#e7f8ef; color:#198754; border-color:#cceedd; }
.pill-down{ background:#fdeaea; color:#dc3545; border-color:#f5c2c7; }
.pill-unknown{ background:#eef1f7; color:#6c757d; border-color:#d7dbe5; }

/* Stat-Grid  wiederverwendbar */
.stat-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.stat-grid-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width:1200px){
  .stat-grid-4{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width:768px){
  .stat-grid, .stat-grid-4{ grid-template-columns: 1fr; }
}

.stat{
  padding: 12px 10px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20,23,30,.04);
  display:flex; flex-direction:column; gap:4px;
}
.stat-label{
  font-size:.82rem; color:#6c757d; white-space:nowrap;
}
.stat-value{
  font-weight:800; font-size:1.05rem; color:#1e2330;
}
.stat-value.dim{ color:#3b4253; opacity:.9; }
.stat:hover{
  box-shadow: 0 6px 18px rgba(20,23,30,.08);
  transform: translateY(-1px);
  transition: .15s ease;
}

/* =========================
   Submen-Styles (Sidebar)
   ========================= */

/* 1) Farb-Variablen fr Submens */
:root{
  --sw6-submenu-bg: #262845;         /* dunkler als Sidebar, aber nicht schwarz */
  --sw6-submenu-sep: rgba(255,255,255,.06);
  --sw6-submenu-hover: #2f3156;      /* du nutzt das bereits fr Hover */
  --sw6-submenu-text: #e4e7f3;       /* etwas heller als Hauptlinks */
  --sw6-submenu-accent: var(--sw6-sidebar-active);
}

/* 2) Container der Dropdown-Liste farblich absetzen + innen etwas Luft */
.sw6-dropdown-menu{
  background: var(--sw6-submenu-bg) !important;
  padding: 8px 0 10px 18px !important;  /* kompakter Einzug als vorher */
  border-left: 2px solid var(--sw6-submenu-sep); /* Leitlinie links */
  border-radius: 0 10px 10px 0;
}

/* 3) Untermen-Links: heller Text, klare Trennung, dezente Trennerlinie */
.sw6-dropdown-menu li a{
  color: var(--sw6-submenu-text) !important;
  background: transparent !important;
  padding: 9px 12px 9px 14px !important;
  border-left: 3px solid transparent;     /* Platz fr Active-Indikator */
  border-radius: 0 8px 8px 0;
  position: relative;
}

/* dnne Linie zwischen Punkten (nur optisch, kein echter <hr>) */
.sw6-dropdown-menu li a + a{
  border-top: 1px dashed var(--sw6-submenu-sep);
}

/* 4) Hover/Active der Unterpunkte klarer und konsistent zur Hauptleiste */
.sw6-dropdown-menu li a:hover{
  background: var(--sw6-submenu-hover) !important;
  color: var(--sw6-submenu-accent) !important;
}

.sw6-dropdown-menu li a.active{
  background: linear-gradient(90deg, rgba(33,161,121,.12), rgba(33,161,121,.04)) !important;
  color: var(--sw6-submenu-accent) !important;
  border-left-color: var(--sw6-submenu-accent) !important;
  box-shadow: inset 0 0 0 1px rgba(33,161,121,.10);
}


.sw6-dropdown-menu li a.active::before{
  opacity: 1;
}

/* 6) Der Pfeil des Hauptmens bleibt grn, aber nicht zu schrill */
.sw6-dropdown-arrow{
  color: var(--sw6-submenu-accent);
  opacity: .9;
}

/* 7) Optional: wenn die Gruppe offen ist, Hauptlink leicht highlighten */
.sw6-has-dropdown.open > .sw6-dropdown-toggle{
  background: linear-gradient(90deg, #313552 92%, #21a17910 100%);
  color: var(--sw6-submenu-accent);
  border-left: 4px solid var(--sw6-submenu-accent);
  border-radius: 0 7px 7px 0;
}
