/* ============================================================
   Powerschreiber · LinkedIn Performance Paket
   Sales-Page Design-System
   Hybrid-Theme: heller Body, dunkle Akzent-Sektionen
   ============================================================ */

/* --- Design Tokens ----------------------------------------- */
:root {
  /* Brand Core */
  --color-primary: #004a59;        /* dunkles Teal */
  --color-primary-deep: #00323d;   /* tieferes Teal für Variation */
  --color-primary-soft: #1a6171;   /* helleres Teal für Hover */
  --color-accent: #fcaf3b;         /* Orange */
  --color-accent-deep: #e89a26;    /* Orange Hover */
  --color-cool-grey: #a9b8c3;      /* kühles Grau */

  /* Surfaces */
  --bg-page: #f4f6f8;              /* hellster Hintergrund, kühler Ton */
  --bg-section-light: #ffffff;     /* weiße Sektionen */
  --bg-section-cool: #e4e9ed;      /* sehr helles, kühles Grau */
  --bg-section-dark: #004a59;      /* Teal Akzent-Sektion */
  --bg-section-deep: #003a47;      /* dunklere Teal-Variante */

  /* Text auf hellem BG */
  --text-dark: #0a1f25;            /* fast schwarz, Teal-Touch */
  --text-mid: #3a4f57;             /* mittlerer Grau-Teal-Ton */
  --text-muted: #5e7682;           /* gedämpfter Body-Text */

  /* Text auf dunklem BG */
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255,255,255,0.78);
  --text-on-dark-subtle: rgba(255,255,255,0.55);

  /* Borders */
  --border-light: rgba(0, 74, 89, 0.08);
  --border-light-strong: rgba(0, 74, 89, 0.16);
  --border-on-dark: rgba(255, 255, 255, 0.12);
  --border-on-dark-strong: rgba(255, 255, 255, 0.22);

  /* Shadow */
  --shadow-card: 0 4px 24px rgba(10, 31, 37, 0.06);
  --shadow-card-strong: 0 12px 40px rgba(10, 31, 37, 0.1);
  --shadow-cta: 0 8px 32px rgba(252, 175, 59, 0.35);
  --shadow-cta-strong: 0 12px 48px rgba(252, 175, 59, 0.5);

  /* Typografie-Skala */
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}

/* --- Base --------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-page);
  color: var(--text-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
  line-height: 1.55;
}

section {
  scroll-margin-top: 88px; /* gegen Sticky-Nav */
}
#anmelden, #termin {
  scroll-margin-top: 96px;
}

/* --- Sticky Nav ------------------------------------------- */
#sticky-nav {
  backdrop-filter: blur(16px);
  background: rgba(244, 246, 248, 0.7);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
}
#sticky-nav.is-condensed {
  background: rgba(244, 246, 248, 0.92);
  border-bottom-color: var(--border-light);
}

/* --- Headline-Highlight (Orange-Underline) ------------------ */
.highlight {
  position: relative;
  display: inline-block;
  color: inherit;
  white-space: nowrap;
}
.highlight::after {
  content: '';
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  bottom: 0.05em;
  height: 0.35em;
  background: var(--color-accent);
  opacity: 0.45;
  z-index: -1;
  border-radius: 2px;
}

/* Variante: Highlight ohne nowrap (für längere Phrasen) */
.highlight-wrap {
  position: relative;
  background-image: linear-gradient(180deg, transparent 65%, rgba(252,175,59,0.45) 65%);
  background-size: 100% 100%;
  padding: 0 0.05em;
}

/* --- Cards (Light-Theme) ----------------------------------- */
.card {
  background: var(--bg-section-light);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
@media (min-width: 768px) {
  .card { padding: 2.5rem; }
}
.card:hover {
  border-color: var(--border-light-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-strong);
}

/* --- Cards (Dark-Theme, auf dunklen Sektionen) ------------- */
.card-dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-on-dark);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
@media (min-width: 768px) {
  .card-dark { padding: 2.5rem; }
}
.card-dark:hover {
  border-color: var(--border-on-dark-strong);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

/* --- Badges ------------------------------------------------ */
.badge-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 74, 89, 0.06);
  border: 1px solid rgba(0, 74, 89, 0.12);
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}
.badge-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(252, 175, 59, 0.12);
  border: 1px solid rgba(252, 175, 59, 0.35);
  color: var(--color-accent);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

/* --- CTAs -------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  box-shadow: var(--shadow-cta);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--color-accent-deep);
  box-shadow: var(--shadow-cta-strong);
  transform: translateY(-2px);
}
.btn-primary .arrow {
  transition: transform 0.2s;
}
.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-secondary-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--border-light-strong);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-secondary-light:hover {
  border-color: var(--color-primary);
  background: rgba(0, 74, 89, 0.04);
}

.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid var(--border-on-dark-strong);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-secondary-dark:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
}

/* --- Trust-Bar Item --------------------------------------- */
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-on-dark-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.trust-item .trust-icon {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
}

/* --- Eyebrow Label ---------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow-dark {
  color: var(--color-primary);
}

/* --- Section Padding-Helpers ------------------------------ */
.section-pad {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .section-pad {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}
@media (min-width: 1024px) {
  .section-pad {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* --- Hero-spezifisch -------------------------------------- */
.hero-bg {
  background: var(--bg-section-dark);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(252,175,59,0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(252,175,59,0.06), transparent 70%);
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 80%);
}
.hero-portrait-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-on-dark);
  background: linear-gradient(135deg, rgba(252,175,59,0.15), rgba(0,74,89,0.4));
}
.hero-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,58,71,0.55) 100%);
  pointer-events: none;
}

/* --- Hero Checkmark (schwungvoll, handgezeichnet) --------- */
.hero-check {
  filter: drop-shadow(0 2px 8px rgba(34, 197, 94, 0.45));
}
.hero-check path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: drawCheck 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.5s forwards;
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* --- Reveal-Animation ------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Accordion (Details/Summary) -------------------------- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.acc-arrow {
  transition: transform 0.3s;
  display: inline-block;
}
details[open] .acc-arrow {
  transform: rotate(90deg);
}

/* --- Utility-Text ----------------------------------------- */
.text-muted { color: var(--text-muted); }
.text-mid { color: var(--text-mid); }
.text-on-dark-muted { color: var(--text-on-dark-muted); }

/* --- Reduced Motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-check path { stroke-dashoffset: 0; animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- DM Sans Fallback (während Font lädt) ----------------- */
.font-loading { font-family: system-ui, -apple-system, sans-serif; }
