/* ==========================================================================
   © Marcher Lab. – starterkit.li/shared | Demo Design System
   Shared stylesheet for all STARTERKIT. demo landing pages.
   Demos liegen unter starterkit.li/demo/<branche>/.
   Unauthorized reproduction prohibited.
   ========================================================================== */

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; }

/* --------------------------------------------------------------------------
   LAYOUT — einheitliche Breite für alle Demos
   -------------------------------------------------------------------------- */

/* Jede Section bekommt .demo-section, innerer Content .demo-inner */
.demo-section {
  padding: 5rem 0;
}

.demo-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Nav inner */
.demo-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Footer inner */
.demo-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Grid-Utilities */
.demo-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.demo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.demo-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .demo-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .demo-grid-2,
  .demo-grid-3 { grid-template-columns: 1fr; }
  .demo-section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .demo-grid-4 { grid-template-columns: 1fr; }
  .demo-inner,
  .demo-nav-inner,
  .demo-footer-inner { padding: 0 1.25rem; }
}

/* --------------------------------------------------------------------------
   SCROLL ANIMATIONS — wiederverwendbar in allen Demos
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   BACK TO TOP — Farbe via CSS-Variable, die jede Demo setzt
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  background: var(--btt-bg, #1E2A4A);
  color: var(--btt-color, #fff);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--btt-bg-hover, #2a3d6b);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   STARTERKIT. BANNER (Klassen weiterhin .ml-* — interne Konvention)
   Erscheint 2× pro Demo: ganz oben + ganz unten (nach Footer).
   Banner-CTA fuehrt auf starterkit.li (das Angebot, das die Demo bewirbt).
   Niemals im Kundenteil verwenden.
   © Marcher Lab. – starterkit.li/shared | Banner Styles – Unauthorized reproduction prohibited
   -------------------------------------------------------------------------- */

/* Inter für Banner über CDN einbinden — jede Demo-HTML lädt:
   https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap
   (zusätzlich zu den Kunden-Fonts) */

.ml-banner {
  background: #1E2A4A;
  border-top: 3px solid #F5C518;
  padding: 1.5rem 2rem;
  font-family: 'Inter', system-ui, sans-serif;
}

.ml-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.ml-banner-left {
  flex: 1;
  min-width: 280px;
}

.ml-top-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.ml-wordmark {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ml-wordmark span { color: #F5C518; }

.ml-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,197,24,0.15);
  border: 1px solid rgba(245,197,24,0.4);
  color: #F5C518;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.ml-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #F5C518;
  animation: ml-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes ml-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ml-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
.ml-title span { color: #F5C518; }

.ml-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.ml-sub strong { color: rgba(255,255,255,0.75); }

.ml-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.ml-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F5C518;
  color: #1E2A4A;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.ml-cta svg { flex-shrink: 0; }
.ml-cta:hover { background: #D4A017; }

.ml-price {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  text-align: right;
}

@media (max-width: 640px) {
  .ml-banner { padding: 1.25rem 1.25rem; }
  .ml-banner-right { align-items: flex-start; }
  .ml-price { text-align: left; }
}

/* --------------------------------------------------------------------------
   WEB PERFORMANCE HINTS
   (Werden per <link rel="preconnect"> im HTML-Head ergänzt)
   -------------------------------------------------------------------------- */
/* Keine CSS-Regeln nötig — siehe HTML-Template im Skill */
