/* ==========================================================================

   PEAR â€“ globals.css

   Mobile-First Refactoring by Gemini (v5 - with blog styles)

   ========================================================================== */



/* ========== 4) Navigation (Mobile-First) ========== */

.p-nav {

  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);

  background: color-mix(in oklab, var(--pear-bg) 70%, #fff);

  border-bottom: 1px solid rgba(0, 0, 0, .04);

}

.p-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.p-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--pear-surface), var(--pear-bg));
  box-shadow: var(--shadow-out);
}

.p-logo {
  height: 40px;
  width: auto;
  display: block;
}

.p-brand-text {
  display: flex;
  flex-direction: column;
}

.p-brand-name {
  font-weight: 900;
  letter-spacing: .3px;
}

.p-brand-tag {
  font-size: 11px;
  color: var(--muted);
}



.p-cta,
.p-links {
  display: none;
}

.hamburger-btn {
  display: flex;
}

/* Show by default */



@media (min-width: 1024px) {

  .p-logo {
    height: 80px;
  }

  .p-logo-wrap {
    padding: 20px 30px;
  }

  .p-cta {
    display: flex;
    gap: 10px;
    margin-right: 0;
  }

  .p-links {
    display: block;
  }

  .hamburger-btn {
    display: flex !important;
  }

  /* Hamburger bleibt immer sichtbar! */

}



/* Hamburger Menu */

.hamburger-btn {

  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1001;

  width: 50px;
  height: 50px;
  border: none;
  border-radius: var(--radius-lg);

  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 5px;
  transition: all 0.3s ease;

}

.hamburger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.35);
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.hamburger-btn span {
  width: 24px;
  height: 3px;
  background: var(--pear-accent);
  border-radius: 999px;
  transition: all 0.3s ease;
}



/* Side Menu */

.nav-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: rgba(251, 250, 245, 0.85);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 80px 20px 20px;
}

.nav-menu.active {
  right: 0;
}

.nav-menu-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--pear-accent);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(121, 177, 75, 0.2);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(121, 177, 75, 0.25);
  border-color: rgba(121, 177, 75, 0.4);
  transform: translateX(-4px);
}

.nav-link.active {
  background: linear-gradient(145deg, rgba(121, 177, 75, 0.3), rgba(154, 223, 102, 0.3));
  border-color: rgba(121, 177, 75, 0.5);
  color: var(--pear-accent-dark);
}

.nav-link-icon {
  font-size: 28px;
}

.nav-social-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}





/* ========== 5) Buttons ========== */

.p-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  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;
}

.p-btn:hover {
  box-shadow: var(--shadow-out-2);
  transform: translateY(-1px);
}

.p-btn.primary {
  color: white;
  background: linear-gradient(145deg, var(--pear-accent), #8AD15D);
}



/* ========== 6) Hero Section ========== */

.p-hero {
  padding: 32px 0 16px;
}

.p-hero h1 {
  font-size: clamp(32px, 8vw, 56px);
  line-height: 1.1;
  margin: 0 0 10px;
  font-weight: 1000;
  letter-spacing: .2px;
}

.p-highlight {
  background: linear-gradient(90deg, var(--pear-accent) 0%, #A8DF6C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.p-hero p {
  max-width: 740px;
  color: var(--muted);
  font-size: clamp(16px, 2.5vw, 18px);
  margin: 8px 0 16px;
}

.p-hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.p-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  box-shadow: var(--shadow-out);
  color: var(--pear-accent-dark);
}



/* ========== 7) Visual / Map-Shell ========== */

.p-visual {
  position: relative;
}

.p-visual .p-pulled {
  position: relative;
  border-radius: 36px;
  padding: 14px;
  background: radial-gradient(160% 140% at 50% 15%, #FFFFFF 0%, var(--pear-surface) 45%, #EEEBDD 100%);
  box-shadow: 0 18px 28px rgba(0, 0, 0, .14), 0 8px 12px rgba(0, 0, 0, .06), -8px -8px 16px rgba(255, 255, 255, .50);
}

/* Deaktiviert: Inset Shadow Overlay entfernt */
.p-visual .p-pulled::before {
  content: none !important;
}

.p-visual .p-map {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #f1f8e9, #eef5e5);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .10), -6px -6px 14px rgba(255, 255, 255, .40);
}

.p-visual .p-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 40%), radial-gradient(120% 90% at 50% 100%, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, 0) 55%), radial-gradient(120% 120% at 0% 50%, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 40%), radial-gradient(120% 120% at 100% 50%, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, 0) 40%);
}



