/* === GLOBAL / BACKGROUND ===
* {
  outline: 1px solid limegreen;
}
*/
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("/icons/Firmenlogo_hintergrund.png");
  background-repeat: repeat;
  background-size: 26%;
  opacity: 0.925;
  background-position: top left;
  z-index: -1;
  pointer-events: none;
}


/* === FLEXIBLE DASHBOARD === */
.rebo-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lumo-space-l);
  align-items: stretch;
}

.rebo-box {
  flex: 1 1 calc(50% - var(--lumo-space-l));
  min-width: unset;
  max-width: 915px; /*!!!!!!*/
  height: 95.5vh;
  max-height: 95.5%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  padding: 2;
  display: flex;
  flex-direction: column;

  opacity: 0.8;

  background: rgba(70, 40, 120, 0.22); /* leichter Lila-Ton, 20–25% Deckkraft */
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: opacity 0.3s ease, box-shadow 0.4s ease;
  transform: translateY(-2px) scale(1.01);
}

.rebo-box:hover {
  opacity: 1;
}

.rebo-box-inner {
  flex-grow: 1;
  overflow-y: auto;
  padding: 8px;
  box-sizing: border-box;
  max-width: 100%;
}

.rebo-box-inner > .provider-box {
  flex: 1 1 48%;
  min-width: 360px;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fade-collapsed {
  max-height: 0 !important;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.fade-expanded {
  max-height: 1000px; /* größer als dein Content */
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}



.scrollable-dialog-content {
  max-height: 80vh;   /* oder 90vh, je nach Geschmack */
  overflow-y: auto;
  padding-bottom: 1.5rem; /* damit Button sichtbar bleibt */
}

.contact-supplier-field {
  background: rgba(70, 40, 120, 0.22); /* leichter Lila-Ton, 20–25% Deckkraft */
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: opacity 0.3s ease, box-shadow 0.4s ease;
  transform: translateY(-2px) scale(1.01);
}


/* == REBO VIEW STYLES == */
.rebo-view-root {
  background-color: white;
  border-radius: 18px;
  height: 96.5vh;
  width: 50vw;
  padding: 15px;
  box-sizing: border-box;
  overflow: hidden;

  opacity: 0.8;
  background: rgba(70, 40, 120, 0.22); /* leichter Lila-Ton, 20–25% Deckkraft */
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);

  transition: opacity 0.3s ease, box-shadow 0.4s ease;
  transform: translateY(-2px) scale(1.01);
}

.rebo-view-root:hover {
  opacity: 1;
}

.main-content {
  background-color: transparent !important;
  z-index: 1;
  flex-grow: 1;
  padding: 0px;
  border-radius: 18px;
  box-sizing: border-box;
  overflow: auto;
  width: 100%;
  height: 100%;
  margin: 0;
}

.nav-with-profile {
  margin-left: 0 !important;
  margin-right: auto !important;
  align-self: flex-start !important; /* ← DAS ist entscheidend */
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  border-radius: 18px;
  padding: 0;
}

.side-nav {
  width: 100%;
  margin-top: -5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #2e2e4d, #5c3c6f, #6f487f);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.8;
  transition: opacity 0.3s ease, box-shadow 0.4s ease;
  box-sizing: border-box;
  color: white;
  font-family: 'Montserrat', sans-serif;

  background: rgba(70, 40, 120, 0.22); /* leichter Lila-Ton, 20–25% Deckkraft */
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);

}

.side-nav:hover,
.side-nav:focus {
  opacity: 1;
  box-shadow: 0px 6px 10px #690386;
}

.center-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  flex-wrap: nowrap;
}

.full-layout {
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
}

/* === PROFILE === */
.profile-layout {
  margin: 0 0 20px 0;
  align-items: center;
}

.navbar-button {
  width: 70px;
  height: 55px;
  background: linear-gradient(135deg, #690386, #8f3aa9);
  border: none;
  border-radius: 18px;
  padding: 10px;

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;


  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  font-size: 14px;

  box-shadow:
    0 0 8px rgba(105, 3, 134, 0.4),
    inset 0 0 4px rgba(255, 255, 255, 0.1);

  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: all 0.3s ease;
}

.navbar-button:hover {
  transform: scale(1.015);
  background: linear-gradient(135deg, #7f0a9c, #ae4bd1);
  box-shadow:
    0 0 12px rgba(175, 76, 224, 0.6),
    inset 0 0 6px rgba(255, 255, 255, 0.2);
}

/* Shine Swipe */
.navbar-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  transform: skewX(-20deg);
  transition: all 0.4s ease;
}

.navbar-button:hover::before {
  animation: navbarShine 1s ease forwards;
}

@keyframes navbarShine {
  0% {
    left: -60%;
  }
  100% {
    left: 120%;
  }
}

.navbar-button:active {
  transform: scale(0.96);
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.15),
    inset 0 0 4px rgba(0, 0, 0, 0.2);
}

.navbar-button-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  gap: 4px;
}

.m365-icon {
    border-radius: 24px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.m365-label {
    font-size: 0.85em;
    font-weight: 500;
}

/* === FILE CARDS === */
.file-card, .folder-button {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  display: flex;
  gap: 12px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.file-card:hover, .folder-button:hover {
  background-color: #f3e6fa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.file-link {
  flex-grow: 1;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-link:hover {
  text-decoration: underline;
}

/* === BUTTONS === */
.file-select-button, .start-button {
  background-color: #690386;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.file-select-button:hover, .start-button:hover {
  background-color: #52026b;
}

.back-button {
  background-color: #e7ecf7;
  color: #2360c4;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.back-button:hover {
  background-color: #d0dcf7;
  color: #1645a3;
}

/* === PROFILE PICTURE HEXAGON === */
.hexagon-profile-wrapper {
  position: relative;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hexagon-logo-bg {
  position: absolute;
  width: 80%;
  height: 80%;
  background-image: url('/icons/image.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 18px;
  overflow: hidden;
  z-index: 0;
  opacity: 0.8;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.15);

    transition: opacity 0.3s ease, box-shadow 0.4s ease;
    transform: translateY(-1,8px) scale(1.01);
}

/* === NAV VIEW === */
.hex-button {
  width: 50px;
  height: 50px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-mask-image: url("/masks/hex-rounded.svg");
  -webkit-mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("/masks/hex-rounded.svg");
  mask-size: cover;
  mask-repeat: no-repeat;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.hex-button:hover {
  transform: scale(1.05);
}

.navbar-button-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
}

.hexagon-profile-image-preview {
  height: 100%;
  aspect-ratio: 1;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  object-fit: cover;
  top: 50.5%;
  left: 49.8%;
  transform: translate(-50%, -50%) rotate(330deg);
  z-index: 1;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hexagon-profile-image {
  height: 28%;
  aspect-ratio: 1;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  object-fit: cover;
  position: absolute;
  top: 50.5%;
  left: 49.8%;
  transform: translate(-50%, -50%) rotate(330deg);
  z-index: 1;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hexagon-profile-image:hover {
  transform: translate(-50%, -50%) scale(2);
}

.hexagon-profile-image-mobile {
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  object-fit: cover;
  height: 48px;
  width: 48px;
  aspect-ratio: 1;
  position: relative;
  transform: none;
  z-index: 1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  border-radius: 18px;
}

/* Interaktivität */
.hexagon-profile-image-mobile:hover {
  box-shadow: 0 0 12px rgba(105, 3, 134, 0.35), inset 0 0 4px rgba(255,255,255,0.1);
  transform: scale(1.05);
}

.hexagon-profile-image-mobile:active {
  transform: scale(0.95);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.2), inset 0 0 2px rgba(0, 0, 0, 0.2);
}

.hexagon-profile-image-mobile::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.05) 100%
  );
  transform: skewX(-20deg);
  transition: all 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.hexagon-profile-image-mobile:hover::after {
  animation: profileShine 1s ease forwards;
}

@keyframes profileShine {
  0% { left: -100%; }
  100% { left: 120%; }
}


/* === GRID === */
.fancy-grid {
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
  overflow: auto;
  min-width: 800px;
  min-height: 200px;
}

/* === SITE TITLE === */
.site-title {

  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  font-weight: 900;
  color: #690386;
  letter-spacing: -1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === MEDIA QUERIES === */
@media (max-width: 768px) {
  .rebo-box {
    flex: 1 1 100% !important;
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    max-height: 88vh;
    overflow: hidden;
  }

  .center-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
  }


  .nav-with-profile {
      align-self: flex-start !important;
      display: flex; /* sicherstellen, dass Flexbox aktiv ist */
      flex-direction: row;
      justify-content: flex-start; /* Elemente nach links ausrichten */
      align-items: center; /* vertikal mittig falls nötig */
      width: 500px;
      max-width: 100%;
      height: auto; /* automatische Höhe statt fixer Wert */
  }


  .side-nav {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-grow: 1;
      flex-wrap: wrap;
      flex-direction: row;
      padding: 10px;
      gap: 10px;
      background: linear-gradient(135deg, #2e2e4d, #5c3c6f, #6f487f);
      border-radius: 18px;
      box-sizing: border-box;
    }

  .navbar-button {
      flex: 1 1 auto;
      max-width: 90px;
      min-width: 70px;
      height: 55px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

  .main-content {
    padding: 0px;
  }

  .rebo-box-inner {
    padding: 12px;
  }

  .hexagon-profile-wrapper {
    max-width: 130px;
  }
}



@media (max-width: 520px) {

  .side-nav .navbar-button {
    width: auto;
    height: auto;
  }

  .rebo-box, .main-content, .main-layout {
    padding: 0px;
    margin: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
  }

  .center-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }


  .rebo-box-inner {
    padding: 8px;
  }

  .rebo-box {
    height: 100%;
  }

  .site-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .file-link, .file-card, .folder-button, .start-button {
    word-break: break-word;
    hyphens: auto;
  }

  .primary-button span,
  .secondary-button span,
  .tertiary-button span {
    display: none !important;
  }
}

@media (max-width: 780px) {
  .glow-card .navbar-button span {
      display: none !important;
    }
}



/* === CONFIGURATION VIEW === */

.config-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
}

.primary-button {
  /*position: sticky;
  z-index: 999;*/
  margin-left: auto;
  padding: 10px 24px;

  background: linear-gradient(145deg, #7504a9, #af4ce0);
  color: white;
  font-weight: 600;
  font-size: 14px;

  font-family: 'Montserrat', sans-serif;

  border: none;
  border-radius: 12px;
  box-shadow:
    0 0 12px rgba(175, 76, 224, 0.4),
    inset 0 0 6px rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  cursor: pointer;

  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
}

.primary-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 40%);
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.primary-button:hover::before {
  opacity: 1;
}

.primary-button:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 18px rgba(200, 80, 255, 0.6),
    inset 0 0 8px rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, #8f08c0, #cc67ff);
}

.primary-button:active {
  transform: scale(0.96);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.3),
    inset 0 0 6px rgba(0, 0, 0, 0.1);
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 12px #b951f1;
  }
  50% {
    box-shadow: 0 0 22px #e47eff;
  }
}

