/* Showcase-Startseite – Original-Design (2025), Styles unverändert übernommen + Ergänzungen 3.0 */
    :root {
      --pc-primary: #111827;
      --pc-secondary: #1e293b;
      --pc-accent: #6366f1;
      --pc-bg: #f9fafb;
      --pc-card: rgba(30, 41, 59, 0.75);
      --pc-text-dark: #0f172a;
      --pc-text-light: #e2e8f0;
    }
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    /*
      Die Hintergrundfarbe wurde entfernt, damit nur noch die animierten Waves
      sichtbar sind. Wenn das Weiß des Browser-Defaults stört, kann alternativ
      hier eine transparente Farbe oder ein zusätzlicher Farbverlauf verwendet
      werden.
    */
    html, body {
      position: relative;
      font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      background: transparent; /* vorher: #151843 */
      color: var(--pc-text-dark);
      line-height: 1.6;
      position: relative;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* Der ::before‑Pseudo‑Layer wird nicht mehr gebraucht, da der animierte
       Hintergrund jetzt die komplette Fläche abdeckt. */
    body::before {
      content: none;
    }

    /* ---------- WAVE BACKGROUND (aus wave.html übernommen) ---------- */
    .wave-container {
      position: absolute;
      top: 0;
      left: 0;
      background-color: #1F2465;        /* vollflächig hinter allen Inhalten */
      width: 100%;
      height: 100%;
      overflow: hidden;
      bottom: 0;
      z-index: -2;
    }
    .wave {
      position: absolute;
      width: 200%;
      height: 100%;
      background: none;
      animation: waveAnimation 10s ease-in-out infinite alternate;
    }
    .wave path {
      fill: #000436;
    }
    .wave:nth-child(2) {
      opacity: 0.5;
      animation: waveAnimation 15s ease-in-out infinite alternate;
      bottom: 10%;
    }
    .wave:nth-child(3) {
      opacity: 0.3;
      animation: waveAnimation 20s ease-in-out infinite alternate;
      bottom: 15%;
    }
    @keyframes waveAnimation {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    /* ---------- /WAVE BACKGROUND ---------- */

    header {
      background: transparent;
      color: var(--pc-text-light);
      text-align: center;
      padding: 4rem 1rem 3rem;
    }
    header h1 {
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }
    header p {
      font-size: 1.125rem;
      max-width: 720px;
      margin: 0 auto;
    }
    .container {
      max-width: 900px;
      margin: -2rem auto 0;
      padding: 0 1rem 3rem;
    }
    .tool-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2.5rem;
    }
    @media (min-width: 600px) and (max-width: 1099px) {
      .tool-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (min-width: 1100px) {
      .tool-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    .card {
      background: var(--pc-card);
      border-radius: 16px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
      padding: 1.75rem 1.5rem;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }
    .card .icon {
      font-size: 1.75rem;
      margin-bottom: 0.75rem;
    }
    .card h3 {
      font-size: 1.25rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: var(--pc-text-light);
    }
    .card p {
      font-size: 0.95rem;
      color: var(--pc-text-light);
      opacity: 1;
    }
    .features {
      margin-bottom: 2.5rem;
    }
    .features h2 {
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 1rem;
      text-align: center;
      color: #f1f5f9;
    }
    .feature-list {
      list-style: none;
      padding-left: 0;
      max-width: 680px;
      margin: 0 auto;
      color: #f1f5f9;
    }
    .feature-list li {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
      font-size: 0.95rem;
    }
    .feature-list li::before {
      content: "✔";
      color: var(--pc-accent);
      font-weight: 700;
      margin-top: 2px;
    }
    .cta-section {
      text-align: center;
    }
    .btn {
      display: inline-block;
      padding: 0.75rem 1.75rem;
      border-radius: 999px;
      background: var(--pc-accent);
      color: #fff;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.2s ease;
    }
    .btn:hover {
      background: #4f46e5;
    }
    .btn.secondary {
      background: transparent;
      color: var(--pc-accent);
      border: 2px solid var(--pc-accent);
      margin-left: 1rem;
    }
    .btn.secondary:hover {
      background: var(--pc-accent);
      color: #fff;
    }
  
.smartphone-viewer {
  width: 240px;
  flex-shrink: 0;
  display: none;

  position: relative;
  z-index: 1000;
}
.smartphone-viewer.active {
  display: block;
}
.smartphone-viewer.fixed {
  position: fixed;
  right: 2rem;
  top: 20vh;
  transform: translateY(0);
  will-change: transform;
  z-index: 1000;
}
.smartphone {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 9 / 18;
  background: #000;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 0 0 8px #111;
}
.carousel {
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 100%;
  animation: none;
}
.carousel img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  animation: slideShow 12s infinite;
}
@keyframes slideShow {
  0%, 33% { transform: translateX(0); }
  34%, 66% { transform: translateX(-100%); }
  67%, 100% { transform: translateX(-200%); }
}
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .smartphone-viewer {
    width: 100%;
    position: static !important;
    margin-top: 1rem;
  }
  .smartphone-viewer.fixed {
    position: static;
  }
}

/* --- Layout / Animation für Karten & Viewer --- */
.container {
  display: flex;
  gap: 2rem;
}

.tool-grid.active-layout {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.5s ease;
}

.card.active {
  outline: 2px solid var(--pc-accent);
  background-color: #2d3748;
}

@media (min-width: 769px) {
  .tool-grid {
    flex: 0 0 100%;
  }
  .tool-grid.active-layout {
    flex: 0 0 65%;
  }
  .smartphone-viewer {
    position: absolute;
    top: 20vh;
    left: 65%;
    width: 30%;
    display: none;
  }
  .smartphone-viewer.active {
    display: block;
  }
  .container {
    position: relative;
  }
}

/* Mobile fallback bleibt wie zuvor durch bereits vorhandene Regeln */

@media (min-width: 769px) {
  .container {
    display: block;
  }
  .tool-grid-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
  }
  .tool-grid.active-layout {
    flex: 0 0 65%;
  }
  .smartphone-viewer {
    position: absolute;
    top: 20vh;
    left: 65%;
    width: 30%;
    display: none;
  }
  .smartphone-viewer.active {
    display: block;
  }
}