/* ========== 8) Cards / Sections ========== */

.p-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
  font-weight: 900;
}

.p-card {
  background: linear-gradient(145deg, var(--pear-surface), var(--pear-bg));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-out);
  padding: 24px;
}

.p-card h3 {
  margin: 4px 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.p-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.p-card--compact {
  padding: 12px;
}

.p-card--flush {
  padding: 0;
}



@media (max-width: 768px) {

  .p-card {
    padding: 20px;
  }

}



/* ========== 9) Inputs ========== */

.p-input {
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  box-shadow: var(--shadow-in);
  border: none;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  color: var(--text);
  width: 100%;
}

.p-input::placeholder {
  color: #9aa197;
}

.p-input:focus {
  outline: 0;
  box-shadow: inset 10px 10px 20px rgba(0, 0, 0, .08), inset -10px -10px 20px rgba(255, 255, 255, .95), 0 0 0 3px color-mix(in oklab, var(--pear-accent) 35%, #fff);
}



.p-inset-icon {
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}



/* Login tweaks */

.p-login-options {

  display: grid;

  grid-template-columns: auto 1fr;

  align-items: center;

  gap: 10px;

}



/* ========== 10) Reveal-Animation ========== */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}



/* ========== 11) Footer ========== */

.p-footer {
  margin: 32px 0 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.p-footer .p-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.p-footer a {
  color: inherit;
  text-decoration: none;
}

.p-footer a:hover {
  text-decoration: underline;
}

.p-footer .links {
  margin-top: 16px;
}



/* ========== 12) Beta Banner & Buttons ========== */

.beta-banner {
  display: block;
  background: linear-gradient(135deg, var(--pear-accent), #66bb6a);
  color: white;
  text-align: center;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
  position: relative;
  z-index: 900;
}

.beta-banner:hover {
  background: linear-gradient(135deg, #66bb6a, var(--pear-accent));
  transform: translateY(-1px);
}



.beta-cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #333;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 165, 0, 0.4);
  transition: all 0.3s ease;
  margin: 24px 0;
  text-align: center;
  border: 3px solid #FFD700;
  animation: ctaPulse 2s infinite;
  width: 100%;
}

.beta-cta-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(255, 165, 0, 0.6);
}



@media (min-width: 768px) {

  .beta-banner {
    font-size: 14px;
  }

  .beta-cta-button {
    width: auto;
    padding: 16px 32px;
    font-size: 18px;
  }

}



@keyframes ctaPulse {

  0%,
  100% {
    box-shadow: 0 8px 24px rgba(255, 165, 0, 0.4);
  }

  50% {
    box-shadow: 0 8px 32px rgba(255, 165, 0, 0.6);
  }
}



/* ========== 13) Widget System (Original Styles Restored) ========== */

#widgetScreen,
#articleWidgetScreen {
  position: relative;
  display: flex;
  flex-direction: column;
}

#widgetScreen::before,
#articleWidgetScreen::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0px, rgba(0, 0, 0, 0.10) 1px, transparent 1px, transparent 3px);
  animation: crtScanlines 6s linear infinite;
  z-index: 15;
  border-radius: 24px;
  opacity: 0.9;
}

.widget-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.widget {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.widget.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
  animation: crtFlicker 4s infinite;
}

.widget-inner {
  text-align: center;
  padding: 20px;
  max-width: 90%;
}



/* Widget Image Wrapper (for blog articles) */

.widget-image-wrapper {

  width: 100%;

  height: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0;

}



.widget-image-wrapper img {

  max-width: 100%;

  max-height: 100%;

  width: 100%;

  height: 100%;

  object-fit: cover;

  border-radius: 20px;

}



/* YouTube Widget */

.widget-youtube-fullscreen {

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

}

.widget-youtube-fullscreen iframe {

  width: 100%;

  height: 100%;

  border-radius: 24px;

}



