/* ========== General Utility Classes ========== */
.p-text-center,
.text-center {
  text-align: center;
}

.p-text-right {
  text-align: right;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-800 {
  max-width: 800px;
}

.fs-18 {
  font-size: 18px;
}

.mt-80 {
  margin-top: 80px !important;
}

/* Important to override other margins */

/* Typography */
.p-text-xs {
  font-size: 12px;
}

.p-text-sm {
  font-size: 13px;
}

.p-text-base {
  font-size: 14px;
}

.p-text-muted,
.text-muted {
  color: var(--muted);
}

.p-text-error {
  color: #d32f2f;
}

.p-text-warning {
  color: #f57f17;
}

.p-text-accent {
  color: var(--pear-accent-dark);
}

.p-text-success {
  color: #1b5e20;
}

.p-font-semibold {
  font-weight: 600;
}

.p-font-bold {
  font-weight: 700;
}

.p-font-black {
  font-weight: 900;
}

.p-heading-tight-md {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.p-heading-tight-lg {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

/* Display / Flex helpers */
.p-hidden {
  display: none !important;
}

.p-flex {
  display: flex;
}

.p-inline-flex {
  display: inline-flex;
}

.p-flex-col {
  flex-direction: column;
}

.p-flex-wrap {
  flex-wrap: wrap;
}

.p-items-center {
  align-items: center;
}

.p-items-start {
  align-items: flex-start;
}

.p-justify-between {
  justify-content: space-between;
}

.p-justify-end {
  justify-content: flex-end;
}

.p-justify-center {
  justify-content: center;
}

.p-gap-6 {
  gap: 6px;
}

.p-gap-8 {
  gap: 8px;
}

.p-gap-10 {
  gap: 10px;
}

.p-gap-12 {
  gap: 12px;
}

.p-gap-14 {
  gap: 14px;
}

.p-gap-16 {
  gap: 16px;
}

.p-flex-1 {
  flex: 1;
  min-width: 0;
}

.p-w-full {
  width: 100%;
}

.p-h-full {
  height: 100%;
}

/* Spacing */
.p-m-0 {
  margin: 0;
}

.p-mb-0 {
  margin-bottom: 0;
}

.p-mt-0 {
  margin-top: 0;
}

.p-mt-6 {
  margin-top: 6px;
}

.p-mt-8 {
  margin-top: 8px;
}

.p-mt-10 {
  margin-top: 10px;
}

.p-mt-12,
.mt-12 {
  margin-top: 12px;
}

.p-mt-14 {
  margin-top: 14px;
}

.p-mt-16,
.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.p-mb-4 {
  margin-bottom: 4px;
}

.p-mb-6 {
  margin-bottom: 6px;
}

.p-mb-8 {
  margin-bottom: 8px;
}

.p-mb-12 {
  margin-bottom: 12px;
}

.p-mb-14 {
  margin-bottom: 14px;
}

.p-mb-16 {
  margin-bottom: 16px;
}

.p-ml-20 {
  margin-left: 20px;
}

.p-btn-full {
  width: 100%;
  padding-top: 16px;
  padding-bottom: 16px;
}

.p-opacity-70 {
  opacity: 0.7;
}

.p-opacity-80 {
  opacity: 0.8;
}

.link-accent {
  color: var(--pear-accent-dark);
  text-decoration: underline;
  font-weight: 700;
}

/* Form helpers */
.p-label {
  font-weight: 700;
  font-size: 13px;
  display: inline-block;
}

.p-inset-control {
  padding: 0;
  display: flex;
  align-items: center;
}

.p-input--clear {
  background: none !important;
  box-shadow: none !important;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  flex: 1;
}

.p-checkbox-align {
  transform: translateY(1px);
}

.p-list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-alert-soft {
  background: rgba(76, 175, 80, 0.1);
  padding: 8px;
  border-radius: 6px;
}

.p-alert {
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--pear-surface), #ffffff);
  text-align: center;
}

.p-alert--success {
  background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
  color: #1b5e20;
}

.p-alert--error {
  background: linear-gradient(145deg, #ffebee, #ffcdd2);
  color: #c62828;
}

.p-alert--info {
  background: linear-gradient(145deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
  color: var(--muted);
}

.p-link-muted {
  color: var(--pear-accent-dark);
  text-decoration: none;
  font-weight: 700;
}

.p-link-muted:hover {
  text-decoration: underline;
}


/* Fallback for grid-cols-2 in forms etc. */

[grid-cols-2] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {

  [grid-cols-2] {
    grid-template-columns: 1fr 1fr;
  }

}



/*

==============================================

   STYLES FROM BETATEST.HTML

==============================================

*/



/* Beta Info Grid */

.beta-info {
  display: grid;
  gap: 24px;
}

.beta-info-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 12px;
  align-items: center;
  padding: 20px;
  background: linear-gradient(145deg, var(--pear-tint), #ffffff);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-in);
}

.beta-info-highlight {
  background: linear-gradient(145deg, #fff9c4, #fff59d);
  border: 2px solid var(--pear-accent);
}

.beta-info-icon {
  font-size: 40px;
  min-width: 60px;
  text-align: center;
}

.beta-info-content h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}

.beta-info-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}



@media (min-width: 768px) {

  .beta-info-item {
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }

  .beta-info-icon {
    font-size: 48px;
  }

}



/* Timeline */

.beta-timeline {
  display: grid;
  gap: 24px;
}

.beta-timeline-item {
  display: flex;
  gap: 20px;
  align-items: start;
}

.beta-timeline-marker {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pear-accent), #66bb6a);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.beta-timeline-content {
  flex: 1;
  padding-top: 4px;
}

.beta-timeline-content h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--pear-accent-dark);
}