@supports (-webkit-touch-callout: none) {
  .wave-container {
    transform: translateZ(0);
  }
}


    .logo-link {
      position: relative;
      top: -25px;
      left: 45%;
      z-index: 20;
	  align-items: center; 
    }
    .logo-img {
      height: auto;
      width: 10%;
      display: block;
    }

    
@keyframes slideInUp {
  from { transform: translateY(100vh); opacity: 0;}
  to { transform: translateY(0); opacity: 1;}
}
@keyframes slideOutDown {
  from { transform: translateY(0); opacity: 1;}
  to { transform: translateY(100vh); opacity: 0;}
}
.smartphone-viewer.animate-in { animation: slideInUp 0.5s ease-out forwards;}
.smartphone-viewer.animate-out { animation: slideOutDown 0.5s ease-in forwards;}


/* ---------- NEWSLETTER POP-UP ---------- */
#newsletterModal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  z-index: 3000;
}
#newsletterModal .modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  height: 75vh;
  background: #fff;
  border-radius: 12px;
  overflow: auto;
}
#newsletterModal iframe {
  width: 100%;
  height: 100%;
  border: none;
}
#newsletterModal.open { display: flex; }
#newsletterModal .modal-content.consent { height: auto; }
#newsletterClose {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ==========================================================================
   Ergänzungen 3.0 (Original-Look beibehalten)
   ========================================================================== */
/* vorher Inline-Styles – wegen Content-Security-Policy ausgelagert */
#language-switcher { position: absolute; top: 1rem; right: 1rem; z-index: 10; }
#language-switcher button { font-size: 1.2rem; margin-right: 0.5rem; cursor: pointer; background: none; border: 0; }
#language-switcher button:last-child { margin-right: 0; }
#closeViewer {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  background: #fff; color: #000; padding: 4px 8px; border: none; border-radius: 4px; cursor: pointer;
}
.card { cursor: pointer; }
.card:focus-visible { outline: 2px solid var(--pc-accent); outline-offset: 2px; }

/* App-Download-Button */
.btn.download { margin-left: 1rem; background: #ff5050; }
.btn.download:hover { background: #ff6b6b; }
.cta-platforms { margin-top: 0.9rem; font-size: 0.85rem; color: #cbd5e1; }

/* Buy-me-a-coffee als einfacher Link (kein Fremd-Skript) */
.cta-extra { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center; margin-top: 1.5rem; }
.bmc-button {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.25rem;
  border-radius: 10px; border: 1px solid #ffffff; background: #0c1d41; color: #ffffff;
  font-size: 1.1rem; font-weight: 600; text-decoration: none; font-family: 'Cookie', 'Brush Script MT', cursive, inherit;
}
.bmc-button span:first-child { font-size: 1.3rem; }
.bmc-button:hover { background: #13285a; }
.newsletter-button {
  padding: 0.6rem 1.2rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent; color: #f1f5f9; font: inherit; font-weight: 600; cursor: pointer;
}
.newsletter-button:hover { background: rgba(255, 255, 255, 0.08); }

/* Newsletter: Zwei-Klick-Lösung */
.newsletter-consent { padding: 2.5rem 2rem 2rem; color: var(--pc-text-dark); }
.newsletter-consent h2 { margin-bottom: 0.75rem; }
.newsletter-consent p { margin-bottom: 1.25rem; font-size: 0.95rem; }
.newsletter-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.newsletter-actions .btn.secondary { margin-left: 0; }

.site-footer { text-align: center; padding: 0 1rem 2rem; font-size: 0.85rem; color: #cbd5e1; }
.site-footer a { color: #e2e8f0; }

@media (max-width: 640px) {
  .cta-section .btn { display: block; margin: 0.75rem auto 0; max-width: 320px; }
  .btn.secondary, .btn.download { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .wave, .carousel img { animation: none !important; }
}
/* das relativ verschobene Logo erzeugte unsichtbaren horizontalen Überlauf (seitliches Wischen auf iOS) */
header { overflow-x: clip; }