/* Dev Message Widget */

.widget-emoji {
  font-size: 56px;
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

.widget-greeting {
  font-size: 28px;
  font-weight: 900;
  color: var(--pear-accent-dark);
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9);
}

.widget-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.widget-quote {
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}



/* Weather Widget (Restored) */

.widget-weather-location {
  font-size: 16px;
  font-weight: 800;
  color: var(--pear-accent-dark);
  margin-bottom: 12px;
}

.widget-weather-icon {
  font-size: 72px;
  margin-bottom: 8px;
}

.widget-weather-temp {
  font-size: 48px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}

.widget-weather-desc {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: capitalize;
}

.widget-weather-details {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}



@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes crtFlicker {
  0% {
    opacity: 1;
  }

  2% {
    opacity: 0.92;
  }

  4% {
    opacity: 1;
  }

  8% {
    opacity: 0.95;
  }

  10% {
    opacity: 1;
  }

  19% {
    opacity: 1;
  }

  21% {
    opacity: 0.88;
  }

  23% {
    opacity: 1;
  }

  25% {
    opacity: 0.94;
  }

  27% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  83% {
    opacity: 0.90;
  }

  85% {
    opacity: 0.96;
  }

  87% {
    opacity: 1;
  }
}

@keyframes crtScanlines {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(4px);
  }
}



/* Widget Dock - Artikel Version (schmaler, mittig, unten) */

/* Mobile: Volle Breite + niedrigere HÃ¶he */

.p-visual:has(#articleWidgetScreen) .p-pulled {

  width: 100%;

  margin: 0 auto;

}



#articleWidgetScreen {

  height: 200px;

}



/* Desktop: 60% Breite + normale HÃ¶he */

@media (min-width: 768px) {

  .p-visual:has(#articleWidgetScreen) .p-pulled {

    width: 60%;

  }



  #articleWidgetScreen {

    height: 320px;

  }

}



/* Widget Dock - Normal (fÃ¼r index.html) - MUSS ZUERST KOMMEN! */

.widget-dock {

  position: absolute;

  top: 50%;

  right: 12px;

  transform: translateY(-50%);

  display: flex;

  flex-direction: column;

  gap: 10px;

  background: rgba(255, 255, 255, 0.5);

  backdrop-filter: blur(8px);

  padding: 12px 8px;

  border-radius: var(--radius-lg);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  z-index: 20;

}



.widget-dock.widget-dock--bottom {

  top: auto;

  right: auto;

  bottom: 12px;

  left: 50%;

  transform: translateX(-50%);

  flex-direction: row;

  align-items: center;

  gap: 8px;

  padding: 4px 10px;

  width: max-content;

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.25);

  backdrop-filter: blur(6px);

}



.widget-dock-btn {

  width: 42px;

  height: 42px;

  border: none;

  border-radius: 50%;

  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));

  box-shadow: var(--shadow-out);

  font-size: 20px;

  cursor: pointer;

  transition: all 0.2s ease;

  display: flex;

  align-items: center;

  justify-content: center;

}



.widget-dock-btn:hover {

  box-shadow: var(--shadow-out-2);

  transform: translateY(-2px);

}



.widget-dock-btn.active {

  background: linear-gradient(145deg, var(--pear-accent), #8AD15D);

  box-shadow: var(--shadow-in);

  transform: scale(0.95);

}



/* ARTIKEL VERSION ÃœBERSCHREIBT - MUSS NACH DEM NORMALEN KOMMEN! */

#articleWidgetScreen .widget-dock {

  position: absolute !important;

  bottom: 12px !important;

  left: 50% !important;

  right: auto !important;

  top: auto !important;

  transform: translateX(-50%) !important;

  display: inline-flex !important;

  flex-direction: row !important;

  gap: 6px !important;

  padding: 8px !important;

  width: auto !important;

  max-width: fit-content !important;

  background: rgba(255, 255, 255, 0.25) !important;

  backdrop-filter: blur(12px) !important;

  border-radius: 999px !important;

}



