/* ======================================================================
   PFARRBRIEF-WERKZEUGE · WEBSITE-STYLES
   ----------------------------------------------------------------------
   Farbvariante A
     Cremeweiß   #FAF8F4
     Violett     #5B3A6D
     Tannengrün  #2E6B57
     Gold        #C4A46A
     Anthrazit   #25262D

   Die Datei ist bewusst übersichtlich gegliedert und kommentiert.
   Es werden keine externen Schriften oder Frameworks geladen.
   ====================================================================== */

:root {
  color-scheme: light;

  --background: #FAF8F4;
  --surface: #FFFFFF;
  --surface-alt: #FCFBFD;
  --primary: #5B3A6D;
  --primary-dark: #40264D;
  --secondary: #2E6B57;
  --secondary-dark: #20513F;
  --accent: #C4A46A;
  --text: #25262D;
  --muted: #67646C;
  --border: #E7DFE7;
  --soft-purple: #F1ECF4;
  --soft-green: #E9F2EC;
  --soft-gold: #FBF3E5;
  --shadow: 0 18px 46px rgba(45, 30, 52, 0.075);
  --radius: 22px;
}

/* ----------------------------------------------------------------------
   1. Basislayout und Typografie
   ---------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

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

.container {
  width: min(1170px, calc(100% - 56px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-170%);
  padding: 12px;
  border-radius: 8px;
  background: white;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ----------------------------------------------------------------------
   2. Kopfbereich und Navigation
   ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  gap: 28px;
  align-items: center;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-symbol {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: white;
}

.brand-symbol svg {
  width: 30px;
  height: 30px;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 800;
}

.brand-text small {
  margin-top: 2px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.main-nav a,
.header-link {
  color: #54445A;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.header-link:hover {
  color: var(--secondary);
}

.header-link {
  padding: 11px 16px;
  border: 1px solid #D8CADA;
  border-radius: 10px;
  background: var(--surface);
  white-space: nowrap;
}

/* ----------------------------------------------------------------------
   3. Schaltflächen
   ---------------------------------------------------------------------- */

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-green {
  background: var(--secondary);
  color: white;
}

.button-green:hover {
  background: var(--secondary-dark);
}

.button-hero-outline {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.button-hero-outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

.button-full {
  width: 100%;
}

/* ----------------------------------------------------------------------
   4. Hero-Bereich und Startseiten-Screenshot
   ---------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, var(--primary-dark) 0%, var(--primary) 72%, #6A4778 100%);
  color: white;
}

.hero::before {
  position: absolute;
  top: -280px;
  right: -200px;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(196, 164, 106, 0.19);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(196, 164, 106, 0.045), 0 0 0 150px rgba(196, 164, 106, 0.025);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 50px;
  align-items: center;
  min-height: 590px;
  padding-block: 88px 92px;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 30px;
  color: #EADDC1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-transform: uppercase;
}

.eyebrow-mark {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 100%;
  background: var(--accent);
}

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(43px, 4.8vw, 68px);
  font-weight: 820;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.hero h1 em {
  color: #E7C991;
  font-style: normal;
}

.hero-description {
  max-width: 500px;
  color: #EEE4F0;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 20px;
  flex-wrap: wrap;
}

.hero-details {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #F2E7F5;
  font-size: 14px;
}

.screenshot-figure {
  margin: 0;
}

/* Das Screenshot-Bild erscheint direkt ohne zusätzliche Browser-Attrappe. */
.screenshot-figure > img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-figure figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  text-align: center;
}

/* ----------------------------------------------------------------------
   5. Vorteile, Abschnitte und Einleitungen
   ---------------------------------------------------------------------- */

.benefits {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
}

.benefits-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-block: 24px;
}

.benefits-inner > div {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #554E57;
  font-size: 14px;
  font-weight: 700;
}

.benefit-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-green);
  color: var(--secondary);
}

.section {
  padding-block: 92px;
}

.section-intro {
  margin-bottom: 38px;
}

.kicker {
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.145em;
  text-transform: uppercase;
}

.section-intro h2 {
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-size: clamp(30px, 3.4vw, 43px);
  line-height: 1.17;
}

.section-intro > p:last-child {
  max-width: 695px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* ----------------------------------------------------------------------
   6. Programme
   ---------------------------------------------------------------------- */

.program-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.program-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.program-body {
  padding: 35px 35px 22px;
}

.program-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.program-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}

.program-logo-planer-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 15px;
  background: var(--primary);
  color: white;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.program-logo-tool {
  color: var(--primary);
}

.program-logo-tool svg {
  width: 56px;
  height: 56px;
}

.version {
  color: #77707A;
  font-size: 12px;
  text-align: right;
}

.program-category {
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-card h3 {
  margin-bottom: 13px;
  color: var(--primary-dark);
  font-size: 30px;
  line-height: 1.2;
}

.program-description {
  min-height: 78px;
  margin-bottom: 21px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 25px;
  color: #4A4550;
  font-size: 13px;
  line-height: 1.55;
}

.feature-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--secondary);
  content: "✓";
  font-weight: 800;
}

.program-shot {
  margin: 8px 35px 25px;
  overflow: hidden;
  border: 1px solid #E8E0E9;
  border-radius: 16px;
  background: #FAF9FC;
}

.program-shot img {
  width: 100%;
  background: white;
}

.program-shot figcaption {
  padding: 10px 14px 12px;
  color: #807982;
  font-size: 11px;
  text-align: center;
}

.program-actions {
  padding: 0 35px 30px;
}

.program-actions p {
  margin: 12px 0 0;
  color: #807982;
  font-size: 11px;
  text-align: center;
}

