/* Phone-Mockup — schlanke Smartphone-Simulation */
.phone-mockup {
  display: inline-block;
  padding: 5px;
  background: #0d0e10;
  border-radius: 26px;
  box-shadow:
    0 24px 48px -18px rgba(0, 0, 0, 0.4),
    0 8px 16px -8px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  width: 180px;
  position: relative;
}

.phone-mockup__screen {
  display: block;
  width: 100%;
  aspect-ratio: 1290 / 2340;
  object-fit: cover;
  border-radius: 22px;
  background: #0d0e10;
}

.phone-mockup--soft {
  box-shadow:
    0 16px 32px -14px rgba(0, 0, 0, 0.2),
    0 6px 14px -6px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@media (max-width: 800px) {
  .phone-mockup {
    width: 160px;
  }
}

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 18px;
  text-decoration: none;
}

.site-header__brand img {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-nav a {
  color: var(--text-color);
  font-weight: 500;
  font-size: 15px;
}

.site-nav a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.site-nav .btn {
  padding: 10px 18px;
  font-size: 14px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

@media (max-width: 800px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
  }

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

  .site-nav a {
    padding: 12px 24px;
    width: 100%;
  }

  .nav-toggle {
    display: block;
  }
}

/* Footer */
.site-footer {
  background: var(--primary-color);
  color: #cbd0d8;
  padding: 48px 0 32px;
  margin-top: 80px;
}

.site-footer a {
  color: #cbd0d8;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
  font-size: 14px;
}

.site-footer__bottom {
  border-top: 1px solid #3a3f49;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #8a8f98;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 800px) {
  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
  }
}

/* Feature list */
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(74, 144, 226, 0.12);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* Pricing table */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.price-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.price-card h3 {
  margin-top: 0;
}

.price-card__amount {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 16px 0 4px;
}

.price-card__unit {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
}

.price-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex-grow: 1;
}

.price-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.price-card li:last-child {
  border-bottom: none;
}

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

  .price-card--featured {
    transform: none;
  }
}

/* Doku */
.doku-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}

.doku-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding-right: 10px;
  /* sanft ausgeblendeter unterer Rand für visuelle Andeutung des Scrollens */
  mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent 100%);
}

.doku-sidebar::-webkit-scrollbar {
  width: 4px;
}

.doku-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.doku-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}

.doku-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

.doku-sidebar h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-top: 28px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.doku-sidebar h4:first-child {
  margin-top: 0;
}

.doku-sidebar ul {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}

.doku-sidebar li a {
  display: block;
  padding: 7px 0;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.doku-sidebar li a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.doku-sidebar li a.is-active,
.doku-sidebar li a strong {
  color: var(--accent-color);
}

.doku-content h2 {
  margin-top: 32px;
}

/* Doku-Karten mit Akzentfarbe */
.doku-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent-color);
  border-radius: var(--radius-md);
  padding: 24px 22px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  height: 100%;
}

.doku-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

.doku-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.doku-card p {
  margin: 0;
  font-size: 14px;
}