.beta-timeline-content p {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}



@media (min-width: 768px) {

  .beta-timeline-marker {
    min-width: 48px;
    height: 48px;
    font-size: 20px;
  }

}



/* Checkboxes */

.beta-checkbox {
  display: flex;
  align-items: start;
  gap: 12px;
}

.beta-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.beta-checkbox label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}

.beta-checkbox-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  cursor: default;
  flex: 1;
}

.beta-checkbox-text a {
  pointer-events: all;
  cursor: pointer;
}



/* Mega Guardian Modal */

.mega-guardian-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.mega-guardian-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.mega-guardian-content {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  padding: 24px;
  animation: modalSlideIn 0.3s ease-out;
}

.mega-guardian-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 32px;
  height: 32px;
  transition: color 0.2s;
}

.mega-guardian-close:hover {
  color: #333;
}

.mega-guardian-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.mega-guardian-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.mega-guardian-text h3 {
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: 900;
  color: #333;
}

.mega-guardian-text p {
  margin: 0 0 12px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.mega-guardian-text p:last-child {
  margin-bottom: 0;
}

.mega-guardian-text .contact-info {
  margin-top: 20px;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
}



@media (min-width: 768px) {

  .mega-guardian-content {
    padding: 40px;
  }

  .mega-guardian-body {
    flex-direction: row;
    text-align: left;
    gap: 24px;
  }

  .mega-guardian-logo img {
    width: 120px;
    height: 120px;
  }

}



@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Beta CTA Popup Button */

.beta-cta-popup-btn {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #333;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 165, 0, 0.4);
  transition: all 0.3s ease;
  margin-top: 24px;
  border: 3px solid #FFD700;
  animation: ctaPulse 2s infinite;
  width: 100%;
}

.beta-cta-popup-btn:hover {
  background: linear-gradient(135deg, #FFA500, #FFD700);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(255, 165, 0, 0.6);
}



@media (min-width: 768px) {

  .beta-cta-popup-btn {
    width: auto;
    padding: 18px 40px;
    font-size: 18px;
  }

}



/* Beta Anmeldung Popup */

.beta-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.beta-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.beta-popup-content {
  position: relative;
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  animation: popupSlideIn 0.4s ease-out;
  border: 3px solid var(--pear-accent);
}

.beta-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(145deg, var(--pear-tint), white);
  border: 2px solid var(--pear-accent);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--pear-accent-dark);
  padding: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beta-popup-close:hover {
  background: var(--pear-accent);
  color: white;
  transform: rotate(90deg);
}

.beta-popup-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(76, 175, 80, 0.2);
}

.beta-popup-header h2 {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--pear-accent-dark);
}

.beta-popup-header p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}



@media (min-width: 768px) {

  .beta-popup-content {
    padding: 40px;
  }

  .beta-popup-header h2 {
    font-size: 28px;
  }

}



@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}



/*

==============================================

   STYLES FROM AGB.HTML

==============================================

*/



.legal-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px;
}

.legal-brand {
  display: flex;
  justify-content: center;
  margin: 6px 0 16px;
}

.legal-brand .logo-wrap {
  padding: 10px 16px;
  border-radius: 20px;
}

.legal-brand .logo-wrap img {
  height: 46px;
}



.legal-card {
  background: linear-gradient(145deg, var(--pear-surface), var(--pear-bg));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-out);
  padding: 24px;
}