#articleWidgetScreen .widget-dock-btn {

  width: 36px !important;

  height: 36px !important;

  font-size: 16px !important;

  font-weight: 900 !important;

  padding: 0 !important;

  min-width: 36px !important;

  flex-shrink: 0 !important;

  border: none !important;

  color: white !important;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;

  cursor: pointer !important;

  transition: all 0.2s ease !important;

  position: relative !important;

}



/* Bunte 3D-Buttons wie in slide-button.jpg - Rot */

#articleWidgetScreen .widget-dock-btn[data-widget="image1"] {

  background: linear-gradient(145deg, #FF6B6B, #E74C3C) !important;

  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;

}



/* Lila/Violett */

#articleWidgetScreen .widget-dock-btn[data-widget="image2"] {

  background: linear-gradient(145deg, #B19CD9, #9B59B6) !important;

  box-shadow: 0 4px 8px rgba(155, 89, 182, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;

}



/* Blau */

#articleWidgetScreen .widget-dock-btn[data-widget="image3"] {

  background: linear-gradient(145deg, #85C1E9, #5DADE2) !important;

  box-shadow: 0 4px 8px rgba(93, 173, 226, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;

}



/* TÃ¼rkis */

#articleWidgetScreen .widget-dock-btn[data-widget="image4"] {

  background: linear-gradient(145deg, #76D7C4, #48C9B0) !important;

  box-shadow: 0 4px 8px rgba(72, 201, 176, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;

}



/* Play-Button in PEAR-GrÃ¼n */

#articleWidgetScreen #autoPlayBtn {

  background: linear-gradient(145deg, #8AD15D, var(--pear-accent)) !important;

  box-shadow: 0 4px 8px rgba(121, 177, 75, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;

}



/* Hover-Effekt */

#articleWidgetScreen .widget-dock-btn:hover {

  transform: translateY(-2px) !important;

  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;

}



/* Active State - gedrÃ¼ckt */

#articleWidgetScreen .widget-dock-btn.active {

  transform: scale(0.92) !important;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 2px 6px rgba(0, 0, 0, 0.4) !important;

}



/* ========== 14) Pricing Section (Restored) ========== */

.p-pricing-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--muted);
  margin: -20px auto 24px;
  max-width: 600px;
}



/* Starter/Demo Card */

.p-pricing-starter-wrap {
  margin: 32px 0;
}

.p-pricing-starter {
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  box-shadow: var(--shadow-out);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--pear-accent);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.p-pricing-starter:hover {
  box-shadow: var(--shadow-out-2);
  transform: translateY(-2px);
}

.p-pricing-starter-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-pricing-starter-header .p-pricing-name {
  font-size: 24px;
  margin-bottom: 8px;
  white-space: nowrap;
}

.p-pricing-starter-header .p-pricing-amount {
  font-size: 42px;
}

.p-pricing-starter-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-pricing-cta-large {
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 900;
  width: 100%;
}



@media (min-width: 1024px) {

  .p-pricing-starter {
    flex-direction: row;
    text-align: left;
    padding: 32px;
  }

  .p-pricing-starter-content {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .p-pricing-starter-header {
    text-align: left;
  }

  .p-pricing-starter-header .p-pricing-name {
    font-size: 28px;
  }

  .p-pricing-starter-header .p-pricing-amount {
    font-size: 48px;
  }

  .p-pricing-starter-features {
    flex-wrap: wrap;
    flex-direction: row;
    gap: 24px;
  }

  .p-pricing-cta-large {
    width: auto;
    min-width: 200px;
  }

}



/* Main Pricing Grid */

.p-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 32px 0;
}



.p-pricing-card {
  position: relative;
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  box-shadow: var(--shadow-out);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border: 2px solid var(--pear-accent);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.p-pricing-card:hover {
  box-shadow: var(--shadow-out-2);
  transform: translateY(-4px);
}



.p-pricing-featured {
  border: 3px solid var(--pear-accent);
}

.p-pricing-enterprise {
  background: linear-gradient(145deg, #f0f4ef, var(--pear-surface));
}



@media (min-width: 768px) {

  .p-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .p-pricing-card {
    min-height: 480px;
  }

  .p-pricing-featured {

    box-shadow: var(--shadow-out-2), 0 0 0 3px color-mix(in oklab, var(--pear-accent) 20%, transparent), 0 8px 24px rgba(76, 175, 80, 0.15);

    transform: scale(1.02);

  }

  .p-pricing-featured:hover {
    transform: scale(1.04) translateY(-4px);
  }

}



.p-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pear-accent), #66bb6a);
  color: white;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  white-space: nowrap;
}

