/* ============================================================
   SHOWFOX – Stylesheet
   Farben, Abstände und Schriften stehen oben als Variablen –
   hier lässt sich das Erscheinungsbild zentral anpassen.
   ============================================================ */

:root {
  --color-primary: #6f9bc7;
  --color-primary-dark: #5a84b3;
  --color-accent-teal: #3fb6a8;
  --color-accent-orange: #f2994a;
  --color-accent-green: #4caf7d;
  --color-dark: #333c4d;
  --color-navy: #3a4356;
  --color-text: #4a5568;
  --color-text-light: #7b8494;
  --color-bg-hero-start: #cfe9fb;
  --color-bg-hero-end: #ffffff;
  --color-border: #e3e8f3;
  --radius-lg: 20px;
  --radius-md: 12px;
  --max-width: 1140px;
  --font-main: 'Nunito', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-pricing: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.6;
  background: #ffffff;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3 { color: var(--color-dark); font-family: var(--font-heading); font-weight: 600; line-height: 1.25; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
button.btn { font-family: inherit; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(111, 155, 199, 0.35);
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-outline {
  background: #fff;
  color: var(--color-dark);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  padding: 18px 40px;
  font-size: 1.1rem;
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  gap: 40px;
}
.main-nav a {
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 4px;
}
.main-nav a.active,
.main-nav a:hover {
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-bg-hero-start) 0%, var(--color-bg-hero-end) 100%);
  border-radius: 0 0 40px 40px;
  padding: 60px 0 80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--color-primary-dark); font-style: italic; }

.hero p {
  font-size: 1.05rem;
  margin-bottom: 30px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image img {
  border-radius: var(--radius-lg);
}

/* ---------- Section headings ---------- */
.section {
  padding: 80px 0;
}
.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}
.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
.section-heading p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.feature p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 0.98rem;
}
.feature img {
  border-radius: var(--radius-md);
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(30, 40, 70, 0.18);
}

/* ---------- 20 Argumente (aufklappbar) ----------
   Zugeklappt ist #args-panel (Kacheln + Fliesstext) schlicht [hidden]; das
   Aufklappen uebernimmt script.js, indem es hidden entfernt und .is-open setzt.
   Bewusst KEINE max-height-Animation: die Hoehe haengt an Bildgroesse und
   Textumbruch, ein fester Maximalwert wuerde bei schmalen Fenstern abschneiden.
   Stattdessen blenden die Kacheln einzeln versetzt ein (--i je Kachel), der
   Fliesstext folgt zum Schluss. */
.arguments .section-heading { margin-bottom: 0; }

.args-toggle {
  margin-top: 26px;
  gap: 10px;
}
.args-toggle-icon {
  font-size: 0.8rem;
  line-height: 1;
  transition: transform 0.25s ease;
}
.args-toggle[aria-expanded="true"] .args-toggle-icon { transform: rotate(180deg); }

.args-panel[hidden] { display: none; }

.args-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 50px;
}

.arg {
  position: relative;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.arg:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 26px rgba(30, 40, 70, 0.10);
}

/* Laufende Nummer - macht die Aussage "20 von 100" auch in den Kacheln sichtbar. */
.arg-nr {
  position: absolute;
  top: -12px;
  left: 16px;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 15px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(111, 155, 199, 0.4);
}

.arg img {
  width: 100%;
  /* Die 20 Screenshots kommen in leicht unterschiedlichen Seitenverhaeltnissen -
     ohne festes Verhaeltnis waeren die Kachelhoehen im Raster ungleichmaessig.
     object-fit: cover beschneidet nur die Vorschau; die Lightbox (script.js)
     zeigt weiterhin das volle, unbeschnittene Bild. */
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
  cursor: zoom-in;
  background: var(--color-border);
}
.arg h3 {
  font-size: 1.02rem;
  line-height: 1.3;
  margin-bottom: 8px;
}
.arg p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
.arg code {
  font-family: 'Roboto Mono', Consolas, monospace;
  font-size: 0.85em;
  background: var(--color-border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--color-dark);
  white-space: nowrap;
}