.doku-card--blue   { border-top-color: #4A90E2; }
.doku-card--green  { border-top-color: #10b981; }
.doku-card--orange { border-top-color: #f59e0b; }
.doku-card--purple { border-top-color: #8b5cf6; }
.doku-card--pink   { border-top-color: #ec4899; }

/* Hero-Karte (groß, prominent) */
.doku-card--hero {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.06), rgba(139, 92, 246, 0.06));
  border-top-width: 4px;
  padding: 28px 26px;
}

/* Checklisten-Komponenten */
.checklist-phase {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-top: 44px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.checklist-phase:first-of-type,
.doku-content > .checklist-phase:first-child {
  margin-top: 24px;
}

.checklist-phase--blue   { background: linear-gradient(135deg, #4A90E2, #2563eb); }
.checklist-phase--green  { background: linear-gradient(135deg, #10b981, #059669); }
.checklist-phase--purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.checklist-phase--orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.checklist-phase--pink   { background: linear-gradient(135deg, #ec4899, #be185d); }

.checklist-items {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.checklist-items li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  line-height: 1.5;
  flex-wrap: wrap;
}

.checklist-items li:last-child {
  border-bottom: none;
}

.checklist-items li::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-items li > span:first-of-type {
  flex: 1;
  min-width: 0;
}

.checklist-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.checklist-tag--app {
  background: rgba(74, 144, 226, 0.14);
  color: var(--accent-color);
}

.checklist-tag--extern {
  background: rgba(120, 130, 145, 0.14);
  color: #64748b;
}

/* Tipp-Box mit App-Hinweisen */
.tip-box {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.06), rgba(139, 92, 246, 0.06));
  border-left: 4px solid var(--accent-color);
  padding: 16px 20px;
  border-radius: 10px;
  margin: 28px 0;
  font-size: 14px;
  line-height: 1.55;
}

.tip-box__label {
  display: inline-block;
  color: var(--accent-color);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}

.tip-box p {
  margin: 0;
}

/* Steps — nummerierte Onboarding-Schritte */
.steps {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  align-items: start;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.step:hover {
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.1);
}

.step__number {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #4A90E2, #2563eb);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
  flex-shrink: 0;
}

.step__content {
  min-width: 0;
}

.step__content h3 {
  margin: 4px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.step__content p {
  margin: 0 0 8px;
  color: var(--text-light);
  font-size: 14.5px;
  line-height: 1.6;
}

.step__content p:last-child {
  margin-bottom: 0;
}

.step__content ul {
  margin: 8px 0 0 18px;
  font-size: 14.5px;
  color: var(--text-light);
}

@media (max-width: 600px) {
  .step {
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 18px 18px;
  }
  .step__number {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 12px 0 24px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: var(--accent-color);
  box-shadow: 0 6px 18px -10px rgba(74, 144, 226, 0.25);
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-color);
  list-style: none;
  transition: background 0.15s;
  user-select: none;
}

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

.faq-item__question:hover {
  background: var(--bg-soft);
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(74, 144, 226, 0.12);
  color: var(--accent-color);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s, background 0.2s;
}

.faq-item__icon::before {
  content: '+';
}

.faq-item[open] .faq-item__icon {
  background: var(--accent-color);
  color: #fff;
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 22px 20px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.65;
  border-top: 1px solid var(--border-color);
  margin-top: -1px;
  padding-top: 16px;
}

.faq-item[open] .faq-item__answer {
  animation: faqOpen 0.2s ease;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-item__answer p {
  margin: 0 0 10px;
}
.faq-item__answer p:last-child {
  margin-bottom: 0;
}

/* Funktions-Karten (Rollen-Seiten) */
.role-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.role-feature {
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-color);
  border-radius: var(--radius-md);
  padding: 20px 22px 22px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.role-feature:hover {
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.role-feature__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.role-feature__icon {
  width: 32px;
  height: 32px;
  background: rgba(74, 144, 226, 0.12);
  color: var(--accent-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-feature h3 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}

.role-feature p {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.55;
}

.role-feature__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.role-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(74, 144, 226, 0.1);
  color: var(--accent-color);
  white-space: nowrap;
}

.role-tag--admin       { background: rgba(139, 92, 246, 0.12); color: #6d28d9; }
.role-tag--sportwart   { background: rgba(74, 144, 226, 0.12); color: #2563eb; }
.role-tag--platzwart   { background: rgba(16, 185, 129, 0.12); color: #059669; }
.role-tag--trainer     { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.role-tag--mafue       { background: rgba(236, 72, 153, 0.12); color: #be185d; }

/* Bereichs-Akzentfarbe der Karte (Border-Left) */
.role-feature--blue   { border-left-color: #4A90E2; }
.role-feature--green  { border-left-color: #10b981; }
.role-feature--orange { border-left-color: #f59e0b; }
.role-feature--purple { border-left-color: #8b5cf6; }
.role-feature--pink   { border-left-color: #ec4899; }

/* Legal-Inhalte (Impressum / Datenschutz / AGB) */
.legal-content {
  max-width: 880px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  font-size: 22px;
}

.legal-content h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--accent-color);
  margin-right: 12px;
  border-radius: 2px;
}

.legal-content h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 17px;
}

.legal-content p {
  font-size: 15px;
  margin-bottom: 12px;
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 36px 0;
}

.info-block {
  background: var(--bg-soft);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  border-left: 4px solid var(--accent-color);
}

.info-block p {
  margin-bottom: 6px;
}

.info-block strong {
  color: var(--primary-color);
  font-weight: 600;
}

.info-notice {
  background: var(--bg-soft);
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-light);
}

.legal-section {
  background: var(--bg-soft);
  padding: 22px 26px;
  border-radius: var(--radius-md);
  margin: 28px 0;
  border: 1px solid var(--border-color);
}

.legal-section h2:first-child {
  margin-top: 0;
}

.highlight-box {
  background: #fff8e1;
  padding: 18px 22px;
  border-left: 4px solid #fbc02d;
  border-radius: var(--radius-sm);
  margin: 22px 0;
  font-size: 14px;
  color: #5d4515;
}

.contact-heading {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 40px;
  margin-bottom: 12px;
  display: block;
}

.contact-heading::before {
  display: none;
}

.contact-info-footer {
  padding: 16px 0;
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
}

.contact-info-footer p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 5px;
}

/* Doku-Hero — schmaler, einheitlicher Header über allen Doku-Seiten */
.doku-hero {
  background: linear-gradient(135deg, #4A90E2 0%, #6d28d9 100%);
  color: #fff;
  padding: 32px 0 36px;
}

.doku-hero h1 {
  color: #fff;
  font-size: 30px;
  margin: 0 0 6px;
  line-height: 1.2;
}

.doku-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  margin: 0;
  max-width: 720px;
}

@media (max-width: 800px) {
  .doku-hero {
    padding: 24px 0 28px;
  }
  .doku-hero h1 {
    font-size: 26px;
  }
}

@media (max-width: 800px) {
  .doku-layout {
    grid-template-columns: 1fr;
  }

  .doku-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
    mask-image: none;
    -webkit-mask-image: none;
  }
}
