/* ==========================
   Root / Theme Variablen
========================== */
:root{
  --ek4y-green: #17D68F;
  --ek4y-green-2: #15C282;
  --ek4y-green-3: #13B075;

  --muted: #6c757d;
  --bg: #f5f5f5;
  --card-bg: #fff;
  --border: #dee2e6;
  --shadow-1: 0 4px 8px rgba(0,0,0,.1);
  --gap: 1rem;
}

/* ==========================
   Base / Resets
========================== */
* { -webkit-tap-highlight-color: transparent; }

html, body {
  height: calc(100vh);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  margin: 0;
  color: #1b1f27;
  padding-bottom: env(safe-area-inset-bottom);
}

.app {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}

.min-w-0 { min-width: 0 !important; }
.cursor-pointer { cursor: pointer; }
/* ==========================
   Preloader
========================== */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .25s ease;
}

#preloader.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity .25s ease, visibility .25s .25s;
}

.pre-spin {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #0d6efd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.pre-progress {
  width: min(420px, 80%);
  height: 8px;
  background: #f1f3f5;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.pre-bar {
  height: 100%;
  width: 0%;
  background: #0d6efd;
  transition: width .15s ease;
}

.pre-pct { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ==========================
   Notification
========================== */
.notification-card {
  border-radius: 10px;
  transition: all .2s ease;
}

.notif-unread {
  background: #fef8dd;   /* warm light pastel gelb */
  border-left: 4px solid #ffc107;
}

.notif-read {
  background: #f8f9fa;
  border-left: 4px solid #dee2e6;
  opacity: .85;
}

.notif-title {
  font-weight: 600;
  margin-bottom: 3px;
}

.notif-text {
  font-size: .9rem;
  margin-bottom: 6px;
}

.notif-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-btn-read i {
  color: #28a745;
}

.notif-btn-delete i {
  color: #dc3545;
}
@keyframes notifSlideIn {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.notification-card {
  animation: notifSlideIn .25s ease;
}

.notification-card.notif-read {
  transition: background .3s ease, opacity .3s ease;
}

.notification-card.deleted {
  transition: all .3s ease;
  opacity: 0;
  transform: translateX(40px);
}

/* ==========================
   Buttons + Form Selects
========================== */
.btn,
.form-select {
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem 1rem;
  border-radius: .5rem;
  line-height: 1;
}

.btn { min-height: 44px; }

.btn .btn-outline-secondary {
  height: 2.5rem !important;
}
/* Add-Button */
.btn-add {
  background: #17d68f;
  color: #fff !important;
  border-radius: 10px;
  padding: 0.55rem 1.2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none !important;
}
.btn-add:hover {
  background: #13b97c !important;
}
/* -------------------------------------------
   MOBILE HEADER OPTIMIERUNG (<768px)
------------------------------------------- */
@media (max-width: 768px) {

  .sticky-top .card-body {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      padding: 16px;
  }

  /* Icon kleiner */
  .sticky-top .card-body > div:first-child {
      width: 48px !important;
      height: 48px !important;
  }

  /* Titel + Subline 100% Breite */
  .sticky-top .flex-grow-1 {
      width: 100%;
  }

  .sticky-top h4 {
      font-size: 1.2rem;
  }

  .sticky-top small {
      font-size: 0.85rem;
      display: block;
      margin-top: 4px;
      line-height: 1.3;
  }

  /* Button unten, volle Breite */
  .btn-add {
      width: 100%;
      justify-content: center;
      font-size: 1rem;
      padding: 12px 16px;
      border-radius: 12px;
  }
}

.btn-ek4y-green {
  background: var(--ek4y-green);
  border: none;
  color: #fff;
  padding: 8px 16px;
  font-weight: 500;
  border-radius: 4px;
  transition: background-color .2s;
}
.btn-ek4y-green:hover,
.btn-ek4y-green:active { background: var(--ek4y-green-2) !important; }
.btn-ek4y-green:focus { background: var(--ek4y-green-3) !important; color: #fff !important; }

.dashb-con-dash-btn-orange {
  background: #ffb01e; color: #fff !important; border:none; padding: 8px 16px;
  font-weight:500; border-radius:4px; transition:background-color .2s;
}
.dashb-con-dash-btn-orange:hover { background:#ec9a00; }

.dashb-con-dash-btn-pink {
  background:#f0f; color:#fff; border:none; padding:8px 16px;
  font-weight:500; border-radius:4px; transition:.2s;
}
.dashb-con-dash-btn-pink:hover { background:#e700e7; }

.dropdown-toggle::after { display:none !important; }
.dropdown-toggle,
.dropdown-toggle:focus,
.dropdown-toggle:active,
.dropdown-toggle:focus-visible {
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
}

/* ==========================
   Header / Sticky
========================== */
.sticky-header {
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.dashboard-title { font-size:1.2rem; font-weight:600; padding-left:20px; }
.icon-link { color:#333; transition:color .2s; }
.icon-link:hover { color:var(--ek4y-green); }

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.header-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.header-icon {
  width: 58px;
  height: 58px;
  background: #e8fff4;
  color: #17D68F;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-icon i { font-size: 28px; }

.header-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
}

.header-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  white-space: nowrap !important;
}

.header-sub {
  margin-top: 2px;
  font-size: .9rem;
  color: #6c757d;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width:768px) {

  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .header-left {
    width: 100%;
  }
  
  .header-action {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .header-title {
    font-size: 1.2rem;
  }

  .header-sub {
    font-size: .85rem;
  }
  .header-icon {
    display: none !important;
}
}

/* ==========================
   Avatar
========================== */
.header-avatar { width:40px; height:40px; position:relative; }
.avatar-initials {
  width:40px; height:40px; background:#f5f5f5;
  color:#333; border-radius:50%;
  font-weight:700; display:flex; align-items:center; justify-content:center;
}
.avatar-status-dot {
  position:absolute; bottom:0; right:0;
  width:10px; height:10px; background:var(--ek4y-green);
  border-radius:50%; border:2px solid #fff;
}

/* ==========================
   Tabs (responsive)
========================== */
.bp-tabs {
  position: sticky;
  top: 56px;
  height: 88px;
  z-index: 1001;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.bp-tabs .ek4y-tabs {
  display:flex;
  gap:.5rem;
  flex-wrap: wrap;
  padding:.5rem 1rem;
  margin:0;
}

.bp-tabs .ek4y-tabs .nav-item { flex:0 0 auto; }
.bp-tabs .ek4y-tabs .nav-link {
  background:#fff !important; color:#181d27 !important; border:none !important;
  padding:.5rem .75rem; border-radius:999px;
  font-weight:500; white-space:nowrap; position:relative;
}

.bp-tabs .ek4y-tabs .nav-link.active { font-weight:600; }
.bp-tabs .ek4y-tabs .nav-link.active::after {
  content:""; position:absolute; left:10%; right:10%; bottom:-8px;
  height:3px; border-radius:3px; background:var(--ek4y-green);
}

.bp-tabs .ek4y-tabs .nav-link:hover { color:var(--ek4y-green) !important; }

@media (max-width:575.98px) {
  .bp-tabs .ek4y-tabs {
    flex-wrap:nowrap;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
  .bp-tabs .ek4y-tabs::-webkit-scrollbar { height:6px; }
}
/* ==========================
   Nav Tabs (card style)
========================== */
.card-container {
  border-radius: 0;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border);
  background: var(--card-bg);
  margin-bottom: 1rem;
}

.nav-tabs { border-bottom: 2px solid var(--border) !important; }

.nav-tabs .nav-link {
  background: var(--card-bg) !important;
  color:#000 !important;
  border: 1.5px solid var(--border) !important;
  border-bottom: none !important;
  border-radius: 8px 8px 0 0 !important;
  margin-right:6px;
  font-weight:500;
  transition: .12s;
  min-width:140px;
  text-align:center;
}

.nav-tabs .nav-link.active {
  color: var(--ek4y-green) !important;
  font-weight:600;
  z-index:2;
}

.nav-tabs .nav-link:hover:not(.active) {
  color: var(--ek4y-green) !important;
  background:#fafafa !important;
}

@media (max-width:600px) {
  .nav-tabs {
    overflow-x:auto;
    white-space:nowrap;
    flex-wrap:nowrap !important;
  }
  .nav-tabs .nav-item { display:inline-block; }
  .nav-tabs .nav-link { min-width:120px; font-size:15px; }
}

/* ==========================
   Cards / Lists
========================== */
.card-dashboard {
  border-radius: 0;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border);
  background: var(--card-bg);
  margin-bottom:1rem;
}

.card-header,
.card-footer {
  border-bottom:1px solid var(--border);
  padding:10px;
  font-weight:700;
  background:#f8f9fa;
}

.list-group-item {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 15px;
  border-bottom:1px solid var(--border);
}
.list-group-item:last-child { border-bottom:none; }

.placeholder-card {
  font-style:italic;
  color:#888;
  text-align:center;
  padding:20px;
}

/* ==========================
   Formulare
========================== */
.input-group > .btn,
.input-group > .form-control,
.input-group > .form-select {
  height:3rem;
  border-radius:0;
}

.input-group > .btn:first-child {
  border-top-left-radius:.5rem;
  border-bottom-left-radius:.5rem;
}

.input-group > .form-select:last-child {
  border-top-right-radius:.5rem;
  border-bottom-right-radius:.5rem;
}

.dashb-h4 {
  font-size:16px;
  color:#181D27;
  margin-bottom:15px;
  font-weight:600;
}

.form-label { font-size:14px; color:#414651; }

.form-control {
  background:#fff;
  border:1px solid #D5D7DA;
  border-radius:8px;
  padding:10px 14px;
  font-size:14px;
  height:2.5rem;
  line-height:20px;
  color:#333;
}

.dashb-form-group {
  display:flex;
  flex-direction:column;
  margin-bottom:1rem;
}

.dashb-form-group input { flex-grow:1; }

.dashb-notiz-box {
  white-space:pre-wrap;
  word-break:break-all;
  overflow-wrap:anywhere;
}

/* ==========================
   iOS Input Zoom Fix
========================== */
@media (max-width:767.98px) {
  .login-form-container .form-control,
  input[type="text"],
  input[type="password"],
  textarea,
  select {
    font-size:16px;
    -webkit-text-size-adjust:100%;
  }
}

/* ==========================
   Login
========================== */
.login-container {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  padding:1rem 5px;
  background:var(--bg);
}

.login-wrap {
  background:var(--card-bg);
  border-radius:16px;
  box-shadow:0 4px 6px rgba(0,0,0,.1);
  overflow:hidden;
  max-width:450px;
  width:100%;
  display:flex;
  flex-direction:column;
}

.login-img {
  width:100%;
  background:url('../img/logo_ek4you_b.webp') center center no-repeat;
  background-size:contain;
  padding:15%;
}

.login-form-container {
  padding:1.5rem 2rem 2rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
  flex-grow:1;
}

.login-form-control {
  width:100%;
  margin-bottom:1rem;
  padding:.75rem 1rem;
  font-size:1rem;
  border:1px solid #ccc;
  border-radius:8px;
}

.login-button {
  background:var(--ek4y-green);
  color:#fff;
  font-weight:600;
  padding:.75rem;
  border:none;
  border-radius:8px;
  cursor:pointer;
  transition:background .3s;
}
.login-button:hover { background:#13b075; }

@media (max-width:768px) {
  .login-wrap { max-width:400px; }
  .login-img { padding-top:25%; }
  .login-form-container { padding:1rem 1.5rem 1.5rem; }
}

@media (max-width:480px) {
  .login-wrap {
    background:none;
    border-radius:0;
    box-shadow:none;
    max-width:100%;
    height:100vh;
    padding:0;
  }
  .login-container { padding:0 5px; }
  .login-form-container {
    padding:1rem .5rem;
    flex-grow:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
}

/* ==========================
   Dashboard / Sections / Masonry
========================== */
.dashboard-section {
  width:100%;
  margin-bottom:1rem;
  padding:15px;
}

.masonry-container { column-count:1; column-gap:1rem; }
@media (max-width:1300px) { .masonry-container { column-count:2; } }
@media (min-width:1301px) { .masonry-container { column-count:3; } }

/* ==========================
   Responsive Button Groups
========================== */
.btn-group-responsive {
  display:inline-flex;
  flex-wrap:wrap;
  gap:.5rem;
}

.btn-group-responsive > * {
  flex:1 1 auto;
  min-width:150px;
  text-align:center;
  white-space:nowrap;
  padding:.6rem 1rem;
}

@media (max-width:768px) {
  .btn-group-responsive > * { flex:1 1 100%; width:100%; }
}

@media (max-width:576px) {
  .btn-group-responsive > * {
    flex:1 1 100%;
    text-align:center;
    white-space:normal;
    padding:.6rem 1rem;
  }
}

/* ==========================
   Modals (Notiz + Image Fullscreen)
========================== */
.modal-notiz .modal-dialog {
  margin:0;
  width:100vw;
  max-width:100vw;
}

@media (min-width:577px) {
  .modal-notiz .modal-dialog {
    width:auto;
    max-width:90vw;
    margin:110px auto 0;
  }
}

.modal-notiz .modal-content,
.modal-notiz .modal-body {
  padding:0 !important;
  margin:0;
  height:100vh;
  max-height:100vh;
}

.modal-image-fullscreen .modal-dialog {
  margin:0;
  max-width:100vw;
  max-height:100vh;
}

.modal-image-fullscreen .modal-content {
  display:flex;
  flex-direction:column;
  height:100vh;
}

.modal-image-fullscreen .modal-header,
.modal-image-fullscreen .modal-footer {
  flex:0 0 auto;
  background:#fff;
  border-color:#ccc !important;
  padding:.5rem 1rem;
}

.modal-image-fullscreen .modal-body {
  flex:1 1 auto;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
  background:#fff;
}

.modal-image-fullscreen .modal-body img {
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  cursor:zoom-in;
  transition:transform .3s;
}
.modal-image-fullscreen .modal-body img.zoomed { cursor:zoom-out; }

/* =========================================
   GLOBAL CRM HEADER SYSTEM
========================================= */
.crm-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Icon: einheitliche Größe */
.crm-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Titel + Untertitel */
.crm-header-text .crm-header-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.crm-header-text .crm-header-sub {
  color: #777;
  font-size: 0.85rem;
}

/* Aktion rechts (Desktop) */
.crm-header-action {
  white-space: nowrap;
}

/* ------------------------------
 MOBILE LAYOUT
 Icon links, Text rechts
 NICHT zentriert
------------------------------ */

@media (max-width: 768px) {

  .crm-header-row {
      flex-direction: row !important;
      align-items: flex-start !important;
  }

  .crm-header-icon {
      margin-top: 4px;
  }

  .crm-header-text {
      text-align: left !important;
      flex: 1;
  }

  .crm-header-title,
  .crm-header-sub {
      text-align: left !important;
  }

  /* Button unterhalb sichtbar */
  .crm-header-action {
      display: none !important;   /* Desktop-Button ausblenden */
  }

  /* Optional: mobiler Button unterhalb anzeigen */
  .crm-header-mobile-action {
      display: block !important;
      margin-top: 12px;
      width: 100%;
  }
}


/* ==========================
   Uploads / Dropzone
========================== */
.upload-dropzone {
  position:relative;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--card-bg);
  padding:16px 24px;
  text-align:center;
  transition:.2s;
  cursor:pointer;
}

.upload-dropzone input[type=file] {
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  opacity:0;
  cursor:pointer;
}

.upload-dropzone.dragover {
  border-color:#28c37e;
  background:#f8fffa;
  box-shadow:0 0 0 .25rem rgba(40,195,126,.25);
}

/* Container */
.upload-card {
  border-radius: 0.9rem;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  padding: .75rem .9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: .15s ease;
}

.upload-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Layout */
.upload-card-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Thumbnail */
.upload-thumb {
  width: 50px;
  height: 50px;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
}

.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PDF ICON */
.pdf-icon {
  font-size: 2rem;
  color: #dc3545;
}

/* Info Bereich */
.upload-info {
  flex-grow: 1;
  min-width: 0;
}

.upload-name {
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.upload-meta {
  font-size: .75rem;
  color: #6c757d;
}

/* Buttons */
.upload-actions {
  display: flex;
  gap: .35rem;
}

.upload-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s;
}

.upload-btn:hover {
  background: #e9ecef;
}


/* ==========================
   Chat
========================== */
.chat-message {
  margin:5px 0;
  padding:5px;
  clear:both;
}

.chat-message.self {
  text-align:right;
  background:#e0ffe0;
  border-radius:10px;
  float:right;
  max-width:80%;
}

.chat-message.other {
  text-align:left;
  background:#f0f0f0;
  border-radius:10px;
  float:left;
  max-width:80%;
}

.sender-name { font-weight:700; }
.timestamp { font-size:.8em; color:#888; }
.clearfix::after { content:""; display:table; clear:both; }
.chat-date-separator {
  text-align:center;
  color:#999;
  font-size:.8rem;
  margin:10px 0;
}

/* ==========================
   Mail List
========================== */
.mail-item {
  background:var(--card-bg);
  border-radius:5px;
  box-shadow:0 1px 3px rgba(0,0,0,.1);
  margin-bottom:20px;
}

.mail-header {
  display:flex;
  justify-content:space-between;
  padding:15px;
  border-bottom:1px solid #ddd;
}

.mail-date { font-size:12px; color:#666; }

.mail-body { padding:15px; font-size:14px; }

/* ==========================
   Maps
========================== */
#map, #dashb-map {
  height:400px;
  width:100%;
  margin-top:20px;
  border:1px solid #ccc;
  border-radius:8px;
}

/* ==========================
   Timeline / Steps
========================== */
.progress-wrapper { padding:20px; }
.progress-container { position:relative; width:100%; height:80px; cursor:pointer; }

.progress-bar-bg {
  position:absolute;
  top:50%; left:0; right:0;
  height:2px;
  background:#e0e0e0;
  transform:translateY(-50%);
}

.progress-bar {
  position:absolute;
  top:50%;
  left:0;
  height:2px;
  background:var(--ek4y-green);
  transform:translateY(-50%);
  transition:width .4s;
}

.progress-step {
  position:absolute;
  top:50%;
  left:0;
  transform:translate(-50%,-50%);
  text-align:center;
  cursor:pointer;
}

.progress-step::before {
  content:"";
  position:absolute; top:50%; left:50%;
  width:16px; height:16px;
  transform:translate(-50%,-50%);
  border:2px solid #e0e0e0;
  border-radius:50%;
  background:#fff;
  transition:.3s;
}

.progress-step.completed::before {
  border-color:var(--ek4y-green);
  background:var(--ek4y-green);
}

.progress-step.active::before { border-color:var(--ek4y-green); }

.progress-step::after {
  content:"";
  position:absolute; top:50%; left:50%;
  width:6px; height:6px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:#d5d7da;
  transition:.3s;
}

.progress-step.completed::after { background:#fff; }
.progress-step.active::after { background:var(--ek4y-green); }

.progress-step .progress-label {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  font-size:14px;
  font-weight:500;
  color:#414651;
  margin-top:8px;
}

.progress-step:nth-of-type(odd) .progress-label { top:15px; }
.progress-step:nth-of-type(even) .progress-label { bottom:15px; top:auto; }

/* ==========================
   Contact Info
========================== */
.contact-info {
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  font-size:.85rem;
  color:var(--muted);
}

.contact-info a {
  display:flex;
  align-items:center;
  text-decoration:none;
  color:inherit;
}
.contact-info a > i { margin-right:.3rem; }

@media (max-width:576px) {
  .contact-info a { white-space:normal; }
}
/* ==========================
   Misc
========================== */
.delete-button.disabled {
  pointer-events: none;
  opacity:.3;
  border:none !important;
  background:0 0;
}

.delete-button.disabled i { color: gray; }

.nav-link.disabled {
  pointer-events:none;
  opacity:.5;
}

.icon-sidebar-home {
  font-size: 1.2rem;
  color: #fff;
  background: #005d3e;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 5px;
}

/* ==========================
   Desktop / Large Breakpoints Helpers
========================== */
@media (max-width:1024px) {
  .desktop-only { display:none !important; }
  .dashboard-title { font-size:1.2rem; }
  .icon-link i { font-size:1.5rem; }
  .avatar-initials { font-size:.9rem; }
  .dashboard-section { padding:10px; }
}

@media (max-width:1058px) {
  .tablet-only { display:none !important; }
}

@media (max-width:576px) {
  .dashb-form-group { gap:.25rem; }
}

/* ==========================
   Drag & Drop Helpers
========================== */
.card.dragging {
  opacity:.5;
  transition:opacity .2s;
}

.masonry-container.drag-over {
  background:rgba(23,214,143,.1);
  border:2px dashed var(--ek4y-green);
}

/* ==========================
   Accessibility / Reduced Motion
========================== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition:none !important;
    animation:none !important;
  }
}

/* ==========================
   Fluid Typography
========================== */
h1 {
  font-size: clamp(1.25rem, 4vw, 2rem);
}

/* ==========================
   Modal: Offer Fullscreen (Desktop + Mobile)
========================== */
#offerFullModal .modal-dialog {
  max-width: 90vw;
  margin: 0 auto;
}

@media (max-width:991px) {
  #offerFullModal .modal-dialog {
    max-width: 95vw;
    margin: 0 auto;
  }
}

@media (max-width:767px) {
  #offerFullModal .modal-dialog {
    max-width: 100vw;
    margin: 0;
  }
}

#offerFullModal .modal-content {
  width:100%;
  border-radius:10px;
}

/* ==========================
   Notification Bell (perfect positioning)
========================== */
#notification-btn {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

#notification-btn i {
  font-size:1.7rem;
  line-height:1;
  position:relative;
}

.notif-badge {
  position:absolute;
  top:-2px;
  right:-6px;
  background:#dc3545;
  color:#fff;
  border-radius:50%;
  font-size:.65rem;
  font-weight:700;
  padding:2px 6px;
  min-width:18px;
  min-height:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 0 4px rgba(0,0,0,.25);
  pointer-events:none;
}

/* Mobile Optimierung */
@media (max-width:768px) {
  #notification-btn i { font-size:1.9rem; }

  .notif-badge {
    top:-4px;
    right:-4px;
    font-size:.75rem;
    padding:2px 7px;
    min-width:20px;
    min-height:20px;
  }
}

/* ==========================
   Notification Bell Shake Animation
========================== */
.notif-bell-shake {
  animation: bellShake 1.2s ease forwards;
}

@keyframes bellShake {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-18deg); }
  30%  { transform: rotate(16deg); }
  45%  { transform: rotate(-14deg); }
  60%  { transform: rotate(12deg); }
  75%  { transform: rotate(-10deg); }
  90%  { transform: rotate(8deg); }
  100% { transform: rotate(0deg); }
}

/* ==========================
   Back Button (hide on Mobile)
========================== */
@media (max-width:768px) {
  .btn-back-desktop {
    display:none !important;
  }
}