/* ---- Fliesstext unter den Kacheln ----
   Bewusst schmaler als der Container: ueber die vollen 1140px waeren die
   Zeilen so lang, dass das Auge beim Umbruch die Zeile verliert. */
.args-more {
  max-width: 860px;
  margin: 64px auto 0;
  padding-top: 44px;
  border-top: 2px solid var(--color-border);
}
.args-more h3 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 24px;
}
.args-more p {
  color: var(--color-text-light);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 18px;
  text-align: justify;
  hyphens: auto;
}
/* Das fette Stichwort am Absatzanfang ist der einzige Anker in einem sehr
   langen Text - deshalb in der Textfarbe statt im helleren Fliesstextgrau. */
.args-more p strong {
  color: var(--color-dark);
  font-weight: 700;
}
.args-more-outro {
  text-align: center !important;
  font-style: italic;
  color: var(--color-text) !important;
  margin-top: 28px;
  margin-bottom: 0 !important;
}

/* Versetztes Einblenden beim Aufklappen. Laeuft nur einmal - .is-open bleibt
   danach stehen, both haelt den Endzustand fest. */
.args-panel.is-open .arg {
  animation: argIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}
.args-panel.is-open .args-more {
  animation: argIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 640ms;   /* nach der letzten Kachel (19 x 30ms) */
}
@keyframes argIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .args-panel.is-open .arg,
  .args-panel.is-open .args-more { animation: none; }
  .args-toggle-icon { transition: none; }
  .arg:hover { transform: none; }
}

/* ---------- Testimonials ---------- */
.testimonial-wrap {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}
.testimonial-viewport {
  overflow: hidden;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  cursor: grab;
}
.testimonial-viewport.dragging { cursor: grabbing; }
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.testimonial {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 50px 60px;
  text-align: center;
  user-select: none;
}
.testimonial blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-dark);
  margin-bottom: 28px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  -webkit-user-drag: none;
  pointer-events: none;
}
.testimonial-author .name { font-weight: 800; color: var(--color-dark); display: block; }
.testimonial-author .role { font-size: 0.9rem; color: var(--color-text-light); }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
}
.testimonial-dots button.active { background: var(--color-primary); }

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-text-light);
}
.testimonial-arrow:hover { color: var(--color-primary); border-color: var(--color-primary); }
.testimonial-arrow.prev { left: -20px; }
.testimonial-arrow.next { right: -20px; }

/* ---------- Pricing intro ---------- */
.pricing-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}
.pricing-intro h2 { font-size: 2rem; margin-bottom: 20px; }
.pricing-intro p { color: var(--color-text-light); margin-bottom: 14px; }
.pricing-intro p strong { color: var(--color-text); }

/* ---------- Pricing cards ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.price-card {
  font-family: var(--font-pricing);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-border);
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 10px 30px rgba(30, 40, 70, 0.06);
}
.price-card h3 { font-family: var(--font-pricing); }

.price-card-head {
  background: var(--color-navy);
  color: #fff;
  text-align: center;
  padding: 22px 16px;
}
.price-card-head h3 { color: #fff; font-size: 1.15rem; }
.price-card-head span {
  display: block;
  font-size: 0.85rem;
  color: #c9cfdd;
  margin-top: 4px;
}

.ribbon {
  position: absolute;
  top: 14px;
  right: -34px;
  transform: rotate(45deg);
  padding: 4px 40px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ribbon-teal { background: var(--color-accent-teal); }
.ribbon-orange { background: var(--color-accent-orange); }
.ribbon-green { background: var(--color-accent-green); }

.price-card-body {
  padding: 30px 24px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 2px;
}
.price sup { font-size: 1.2rem; top: -1.2em; }
.price-period { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 24px; }

.price-features {
  text-align: left;
  width: 100%;
  margin-bottom: 26px;
}
.price-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.price-features li:last-child { border-bottom: none; }
.price-features .check {
  color: var(--color-accent-green);
  font-weight: 800;
  flex-shrink: 0;
}

.price-card .btn { width: 100%; margin-bottom: 12px; }
.price-note { font-size: 0.85rem; color: var(--color-text-light); }

/* ---------- Kauf-Erfolgsmeldung ---------- */
.kauf-erfolg-banner {
  background: var(--color-accent-green);
  color: #fff;
  text-align: center;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  margin-bottom: 30px;
}
.kauf-erfolg-banner[hidden] { display: none; }

