/* ===================================================
   Familienperle – Stylesheet
   Modern · Simpel · Seniorengerecht
   Farbschema: Weiß mit grünen Nuancen
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;           /* Basisgröße – seniorengerecht */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
}

a {
  color: #2E7D32;
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: #1B5E20; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Nav ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffffee;
  backdrop-filter: blur(8px);
  border-bottom: 2px solid #C8E6C9;
  z-index: 1000;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2E7D32;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.logo:hover { color: #1B5E20; }

.logo-img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  padding: .4rem 0;
  border-bottom: 3px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-link:hover,
.nav-link.active {
  color: #2E7D32;
  border-color: #4CAF50;
}

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.burger span {
  width: 28px;
  height: 3px;
  background: #2E7D32;
  border-radius: 2px;
  transition: .3s;
}

/* ---------- Sections generic ---------- */
.section {
  padding: 6rem 0 4rem;
}

.section--hero {
  background: linear-gradient(165deg, #E8F5E9 0%, #ffffff 60%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
}

.section--light {
  background: #F1F8E9;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: #2E7D32;
  margin-bottom: .5rem;
}

.section-intro {
  text-align: center;
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 3rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Hero ---------- */
.hero-content {
  text-align: center;
}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.3;
  color: #222;
  margin-bottom: 1rem;
}

.highlight { color: #2E7D32; }

.hero-sub {
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: #2E7D32;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: .9rem 2.2rem;
  border: 2px solid #2E7D32;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, transform .1s;
  text-align: center;
}
.btn:hover {
  background: #1B5E20;
  border-color: #1B5E20;
  color: #fff;
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: #2E7D32;
}
.btn--outline:hover {
  background: #2E7D32;
  color: #fff;
}

.btn--full { width: 100%; }

.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

.btn--disabled {
  background: transparent;
  border-color: #aaa;
  color: #aaa;
  cursor: default;
  pointer-events: none;
}

/* ---------- Ablauf / Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.step-card {
  background: #fff;
  border: 2px solid #C8E6C9;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}
.step-card:hover {
  box-shadow: 0 6px 24px rgba(46,125,50,.12);
  transform: translateY(-4px);
}

.step-number {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: #2E7D32;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  color: #2E7D32;
  margin-bottom: .5rem;
  font-size: 1.2rem;
}

.step-card p {
  color: #555;
  font-size: 1rem;
}

/* ---------- Calculator ---------- */
.calculator {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid #C8E6C9;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(46,125,50,.08);
}

/* Progress */
.progress-bar {
  height: 10px;
  background: #E8F5E9;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: .5rem;
}

.progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #4CAF50, #2E7D32);
  border-radius: 5px;
  transition: width .4s ease;
}

.progress-text {
  text-align: center;
  font-size: .95rem;
  color: #777;
  margin-bottom: 2rem;
}

/* Question */
.question-container h3 {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-btn {
  display: block;
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: 1.08rem;
  font-weight: 500;
  text-align: left;
  background: #fff;
  color: #333;
  border: 2px solid #C8E6C9;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .1s;
}

.option-btn:hover {
  background: #E8F5E9;
  border-color: #4CAF50;
}

.option-btn.selected {
  background: #2E7D32;
  color: #fff;
  border-color: #2E7D32;
}

/* Contact input in calculator (Q5.3) */
.contact-input-wrap {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #E8F5E9;
}

.contact-input-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: .4rem;
  font-size: 1.05rem;
}

.contact-input {
  width: 100%;
  padding: .85rem 1rem;
  font-size: 1.05rem;
  border: 2px solid #C8E6C9;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
  color: #333;
  background: #fff;
}

.contact-input:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76,175,80,.15);
}

/* Calc nav */
.calc-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* ---------- Result ---------- */
.result-box {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid #4CAF50;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(46,125,50,.10);
}

.result-box h3 {
  font-size: 1.4rem;
  color: #2E7D32;
  margin-bottom: 1rem;
}

.result-value {
  font-size: 2.6rem;
  font-weight: 800;
  color: #1B5E20;
  margin-bottom: .5rem;
}

.result-hint {
  color: #777;
  font-size: .95rem;
  margin-bottom: 2rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hidden { display: none; }

/* ---------- Q5.3 Contact Redesign ---------- */
.contact-divider {
  width: 100%;
  margin: 1.2rem auto;
  border: none;
  border-top: 2px solid #c8e6c9;
}
.contact-fields {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: 1rem;
  width: 100%;
}
.contact-fields input,
.contact-fields textarea {
  padding: .7rem 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s;
  resize: vertical;
}
.contact-fields input:focus,
.contact-fields textarea:focus {
  border-color: #2E7D32;
  outline: none;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: .3rem;
  margin-top: 1rem;
  color: #333;
}
.contact-form label:first-child { margin-top: 0; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .85rem 1rem;
  font-size: 1.05rem;
  border: 2px solid #C8E6C9;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
  color: #333;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76,175,80,.15);
}

.contact-form .btn--full {
  margin-top: 1.5rem;
}

/* Contact info cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: #E8F5E9;
  border-radius: 12px;
  padding: 1.5rem;
}

.info-card h3 {
  color: #2E7D32;
  margin-bottom: .4rem;
  font-size: 1.1rem;
}

.info-card p {
  font-size: 1.05rem;
  color: #444;
}

.info-card a { font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  background: #1B5E20;
  color: #C8E6C9;
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-addresses {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  width: 100%;
}

.footer-address {
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: .5rem;
}

.footer-links a {
  color: #C8E6C9;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- Toast / Message ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2E7D32;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- PDF Button Spinner ---------- */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

#btnPdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  html { font-size: 17px; }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    border-bottom: 2px solid #C8E6C9;
  }
  .nav.open { max-height: 320px; }

  .nav-link {
    padding: 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #E8F5E9;
  }

  .burger { display: flex; }

  .hero-content h1 { font-size: 2rem; }
  .hero-sub { font-size: 1.1rem; }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .calculator {
    padding: 1.8rem 1.2rem;
  }
}

/* ---------- Legal Pages (Impressum, AGB, Datenschutz) ---------- */
.legal-page {
  padding-top: 120px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  color: #2E7D32;
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  color: #1B5E20;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  border-bottom: 2px solid #C8E6C9;
  padding-bottom: 0.3rem;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: #2E7D32;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.legal-content p {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  line-height: 1.8;
}

.legal-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #C8E6C9;
}

.legal-back a {
  font-weight: 600;
  font-size: 1.05rem;
}

/* ---------- Hero Buttons ---------- */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn--white:hover {
  background: #fff;
  color: #2E7D32;
}

/* ---------- Ablauf CTA ---------- */
.ablauf-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background: #E8F5E9;
  border-radius: 12px;
  border: 2px solid #C8E6C9;
}

.ablauf-cta p {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1B5E20;
  margin-bottom: 1.2rem;
}

.ablauf-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 2px solid #C8E6C9;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: #4CAF50;
}

.faq-item[open] {
  border-color: #2E7D32;
}

.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1B5E20;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.faq-item summary::before {
  content: '+';
  font-size: 1.4rem;
  font-weight: 700;
  color: #2E7D32;
  min-width: 1.2rem;
  text-align: center;
  transition: transform 0.2s;
}

.faq-item[open] summary::before {
  content: '−';
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 1.5rem 1.2rem 3.5rem;
  color: #444;
  line-height: 1.8;
}