.primary-button.fancy-pulse {
  /*animation: neonPulse 2.5s infinite ease-in-out;*/
}

.secondary-button {
  padding: 10px 24px;
  background: linear-gradient(145deg, #003087, #0457c5);
  color: white;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;

  box-shadow:
    0 0 10px rgba(0, 48, 135, 0.25),
    inset 0 0 4px rgba(255, 255, 255, 0.1);

  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;

  display: inline-flex;
}

.secondary-button::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), transparent 40%);
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.secondary-button:hover::before {
  opacity: 1;
}

.secondary-button:hover {
  transform: scale(1.015);
  background: linear-gradient(145deg, #0045ad, #0570e2);
  box-shadow:
    0 0 14px rgba(4, 87, 197, 0.45),
    inset 0 0 6px rgba(255, 255, 255, 0.15);
}

.secondary-button:active {
  transform: scale(0.96);
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.2),
    inset 0 0 4px rgba(0, 0, 0, 0.1);
}

.tertiary-button {
  background: linear-gradient(145deg, #bfa14a, #d4af37);
  color: white;
  font-weight: 600;
  font-size: 14px;

  font-family: 'Montserrat', sans-serif;

  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;

  box-shadow:
    0 0 10px rgba(191, 161, 74, 0.25),
    inset 0 0 4px rgba(255, 255, 255, 0.1);

  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;

  display: inline-flex;
}

.tertiary-button::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), transparent 40%);
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.tertiary-button:hover::before {
  opacity: 1;
}

.tertiary-button:hover {
  transform: scale(1.015);
  background: linear-gradient(145deg, #c6aa48, #e3c652);
  box-shadow:
    0 0 14px rgba(212, 175, 55, 0.45),
    inset 0 0 6px rgba(255, 255, 255, 0.15);
}

.tertiary-button:active {
  transform: scale(0.96);
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.2),
    inset 0 0 4px rgba(0, 0, 0, 0.1);
}

.tertiary-button-final {
  background: linear-gradient(145deg, #bfa14a, #d4af37);
  color: white;
  font-weight: 600;
  font-size: 13.5px;
}

.fourth-button {
  position: sticky;
  z-index: 999;
  margin-left: auto;
  padding: 10px 24px;

  background: linear-gradient(145deg, #7504a9, #af4ce0);
  color: white;
  font-weight: 600;
  font-size: 14px;

  font-family: 'Montserrat', sans-serif;

  border: none;
  border-radius: 14px;
  box-shadow:
    0 0 12px rgba(175, 76, 224, 0.4),
    inset 0 0 6px rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  cursor: pointer;

  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.fourth-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 40%);
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.fourth-button:hover::before {
  opacity: 1;
}

.fourth-button:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 18px rgba(200, 80, 255, 0.6),
    inset 0 0 8px rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, #8f08c0, #cc67ff);
}

.fourth-button:active {
  transform: scale(0.96);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.3),
    inset 0 0 6px rgba(0, 0, 0, 0.1);
}

