/* =========================
   Reset & Base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

:root {
  --top-offset: 86px;
}

/* gleicht Sprünge zu #ids an den fixen Top-Bereich an */
html {
  scroll-padding-top: var(--top-offset);
}

[id] {
  scroll-margin-top: var(--top-offset);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.65;
  color: #444;
  background-color: #ffffff;
  padding-top: var(--top-offset);
}

/* Medien sollen nie über den Rand laufen */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links allgemein */
a {
  color: #4b0082;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: underline;
}

/* Fokus sichtbar */
:focus-visible {
  outline: 3px solid rgba(147, 112, 219, 0.55);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Skip-Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 3000;
  background: #ffffff;
  color: #4b0082;
  border: 2px solid #9370db;
  border-radius: 10px;
  padding: 10px 12px;
}

.skip-link:focus {
  left: 12px;
}

/* Screenreader-only */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   Layout Container
========================= */
.site-content {
  width: 100%;
  max-width: 1200px;
  margin: 18px auto;
  padding: 0 16px;
}

/* =========================
   Header / Navigation
========================= */
.site-header {
  text-align: center;
  padding: 14px 0;
  background: linear-gradient(135deg, #f9f7fc 0%, #ffffff 100%);
  border-bottom: 3px solid #9370db;
}

.logo-container {
  margin-bottom: 10px;
}

.logo {
  max-width: 250px;
  width: 250px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(75, 0, 130, 0.1);
  display: block;
  margin: 0 auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding: 0 10px;
}

.main-nav a {
  text-decoration: none;
  color: #4b0082;
  font-weight: 700;
  padding: 8px 16px;
  border: 2px solid #9370db;
  border-radius: 30px;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.main-nav a:hover {
  background-color: #e6ccf2;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(75, 0, 130, 0.1);
  text-decoration: none;
}

.main-nav a[aria-current="page"],
.main-nav a.is-active {
  background-color: #4b0082;
  color: #ffffff;
  border-color: #4b0082;
  box-shadow: 0 6px 18px rgba(75, 0, 130, 0.18);
  text-decoration: none;
}

/* =========================
   Vorlesen (TTS)
========================= */
.tts-controls {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
}

.tts-btn {
  background: #ffffff;
  color: #4b0082;
  font-weight: 700;
  padding: 10px 18px;
  border: 2px solid #9370db;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.tts-btn:hover {
  background-color: #e6ccf2;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(75, 0, 130, 0.1);
}

/* =========================
   Hero
========================= */
.hero {
  text-align: center;
  padding: 30px 16px;
  background: linear-gradient(135deg, #f9f7fc 0%, #ffffff 100%);
  margin-bottom: 22px;
  border-radius: 12px;
  border: 1px solid rgba(212, 165, 224, 0.55);
}

.hero h1 {
  color: #4b0082;
  font-size: 2.05rem;
  margin-bottom: 10px;
}

.hero p {
  color: #6a5acd;
  font-size: 1.06rem;
  max-width: 900px;
  margin: 0 auto;
}

/* =========================
   Sections / Typography
========================= */
.content,
.services {
  padding: 20px 0;
}

.content {
  max-width: 950px;
  margin: 20px auto 0 auto;
  text-align: center;
}

.content h2,
.services h2 {
  color: #4b0082;
  margin-bottom: 18px;
  font-size: 1.75rem;
  text-align: center;
}

.content h3 {
  color: #4b0082;
  margin: 18px 0 10px 0;
  font-size: 1.25rem;
  text-align: center;
}

.content p,
.content ul,
.content ol,
.services p {
  margin-bottom: 14px;
  color: #444;
}

.content ul,
.content ol {
  padding-left: 25px;
  text-align: left;
}

.content li {
  margin-bottom: 8px;
}

/* Helfer-Klassen */
.cta-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.spacer-top {
  margin-top: 14px;
}

.steps {
  text-align: left;
  padding-left: 25px;
}

.footer-links {
  margin-top: 8px;
}

/* =========================
   Intro-Kasten Startseite
========================= */
.services-intro {
  max-width: 1000px;
  margin: 0 auto 26px auto;
  padding: 26px;
  border: 2px solid #c9a3ff;
  border-radius: 16px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(75, 0, 130, 0.06);
}

.services-intro h2 {
  margin-bottom: 14px;
}

/* =========================
   Service Cards (Grid)
========================= */
.service-cards {
  width: 100%;
  display: grid;
  gap: 22px;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(560px, 820px));
}

/* =========================
   Card Styling
========================= */
.card {
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  border: 1px solid #d4a5e0;
  box-shadow: 0 4px 12px rgba(75, 0, 130, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(75, 0, 130, 0.1);
}

.card h2,
.card h3 {
  color: #4b0082;
  margin-bottom: 12px;
}

.card p,
.card ul,
.card ol {
  text-align: left;
}

.card ul,
.card ol {
  padding-left: 20px;
}

.card li {
  margin-bottom: 8px;
}

/* =========================
   CTA Button
========================= */
.cta-btn {
  text-decoration: none;
  color: #4b0082;
  font-weight: 700;
  padding: 10px 18px;
  border: 2px solid #9370db;
  border-radius: 30px;
  display: inline-block;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
  cursor: pointer;
}

.cta-btn:hover {
  background-color: #e6ccf2;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(75, 0, 130, 0.1);
  text-decoration: none;
}

/* =========================
   Profilbild (Über mich)
========================= */
.profile-image {
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.profile-photo {
  width: 260px;
  max-width: 100%;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  border: 4px solid #7a2cff;
  box-shadow: 0 10px 24px rgba(122, 44, 255, 0.22);
}

.profil-text {
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
}

.profil-text p {
  text-align: left;
}

.lila-rahmen {
  border: 1px solid rgba(120, 70, 180, 0.45);
  border-radius: 14px;
  padding: 22px;
  background: #fff;
}

/* =========================
   Contact
========================= */
.contact-card {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  padding: 18px;
  border: 1px solid rgba(212, 165, 224, 0.55);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(75, 0, 130, 0.06);
}

.contact-card p {
  line-height: 1.85;
}

.contact-card a {
  color: #4b0082;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.privacy-note {
  margin-top: 18px;
  padding: 14px;
  background-color: #f9f7fc;
  border-radius: 12px;
  font-style: italic;
  font-size: 0.95rem;
  border: 1px solid rgba(212, 165, 224, 0.55);
}

/* =========================
   Music Player
========================= */
.music-player {
  text-align: center;
  margin: 34px 0 12px 0;
  padding: 22px;
  background-color: #f9f7fc;
  border-radius: 12px;
  border: 1px solid #d4a5e0;
}

.music-player p {
  color: #6a5acd;
  margin-bottom: 14px;
  font-style: italic;
}

.music-btn {
  background-color: #4b0082;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.music-btn:hover {
  background-color: #9370db;
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(75, 0, 130, 0.16);
}

.music-btn:focus-visible {
  outline: 3px solid rgba(75, 0, 130, 0.55);
  outline-offset: 4px;
}

/* =========================
   Footer
========================= */
.site-footer {
  text-align: center;
  padding: 25px 16px;
  background-color: #f9f7fc;
  color: #6a5acd;
  font-size: 0.95rem;
  margin-top: 44px;
  border-top: 1px solid #d4a5e0;
}

/* =========================
   Akkordeon
========================= */
.accordion {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  text-align: left;
}

.accordion-item {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #d4a5e0;
  box-shadow: 0 4px 12px rgba(75, 0, 130, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.accordion-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(75, 0, 130, 0.1);
}

.accordion-item > summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: #4b0082;
  list-style: none;
  position: relative;
  user-select: none;
}

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

.accordion-item > summary::after {
  content: "＋";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #4b0082;
  font-weight: 700;
}

.accordion-item[open] > summary::after {
  content: "–";
}

.accordion-panel {
  padding: 0 22px 18px 22px;
  border-top: 1px solid rgba(212, 165, 224, 0.6);
}

.accordion-panel p {
  margin: 12px 0 0 0;
  color: #444;
  line-height: 1.65;
}

.accordion-panel ul,
.accordion-panel ol {
  margin: 10px 0 0 20px;
}

.accordion-panel li {
  margin-bottom: 8px;
  color: #444;
}

.accordion-panel h4 {
  margin-top: 14px;
  color: #4b0082;
}

.accordion-panel hr {
  margin: 16px 0;
  border: none;
  border-top: 1px solid rgba(212, 165, 224, 0.6);
}

/* =========================
   Leitbild-Seite
========================= */
.leitbild-section {
  background: #f9f7fc;
  padding: 20px 0;
  border-radius: 12px;
}

.leitbild-card {
  border-left: 6px solid #9370db;
}

/* =========================
   Kontaktformular
========================= */
.contact-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.contact-form .form-field {
  display: grid;
  gap: 6px;
}

.contact-form .form-field--full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #d4a5e0;
  border-radius: 10px;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #9370db;
  box-shadow: 0 0 0 4px rgba(147, 112, 219, 0.12);
  outline: none;
}

.contact-form select {
  min-height: 44px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #4b0082 50%),
    linear-gradient(135deg, #4b0082 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form label {
  font-weight: 600;
}

.contact-form .hp {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-form .checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  text-align: left;
  font-weight: 400;
  margin: 18px 0;
}

.contact-form .checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 2px 0 0 0;
  padding: 0;
  border-radius: 4px;
  justify-self: start;
}

.contact-form .checkbox span {
  display: block;
  line-height: 1.55;
}

.contact-form .checkbox a {
  word-break: break-word;
}

/* =========================
   FAQ
========================= */
.faq-section {
  max-width: 950px;
  margin: 20px auto 0 auto;
  text-align: center;
}

.faq-section h2 {
  margin-bottom: 12px;
}

.faq-intro {
  max-width: 760px;
  margin: 0 auto 28px auto;
  color: #555;
  line-height: 1.6;
}

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

.faq-item {
  background: #fff;
  border: 1px solid #e8dff5;
  border-left: 5px solid #9370db;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: #4b0082;
  position: relative;
  transition: background-color 0.2s ease;
}

.faq-item summary:hover {
  background-color: #faf7ff;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-content {
  padding: 0 22px 20px 22px;
  color: #444;
  line-height: 1.6;
}

.faq-content p {
  margin: 0;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
  .service-cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 26px 22px;
  }
}

@media (max-width: 768px) {
  :root {
    --top-offset: 96px;
  }

  html {
    scroll-behavior: auto;
  }

  .hero {
    padding: 22px 14px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1.02rem;
  }

  .site-content {
    margin: 12px auto;
  }

  .main-nav ul {
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }

  .main-nav a {
    width: 190px;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
  }

  .accordion-item > summary {
    padding: 16px 18px;
  }

  .accordion-item > summary::after {
    right: 18px;
  }

  .accordion-panel {
    padding: 0 18px 16px 18px;
  }

  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .form-field,
  .contact-form .form-field--full {
    grid-column: 1 / -1;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }

  .contact-form .checkbox {
    grid-template-columns: 20px 1fr;
    gap: 10px;
  }

  .faq-section {
    padding-left: 0;
    padding-right: 0;
  }

  .faq-item summary,
  .faq-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}