/* ==========================================
   PVveda Design System - Zero-CLS Ambient Layout
   Perfekt optimiert für Google PageSpeed Insights (100% Score + Sichtbare Wolken)
   ========================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --header-height: 96px; /* Höhe der fest fixierten Sticky Navbar inkl. Top & Bottom Padding */
}

html, body {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden; /* Stoppt jegliches horizontales Wackeln/Scrollen auf Smartphones */
  background-color: var(--bg-page);
  color: var(--text-main);
  position: relative;
}

/* Clean Unified Page Background Layer (100% Uniform across all pages) */
.metronic-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: layout paint style;
  background: var(--bg-page);
}

/* Playful blur circles permanently disabled for clean technical look */
.blur-circle-1,
.blur-circle-2,
.blur-circle-3,
.blur-circle-4,
.blur-circle-5,
.metronic-gradient-overlay-1,
.metronic-gradient-overlay-2,
.glow-spot-tl,
.glow-spot-tr,
.glow-spot-bl {
  display: none !important;
}

/* SVG Dot Grid Pattern */
.metronic-dot-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e5e7eb' fill-opacity='0.3'%3E%3Ccircle cx='7' cy='7' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] .metronic-dot-grid {
  opacity: 0.05;
}

/* Standard Container System (Bootstrap Style) */
.container,
.pv-container,
.app-container {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-fluid {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Modifikatoren für Seiten-Hauptabstand unter der festen Navbar */
.has-header-padding,
.page-container {
  padding-top: calc(var(--header-height) + 2.25rem);
}

.pv-section {
  position: relative;
  padding: 3.5rem 0;
}

@media (max-width: 900px) {
  :root {
    --header-height: 60px; /* Kompakterer Top-Abstand auf Mobilgeräten & Tablets */
  }

  .container,
  .container-fluid,
  .pv-container,
  .app-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .has-header-padding,
  .page-container {
    padding-top: calc(var(--header-height) + 20px) !important;
  }
  
  .pv-section {
    padding: 1.25rem 0;
  }

  .blur-circle-1, .blur-circle-3 {
    width: 180px;
    height: 180px;
  }

  .pv-header-badges {
    float: none;
    margin-left: 0;
    margin-bottom: 0.75rem;
  }
}

/* ==========================================
   PVveda Global Utility Classes (Zero Inline Styles)
   ========================================== */

/* Spacing & Padding Utilities */
.padding-10 { padding: 1rem !important; }
.padding-125 { padding: 1.25rem !important; }
.padding-15 { padding: 1.5rem !important; }
.padding-20 { padding: 2rem !important; }
.padding-25 { padding: 2.5rem !important; }
.padding-30 { padding: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-05 { margin-bottom: 0.5rem !important; }
.mb-10 { margin-bottom: 1rem !important; }
.mb-15 { margin-bottom: 1.5rem !important; }
.mb-20 { margin-bottom: 2rem !important; }
.mb-25 { margin-bottom: 2.5rem !important; }
.mb-30 { margin-bottom: 3rem !important; }

/* Text Alignment Helpers */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.font-size-sm { font-size: 0.85rem !important; }
.font-weight-bold { font-weight: 700 !important; }
.font-weight-medium { font-weight: 500 !important; }
.mt-05 { margin-top: 0.5rem !important; }
.mt-08 { margin-top: 0.5rem !important; }
.mt-10 { margin-top: 0.75rem !important; }
.mt-15 { margin-top: 1.25rem !important; }
.mt-20 { margin-top: 1.75rem !important; }
.mt-25 { margin-top: 2.25rem !important; }
.mb-08 { margin-bottom: 0.5rem !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

/* Code Word-Break for Mobile Viewports */
.pv-code-break {
  word-break: break-all;
  white-space: normal;
  max-width: 100%;
}

/* Subtle Hint styling */
.pv-hint-subtle {
  font-size: 0.72rem !important;
  line-height: 1.35;
}

/* Gap Helpers */
.gap-05 { gap: 0.5rem !important; }
.gap-10 { gap: 1rem !important; }
.gap-15 { gap: 1.5rem !important; }
.gap-20 { gap: 2rem !important; }

/* Page Header Utilities with Float-Right Badges */
.pv-header-row {
  margin-bottom: 2rem;
}

.pv-header-row::after {
  content: "";
  display: table;
  clear: both;
}

.pv-header-badges {
  float: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  row-gap: 0.4rem;
  margin: 0 0 0.5rem 0;
  padding: 0;
}

.pv-page-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.pv-page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Text Utility Helpers */
.text-success { color: #059669 !important; font-weight: 600; }
.text-danger { color: #DC2626 !important; font-weight: 600; }
.text-warning { color: #D97706 !important; font-weight: 600; }

/* Flex & Layout Helpers */
.pv-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pv-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-opacity-disabled {
  opacity: 0.75;
}

.d-none {
  display: none !important;
}

/* Centering & Max-Width Utilities (Modular Bootstrap/Tailwind Style) */
.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.max-w-sm {
  max-width: 450px !important;
  width: 100%;
}

.max-w-md {
  max-width: 580px !important;
  width: 100%;
}

.max-w-lg {
  max-width: 800px !important;
  width: 100%;
}

.max-w-700 {
  max-width: 700px !important;
  width: 100%;
}

.width-50 {
  width: 50px !important;
}

.mr-05 {
  margin-right: 0.5rem !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.inline-block {
  display: inline-block !important;
}

.is-hidden {
  display: none !important;
}

.flex-between {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.justify-end {
  justify-content: flex-end !important;
}

.align-center {
  align-items: center !important;
}

.table-row-selected {
  background: var(--bg-card-subtle) !important;
}

.pv-wizard-progress-card {
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