.p-pricing-enterprise .p-pricing-badge {
  background: linear-gradient(135deg, #5c6bc0, #7986cb);
  box-shadow: 0 4px 12px rgba(92, 107, 192, 0.3);
}



.p-pricing-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.p-pricing-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 12px 0;
}

.p-pricing-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.p-pricing-amount {
  font-size: 36px;
  font-weight: 900;
  color: var(--pear-accent-dark);
  line-height: 1;
}

.p-pricing-period {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.p-pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.p-pricing-feature {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding-left: 8px;
  position: relative;
}

.p-pricing-feature.p-muted {
  color: var(--muted);
  opacity: 0.7;
}

.p-pricing-cta {
  width: 100%;
  margin-top: auto;
  text-align: center;
  justify-content: center;
  padding: 14px 24px;
  font-weight: 800;
}

.p-pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
}



.p-pricing-clickable:hover {
  box-shadow: var(--shadow-out-2);
  transform: translateY(-4px);
}

.p-pricing-clickable.p-pricing-featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.p-pricing-static-btn {
  pointer-events: none;
  cursor: default;
}

.p-pricing-static-btn:hover {
  box-shadow: var(--shadow-in) !important;
  transform: none !important;
}



@media (min-width: 768px) {

  .p-pricing-amount {
    font-size: 42px;
  }

}



/* ========== 15) Trust Badges ========== */

.p-trust-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.p-trust-badge {
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  box-shadow: var(--shadow-out);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--pear-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.p-trust-badge:hover {
  box-shadow: var(--shadow-out-2);
  transform: translateY(-4px);
}

.p-trust-badge-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.p-trust-badge-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}



/* ========== 16) Contact Section ========== */

.contact-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.contact-logos img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.contact-logos img:hover {
  transform: scale(1.05);
}



@media (min-width: 768px) {

  .contact-logos {
    justify-content: flex-end;
    gap: 24px;
  }

  .contact-logos img {
    height: 80px;
  }

}



/* ========== 17) Cookie Banner ========== */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 16px;
  z-index: 10000;
  border-top: 3px solid var(--pear-accent);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cookie-consent-text {
  flex: 1;
}

.cookie-consent-text h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}

.cookie-consent-text p {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.cookie-consent-link {
  color: var(--pear-accent-dark);
  text-decoration: underline;
  font-weight: 600;
  font-size: 13px;
}

.cookie-consent-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  width: 100%;
}

.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, var(--pear-accent), #66bb6a);
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.cookie-btn-necessary {
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  color: var(--text);
  box-shadow: var(--shadow-out);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--pear-accent);
}



@media (min-width: 768px) {

  .cookie-consent-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 32px;
  }

  .cookie-consent-buttons {
    flex-direction: row;
    width: auto;
  }

  .cookie-btn {
    width: auto;
  }

}



.p-map-canvas {
  width: 100%;
  height: 100%;
}



.p-map-control {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  box-shadow: var(--shadow-out);
  font-size: 20px;
  cursor: pointer;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.p-map-control:hover {
  box-shadow: var(--shadow-out-2);
  transform: translateY(-2px);
}

.p-map-control:active {
  transform: scale(0.95);
}



.navigation-panel {
  display: none;
}

/* ========== Termin-Karten & Badges (Zentralisiert) ========== */
.termin-card {
  background: linear-gradient(145deg, var(--pear-surface), var(--pear-bg)) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-out) !important;
  padding: 20px 24px !important;
  cursor: pointer;
  transition: all .2s ease;
  display: grid !important;
  grid-template-columns: 90px 1fr !important;
  gap: 16px !important;
  align-items: center !important;
  position: relative !important;
  margin-bottom: 16px !important;
  min-height: 100px;
}

.termin-card:hover {
  box-shadow: var(--shadow-out-2) !important;
  transform: translateY(-2px);
}

.termin-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  padding-right: 16px;
}

.termin-time-main {
  font-size: 20px;
  font-weight: 900;
  color: var(--pear-accent-dark);
}