.legal-card h1 {
  font-size: 28px;
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: .2px;
}

.legal-card h2 {
  font-size: 20px;
  margin: 22px 0 8px;
  font-weight: 800;
}

.legal-card h3 {
  font-size: 16px;
  margin: 16px 0 6px;
  font-weight: 700;
}

.legal-card p,
.legal-card li {
  line-height: 1.55;
}

.legal-card p {
  margin: 8px 0;
}

.legal-card .muted {
  color: var(--muted);
}

.legal-card ul {
  margin: 8px 0;
  padding-left: 24px;
}

.legal-card li {
  margin: 4px 0;
}

.legal-card a {
  color: var(--pear-accent-dark);
  text-decoration: none;
  font-weight: 700;
}

.legal-card a:hover {
  text-decoration: underline;
}



.highlight-box {

  background: linear-gradient(145deg, #fff9c4, #fff59d);

  border-left: 4px solid var(--pear-accent);

  padding: 16px;

  margin: 16px 0;

  border-radius: 8px;

}



.legal-footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 20px 0 10px;
}

.legal-footer .links {
  margin-top: 8px;
  letter-spacing: .3px;
}

.legal-footer .links a {
  margin: 0 8px;
  color: var(--muted);
}

.legal-footer .links a:hover {
  color: var(--pear-accent-dark);
}



@media print {

  .p-nav,
  .hamburger-btn,
  .nav-menu,
  .nav-menu-overlay,
  .p-footer {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .p-wrap,
  .p-card {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .p-card {
    box-shadow: none;
    border: none;
  }

  a {
    text-decoration: underline !important;
    color: #000 !important;
  }

}



@media (max-width: 768px) {

  .legal-card {
    padding: 20px;
  }

  .legal-card h1 {
    font-size: 24px;
  }

  .legal-card h2 {
    font-size: 18px;
  }

}



/*

==============================================

   STYLES FROM BLOG

==============================================

*/



/* Blog Overview */

.blog-card-image {

  width: 100%;

  height: 180px;

  object-fit: cover;

  border-radius: var(--radius-md);

  margin-bottom: 16px;

}



.blog-meta {

  font-size: 13px;

  color: var(--muted);

  margin: 12px 0;

}



/* Hero Gallery (PiP) */

.blog-hero-gallery {

  position: relative;

  width: 100%;

  height: 280px;

  border-radius: var(--radius-xl);

  overflow: hidden;

  background: linear-gradient(145deg, var(--pear-surface), var(--pear-bg));

  box-shadow: var(--shadow-out);

  margin-bottom: 32px;

}



.blog-gallery-images {

  position: relative;

  width: 100%;

  height: 100%;

}



.blog-gallery-images img {

  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  object-fit: cover;

  opacity: 0;

  transition: opacity 0.5s ease;

}



.blog-gallery-images img.active {

  opacity: 1;

}



.blog-gallery-controls {

  position: absolute;

  bottom: 20px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  align-items: center;

  gap: 12px;

  background: rgba(255, 255, 255, 0.8);

  backdrop-filter: blur(8px);

  padding: 8px 16px;

  border-radius: 999px;

}



.gallery-btn {

  padding: 8px 12px;

  font-size: 14px;

}



.gallery-dots {

  display: flex;

  gap: 8px;

}



.gallery-dots span {

  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: var(--muted);

  cursor: pointer;

  transition: all 0.2s;

}



.gallery-dots span.active {

  background: var(--pear-accent);

  transform: scale(1.2);

}



/* Artikel-Layout */

.blog-layout {

  align-items: start;

}



.blog-sidebar {

  display: flex;

  flex-direction: column;

  gap: 24px;

}



.blog-article {

  padding: 32px;

}



.blog-article h1 {

  font-size: 32px;

  margin: 0 0 16px 0;

  font-weight: 900;

}



.blog-content h2 {

  font-size: 24px;

  margin: 32px 0 12px 0;

  font-weight: 800;

  color: var(--pear-accent-dark);

}



.blog-content h3 {

  font-size: 18px;

  margin: 24px 0 8px 0;

  font-weight: 700;

}



.blog-content p {

  line-height: 1.7;

  margin: 12px 0;

}



.blog-toc {

  list-style: none;

  padding: 0;

  margin: 12px 0 0 0;

}



.blog-toc li {

  margin: 8px 0;

}



.blog-toc a {

  color: var(--text);

  text-decoration: none;

  font-weight: 600;

  transition: color 0.2s;

}



.blog-toc a:hover {

  color: var(--pear-accent);

}



/* Desktop: Hero Gallery grÃ¶ÃŸer */

@media (min-width: 768px) {

  .blog-hero-gallery {

    height: 400px;

  }

}



/* Mobile: Kleinere Padding */

@media (max-width: 768px) {

  .blog-article {

    padding: 24px;

  }



  /* Tabellen responsive machen */

  .blog-article table {

    display: block;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

    width: 100% !important;

  }



  .blog-article table th,

  .blog-article table td {

    font-size: 13px !important;

    padding: 8px !important;

  }

}



/* ========== DASHBOARD STYLES ========== */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px;
}

.row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.row.cols-2 {
  grid-template-columns: 1.4fr 1fr;
}

.row.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.row.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.row.p-row-map {
  grid-template-columns: 1.5fr 1fr;
}


.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 16px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--pear-surface), var(--pear-bg));
  box-shadow: var(--shadow-out);
}