/* ----------------------------------------------------------------------
   6a. Vergrößerbare Screenshots in den Programmkarten
   ---------------------------------------------------------------------- */

/* Ein Button um das Bild erlaubt Maus-, Touch- und Tastaturbedienung. */
.program-shot-open {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
}

.program-shot-open img {
  display: block;
  width: 100%;
  height: auto;
}

.program-shot-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(37, 38, 45, .88);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}

.program-shot-open:hover .program-shot-hint,
.program-shot-open:focus-visible .program-shot-hint {
  background: var(--primary);
}

/* Der native HTML-Dialog übernimmt Fokusverwaltung und Escape-Taste. */
.screenshot-lightbox {
  width: min(1400px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background: white;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.screenshot-lightbox::backdrop {
  background: rgba(16, 12, 22, .83);
}

.screenshot-lightbox-content {
  position: relative;
  padding: 18px 18px 10px;
}

.screenshot-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 115px);
  object-fit: contain;
}

.screenshot-lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.screenshot-lightbox-close:hover {
  background: var(--primary-dark);
}

.screenshot-lightbox-caption {
  margin: 9px 4px 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ----------------------------------------------------------------------
   7. Kurzanleitungen
   ---------------------------------------------------------------------- */

.guides-section {
  background: #F3EFF3;
}

.guide-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-height: 247px;
  padding: 32px;
  border: 1px solid #E7DDE6;
  border-radius: 18px;
  background: white;
}

.guide-symbol {
  display: grid;
  width: 57px;
  height: 66px;
  flex: 0 0 57px;
  place-items: center;
  border: 2px solid #D7E4D9;
  border-radius: 9px;
  background: var(--soft-green);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 900;
}

.guide-symbol-muted {
  border-color: #E6E3E6;
  background: #F3F1F3;
  color: #8A858D;
}

.guide-content h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 19px;
}

.guide-content p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.guide-card-upcoming {
  background: #FAF9FA;
}

.coming-soon {
  display: inline-block;
  padding: 12px 17px;
  border: 1px solid #E7E1E6;
  border-radius: 10px;
  background: white;
  color: #817A84;
  font-size: 13px;
  font-weight: 700;
}

/* ----------------------------------------------------------------------
   8. Ablauf, FAQ und Rechtliches
   ---------------------------------------------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-grid li {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 20px rgba(45, 30, 52, 0.04);
}

.step-number {
  display: inline-grid;
  min-width: 48px;
  min-height: 48px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--soft-purple);
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
}

.steps-grid h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 19px;
}

.steps-grid p,
.save-hint p,
.faq-list p,
.legal-section p,
.legal-section address {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.save-hint {
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid #E9D7A9;
  border-radius: 18px;
  background: #FFF8E9;
}

.save-hint strong {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-size: 17px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 40px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-list details {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}

.faq-list summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 760;
}

.faq-list details[open] summary {
  margin-bottom: 12px;
}

.legal-page {
  padding-block: 82px;
}

.legal-container {
  max-width: 860px;
}

.legal-page h1 {
  margin-bottom: 24px;
  color: var(--primary-dark);
  font-size: clamp(34px, 4vw, 48px);
}

.legal-warning {
  margin-bottom: 24px;
  padding: 24px 26px;
  border: 1px solid #E9D7A9;
  border-radius: 18px;
  background: #FFF8E9;
}

.legal-warning strong {
  color: var(--primary-dark);
}

.legal-warning p {
  margin: 8px 0 0;
}

.legal-section {
  margin-top: 20px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
}

.legal-section h2 {
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 22px;
}

.legal-section address {
  font-style: normal;
}

.legal-return {
  margin-top: 26px;
}

/* ----------------------------------------------------------------------
   9. Footer
   ---------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: #F7F3F7;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px 34px;
  padding-block: 30px;
}

.footer-name {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 20px;
}

.footer-inner p,
.footer-contact,
.footer-bottom {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.footer-contact a {
  color: var(--secondary);
  text-decoration: none;
}

.footer-contact a:hover,
.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.footer-bottom a {
  color: var(--primary-dark);
  text-decoration: none;
}

/* ----------------------------------------------------------------------
   10. Responsive Anpassungen
   ---------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-inner {
    gap: 32px;
    grid-template-columns: 0.95fr 1.05fr;
  }

  .main-nav {
    gap: 16px;
  }

  .program-body {
    padding-inline: 27px;
  }

  .program-shot {
    margin-inline: 27px;
  }

  .program-actions {
    padding-inline: 27px;
  }
}

@media (max-width: 860px) {
  .program-grid,
  .guide-grid,
  .faq-layout,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .container {
    width: min(660px, calc(100% - 36px));
  }

  .header-inner {
    min-height: 72px;
  }

  .main-nav {
    display: none;
  }

  .header-link {
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 66px 68px;
  }

  .hero-description {
    max-width: 620px;
  }

  .screenshot-figure {
    max-width: 630px;
    margin: 16px auto 0;
  }

  .benefits-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 20px;
  }

  .benefits-inner > div {
    justify-content: flex-start;
  }

  .section {
    padding-block: 76px;
  }
}

@media (max-width: 500px) {
  .brand-text strong {
    font-size: 13px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .brand-symbol {
    width: 40px;
    height: 40px;
  }

  .header-link {
    padding: 9px 10px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .program-body {
    padding: 27px 22px 20px;
  }

  .program-card h3 {
    font-size: 26px;
  }

  .program-shot {
    margin-inline: 22px;
  }

  .program-actions {
    padding-inline: 22px;
  }

  .guide-card {
    flex-direction: column;
    padding: 25px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-contact {
    align-items: flex-start;
    text-align: left;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .legal-section {
    padding: 22px;
  }
}

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

  .button {
    transition: none;
  }
}