.termin-duration {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.termin-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 40px;
  /* Platz für Badge */
}

.termin-kunde {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  margin: 0;
}

.termin-meta {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.termin-card .badge {
  position: absolute !important;
  right: -12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 100 !important;
}

/* ========== Dashboard-Spezifische Styles (Zentralisiert) ========== */
#map,
#map *,
#map .H_ib,
#map canvas {
  border-radius: 24px !important;
  overflow: hidden !important;
}

#map {
  background: linear-gradient(180deg, #f1f8e9, #eef5e5) !important;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .10), -6px -6px 14px rgba(255, 255, 255, .40) !important;
  position: relative !important;
}

/* CRT & Widget Effects */
@keyframes crtFlicker {

  0%,
  4%,
  10%,
  19%,
  23%,
  27%,
  80%,
  87% {
    opacity: 1;
  }

  2% {
    opacity: 0.92;
  }

  8% {
    opacity: 0.95;
  }

  21% {
    opacity: 0.88;
  }

  25% {
    opacity: 0.94;
  }

  83% {
    opacity: 0.90;
  }

  85% {
    opacity: 0.96;
  }
}

@keyframes crtScanlines {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(4px);
  }
}

#widgetScreen {
  position: relative;
  display: flex;
  flex-direction: column;
}

.widget-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.widget {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.widget.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
  animation: crtFlicker 4s infinite;
}

/* NINA Alerts */
.nina-alert {
  background: #fff3cd !important;
  border: 1px solid #ffeeba !important;
  color: #856404 !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.nina-alert.severe {
  background: #f8d7da !important;
  border-color: #f5c6cb !important;
  color: #721c24 !important;
}

/* Dashboard Cards (.ap) */
.card.kpi .label {
  line-height: 1.25;
  max-width: 14ch;
}

.card.kpi .value {
  line-height: 1.05;
  word-break: break-word;
}

#kpiNext .kpi-next-time {
  font-size: 22px;
  font-weight: 900;
  color: var(--pear-accent-dark);
}

/* ===== Termin-Overlay (geteilt: termine.html + dashboard) ===== */

.detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  box-shadow: var(--shadow-out);
  cursor: pointer;
  font-size: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.detail-close:hover {
  box-shadow: var(--shadow-out-2);
}

.detail-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-header-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-title {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 4px;
}

.detail-inline-hint {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.detail-section {
  margin: 16px 0;
}

.detail-section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--pear-accent-dark);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.detail-row {
  display: flex;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
  align-items: flex-start;
}

.detail-label {
  color: var(--muted);
  min-width: 120px;
  font-weight: 600;
}

.detail-value {
  color: var(--text);
  font-weight: 700;
  flex: 1;
}

.kunde-link {
  color: var(--pear-accent-dark);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.kunde-link:hover {
  text-decoration: underline;
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--pear-accent), #8AD15D);
  color: white;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-out);
  transition: all .2s ease;
  text-decoration: none;
  margin-top: 6px;
}

.call-btn:hover {
  box-shadow: var(--shadow-out-2);
  transform: translateY(-1px);
}

.form-group {
  margin: 16px 0;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--pear-accent-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: linear-gradient(145deg, var(--pear-tint), var(--pear-surface));
  box-shadow: var(--shadow-in);
  border: none;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236D6D6D' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 0;
  box-shadow:
    inset 10px 10px 20px rgba(0, 0, 0, .08),
    inset -10px -10px 20px rgba(255, 255, 255, .95),
    0 0 0 3px color-mix(in oklab, var(--pear-accent) 35%, #fff);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-submit {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--pear-accent), #8AD15D);
  color: white;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-out);
  transition: all .2s ease;
}

.btn-submit:hover {
  box-shadow: var(--shadow-out-2);
  transform: translateY(-1px);
}

.btn-cancel {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--pear-surface), var(--pear-tint));
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-out);
  transition: all .2s ease;
}

.btn-cancel:hover {
  box-shadow: var(--shadow-out-2);
  transform: translateY(-1px);
}

#kpiNext .kpi-next-customer {
  font-size: 18px;
  font-weight: 800;
  color: var(--pear-accent-dark);
}