.logo-wrap img {
  height: 48px;
  width: auto;
  display: block;
}



.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.title {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 4px;
  color: var(--text);
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}



.card {
  background: linear-gradient(145deg, var(--pear-surface), var(--pear-bg));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-out);
  padding: 20px;
  transition: all 0.2s ease;
}



.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  color: var(--pear-accent-dark);
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  box-shadow: var(--shadow-out);
  transition: box-shadow .2s ease, transform .15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  box-shadow: var(--shadow-out-2);
  transform: translateY(-1px);
}

.btn.primary {
  color: white;
  background: linear-gradient(145deg, var(--pear-accent), #8AD15D);
}

.btn-route {
  background: linear-gradient(145deg, var(--pear-surface), var(--pear-tint));
}



.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  box-shadow: var(--shadow-out);
  white-space: nowrap;
}

.badge.ok {
  color: var(--pear-accent-dark);
  background: linear-gradient(145deg, rgba(121, 177, 75, 0.2), rgba(154, 223, 102, 0.15));
}

.badge.warn {
  color: #e67e22;
  background: linear-gradient(145deg, rgba(230, 126, 34, 0.2), rgba(230, 126, 34, 0.1));
}

.badge.nachbearbeitung {
  color: #9c6e00;
  background: linear-gradient(145deg, #fff3cd, #ffeeb1);
}

.badge.error {
  color: #c0392b;
  background: linear-gradient(145deg, rgba(192, 57, 43, 0.2), rgba(192, 57, 43, 0.1));
}

.badge.drive,
.badge.phone {
  color: var(--muted);
  font-size: 12px;
}



.chipbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  color: var(--muted);
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  box-shadow: var(--shadow-out);
  transition: all 0.2s ease;
}

.chip:hover {
  box-shadow: var(--shadow-out-2);
}

.chip.active {
  color: white;
  background: linear-gradient(145deg, var(--pear-accent), #8AD15D);
  box-shadow: inset 6px 6px 12px rgba(0, 0, 0, .15), inset -6px -6px 12px rgba(255, 255, 255, .30), 0 4px 8px rgba(121, 177, 75, 0.3);
}



.inset {
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  box-shadow: var(--shadow-in);
  border-radius: var(--radius-lg);
  padding: 10px;
}



.kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.kpi .label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 700;
}

.kpi .value {
  font-size: 32px;
  font-weight: 900;
  color: var(--pear-accent-dark);
  line-height: 1;
}



.progress {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress .bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--pear-accent), #8AD15D);
  border-radius: 999px;
  transition: width 0.5s ease;
  box-shadow: 0 2px 8px rgba(121, 177, 75, 0.4);
}


.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 12px;
  font-weight: 900;
  font-size: 16px;
}

.section-title .left {
  display: flex;
  align-items: center;
  gap: 10px;
}



.ap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 110px 16px 16px;
  position: relative;
  /* Wichtig für Badge-Überlappung */
}

.ap .badge:not(.drive):not(.phone) {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.ap-time {
  display: flex;
  align-items: center;
}


.ap-time .bubble {
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-lg);
  min-width: 70px;
}

.ap-time .t {
  font-size: 18px;
  font-weight: 900;
  color: var(--pear-accent-dark);
  line-height: 1;
}

.ap-time .d {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.ap-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ap-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}



.auto-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
}



.inbox {
  padding: 0;
}