/* ---------- Checkout-Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 40, 70, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(30, 40, 70, 0.25);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.modal-scroll {
  padding: clamp(18px, 4vh, 36px) clamp(20px, 4vw, 36px);
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-light);
}
.modal-close:hover { color: var(--color-dark); }

/* ---------- Demo-Video ---------- */
.video-frame {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(30, 40, 70, 0.25);
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.video-play-btn:hover {
  transform: scale(1.06);
  background: #fff;
}
.video-play-btn svg {
  width: 30px;
  height: 30px;
  fill: var(--color-primary);
  margin-left: 4px; /* optische Mitte - das Dreieck selbst ist nicht symmetrisch */
}
/* Nach dem Start uebernehmen die nativen Video-Bedienelemente - siehe
   demo-video-Logik in script.js, die diese Klasse setzt und controls aktiviert. */
.video-frame.is-playing .video-play-btn { display: none; }
.video-frame.is-playing video { cursor: default; }

/* ---------- Bild-Lightbox (Feature-Bilder) ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 25, 40, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 1100;
}
.lightbox-overlay[hidden] { display: none; }

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  opacity: 0.85;
}
.lightbox-close:hover { opacity: 1; }

.modal-box h3 { margin-bottom: 6px; }

.modal-plan-summary {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: clamp(8px, 2vh, 16px);
}

.form-row { margin-bottom: clamp(8px, 1.6vh, 12px); }
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--color-dark);
}
.form-row input[type="text"],
.form-row input[type="email"] {
  width: 100%;
  padding: 9px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 1rem;
}
.form-row input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.field-hint {
  display: block;
  font-size: 0.82rem;
  margin-top: 4px;
  color: var(--color-accent-green);
}
.field-hint-error { color: #c0392b; }

.checkout-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text-light);
  margin: clamp(8px, 1.6vh, 14px) 0;
  cursor: pointer;
}
.checkout-checkbox input { margin-top: 3px; flex-shrink: 0; }
.checkout-checkbox a { color: var(--color-primary-dark); text-decoration: underline; }

.checkout-error {
  color: #c0392b;
  font-size: 0.88rem;
  margin-bottom: 6px;
  min-height: 1.1em;
}

.checkout-submit { width: 100%; }

/* ---------- Rechtstexte (Impressum/Datenschutz) ---------- */
.legal-content {
  max-width: 800px;
}
.legal-content h1 { font-size: 2rem; margin: 20px 0 30px; }
.legal-content h2 { font-size: 1.2rem; margin: 30px 0 10px; }
.legal-content p { margin-bottom: 6px; }
.legal-content a { color: var(--color-primary-dark); text-decoration: underline; }

/* ---------- Nach-oben-Button ---------- */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(111, 155, 199, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--color-primary-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: #cfd4e2;
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { color: #fff; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .args-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .args-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .args-more { margin-top: 48px; padding-top: 32px; }
  .args-more p { text-align: left; }   /* Blocksatz bricht auf schmalen Spalten auf */
  .main-nav ul { gap: 20px; }
  .testimonial { padding: 40px 24px; }
  .testimonial-arrow { display: none; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .site-header { flex-direction: column; gap: 16px; }
  .args-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .form-row-2col { grid-template-columns: 1fr; gap: 10px 0; }
}

@media (min-width: 1000px) {
  html { zoom: 90%; }
}
