/* wepa-manager — Public Pages (Landing, Login)
 * Separate CSS fuer oeffentliche Seiten, geladen nur in base_public.html.
 * Haelt main.css fuer die App sauber.
 */

/* ── DM Serif Display: lokal gehostet (DSGVO) ──
   Kein Google-Fonts-Abruf — Font liegt unter static/fonts/ */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-serif-display-v17-latin-regular.4c78173a734e.woff2") format('woff2');
}

/* ── Glassmorphism-Navbar ──
   Halbtransparenter Hintergrund mit Backdrop-Blur statt solidem bg-white.
   bg-white wird im HTML nicht mehr gesetzt — Hintergrund rein ueber CSS. */
.page-public .navbar {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Hero Section: subtiler radialer Gradient ──
   Kein Tabler-Utility fuer radiale Hintergrund-Gradienten */
.hero-section {
  background: radial-gradient(ellipse at 80% 20%, rgba(6,111,209,0.06) 0%, transparent 60%);
}

/* ── Feature-Cards: Hover-Effekt ──
   Tabler-Cards haben keinen Hover-State, .page-public scoping verhindert Auswirkung auf App */
.page-public .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-public .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* ── Trust-Section: schraeger Uebergang ──
   CSS clip-path fuer subtile Schraege am oberen Rand */
.section-angled {
  clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(30px + 1rem);
}

/* ── Scroll-Reveal Animation ──
   CSS-only Animation, JS fuegt nur die Trigger-Klasse hinzu */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nummerierte Kreise fuer Prozess-Schritte ──
   Grosse Kreise mit Nummern (01, 02, 03) und Verbindungslinie auf Desktop */
.step-number {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  font-family: 'DM Serif Display', serif;
  border: 3px solid var(--tblr-border-color);
  background: #fff;
  color: var(--tblr-primary);
}

/* ── Verbindungslinie zwischen Prozess-Schritten (nur Desktop) ── */
.steps-connector {
  position: relative;
}
@media (min-width: 768px) {
  .steps-connector::before {
    content: '';
    position: absolute;
    top: 4rem;
    left: 16.67%;
    right: 16.67%;
    height: 2px;
    background: var(--tblr-border-color);
    z-index: 0;
  }
  .steps-connector > div {
    position: relative;
    z-index: 1;
  }
}

/* ── Details/Summary: cursor pointer ──
   Nativer details-Marker ist nicht intuitiv, cursor signalisiert Klickbarkeit */
details > summary {
  cursor: pointer;
}

/* ── FAQ Details/Summary Styling ──
   Native details-Element mit Tabler-aehnlichem Card-Look */
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: '\ea5f';
  font-family: 'tabler-icons';
  margin-right: 0.5rem;
  transition: transform 0.2s ease;
  display: inline-block;
}
.faq-item[open] summary::before {
  transform: rotate(90deg);
}
.faq-item .faq-content {
  padding: 0 1rem 1rem 2.5rem;
}

/* ── Section-Spacing: verdoppelt gegenueber Tabler py-6 (40px) ──
   Tabler bietet Spacing-Utilities nur bis py-6. */
.section-spacer {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 992px) {
  .section-spacer {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ── Display-Font: DM Serif Display fuer oeffentliche H1/H2 ──
   Body/Formulare bleiben bei Inter (Tabler-Default) */
.page-public h1,
.page-public h2 {
  font-family: 'DM Serif Display', serif;
}
.page-public h1 {
  line-height: 3rem;
}
.page-public h2 {
  line-height: 2.5rem;
  letter-spacing: 0.04rem;
}

/* ── Ratgeber-Artikel: Lesefreundliche Typografie ──
   Breitere Zeilenhoehe und Absatzabstaende fuer Langtext */
.ratgeber-content {
  line-height: 1.5;
  font-size: 0.9rem;
}
.ratgeber-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}
.ratgeber-content h3 {
  font-family: Inter, sans-serif;
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.ratgeber-content p {
  margin-bottom: 1.25rem;
}
.ratgeber-content ul {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}
.ratgeber-content ul li {
  margin-bottom: 0.5rem;
}
.ratgeber-meta {
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