.inbox-item {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inbox-item:hover {
  box-shadow: inset 12px 12px 24px rgba(0, 0, 0, .12), inset -12px -12px 24px rgba(255, 255, 255, .98);
}



.log {
  max-height: 300px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.log div {
  margin-bottom: 6px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}



.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal .panel {
  background: var(--pear-bg);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}



.mb-8 {
  margin-bottom: 8px;
}

.mt-8 {
  margin-top: 8px;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.p-16 {
  padding: 16px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-8 {
  gap: 8px;
}

.fs-14 {
  font-size: 14px;
}

.fs-18 {
  font-size: 18px;
}

.text-muted {
  color: var(--muted);
}



@media (max-width: 768px) {

  .row.cols-2,
  .row.cols-3,
  .row.cols-4 {
    grid-template-columns: 1fr;
  }

  .split-2 {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ap {
    grid-template-columns: 1fr;
    gap: 12px;
  }

}



/* Dashboard PiP-Screen Height Override */

.dashboard .p-map {

  height: 100%;

  min-height: 420px;

}



/* Appointments */

.ap {

  display: grid;

  grid-template-columns: auto 1fr auto;

  gap: 14px;

  align-items: center;

  padding: 16px;

}

.ap-time {

  display: flex;

  align-items: center;

}

.ap-time .bubble {

  text-align: center;

  padding: 10px;

  border-radius: var(--radius-lg);

  min-width: 70px;

}

.ap-time .t {

  font-size: 18px;

  font-weight: 900;

  color: var(--pear-accent-dark);

  line-height: 1;

}

.ap-time .d {

  font-size: 11px;

  color: var(--muted);

  margin-top: 2px;

}

.ap-meta {

  display: flex;

  gap: 8px;

  flex-wrap: wrap;

  margin-top: 8px;

}

.ap-actions {

  display: flex;

  gap: 8px;

  flex-wrap: wrap;

}



/* Automations */

.auto-row {

  display: grid;

  grid-template-columns: 1fr auto;

  gap: 12px;

  align-items: center;

  padding: 14px 18px;

}



/* Inbox */

.inbox {

  padding: 0;

}

.inbox-item {

  padding: 14px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  cursor: pointer;

  transition: all 0.2s ease;

}

.inbox-item:hover {

  box-shadow: inset 12px 12px 24px rgba(0, 0, 0, .12), inset -12px -12px 24px rgba(255, 255, 255, .98);

}



/* Session Log */

.log {

  max-height: 300px;

  overflow-y: auto;

  font-size: 13px;

  line-height: 1.6;

  color: var(--muted);

}

.log div {

  margin-bottom: 6px;

  padding: 4px 0;

  border-bottom: 1px solid rgba(0, 0, 0, 0.04);

}



/* Modal */

.modal {

  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.4);

  backdrop-filter: blur(4px);

  z-index: 9999;

  display: flex;

  align-items: center;

  justify-content: center;

  opacity: 0;

  pointer-events: none;

  transition: opacity 0.3s ease;

  padding: 20px;

}

.modal.is-open {

  opacity: 1;

  pointer-events: all;

}

.modal .panel {

  background: var(--pear-bg);

  border-radius: var(--radius-xl);

  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);

  max-width: 900px;

  width: 100%;

  max-height: 90vh;

  overflow-y: auto;

  padding: 28px;

}



/* Utility Classes */

.mb-8 {
  margin-bottom: 8px;
}

.mt-8 {
  margin-top: 8px;
}

.split-2 {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 18px;

}

.p-16 {
  padding: 16px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-8 {
  gap: 8px;
}

.fs-14 {
  font-size: 14px;
}

.fs-18 {
  font-size: 18px;
}

.text-muted {
  color: var(--muted);
}



/* Responsive Dashboard */

@media (max-width: 768px) {

  .row.cols-2,
  .row.cols-3,
  .row.cols-4 {

    grid-template-columns: 1fr;

  }

  .split-2 {

    grid-template-columns: 1fr;

  }

  .header {

    flex-direction: column;

    align-items: flex-start;

  }

  .ap {

    grid-template-columns: 1fr;

    gap: 12px;

  }

}




@media (max-width: 768px) {
  .dashboard-panel[data-dashboard-panel="tools"] {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .dashboard-panel[data-dashboard-panel="tools"] * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .dashboard-panel[data-dashboard-panel="tools"] .card {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .dashboard-panel[data-dashboard-panel="tools"] .auto-row {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }
}

.process-status-banner {
  background: linear-gradient(145deg, #fff9c4, #fffde7) !important;
  border: 2px solid #9c6e00 !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-in) !important;
  padding: 16px !important;
  margin-bottom: 16px !important;
}

.process-status-title {
  color: #9c6e00 !important;
  text-transform: uppercase !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  margin-bottom: 4px !important;
}

.process-status-label {
  color: #333 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}