/* =========================================================
   PapierPilot – Stylesheet
   Bürokratie einfach verstehen.
   Keine externen Fonts, keine externen Icon-Bibliotheken.
   ========================================================= */

:root {
  /* Farben */
  --bg: #eaf7f5;
  --bg-soft: #f4fbfa;
  --card: #ffffff;
  --card-alt: #f3faf9;
  --text: #17302e;
  --text-soft: #48645f;
  --text-faint: #6f8985;
  --accent: #0e8f8b;
  --accent-dark: #0a6f6c;
  --accent-soft: #dff3f1;
  --accent-softer: #eefaf8;
  --border: #d7eeeb;
  --warn-bg: #fff6e8;
  --warn-border: #f0e0bd;
  --warn-text: #6b5423;
  --shadow-card: 0 24px 48px -28px rgba(15, 55, 51, 0.28);
  --shadow-soft: 0 12px 28px -18px rgba(15, 55, 51, 0.22);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Typografie – ausschließlich Systemschriften */
  --font-heading: -apple-system, "SF Pro Rounded", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;

  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}

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

/* Sichtbarkeit nur für Screenreader */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* =====================
   Header / Navigation
   ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(234, 247, 245, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

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

  .main-nav a {
    width: 100%;
    padding: 10px 0;
  }
}

/* =====================
   Hero
   ===================== */

.hero {
  padding: 56px 0 32px;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent-dark);
  margin: 0 0 18px;
}

.hero-text {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 52ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 13.5px;
  color: var(--text-faint);
  max-width: 52ch;
  line-height: 1.55;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  max-width: 340px;
}

@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual svg {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* =====================
   Buttons / Badges
   ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn-secondary {
  background: var(--card);
  color: var(--accent-dark);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

/* =====================
   Sections generisch
   ===================== */

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 32px 0;
}

.section-head {
  max-width: 62ch;
  margin: 0 0 40px;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.4vw, 36px);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--text);
}

.section-head p {
  color: var(--text-soft);
  font-size: 17px;
  margin: 0;
}

.page-hero {
  padding: 48px 0 8px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.4vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.page-hero p {
  color: var(--text-soft);
  max-width: 62ch;
  font-size: 17px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* =====================
   Feature Cards
   ===================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-dark);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0;
}

/* =====================
   Listen mit Icon
   ===================== */

.icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 620px) {
  .icon-list {
    grid-template-columns: 1fr;
  }
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--card-alt);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-soft);
}

.icon-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent-dark);
  flex-shrink: 0;
  margin-top: 1px;
}

/* =====================
   Hinweis-/Warnboxen
   ===================== */

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.notice svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice h3 {
  font-family: var(--font-heading);
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--warn-text);
}

.notice p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.info-card {
  background: var(--accent-softer);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

/* =====================
   Content-Blöcke (Rechtstexte etc.)
   ===================== */

.content-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 44px;
  margin-bottom: 24px;
}

@media (max-width: 620px) {
  .content-card {
    padding: 28px 22px;
  }
}

.content-card h2 {
  font-family: var(--font-heading);
  font-size: 23px;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 24px 0 8px;
}

.content-card p {
  color: var(--text-soft);
  margin: 0 0 14px;
}

.content-card ul {
  color: var(--text-soft);
  margin: 0 0 14px;
  padding-left: 22px;
}

.content-card li {
  margin-bottom: 6px;
}

.content-card strong {
  color: var(--text);
}

.placeholder {
  background: var(--warn-bg);
  border: 1px dashed var(--warn-border);
  color: var(--warn-text);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95em;
}

.toc {
  background: var(--card-alt);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
}

.toc h2 {
  font-family: var(--font-heading);
  font-size: 16px;
  margin: 0 0 12px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  color: var(--text-soft);
  font-size: 14.5px;
}

@media (max-width: 620px) {
  .toc ol {
    columns: 1;
  }
}

.toc a {
  text-decoration: none;
  color: var(--text-soft);
}

.toc a:hover {
  color: var(--accent-dark);
}

.last-updated {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 28px;
}

/* =====================
   FAQ
   ===================== */

.faq-item {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent-dark);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 22px 20px;
  color: var(--text-soft);
  font-size: 15px;
}

/* =====================
   Support-Formularhinweis / Kontakt-Karte
   ===================== */

.contact-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 620px) {
  .contact-card {
    padding: 28px 22px;
  }
}

.contact-email {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 800;
}

/* =====================
   Footer
   ===================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 40px 0 28px;
  margin-top: 48px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
}

.footer-brand svg {
  width: 26px;
  height: 26px;
}

.footer-tagline {
  color: var(--text-faint);
  font-size: 14px;
  margin: 6px 0 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

/* =====================
   Reduced Motion
   ===================== */

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

  * {
    transition: none !important;
    animation: none !important;
  }
}