.cancel-button {
  background: linear-gradient(135deg, #4b0d30 0%, #8a236c 80%, #de3472 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  font-family: 'Montserrat', sans-serif;

  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;

  box-shadow:
    0 0 10px rgba(139, 35, 108, 0.22),
    inset 0 0 4px rgba(222, 52, 114, 0.11);

  transition: all 0.25s cubic-bezier(.4,2,.6,1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
}

.cancel-button::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 50%);
  transform: rotate(23deg);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.cancel-button:hover::before {
  opacity: 1;
}

.cancel-button:hover {
  transform: scale(1.015);
  background: linear-gradient(135deg, #6a154a 10%, #d24e98 90%);
  box-shadow:
    0 0 14px rgba(222, 52, 114, 0.28),
    inset 0 0 6px rgba(222, 52, 114, 0.18);
}

.cancel-button:active {
  transform: scale(0.96);
  box-shadow:
    0 0 8px rgba(222, 52, 114, 0.16),
    inset 0 0 4px rgba(222, 52, 114, 0.18);
}

.cancel-button-final {
  background: linear-gradient(145deg, #4b0d30, #8a236c);
  color: white;
  font-weight: 600;
  font-size: 13.5px;
}

@media (max-width: 520px) {
  .cancel-button span {
    display: none !important;
  }
}


.microsoftiary-button {
  min-width: 90px;
  height: 48px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-sizing: border-box;
  background:
    linear-gradient(120deg, #e7f1fa 0%, #c2d9ef 20%, #a5c7ea 45%, #62a3ea 90%, #e7f1fa 100%),
    linear-gradient(60deg, #c8e3ff 15%, #ddeaff 80%);
  color: #eaf4fc;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  border: 1.5px solid #b7cae6;
  cursor: pointer;
  box-shadow:
    0 3px 24px 0px #74b4ff45,
    0 1.5px 10px #e4f0fa88,
    0 0 0 2.5px #f0faff2a,
    inset 0 0 8px #ffffff29;
  transition: all 0.22s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  letter-spacing: 0.025em;
  background-image:
      repeating-linear-gradient(135deg, #fafdff44 0px, #fafdff44 2px, transparent 8px, transparent 18px),
      linear-gradient(120deg, #e7f1fa 0%, #c2d9ef 20%, #a5c7ea 45%, #62a3ea 90%, #e7f1fa 100%);

}

.microsoftiary-button::before {
  content: '';
  position: absolute;
  top: -80%;
  left: -60%;
  width: 220%;
  height: 220%;
  background:
    radial-gradient(circle at 70% 35%, #f5fcff55 0, transparent 60%),
    linear-gradient(135deg, #b0d1f988 10%, transparent 60%);
  opacity: 0;
  transition: opacity 0.33s;
  z-index: 1;
}

.microsoftiary-button:hover::before {
  opacity: 1;
}

.microsoftiary-button:hover {
  background:
    linear-gradient(123deg, #fbfeff 0%, #e2effc 22%, #a7d2f7 68%, #62a3ea 100%),
    linear-gradient(60deg, #e8f8ff 10%, #bddbf8 85%);
  box-shadow:
    0 2px 18px 0px #7ebcff8c,
    0 1.5px 10px #f4faffc0,
    0 0 0 2.5px #d1e6fc45;
  color: #2589d0;
}

.microsoftiary-button:active {
  transform: scale(0.96);
  box-shadow:
    0 0 10px #badcf6bb,
    0 0 4px #acc9ef77;
  background:
    linear-gradient(130deg, #e7f1fa 0%, #a5c7ea 80%, #62a3ea 100%);
  color: #237ac1;
}

.microsoftiary-button span {
  text-shadow: 0 1px 3px #ffffffaa, 0 0 2px #a5c7ea66;
}

@media (max-width: 520px) {
  .microsoftiary-button span {
    display: none !important;
  }
  .smart-card-dark .navbar-button {
    display: none !important;
  }
}

.overview-header-area {
    margin: 0 auto 26px auto;
    background: rgba(255,255,255,0.08);
    border-radius: 22px;
    box-shadow: 0 2px 20px 0 rgba(40,0,120,0.08);
    padding: 20px 24px 10px 24px;
    max-width: 900px;
    min-width: 340px;
    display: flex;
    gap: 18px;
}

.sort-box {
    background: #3a2552;
    color: #fff;
    border-radius: 12px;
    border: none;
    min-width: 160px;
    border-radius: 14px;
}

.sort-box {
  color: #fff;
}

.sort-dir-btn {
  background: #3a2552;
  color: white;
  border-radius: 12px;
}

.smart-doc-viewer {
  margin-bottom: 2.5rem;
}

overview-header-area

.smart-doc-viewer, .pdf-viewer-iframe-wrapper {
  border-radius: 24px;
  box-shadow: 0 4px 22px 0 rgba(60, 20, 120, 0.13);
  overflow: hidden;
  background: rgba(35, 24, 64, 0.98); /* wie in deinem UI */
  transition: box-shadow 0.18s;
  width: 100%;
  min-height: 340px;
  max-height: 72vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.smart-doc-viewer:hover, .pdf-viewer-iframe-wrapper:hover {
  box-shadow: 0 8px 32px 0 rgba(80, 30, 160, 0.17);
}
.smart-doc-viewer iframe,
.pdf-viewer-iframe-wrapper iframe {
  width: 100%;
  height: 600px;
  min-height: 340px;
  border: none;
  background: transparent;
  border-radius: 24px;
  display: block;
  margin: 0;
}
@media (max-width: 900px) {
  .smart-doc-viewer, .pdf-viewer-iframe-wrapper {
    max-height: 50vh;
  }
  .smart-doc-viewer iframe, .pdf-viewer-iframe-wrapper iframe {
    height: 45vh;
  }
}
@media (max-width: 600px) {
  .smart-doc-viewer, .pdf-viewer-iframe-wrapper {
    border-radius: 16px;
    max-height: 40vh;
  }
  .smart-doc-viewer iframe, .pdf-viewer-iframe-wrapper iframe {
    border-radius: 16px;
    height: 38vh;
  }
}


.contact-combo-item-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 12px;
  min-width: 0;
  max-width: 99vw;
  background: transparent;
}

.contact-combo-label-vertical {
  font-weight: 700;
  font-size: 15px;
  color: #202535;
  white-space: normal;
  line-height: 1.2;
  margin-bottom: 1px;
}

.contact-combo-details-vertical {
  color: #7b8594;
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
}

@media (max-width: 520px) {
  .contact-combo-item-vertical {
    padding: 10px 10px;
    gap: 1px;
  }
  .contact-combo-label-vertical {
    font-size: 14px;
  }
  .contact-combo-details-vertical {
    font-size: 11px;
  }
}



.provider-button {
  width: 50px;
  height: 50px;
  padding: 0;
  background-color: #ffffff;
  border: 2px solid transparent;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease-in-out;
  cursor: pointer;
}

.provider-button:hover {
  box-shadow: 0 4px 12px rgba(105, 3, 134, 0.25);
  transform: scale(1.05);
  border: 2px solid rgba(105, 3, 134, 0.2);
}

.provider-button.active {
  border: 2px solid #690386;
  box-shadow: 0 0 8px rgba(105, 3, 134, 0.4), inset 0 0 4px rgba(255,255,255,0.2);
  transform: scale(1.08);
}

.provider-button img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.fix-sync-button {
  padding: 0 16px !important;
  height: 100% !important;
}


@media (max-width: 768px) {
  .save-button {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .save-button {
    top: 10px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

.floating-card {
  background: linear-gradient(
        135deg,
        #e0b3ff 31%,     /* zartes Hellviolett */
        #cc66ff 20%,    /* gesättigtes Lila */
        #ffb3ff 49%    /* leichtes Rosa */
      );
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 16px;
  transition: box-shadow 0.2s ease-in-out, transform 0.1s ease-in-out;
  margin-bottom: 16px;
}

.floating-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.mandant-info-static-secondary {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    border-left: 5px solid #432c61;
    font-size: clamp(1rem, 1.1vw, 1.3rem);
    padding: 12px;
    margin-top: 8px; margin-bottom: 6px;
    border-radius: 10px;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.04);
}


.mandant-info-static {
    background: #f9f6ff;
    border-left: 5px solid #432c61;
    font-size: clamp(1rem, 1.1vw, 1.3rem);
    padding: 12px;
    margin-top: 8px; margin-bottom: 6px;
    border-radius: 10px;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.04);
}

/* Mandant-Info oben extra betonen */

.mandant-info {
  background: #f9f6ff;
  border-left: 5px solid #432c61;
  font-size: clamp(1rem, 1.1vw, 1.3rem);
  padding: 12px 18px;
  margin-top: 8px;
  margin-bottom: 6px;
  border-radius: 10px;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.04);

  /* Button-Look */
  display: inline-block;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  font-weight: 500;
  user-select: none;
  box-shadow: 0 0 12px rgba(67, 44, 97, 0.5);
  transform: translateY(-1px);
}

/* Hover Glow-Effekt */
.mandant-info:hover {
  background: #f2e9ff;
  box-shadow: 0 0 12px rgba(67, 44, 97, 0.5);
  transform: translateY(-1px);
}

/* Klick-Effekt */
.mandant-info:active {
  transform: translateY(1px);
  box-shadow: 0 0 6px rgba(67, 44, 97, 0.4);
}


.provider-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* === RESPONSIVE (unter 768px) === */
@media (max-width: 768px) {
  .provider-row {
    flex-direction: column;
    gap: 12px;
  }

  .save-button {
    width: 100%;
    margin: 0 0 12px 0;
    text-align: center;
  }
}


/* === SMART PROCESS LIVE VIEW STYLING === */

.smart-process-wrapper {
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  transition: box-shadow 0.3s ease;
}

.smart-process-wrapper:hover {
  box-shadow: 0 4px 18px rgba(105, 3, 134, 0.15);
}

.invoice-box {
  background-color: #f9f9f9;
  padding: 0.75rem 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  min-width: 0;
  flex: 1 1 86%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 420px) {
  .invoice-box {
      flex: 1 1 calc(50% - 0.5rem);
      max-width: calc(50% - 0.5rem);
    }
}

/* ≥ 640px: 2 Spalten */
@media screen and (min-width: 540px) {
  .invoice-box {
    flex: 1 1 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
  }
}

/* ≥ 1024px: 3 Spalten */
@media screen and (min-width: 1024px) {
  .invoice-box {
    flex: 1 1 calc(32.88% - 0.5rem);
    max-width: calc(32.88% - 0.5rem);
  }
}

/* ≥ 1280px: 4 Spalten */
@media screen and (min-width: 1280px) {
  .invoice-box {
    flex: 1 1 calc(24% - 0.5rem);
    max-width: calc(24% - 0.5rem);
  }
}

.invoice-box vaadin-date-time-picker {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  --vaadin-field-default-width: 0;
}

.invoice-box vaadin-date-picker,
.invoice-box vaadin-time-picker {
  min-width: 45%;
  max-width: 100%;
  --vaadin-field-default-width: 0;
}



/* TreeGrid custom compact style */

.smart-process-grid::part(row) {
  border-radius: 12px;
  overflow: hidden;
  background: transparent !important;
  margin-bottom: 6px;
}



.smart-process-grid::part(cell),
.smart-process-grid::part(row) {
  background: transparent !important;
}

.smart-process-grid .vaadin-grid-cell-content {
  background: transparent !important;
  color: white; /* falls Text sonst schwer lesbar ist */
}



.smart-process-grid::part(row):hover {
  box-shadow: 0 4px 12px rgba(105, 3, 134, 0.08);
}


/* Status Badge Styles */
.status-badge {
  font-size: 12px;
  padding: 4px 10px;
  font-weight: 600;
  border-radius: 10px;
  display: inline-block;
  color: white;
  text-align: center;
  min-width: 80px;
}

.status-completed {
  background-color: #28a745;
}

.status-failed {
  background-color: #dc3545;
}

.status-warning {
  background-color: #ffc107;
  color: #222;
}

.status-pending {
  background-color: #007bff;
}

.status-running {
  background-color: #17a2b8;
}

/* Step indicator style */
.step-badge {
    background-color: #eee;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: var(--lumo-font-size-s);
    color: var(--lumo-secondary-text-color);
    font-weight: 600;
    word-break: break-word;
    hyphens: auto;
}

/* TextArea compact style */
.fancy-textarea {
  font-size: 12px;
  padding: 6px 10px;
  height: 72px;
  min-height: 60px;
  max-height: 120px;
  line-height: 1.4;
  resize: vertical;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Datei-Zeile Styling */
.file-name-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

/* Details column sizing */
.smart-process-grid .vaadin-grid-cell:last-child {
  max-width: 300px;
}

/* Indent padding */
.smart-process-grid ::part(expander) {
  margin-left: 6px;
}

/* === Mobile Fixes === */
@media (max-width: 768px) {
  .smart-process-grid .vaadin-grid-cell-content {
    font-size: 12px;
    padding: 5px 8px;
  }

  .fancy-textarea {
    height: auto;
  }

  .status-badge {
    min-width: 60px;
    font-size: 11px;
    padding: 2px 8px;
  }
}

/* === COMPACT PROCESS TREE OVERRIDES === */

.smart-process-grid .vaadin-grid-row {
  border-radius: 12px;

}

.smart-process-grid .vaadin-grid-row:hover {
  background: transparent !important;
}

/* Verhindert ungewollte Rahmen rund um Zellen */
.smart-process-grid .vaadin-grid-cell {
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Kompakt: nur geöffnete Items nehmen Platz ein */
.smart-process-grid {
  --vaadin-grid-expanded-row-height: auto;
  --vaadin-grid-row-height: auto;
}

/* TextArea Anpassung – keine Ecken, kein Schatten */
.fancy-textarea {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font-family: monospace;
  font-size: 12px;
  padding: 4px;
  line-height: 1.4;
  color: #333;
  border: none;
  resize: vertical;
  min-height: 48px;
}

.process-header {
  background-color: #f8f5fc;
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 10px;
  box-shadow: inset 0 0 2px rgba(105, 3, 134, 0.06);
}


/* Details-Box dynamisch mitwachsen */
.smart-process-grid .vaadin-grid-cell:last-child {
  vertical-align: top;
  white-space: pre-wrap;
}


/* Entfernt harte Zellen */
.smart-process-grid .vaadin-grid-cell {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.compact-step-row {
  display: flex;
  flex-wrap: wrap; /* 🔥 erlaubt Umbruch */
  gap: 12px;
  padding: 6px 12px;
  border-left: 4px solid #432c61;
  background: #f8f8fb;
  border-radius: 8px;
  margin-bottom: 6px;
  align-items: center;
  transition: background-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}


.compact-step-row:hover {
  background-color: #f0edf8;
}

.mandant-info-compact {
  font-size: var(--lumo-font-size-s);
  color: var(--lumo-secondary-text-color);
}

.smart-process-grid {
  color: white;
  background: transparent !important;
}

.smart-process-grid::part(expander) {
  color: white !important;
  fill: white !important;   /* wichtig für SVGs */
}

vaadin-grid-tree-toggle::part(toggle)::before {
  color: white !important;
}


/* TextArea eleganter */
.smart-process-grid .fancy-textarea {
  background: transparent !important;
  border: none;
  font-family: 'Fira Code', monospace;
  font-size: 12.5px;
  color: #333;
  border-left: 3px solid #432c61;
  padding-left: 10px;
  margin-top: 4px;
}


.mobile-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
  position: sticky;
  top: 0;
  color: white;
  min-height: 70px;
  gap: 8px;
  padding: 4px 8px; /* oben/unten: 6px, links/rechts: 12px */
  box-sizing: border-box; /* stellt sicher, dass Padding und Border in der Gesamtgröße enthalten sind */
  overflow: visible;
  background: rgba(70, 40, 120, 0.22); /* leichter Lila-Ton, 20–25% Deckkraft */
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: opacity 0.3s ease, box-shadow 0.4s ease;
  opacity: 0.8;
}

.mobile-nav:hover,
.mobile-nav:focus {
  opacity: 1;
  box-shadow: 0px 6px 10px #690386;
}

/* Innenaufteilung: Profilbild links, Rest rechts */
.mobile-nav-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  gap: 5px;
  overflow: visible;
}

/* Rechte Seite (alle Buttons) */
.mobile-nav-right {
  padding-right: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;

  flex: 1 1 auto;
  min-width: 0;

  gap: 8px;
  margin-top: 2px;

  padding-top: 4px;
  padding-bottom: 4px;

  overflow-x: auto;           /* ← KEY */
  overflow-y: visible;

  -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
  scrollbar-width: none;             /* Firefox */
}

.mobile-nav-right::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.mobile-nav-right > * {
  flex: 0 0 auto;  /* ← DAS ist der Key */
}

.mobile-nav-right .navbar-button {
  margin-top: -3px; /* 🤓 optisches Feintuning */
}

.dot-separator {
  opacity: 0.6;
  font-size: 12px;
  transform: translateY(-0.5px);
}

.dot-separator-2 {
  color: white;
  opacity: 0.6;
  font-size: 12px;
  transform: translateY(-0.5px);
}

/* Buttons kompakt & gleichmäßig */
.mobile-nav .navbar-button {
  flex: 0 0 auto;
  min-width: 60px;
  max-width: 90px;
  height: 44px;
  padding: 5px 8px;
  font-size: 14px;
}

.mobile-nav .navbar-button:hover {
  transform: scale(1.04);
  box-shadow: 0 2px 6px rgba(175, 76, 224, 0.3);
  background: linear-gradient(135deg, #8f28ba, #c367ec);
}

/* Inhalt noch enger */
.mobile-nav .navbar-button-content {
  gap: 2px;
  font-size: 12px;
}

/* Profilbild */
.mobile-nav .hexagon-profile-image-mobile {
  margin-left: 4px;
  flex-shrink: 0;
}


@media (max-width: 768px) {
    .mobile-nav {
        display: flex !important;
    }

    .nav-with-profile {
        display: none !important;
    }
}

.folder-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.03);
}

.folder-card:hover {
  background-color: #eef2ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.folder-card .folder-name {
  font-weight: 500;
  font-size: 14px;
  color: #333;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-card .folder-icon {
  color: #666;
  font-size: 16px;
  flex-shrink: 0;
}

.folder-card .folder-select-button {
  margin-left: auto;
  white-space: nowrap;
  background-color: #2563eb;
  color: white;
  border-radius: 6px;
  font-size: 13px;
  padding: 6px 12px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.folder-card .folder-select-button:hover {
  background-color: #1e40af;
}

.folder-content {
  opacity: 1;
  transition: opacity 200ms ease;
}

.folder-content.fade-out {
  opacity: 0;
}

.plain-button {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 6px;
  border-radius: 50%;
  color: #cc0000;
  background-color: #e0f7fa;
}

.plain-button:hover {
  background-color: #e0f7fa;
  color: #007c91;
}

.setup-container {
  max-width: 900px;           /* realistisch für Tablet + Desktop */
  margin: 0 auto;             /* horizontal zentriert */
  margin-top: -35px;
  padding: 1rem;            /* schöner Innenabstand */
  box-sizing: border-box;
  max-height: 100vh;
  overflow-y: hidden;
}

@media (max-width: 768px) {
  .setup-container {
    padding: 1rem;
    max-width: 100%;          /* auf Mobil schön randfüllend */
  }
}

@media (max-width: 480px) {
  .setup-container {
    padding: 1rem;
    box-sizing: border-box;         /* stellt sicher, dass padding nicht überläuft */
  }

  .rebo-box-inner {
    padding: 0.5rem;                  /* falls du innen noch extra Abstand brauchst */

  }

  .rebo-view-root {
    margin-top: 0 !important;      /* ggf. das -25px für mobile wieder neutralisieren */
  }

  .config-wrapper {
    width: 100%;
  }
}


.user-details-view {
    max-width: 100%;
    gap: 20px;
}

.fanfy-field-editor {
  background: #5c3c6f;
  border-radius: 14px;
  box-shadow: 0 0 0 4px rgba(120, 60, 150, 0.10), 0 6px 36px 0 rgba(40, 14, 60, 0.22);
  padding: 2.2rem 1.3rem 1.3rem 1.3rem;
  color: #fff;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  transition: box-shadow 0.18s;
  position: relative;
  margin: auto;
  border: 2.5px solid #36204a;

}

:fanfy-field-editor:hover {
  opacity: 1;
}

.fanfy-field-editor .vaadin-form-layout {
  width: 100%;
}

.fanfy-field-editor label,
.fanfy-field-editor .vaadin-text-field label,
.fanfy-field-editor .vaadin-text-field::part(label) {
  color: #eee !important;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 2px;
  max-width: 100%;
}

.fanfy-field-editor .vaadin-text-field,
.fanfy-field-editor .vaadin-text-field input {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
}

.fanfy-field-editor .vaadin-button {
  background: linear-gradient(92deg, #a05eff 0%, #ff77e8 100%);
  color: #fff;
  border-radius: 1.2em;
  font-weight: 600;
  font-size: 1.08em;
  margin-top: 14px;
  box-shadow: 0 2px 18px rgba(140, 72, 230, 0.11);
}

.fanfy-field-editor .vaadin-horizontal-layout {
  justify-content: center;
  gap: 18px;
}

@media (max-width: 950px) {
  .fanfy-field-editor {
    padding: 1.1rem 0.7rem;
  }
  .fanfy-field-editor .primary-button {
    width: 100%;
  }
}

@media (min-width: 660px) {
  .fanfy-field-editor {
    width: 30vw;
  }
}




.glow-card {
  /*background: linear-gradient(
      135deg,
      #e0b3ff 31%,     /* zartes Hellviolett */
      /*#cc66ff 20%,    /* gesättigtes Lila */
     /* #ffb3ff 49%    /* leichtes Rosa */
    /*);
    border-radius: 20px;
    padding: 1rem;
}

.glow-card:hover {
 /* box-shadow:
    0 6px 16px rgba(128, 0, 128, 0.6),
    0 0 32px 8px rgba(186, 85, 211, 0.7); */
}

/* Hintergrund des Overlays (also des Dialog-Fensters) */
vaadin-dialog-overlay::part(overlay) {

  background: #5c3c6f;
  color: white;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);

  background: rgba(70, 40, 120, 0.22); /* leichter Lila-Ton, 20–25% Deckkraft */
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Hintergrund des Modal-Vorhangs (also das Graue dahinter) */
vaadin-dialog-overlay::part(backdrop) {
  background-color: rgba(0, 0, 0, 0.35);
  color: white;
}

/* Header (z.B. Titelzeile) */
vaadin-dialog-overlay::part(header) {
  --lumo-header-text-color: white;
  background: #5c3c6f;
  padding: 1em;
}
/* Footer (z.B. mit Buttons) */
vaadin-dialog-overlay::part(footer) {
  background: #5c3c6f;
  padding: 1em;

  background: rgba(70, 40, 120, 0); /* leichter Lila-Ton, 20–25% Deckkraft */
}

/* Inhalt */
vaadin-dialog-overlay::part(content) {
  color: #2e2e4d;
  border-radius: 18px;
  overflow: hidden;
}


/**/

.smart-card-mini {
  background: linear-gradient(135deg, #ffe0f7 60%, #f3c7ff 100%);
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(124, 42, 232, 0.07);
  margin: 1.2rem auto;
  padding: 1.1rem 1.4rem;
  max-width: 580px;
  color: #322143;
  transition: box-shadow 0.2s;
}
.smart-card-mini a {
  text-decoration: underline dotted;
  font-weight: 500;
  color: #7c2ae8;
}
.smart-card-mini .status-hover-label {
  display: inline-block;
  margin-top: 0.5em;
  color: #8665a9;
  cursor: pointer;
  position: relative;
  font-size: 0.97em;
  font-weight: 500;
}
.smart-card-mini .status-popup {
  display: none;
  position: absolute;
  z-index: 20;
  left: 0;
  top: 140%;
  min-width: 210px;
  background: #f3c7ff;
  box-shadow: 0 2px 8px rgba(92, 60, 111, 0.11);
  padding: 0.7em 1em;
  border-radius: 10px;
  color: #3e1c49;
}
.smart-card-mini .status-hover-label:hover .status-popup {
  display: block;
}

.smart-card-dark {
   background: #2d2640;
   box-shadow: 0 4px 24px rgba(0,0,0,0.18);
   border-radius: 16px;
   margin: 1.4rem auto;
   padding: 1.3rem 1.5rem;
   width: 88%;
   color: #fff;
   font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
   transition: box-shadow 0.2s;
   flex-wrap: wrap;
   gap: 0.5em;
   display: flex;
   flex-direction: column;
   /* add max-width for large screens, so it's not too wide */
   max-width: 960px;

 }

 /* Child layouts können auch nochmal optimiert werden */
 .smart-card-main-row,
 .smart-card-second-row {
   display: flex;
   flex-wrap: wrap;
   gap: 1em;
   align-items: center;
   justify-content: flex-start;
 }

 /* Mini-label etc. */
 .smart-card-dark .mini-label {
   background: #464057;
   color: #9ea5b9;
   font-size: 0.93em;
   border-radius: 7px;
   padding: 0.17em 0.7em;
   font-weight: 500;
 }
 .smart-card-dark .smart-note {
   display: block;
   background: #232039;
   color: #9ea5b9;
   margin-top: 1.1em;
   padding: 0.48em 1em 0.4em 1em;
   border-radius: 9px;
   font-size: 0.98em;
   font-style: italic;
   max-width: 90%;
   textOverflow: ellipsis;
   white-space: no-wrap;
   overflow: hidden;
 }

 /* Responsive Anpassung: Mobile First ab ca. 600px */
 @media (max-width: 650px) {
   .smart-card-dark {
     width: 88%;
     min-width: 0;
     margin: 1rem 0.2rem;
     padding: 1.1rem 0.6rem;
     max-width: 99vw;
   }
   .smart-card-main-row,
   .smart-card-second-row {
     flex-direction: column;
     align-items: flex-start;
     gap: 0.6em;
   }
   .smart-card-dark span,
   .smart-card-dark a {
     font-size: 0.98em;
     word-break: break-word;
   }
   .smart-card-dark .mini-label {
     font-size: 0.90em;
     padding: 0.12em 0.6em;
   }
   .smart-card-dark .smart-note {
     font-size: 0.95em;
     padding: 0.38em 0.6em 0.34em 0.6em;
   }
 }

 .smart-badge-ellipsis {        /* Passe nach Bedarf an! */
   /*display: inline-block;
   white-space: nowrap;*/
   overflow: hidden;
   /*text-overflow: ellipsis;*/
   vertical-align: middle;
 }


 /* Noch kompakter für ganz kleine Screens (ab ca. 400px) */
 @media (max-width: 420px) {
   .smart-card-dark {
     padding: 0.7rem 0.1rem;
     font-size: 0.95em;
   }
 }

 /* Optional: Touch-Feedback */
 .smart-card-dark:active {
   box-shadow: 0 2px 8px rgba(0,0,0,0.26);
   filter: brightness(0.98);
 }


.smart-card-main-row,
.smart-card-second-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: center;
}
@media (max-width: 600px) {
  .smart-card-main-row,
  .smart-card-second-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1em;
  }
}


.smart-card {
  transition: transform 0.2s ease;
}

.smart-card:hover {
  transform: scale(1.005);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}



.smart-card {
  background: #23253a;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(10,10,40,0.12);
  padding: 24px 28px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: box-shadow 0.2s;
}
.smart-card:hover {
  box-shadow: 0 6px 32px rgba(32,32,72,0.18);
}
.smart-card-title {
  color: #fff;
  font-size: 1.18rem;
  font-weight: 600;
}
.smart-card-info {
  color: #b3b8d8;
  font-size: 1rem;
}
.smart-card-badge {
  position: absolute;
  top: 22px;
  right: 28px;
  padding: 3px 13px;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 14px;
  background: #27347a;
  color: #fff;
  letter-spacing: 0.02em;
}
.badge-paid { background: #21b26b; }
.badge-open { background: #eaaa28; }
.badge-draft { background: #526cff; }









/* Stil für das Grid mit dem Klassennamen "delusional-grid" */
.delusional-grid::part(cell),
.delusional-grid::part(body-cell),
.delusional-grid::part(row) {
  border: none !important;
  box-shadow: none !important;
  background: #5c3c6f;

  background: rgba(70, 40, 120, 0); /* leichter Lila-Ton, 20–25% Deckkraft */
}

.delusional-grid::part(details-cell) {
  background: #5c3c6f;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); /* Safari-Support */
  border-radius: 14px;
  padding: 0.5rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  border: none;
  overflow: visible;

  background: rgba(70, 40, 120, 0); /* leichter Lila-Ton, 20–25% Deckkraft */
}

.delusional-grid-wrapper,
.delusional-grid {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;

  background: rgba(70, 40, 120, 0); /* leichter Lila-Ton, 20–25% Deckkraft */
}

.delusional-grid::part(row[selected]),
.delusional-grid::part(body-row[selected]) {
  background: rgba(120, 80, 180, 0.22) !important; /* Sanfter lila Glow */
  transition: background 0.18s;
  border-radius: 14px;
}
.delusional-grid::part(row):hover,
.delusional-grid::part(body-row):hover {
  background: rgba(120, 80, 180, 0.08); /* Nur leicht lila beim Hover */
  border-radius: 14px;
}
.smart-card-dark-echo {
  transition:
    box-shadow 0.18s cubic-bezier(.4,2,.55,.44),
    transform 0.16s cubic-bezier(.44,1.4,.58,.98);
}

.smart-card-dark-echo:hover,
.smart-card-dark-echo:focus-within {
  box-shadow: 0 6px 24px 0 rgba(120,80,180, 0.18), 0 1.5px 3px 0 rgba(0,0,0,0.09);
  transform: translateY(-7px) scale(1.014);
  z-index: 9;
}



vaadin-text-field {
     --vaadin-input-field-background: #fafbfc;
     --vaadin-input-field-border-color: #e0e0e0;
     --vaadin-input-field-border-width: 2px;
     --vaadin-input-field-border-radius: 10px;
     --vaadin-input-field-focus-border-color: #0073e6; /* Leuchtendes Blau */
     --vaadin-input-field-value-color: #212121;
     --vaadin-input-field-placeholder-color: #7D7B7A;
     transition: box-shadow 0.2s;
}


.centered-vertical-layout {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 420px;
  z-index: 1000;
}

.chip-bar {
  margin: 2px 4px;
}

.smart-filter-chip {
  display: flex;
  align-items: center;
  border-radius: 16px;
  background: #33204c;
  padding: 0.33em 0.7em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.11);
  margin-left: 0.45em;
  gap: 0.66em;
  font-size: 0.97em;
  flex-wrap: wrap;
}

.chip-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.33em;
}

.chip-field-group {
  display: flex;
  align-items: center;
}

.dot-separator-2 {
  font-size: 1.1em;
  margin: 0 0.26em;
  align-self: center;
  color: #dabfff;
  transition: margin 0.2s, font-size 0.2s;
}

/* Button-Group */
.button-group {
  display: flex;
  gap: 0.33em;
  align-items: center;
  margin-left: 0.5em;
}
.smart-filter-chip .check {
  color: #63f2da;
  background: #232039;
  border-radius: 25px;
}
.smart-filter-chip .delete {
  color: #ff616d;
  background: #232039;
  border-radius: 25px;
}

/* Input-Felder Styling */
.smart-filter-chip {
  display: flex;
  align-items: center;
  border-radius: 20px;
  background: #33204c;
  padding: 0.33em 0.7em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.11);
  margin-left: 0.45em;
  gap: 1.2em;
  font-size: 0.97em;
  flex-wrap: wrap;
}

.attr-comp-group,
.value-btn-group {
  display: flex;
  align-items: center;
  gap: 0.33em;
}

.dot-separator-2 {
  font-size: 1.1em;
  color: #dabfff;
}

.value-btn-group .check {
  color: #63f2da;
  background: #232039;
  border-radius: 25px;
}
.value-btn-group .delete {
  color: #ff616d;
  background: #232039;
  border-radius: 25px;
}

/* Input-Felder Styling */
.smart-filter-chip vaadin-combo-box,
.smart-filter-chip vaadin-number-field,
.smart-filter-chip vaadin-date-picker,
.smart-filter-chip select,
.smart-filter-chip input[type="number"] {
  background: white;
  color: #232039;
  border: none;
  border-radius: 14px;
  font-size: 0.99em;
  padding: 0.13em 0.6em;
  min-width: 70px;
}

.smart-filter-chip vaadin-text-field,
.smart-filter-chip vaadin-number-field,
.smart-filter-chip vaadin-date-picker {
  background: transparent !important;
  border-radius: 14px;
}

.smart-filter-chip.readonly {
  background: #362755;
  padding: 0.18em 0.55em;
  border-radius: 14px;
  gap: 0.22em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.09);
  min-width: 0;
  font-size: 0.97em;
  flex-wrap: nowrap;
  align-items: center;
  transition: all 0.12s cubic-bezier(.47,1.64,.41,.8);
}

.smart-filter-chip.readonly {
  background: #33204c;
  padding: 0.25em 0.8em;
  border-radius: 14px;
  color: #f5f3ff; /* <-- helle Grundfarbe */
  font-size: 1em;
}

.smart-filter-chip.readonly .label-readonly-layout {
  gap: 0.6em;
  color: #f5f3ff;
  font-size: 1em;
  font-family: inherit;
  font-weight: 500;
}

.smart-filter-chip.readonly .label-readonly-layout label,
.smart-filter-chip.readonly .label-readonly-layout .readonly-label,
.smart-filter-chip.readonly .label-readonly-layout span {
  color: #f5f3ff !important;
  background: transparent !important;
  user-select: none;
  padding: 0 0.13em;
  border-radius: 6px;
  font-size: 1em;
}

.smart-filter-chip.readonly .dot-separator-2 {
  font-size: 1em;
  margin: 0 0.09em;
  color: #bb9cf0;
  user-select: none;
}

.smart-filter-chip.readonly .readonly-delete-btn {
  margin-left: 0.5em;
  display: flex;
  align-items: center;
}

.smart-filter-chip.readonly .delete {
  color: #ff616d;
  background: #241a32;
  border-radius: 19px;
  min-width: 28px;
  min-height: 28px;
  box-shadow: none;
  padding: 0 0.1em;
}


@media (max-width: 530px) {
  .smart-filter-chip.readonly {
    padding: 0.16em 0.13em;
    font-size: 0.97em;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 95vw;
    gap: 0.15em;
    margin: 0.18em 0;
  }
  .smart-filter-chip.readonly .label-readonly-layout {
    flex-wrap: wrap;
    width: 100%;
    font-size: 1em;
  }
  .smart-filter-chip.readonly .readonly-delete-btn {
    margin-left: 0;
    margin-top: 0.09em;
  }
}


/* RESPONSIVE: Blöcke untereinander, Felder 100% */
@media (max-width: 620px) {
  .smart-filter-chip {
    flex-direction: column !important;
    align-items: stretch !important;
    border-radius: 18px;
    gap: 0.55em;
    width: 98vw;
    margin: 0.3em 0;
  }
  .attr-comp-group,
  .value-btn-group {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.22em;
    width: 100%;
  }
  .attr-comp-group > *,
  .value-btn-group > * {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .dot-separator-2 {
    text-align: center;
    margin: 0.15em 0;
    font-size: 1.3em;
  }
}



vaadin-date-picker::part(input-field) {
    background: white !important;
    color: #232039 !important; /* für gleiche Schriftfarbe */
    border-radius: 14px !important;
    border: none !important;
}

.smart-header .header-row1,
.smart-header .header-row2 {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

@media (max-width: 650px) {
    .smart-header .header-row1 {
        flex-direction: column;
        align-items: stretch;
    }
    .smart-header .header-row2 {
        flex-direction: column;
        align-items: stretch;
        margin-top: 0.7em;
    }
}



.smart-filter-bar {
  display: flex;
  flex-wrap: wrap;             /* <-- Lässt die Filterchips umbrechen */
  align-items: flex-start;
  gap: 0.7em 5em;            /* Zeilen/Spalten-Abstand */
}
.smart-filter-bar .smart-filter-chip {
  margin: 0;
}
.smart-filter-bar .search-field {
  flex: 1 1 200px;             /* Suchfeld flexibel, min 250px */
  min-width: 50%;
  max-width: 350px;
}

hr {
  border: none;
  border-top: 2px solid #2d2640;
  height: 0;
  width: 95%;
  opacity: 0.8;
  border-color: white;
}

.tenant-card {
  border: 1px solid var(--lumo-contrast-10pct);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--lumo-base-color);
  box-shadow: var(--lumo-box-shadow-s);
}

.tenant-card-title {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 0.5rem;
}

.tenant-card-desc {
  background: var(--lumo-contrast-5pct);
  border-radius: 6px;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
  text-align: left;
}

.tenant-card-content {
  margin-top: 0.5rem;
}

/* Card */
.tenant-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
    gap: 12px;
    width: 360px;
}

/* Header */
.tenant-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tenant-icon {
    width: 28px;
    height: 28px;
}

.tenant-card-title {
    font-weight: 600;
    font-size: 1.2em;
}

/* MICOIN-Button Basis */
.micoin-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    background: #655180;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    width: 100%;
    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: background 0.2s, transform 0.15s;
}

/* Hover & Active */
.micoin-button:hover {
    background: linear-gradient(145deg, #7504a9, #af4ce0);
    transform: translateY(-1px);
}

.micoin-button:active {
    background: #655180;
    transform: scale(0.98);
}

/* mobile-nav-Icon */
.mobilenav-icon {
  width: 1.5em;
  height: 1.5em;
}

/* Icon */
.micoin-icon {
  width: 2em;
  height: 2em;
}

/* Label */
.micoin-label {
    font-weight: 500;
    font-size: 0.95em;
    color: white;
}

.micoin-info-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    color: #fff;
    text-align: center;

}

.micoin-package-layout {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 20px;

    width: 100%;

    padding: 20px 16px 10px 16px; /* 🔥 NEU: Außenabstand */

    overflow-y: auto;
    max-height: 85vh;
}

.micoin-card {
    flex: 1 1 220px;
    max-width: 240px;
    max-height: 95 vh;

    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 12px; /* vorher 20px */

    text-align: center;
    backdrop-filter: blur(10px);

    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    transition: all 0.2s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
}


.micoin-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    background: rgba(70, 40, 120, 0.22);
}

.micoin-card-img {
    width: 64px;
    height: 68px;
    margin-bottom: 8px;
}

.micoin-card-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 4px;
}

.micoin-card-coins {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffe184;
    margin-bottom: 6px;
}

.micoin-card-price {
    font-size: 1em;
    color: #ddd;
    margin-bottom: 14px;
}

.micoin-badge-promo {
    font-size: 0.75em;
    background: linear-gradient(45deg, #ff9800, #ff5722);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: bold;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.micoin-badge-scarcity {
    background: linear-gradient(45deg, #ffd700, #ffb300);
    color: #222;
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: bold;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.micoin-card-bonus {
    font-size: 0.85em;
    color: #4caf50;
    margin-bottom: 6px;
    font-weight: 500;
}

.micoin-card-subinfo {
    font-size: 0.8em;
    color: #aaa;
    margin-top: -6px;
    margin-bottom: 12px;
}

.micoin-card-highlight {
    border: 2px solid rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
    background: rgba(80, 50, 140, 0.28);
}

.micoin-card-highlight:hover {
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

.micoin-badge-recommended {
    background: linear-gradient(45deg, #4caf50, #2e7d32);
    color: white;
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: bold;
    margin-bottom: 6px;
}

.micoin-buy-button {
    background: linear-gradient(135deg, #ffcc33, #ff9900);
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    width: 100%;
    transition: all 0.2s ease-in-out;
}

.micoin-buy-button:hover {
    background: linear-gradient(135deg, #ffdd55, #ffaa33);
    transform: scale(1.05);
}

/* === CHECKBOX STYLING === */
vaadin-checkbox.consent-checkbox::part(checkbox) {
  background-color: white;   /* weiß */
  border: 1px solid #633e7e; /* lila Rahmen */
  border-radius: 8px;        /* abgerundet */
  width: 20px;
  height: 20px;
  color: white;
}

/* Checkbox aktiv */
vaadin-checkbox.consent-checkbox[checked]::part(checkbox) {
  background-color: white;
  border: 2px solid black; /* beim Haken stärkerer Rahmen */
}

/* Haken */
vaadin-checkbox.consent-checkbox[checked]::part(checkbox)::after {
  color: black; /* schwarzer Haken */
}

/* Label neben Checkbox */
vaadin-checkbox.consent-checkbox::part(label) {
  color: white;        /* Schriftfarbe */
  font-weight: 500;    /* etwas fetter */
  font-size: 12px;     /* kleinere Schrift */
}

consent-ref-checkbox.consent-ref-checkbox::part(checkbox) {
  background-color: white;   /* weiß */
  border: 1px solid #633e7e; /* lila Rahmen */
  border-radius: 8px;        /* abgerundet */
  width: 20px;
  height: 20px;
  color: white;
}

/* Checkbox aktiv */
consent-ref-checkbox.consent-ref-checkbox[checked]::part(checkbox) {
  background-color: white;
  border: 2px solid black; /* beim Haken stärkerer Rahmen */
}

/* Haken */
consent-ref-checkbox.consent-ref-checkbox[checked]::part(checkbox)::after {
  color: black; /* schwarzer Haken */
}

/* Label neben Checkbox */
consent-ref-checkbox.consent-ref-checkbox::part(label) {
  color: black;        /* Schriftfarbe */
  font-weight: 500;    /* etwas fetter */
  font-size: 12px;     /* kleinere Schrift */
}


/* === NUMBER FIELD (dayOfMonth) === */
vaadin-number-field.custom-input::part(input-field) {
  background-color: white;
  border: 1px solid #633e7e;
  border-radius: 8px;
  color: black;
  font-size: 14px;
}
vaadin-number-field.custom-input::part(label) {
  color: white;
}


/* === COMBOBOX (weekdayCombo + scheduleCombo) === */
vaadin-combo-box.custom-input::part(input-field) {
  background-color: white;
  border: 1px solid #633e7e;
  border-radius: 8px;
  color: black;
  font-size: 14px;
}
vaadin-combo-box.custom-input::part(label) {
  color: white;
}



vaadin-text-field,
vaadin-select,
vaadin-combo-box,
input,
textarea,
select {
    font-size: 16px; /* verhindert Mobile Zoom */
}




/* === TIME PICKER (timePicker) === */
vaadin-time-picker.custom-input::part(input-field) {
  background-color: white;
  border: 1px solid #633e7e;
  border-radius: 8px;
  color: black;
  font-size: 14px;
}
vaadin-time-picker.custom-input::part(label) {
  color: white;
}

/* Generell alle custom-input Felder */
vaadin-text-field.custom-input::part(label),
vaadin-number-field.custom-input::part(label),
vaadin-combo-box.custom-input::part(label),
vaadin-time-picker.custom-input::part(label) {
  color: white;                  /* normale Farbe */
  -webkit-text-fill-color: white; /* wichtig für Chrome/Safari */
}


@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading-spinner {
  animation: spin 1s linear infinite;
}

/* ============================================================
   EXISTIERENDE DEINE STYLES – bleiben wie sie sind
   ============================================================ */

.miqon-notification {
  --lumo-box-shadow-s: 0 0 25px rgba(0,0,0,0.65);
  background: rgba(15, 15, 20, 0.85); /* viel dunkler */
  backdrop-filter: blur(12px) saturate(120%);
  border-radius: 14px;
  padding: 0.9em !important;
  color: #f0f0f0;
  border: 1px solid rgba(255,255,255,0.07);
}

.miqon-notification-layout {
  gap: 1em;
  align-items: center;
}

.miqon-notification-text {
  color: #ffffff;
  font-size: 0.95em;
  font-weight: 500;
  text-shadow: 0 0 4px rgba(0,0,0,0.8);
}

.miqon-notification-container {
  background: #2d2640;
  border-radius: 16px;
  padding: 0.6rem 0.8rem;
}


.miqon-notification-copy {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.8em;
  padding: 4px 12px;
  border-radius: 6px;
  transition: 0.25s;
}

.miqon-notification-copy:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
}

.miqon-notification-close {
  background: transparent;
  border: none;
  color: #eeeeee;
  font-size: 1.2em;
  cursor: pointer;
  padding: 0 6px;
  transition: 0.2s;
}

.miqon-notification-close:hover {
  color: #ff6b6b;
  transform: scale(1.15);
}



vaadin-notification-card,
vaadin-notification-card::part(overlay),
vaadin-notification-card::part(content) {
  opacity: 1 !important;
  background: transparent !important;
}

/* ============================================================
   NEUE ZUSÄTZLICHE STYLES FÜR DAS ZWEIZEILIGE LAYOUT
   ============================================================ */

/* Der innere Wrapper (Vertikales Layout) */
.miqon-notification-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Die einzeilige Nachricht mit Ellipsis */
.miqon-notification-text-one-line {
  color: #ffffff;
  font-size: 0.9em;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 88%; /* hier kannst du Breite anpassen */
}

/* Der Bereich für Copy + Close unterhalb der Nachricht */
.miqon-notification-buttonbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.notification-header {
  font-size: 0.95em;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.notification-body {
  font-size: 0.88em;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.45;
  margin-top: 6px;
  text-shadow:
    0 0 3px rgba(0,0,0,0.6),
    0 0 8px rgba(0,0,0,0.25);
}




/* ===============================
   Farb-Akzente für Notification Types
   =============================== */

/* Emerald Glass Success */
.miqon-notification.miqon-success .notification-header {
  color: #66ff99;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255,255,255,0.25),
               0 0 4px rgba(0,0,0,0.45);
}

.miqon-notification.miqon-success .notification-body {
  color: #f1fff5;
}

.miqon-notification.miqon-success {
  border-left: 4px solid #00d46a;
  box-shadow: 0 0 20px rgba(0, 212, 106, 0.38),
              inset 0 0 10px rgba(255,255,255,0.12);
  backdrop-filter: blur(15px) saturate(1.4);
}



/* Informativ (blau) */
.miqon-notification.miqon-info .notification-header {
  color: #8fc9ff;
  font-weight: 700;
}
.miqon-notification.miqon-info {
  border-left: 4px solid #4da0ff;
  box-shadow: 0 0 15px rgba(77, 160, 255, 0.25);
}

.miqon-notification.miqon-consent .notification-header {
  color: #8fc9ff;
  font-weight: 700;
}
.miqon-notification.miqon-consent {
  border-left: 4px solid #4da0ff;
  box-shadow: 0 0 15px rgba(77, 160, 255, 0.25);
}

/* Warnung (gelb/orange) */
.miqon-notification.miqon-warning .notification-header {
  color: #ffd479;
  font-weight: 700;
}
.miqon-notification.miqon-warning {
  border-left: 4px solid #ffbf47;
  box-shadow: 0 0 15px rgba(255, 191, 71, 0.25);
}

/* Fehler (rot) */
.miqon-notification.miqon-error .notification-header {
  color: #ff8d8d;
  font-weight: 700;
}
.miqon-notification.miqon-error {
  border-left: 4px solid #ff4c4c;
  box-shadow: 0 0 20px rgba(255, 76, 76, 0.35);
}


/* Sorge dafür, dass Notification NICHT rechts klebt */
vaadin-notification-card {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Volle Breite im Card-Overlay erzwingen */
vaadin-notification-card {
    width: 88% !important;
    max-width: 450px !important;   /* DEIN perfekter Sweet-Spot */
    border-radius: 16px !important;
}

/* Der Inhalt soll ebenfalls die volle Breite besitzen */
vaadin-notification-card::part(content) {
    width: 100% !important;
    padding: 0 !important;
}

.notification-center-button {
    position: relative;
    background: transparent;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding-right: 18px;
    padding-left: 12px;
}

.notification-center-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4c4c;
    color: white;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 18px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
    animation: badge-pulse 0.35s ease-out;
}

.notification-card-inner {
    display: flex;
    flex-direction: column;
    gap: 6px; /* mehr Luft zwischen header / type / timestamp */
}

/* ===========================================
   DETAIL-VIEW / FULL CARD
   =========================================== */

.notification-detail-card {
  padding: 16px 22px !important;
  border-radius: 18px;
  margin-top: 12px;
}

/* Innen-Layout: Luft, aber sauber kompakt */
.notification-detail-layout {
  padding: 0 !important;
  margin: 0 !important;
  gap: 8px !important;            /* ← das zaubert die Optik */
  align-items: flex-start;
}

/* Timestamp (dezenter, aber gut lesbar) */
.notification-timestamp {
  font-size: 0.78em;
  color: #d8d8d8;
  opacity: 0.85;
  margin-bottom: 4px;
}


@keyframes badge-pulse {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================ HEXAGON NOTIFICATION BUTTON (Glow + Glass) ============================================ */
.hex-notification-button {
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 35px;
    height: 35px;
}

.hex-image {
    width: 40.5px;
    height: auto;
    transition:
    transform 0.25s ease;
}
.hex-image.hex-listening {
    filter: drop-shadow(0 0 4px rgba(110, 110, 255, 0.5));
    opacity: .8;
}
.hex-image.hex-has-new {
    animation: hexGlow 1.4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 50, 50, 0.6));
    opacity: 1;
}
@keyframes hexGlow {
    0% { transform: scale(1);
    opacity: 0.95;
    } 50% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 0.95; } } .hex-badge { position: absolute; top: 20%; right: 20%; background: #ff3b3b; color: white; font-size: 0.65em; padding: 1px 6px; border-radius: 10px; font-weight: 700; box-shadow: 0 0 6px rgba(0, 0, 0, 0.5); }



/* Dialog Titel */
.dialog-title {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 8px rgba(255,255,255,0.15);
}

/* Feld-Labels */
vaadin-text-field::part(label) {
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

/* Input-Felder */
vaadin-text-field::part(input-field) {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
}

/* Button-Row */
.dialog-actions {
    margin-top: 1.25rem;
    gap: 1rem;
}


/* ----------------------------------------
   Policy Consent Text (Dark UI optimized)
----------------------------------------- */

.policy-text {
    max-height: 360px;
    overflow-y: auto;

    padding: 18px 20px;
    margin: 14px 0 22px 0;

    font-size: 0.95rem;
    line-height: 1.6;

    /* ✨ Deutlich hellerer Text */
    color: rgba(255, 255, 255, 0.88);

    /* ✨ Sanfte Abhebung vom Dialog-Hintergrund */
    background: #2d2640;

    /* ✨ Weicher Rahmen statt harter Linie */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;

    /* ✨ Leichte Tiefenwirkung */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.policy-text::-webkit-scrollbar {
    width: 8px;
}

.policy-text::-webkit-scrollbar-track {
    background: transparent;
}

.policy-text::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.policy-text::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* ----------------------------------------
   Policy Dialog Title (Dark UI)
----------------------------------------- */

.policy-title {
    margin: 0 0 14px 0;

    font-size: 1.35rem;
    font-weight: 600;

    /* ✨ Klarer Kontrast */
    color: rgba(255, 255, 255, 0.95);

    /* ✨ leichte visuelle Trennung */
    letter-spacing: 0.2px;
}

@media (max-width: 600px) {
  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pagination-info {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pagination-total {
    color: #fff;
    font-weight: 320;
    letter-spacing: 0.5px;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 0;

    padding-top: 0px;
    padding-bottom: 8px;

    width: 100%;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease;
}

html {
  font-size: 16px;
}

@media (max-width: 768px) {
  html { font-size: 15px; }
}

@media (max-width: 520px) {
  html { font-size: 14px; }
}

@media (max-width: 768px) {
  .navbar-button {
    height: 42px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  :root {
    --lumo-space-l: 0.5rem;
    --lumo-space-m: 0.4rem;
  }
}


/* EXTRA CONTENT FOR AVAILABILITY*/
/* === MIQON Eclipse UI === */

.landing-root {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Inter', sans-serif;
    color: #fff;
    overflow-x: hidden;
    background-repeat: repeat;
    background-position: top left;
}

/* Aurora layer */
.landing-root::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 200%; height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(160,100,255,0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(70,200,255,0.1) 0%, transparent 70%),
        radial-gradient(circle at 60% 40%, rgba(255,160,240,0.08) 0%, transparent 80%);
    animation: auroraDrift 40s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

/* ==== HERO ==== */
.hero-section {
    position: relative;
    margin: 5rem auto;
    max-width: 1200px;
    padding: 6rem 3rem;
    border-radius: 40px;
    background: rgba(20,18,35,0.55);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.06),
        0 16px 60px rgba(60,30,120,0.4);
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem,4.2vw,4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: .6rem;
}

/* === HEADER STYLE REFINEMENT – MIQON Signature Headers === */

/* H1 – Hero Titel */
.hero-content h1 {
    font-size: clamp(2.8rem, 4.5vw, 4rem);
    font-weight: 800;
    color: white;
    text-shadow:
          0 0 12px rgba(255, 255, 255, 0.35),
          0 0 24px rgba(190, 160, 255, 0.25);
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

/* === Enhanced Header Styling for Card Titles === */

/* Section Headings */
h2 {
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 2.3rem;
  text-shadow:
      0 0 12px rgba(255, 255, 255, 0.35),
      0 0 24px rgba(190, 160, 255, 0.25);
  margin-bottom: 1.8rem;
  text-align: center;
}

/* Service Cards */
.service-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #fff;
  letter-spacing: 0.3px;
  text-shadow:
      0 0 6px rgba(255, 255, 255, 0.4),
      0 0 18px rgba(180, 130, 255, 0.35),
      0 2px 4px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}
.service-card:hover h3 {
  text-shadow:
      0 0 12px rgba(255, 255, 255, 0.7),
      0 0 28px rgba(190, 140, 255, 0.6);
  transform: scale(1.03);
}

/* Flow Navigation Cards */
.flow-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.25px;
  text-shadow:
      0 0 6px rgba(255, 255, 255, 0.3),
      0 0 20px rgba(180, 140, 255, 0.25);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}
.flow-nav-card:hover .flow-title {
  color: #fff;
  text-shadow:
      0 0 12px rgba(255, 255, 255, 0.6),
      0 0 28px rgba(200, 160, 255, 0.45);
}

/* Testimonials + CTA */
.testimonial-section h2,
.cta-section h2 {
  font-size: 2.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff, #cfcaff, #9a87ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
      0 0 10px rgba(255, 255, 255, 0.35),
      0 0 25px rgba(150, 110, 255, 0.3);
}


/* Bonus: sanfte Glow-Animation bei Hover für H3 (Karten) */
.service-card:hover h3 {
    animation: headerGlowPulse 2s ease-in-out infinite alternate;
}
@keyframes headerGlowPulse {
    from { text-shadow: 0 0 10px rgba(160,120,255,0.3); }
    to { text-shadow: 0 0 22px rgba(180,140,255,0.6); }
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 600;
    /*color: #cfc8ff;*/
    color: white;
    margin-bottom: 1.1rem;
}

.hero-desc {
    max-width: 680px;
    font-size: 1.1rem;
    line-height: 1.75;
    color: #e0defc;
    margin-bottom: 2rem;
}

/* Button — glow & shine */
.primary-button {
    position: relative;
    background: linear-gradient(130deg,#7a2ae2 0%,#b55eff 100%);
    border: none;
    border-radius: 16px;
    padding: 1rem 2.3rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(170,100,255,0.4);
    transition: transform .3s ease, box-shadow .4s ease;
    overflow: hidden;
}
.primary-button::before {
    content:"";
    position:absolute;
    top:0; left:-60%;
    width:40%; height:100%;
    background:linear-gradient(120deg,rgba(255,255,255,0.15)0%,rgba(255,255,255,0.5)50%,rgba(255,255,255,0.1)100%);
    transform:skewX(-20deg);
    transition:left .7s ease;
}
.primary-button:hover::before { left:120%; }
.primary-button:hover {
    transform: scale(1.06);
    box-shadow: 0 0 34px rgba(210,140,255,0.65);
}

/* ==== SERVICE CARDS ==== */
.service-cards {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:2.2rem;
    padding:4rem 2rem;
    max-width:1200px;
    margin:0 auto;
}

.service-card {
    position:relative;
    background: rgba(40,30,80,0.45);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:28px;
    padding:2.4rem;
    width:310px;
    color:#fff;
    box-shadow: 0 8px 32px rgba(60,20,130,0.3);
    backdrop-filter: blur(24px) saturate(160%);
    transition:transform .4s cubic-bezier(.22,1,.36,1),box-shadow .4s ease;
}
.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:0 16px 60px rgba(120,80,255,0.45);
}
.service-card h3 {
    font-size:1.4rem;
    font-weight:700;
    margin-bottom:.7rem;
    text-shadow:0 0 10px rgba(180,130,255,.4);
}
.service-card::after {
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at 30% 20%,rgba(255,255,255,0.08),transparent 60%);
    opacity:0;
    transition:opacity .4s ease;
    border-radius:inherit;
}
.service-card:hover::after { opacity:1; }

/* ==== WHY ==== */
.why-section {
    max-width:1200px;
    margin:4.5rem auto;
    padding:5rem 2rem;
    border-radius:32px;
    background:rgba(25,20,50,0.6);
    backdrop-filter:blur(24px) saturate(160%);
    border:1px solid rgba(255,255,255,0.06);
    box-shadow:0 8px 40px rgba(60,30,120,0.25);
}
.why-section h2 {
    font-size:2.3rem;
    font-weight:700;
    margin-bottom:1.3rem;
}
.why-section p {
    color:#d9d4ff;
    max-width:700px;
    font-size:1.05rem;
}

/* ==== TESTIMONIALS ==== */
.testimonial-section {
    position:relative;
    margin:5rem auto;
    max-width:1200px;
    border-radius:32px;
    background:rgba(20,15,35,0.55);
    border:1px solid rgba(255,255,255,0.06);
    backdrop-filter:blur(20px) saturate(150%);
    box-shadow:0 12px 48px rgba(70,30,140,0.3);
    padding:5rem 2rem;
}
.testimonial-section h2 {
    text-align:center;
    font-size:2.1rem;
    margin-bottom:3rem;
}
.testimonial-card {
    background:rgba(255,255,255,0.06);
    border-radius:22px;
    border:1px solid rgba(255,255,255,0.1);
    padding:2rem;
    flex:1;
    min-width:280px;
    color:#fff;
    box-shadow:0 6px 30px rgba(50,20,100,0.25);
    transition:all .35s ease;
}
.testimonial-card:hover {
    transform:translateY(-8px);
    box-shadow:0 16px 50px rgba(120,80,255,0.35);
}
.testimonial-card:hover p:first-child {
    color:#fff;
    text-shadow:0 0 10px rgba(200,160,255,0.5);
}

/* ==== CTA ==== */
.cta-section {
    min-height:320px;
    position:relative;
    max-width:1000px;
    margin:5rem auto;
    padding:4.5rem 2.2rem;
    border-radius:36px;
    background:linear-gradient(135deg,rgba(70,40,120,0.3),rgba(20,10,40,0.8));
    backdrop-filter:blur(24px) saturate(160%);
    box-shadow:0 10px 40px rgba(31,38,135,0.3);
    overflow:hidden;
}
.cta-section::after{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at 30% 40%,rgba(200,150,255,0.1),transparent 70%);
    animation:ctaPulse 8s infinite alternate;
}
@keyframes ctaPulse{
  0%{opacity:.15;transform:scale(1);}
  100%{opacity:.35;transform:scale(1.1);}
}
.cta-section h2{
    font-size:2rem;
    margin-bottom:1rem;
    color:#f4f1ff;
    text-shadow:0 0 14px rgba(190,140,255,0.4);
}
.cta-section p{ color:#ddd; font-size:1.05rem; max-width:700px; margin:0 auto 1.8rem; }

/* CTA Button */
.cta-section button {
    position:relative;
    background:linear-gradient(135deg,#7b3bf9,#c766ff);
    border:none;
    border-radius:16px;
    padding:1rem 2.4rem;
    color:#fff;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 0 18px rgba(160,90,255,.5);
    transition:transform .3s ease, box-shadow .3s ease;
}
.cta-section button:hover {
    transform:scale(1.06);
    box-shadow:0 0 28px rgba(210,130,255,.7);
}

/* ==== FOOTER ==== */
.footer-section {
    text-align:center;
    color:#a9a7d0;
    background:rgba(12,10,24,0.75);
    backdrop-filter:blur(16px);
    padding:2rem;
    font-size:.9rem;
    border-top:1px solid rgba(255,255,255,0.08);
    border-radius:18px;
    margin-top:3rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

/* ==== Responsive ==== */
@media(max-width:900px){
    .hero-section{text-align:center;padding:4rem 1.5rem;}
    .service-card{width:90%;}
    .testimonial-section{padding:3.5rem 1.5rem;}
}
@media(max-width:600px){
    .hero-content h1{font-size:2.2rem;}
    .hero-desc{font-size:.95rem;}
    .cta-section{padding:3rem 1.5rem;}
    .cta-section button{width:100%;}
}

/* === FLOW NAVIGATION === */
.flow-navigation-section {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    background: rgba(20, 15, 35, 0.5);
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.03);
}

.flow-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 1rem 3rem;
    max-width: 1200px;
    scrollbar-width: none;
}
.flow-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Glasmorphische Cards */
.flow-nav-card {
    flex: 0 0 auto;
    background: rgba(45, 35, 90, 0.45);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    width: 260px;
    color: #fff;
    text-align: center;
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 6px 30px rgba(60, 20, 120, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}
.flow-nav-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 60px rgba(160, 120, 255, 0.5);
}

.flow-nav-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.flow-nav-card:hover::after {
    opacity: 1;
}

/* Inhalt */
.flow-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.8rem;
}

.flow-desc {
    color: #d8d6f9;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px) {
    .flow-nav-card { width: 220px; padding: 1.5rem; }
}


/* ===== Base Sections ===== */
.section-light, .section-dark {
  max-width: 1200px;
  margin: 3.5rem auto;
  padding: 4rem 2rem;
  border-radius: 32px;
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 40px rgba(60,30,120,0.22);
  text-align: center;
}

.section-light {
  background: rgba(30, 25, 55, 0.50);
}

.section-dark {
  background: rgba(18, 14, 34, 0.70);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #e6e2ff;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

.section-text {
  max-width: 820px;
  color: #d9d4ff;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto 2rem auto;
}

/* ===== mandant-info Capsules (Accordion) ===== */
.mandant-info-block {
  max-width: 900px;
  margin: 0 auto 2rem auto;
  color: black;
}

.mandant-info-wrapper {
  margin-bottom: 0.6rem;
  align-items: center;
}

.mandant-info-body {
  width: 90%;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 6px auto 10px auto;
  color: #e7e5ff;
  text-align: left;
  line-height: 1.55;
  border: 1px dashed rgba(255,255,255,0.12);
  box-shadow: inset 0 0 6px rgba(30,20,60,0.6);
}

.card-icon-image {
  display: block;
  margin: 0 auto 0.9rem auto;
  filter: drop-shadow(0 0 8px rgba(180,140,255,0.45));
  opacity: 0.98;
}

/* responsive security */
@media (max-width: 900px) {
  .section-light, .section-dark {
  padding: 2.5rem 1.2rem;
  }
  .mandant-info-body { font-size: 0.98rem; }
}

/* === Hero Images (Honeycomb etc.) === */
.hero-image {
    max-width: 260px;       /* Perfekte Größe */
    width: 40%;             /* Bild passt sich Container an */
    margin: 2rem auto 0 auto;
    display: block;
    opacity: 0.95;
    filter: drop-shadow(0 0 20px rgba(180,140,255,0.3));
    transition: transform .4s ease;
}

.hero-image:hover {
    transform: scale(1.03);
}

/* Mobile */
@media (max-width: 800px) {
    .hero-image {
        max-width: 180px;
        width: 55%;
        margin-top: 1.4rem;
    }
}

.hero-image {
    border-radius: 32px;
    padding: 6px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px) saturate(160%);
}

.mandant-info {
  background: #f9f6ff;
  border-left: 5px solid #432c61;
  font-size: 16px;
  padding: 12px 18px;
  margin-top: 8px;
  margin-bottom: 6px;
  border-radius: 10px;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.04);

  /* Button-Look */
  display: inline-block;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  font-weight: 500;
  user-select: none;
  box-shadow: 0 0 12px rgba(67, 44, 97, 0.5);
  transform: translateY(-1px);
}

/* Hover Glow-Effekt */
.mandant-info:hover {
  background: #f2e9ff;
  box-shadow: 0 0 12px rgba(67, 44, 97, 0.5);
  transform: translateY(-1px);
}

/* Klick-Effekt */
.mandant-info:active {
  transform: translateY(1px);
  box-shadow: 0 0 6px rgba(67, 44, 97, 0.4);
}

.primary-button {
  position: sticky;
  z-index: 999;
  margin-left: auto;
  padding: 10px 24px;

  background: linear-gradient(145deg, #7504a9, #af4ce0);
  color: white;
  font-weight: 600;
  font-size: 14px;

  font-family: 'Montserrat', sans-serif;

  border: none;
  border-radius: 14px;
  box-shadow:
    0 0 12px rgba(175, 76, 224, 0.4),
    inset 0 0 6px rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  cursor: pointer;

  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.primary-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 40%);
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.primary-button:hover::before {
  opacity: 1;
}

.primary-button:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 18px rgba(200, 80, 255, 0.6),
    inset 0 0 8px rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, #8f08c0, #cc67ff);
}

.primary-button:active {
  transform: scale(0.96);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.3),
    inset 0 0 6px rgba(0, 0, 0, 0.1);
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 12px #b951f1;
  }
  50% {
    box-shadow: 0 0 22px #e47eff;
  }
}

/* ============================================================
   === MIQON ULTRA-RESPONSIVE LAYER ============================
   Optimiert für Tablet, Mobile, Small-Mobiles & Ultra-Small ===
   ============================================================ */

/* === Tablet Portrait (<= 1200px) === */
@media (max-width: 1200px) {

    .hero-section {
        padding: 5rem 2rem;
        margin: 4rem auto;
        border-radius: 32px;
    }

    .service-cards {
        gap: 1.8rem;
    }

    .service-card {
        width: 42%;
    }

    .why-section,
    .testimonial-section,
    .cta-section {
        padding: 4rem 2rem;
    }
}

/* === Large Mobile (<= 900px) === */
@media (max-width: 900px) {

    .hero-section {
        padding: 4rem 1.6rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: clamp(2.1rem, 6vw, 3rem);
    }

    .hero-desc {
        font-size: 1rem;
        max-width: 90%;
        margin: 0.8rem auto 2rem auto;
    }

    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 88%;
        padding: 2rem;
        border-radius: 24px;
    }

    .flow-nav-card {
        width: 200px;
        padding: 1.4rem;
    }

    h2 {
        font-size: 1.9rem;
    }
}

/* === Mobile Standard (<= 600px) === */
@media (max-width: 600px) {

    .hero-section {
        padding: 3.4rem 1.4rem;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-desc {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .hero-image {
        max-width: 150px;
    }

    .testimonial-card,
    .service-card {
        padding: 1.6rem;
        border-radius: 20px;
    }

    .cta-section {
        padding: 2.4rem 1.4rem;
    }

    .cta-section h2 {
        font-size: 1.7rem;
    }

    .flow-nav-card {
        width: 180px;
    }

    .primary-button {
        width: 100%;
        padding: 0.9rem 1.1rem;
        border-radius: 12px;
    }
}

/* === Small Mobile (<= 480px) – iPhone SE, ältere Geräte === */
@media (max-width: 480px) {

    .hero-section {
        padding: 2.6rem 1rem;
        border-radius: 24px;
        margin: 2rem auto;
    }

    .hero-content h1 {
        font-size: 1.7rem;
        letter-spacing: -0.015em;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-desc {
        font-size: 0.88rem;
        max-width: 95%;
    }

    .service-card {
        width: 100%;
        padding: 1.4rem;
    }

    .testimonial-card {
        min-width: 100%;
        padding: 1.4rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .flow-nav-card {
        width: 150px;
        padding: 1.2rem;
        border-radius: 20px;
    }
}

/* === Ultra-Small Screens (<= 360px) — absolute Minimalgeräte === */
@media (max-width: 360px) {

    .hero-section {
        padding: 2rem 0.8rem;
        border-radius: 20px;
    }

    .hero-content h1 {
        font-size: 1.45rem;
    }

    .hero-desc {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .service-card {
        padding: 1.2rem;
        border-radius: 18px;
    }

    .primary-button {
        font-size: 13px;
        padding: 0.8rem 1rem;
    }

    .flow-scroll-container {
        gap: 1.2rem;
        padding: 0.6rem 1rem;
    }

    .flow-nav-card {
        width: 135px;
        padding: 1.1rem;
    }
}

/* 🔥 Dialog Content richtig begrenzen */
vaadin-dialog-overlay::part(content) {
    max-height: 92.5vh;
    overflow: auto !important;
}

/* 🔥 verhindert seitliches Overflow */
vaadin-dialog-overlay .landing-root {
    overflow-x: hidden;
}

/* 🔥 verhindert „Bleeding“ nach unten */
vaadin-dialog-overlay .landing-root > * {
    max-width: 100%;
}
