/* ==========================================================================
   PaperExam Landingpage
   Farben und Grundwerte zentral als Custom Properties – hier anpassen.
   ========================================================================== */

:root {
  --color-primary: #1d3557;
  --color-primary-dark: #14263f;
  --color-primary-soft: #a8c0dd;
  --color-accent: #e76f51;
  --color-accent-dark: #c9563a;
  --color-text: #2b3442;
  --color-text-muted: #5c6675;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f9;
  --color-border: #dde3ec;

  --radius: 12px;
  --shadow: 0 4px 20px rgba(29, 53, 87, 0.08);
  --container: 1080px;

  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

/* Reset & Basis ----------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* Anker landen nicht unter dem Sticky-Header */
}

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--color-primary-dark);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

.container-narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease,
    transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

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

.btn-ghost {
  color: var(--color-primary);
}

.btn-ghost:hover {
  background: var(--color-bg-alt);
}

.btn-large {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
}

.btn-small {
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
}

/* Header ------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
}

.logo-text strong {
  font-weight: 800;
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-text);
}

.site-nav a:hover {
  color: var(--color-primary);
}

.site-nav .btn {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero --------------------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(29, 53, 87, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.trust-flag {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.hero-illustration {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* Sektionen ----------------------------------------------------------------- */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-lead {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Karten -------------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 1.5rem;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.card p {
  color: var(--color-text-muted);
}

/* Highlight-Sektion ---------------------------------------------------------- */

.section-highlight {
  background: var(--color-primary-dark);
  color: #e8edf5;
}

.section-highlight h2 {
  color: #fff;
}

.section-highlight p {
  margin-bottom: 1rem;
  color: #c6d2e2;
}

.highlight-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.section-highlight .check-list li {
  color: #e8edf5;
}

.section-highlight .check-list li::before {
  color: var(--color-accent);
}

.highlight-illustration {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
}

/* Checklisten ----------------------------------------------------------------- */

.check-list {
  list-style: none;
  margin-top: 0.5rem;
}

.check-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-accent);
}

/* Schritte -------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.step-number {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.step p {
  color: var(--color-text-muted);
}

/* Preise ------------------------------------------------------------------------ */

.price-card {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.price-card .btn {
  margin-top: auto;
}

.price {
  margin: 0.5rem 0 0.15rem;
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.price-period {
  color: var(--color-text-muted);
  margin-left: 0.3rem;
}

.price-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.price-card .check-list {
  margin-bottom: 1.5rem;
}

.price-card-featured {
  border: 2px solid var(--color-accent);
  position: relative;
}

.badge {
  position: absolute;
  top: -0.8rem;
  right: 1.25rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
}

/* FAQ ---------------------------------------------------------------------------- */

#faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
  background: var(--color-bg);
}

#faq h2 {
  margin-bottom: 1.25rem;
}

#faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--color-primary-dark);
}

#faq details[open] summary {
  margin-bottom: 0.5rem;
}

#faq details p {
  color: var(--color-text-muted);
}

/* Abschluss-CTA -------------------------------------------------------------------- */

.section-cta {
  background: var(--color-bg-alt);
}

.section-cta .section-lead {
  margin-bottom: 1.75rem;
}

/* Footer ----------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-primary-dark);
  color: #c6d2e2;
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  color: #c6d2e2;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.85rem;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

/* Unterseiten (Impressum / Datenschutz) ------------------------------------------------ */

.page-content {
  padding: 3rem 0 4rem;
}

.page-content h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.page-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.page-content p {
  margin-bottom: 1rem;
  max-width: 46rem;
}

.page-content h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-content ul {
  margin: 0 0 1rem 1.25rem;
  max-width: 46rem;
}

.page-content li {
  margin-bottom: 0.35rem;
}

/* Responsive ---------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-inner,
  .highlight-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-illustration {
    max-width: 320px;
  }

  .cards-3,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .section {
    padding: 3rem 0;
  }
}

/* Wartungsmodus: Meldung, wenn App-Buttons deaktiviert sind */
.maintenance-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 8px);
  max-width: calc(100vw - 2.5rem);
  padding: 0.85rem 1.5rem;
  background: var(--color-primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

.maintenance-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .nav-toggle span,
  .maintenance-toast {
    transition: none;
  }
}
