:root {
  --green-dark: #1f4d3a;
  --green: #2d6a4f;
  --green-light: #4a8a6a;
  --purple: #8b3fbf;
  --purple-light: #a855f7;
  --bg: #faf9f6;
  --card-bg: #ffffff;
  --border: #e6e2da;
  --text: #2b2b2b;
  --text-muted: #5c5c5c;
  --shadow: 0 4px 18px rgba(31, 77, 58, 0.08);
  --shadow-hover: 0 8px 28px rgba(31, 77, 58, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.hero {
  text-align: center;
  padding: 56px 24px 40px;
  max-width: 780px;
  margin: 0 auto;
}

.logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin-bottom: 28px;
}

.hero-line {
  margin: 0 0 10px;
}

.hero-line-1 {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-line-2 {
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 500;
}

.hero-line-2 strong {
  color: var(--green-dark);
  font-weight: 700;
}

.hero-line-3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 18px;
}

.hero-line-3 .accent {
  color: var(--purple);
  font-weight: 700;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--green-dark);
  margin: 20px 0 40px;
}

.section-title .dots {
  color: var(--purple);
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

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

.card {
  perspective: 1200px;
  cursor: pointer;
  outline: none;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  grid-column: 1;
  grid-row: 1;
  min-height: 260px;
  backface-visibility: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.25s;
}

.card:hover .card-face {
  box-shadow: var(--shadow-hover);
}

.card-front {
  border-top: 4px solid var(--green);
}

.card-question {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-dark);
  margin: 0 0 18px;
}

.flip-hint {
  font-size: 0.85rem;
  color: var(--purple);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-back {
  transform: rotateY(180deg);
  border-top: 4px solid var(--purple);
  justify-content: flex-start;
}

.card-back h3 {
  color: var(--green-dark);
  margin: 4px 0 2px;
  font-size: 1.3rem;
}

.card-back .subtitle {
  color: var(--purple);
  font-weight: 600;
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.book-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 16px;
}

.book-btn:hover {
  background: var(--green-dark);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 77, 58, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 36px 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.modal h3 {
  color: var(--green-dark);
  margin-top: 0;
}

.modal p {
  color: var(--text);
  font-size: 0.98rem;
}

.modal-cta {
  display: inline-block;
  margin-top: 14px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.modal-cta:hover {
  background: #6f2d99;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 24px 24px 36px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer .footer-legal {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer .footer-contact a {
  color: var(--green-dark);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--purple);
  text-decoration: underline;
}

.site-footer span {
  margin: 0 8px;
}

/* Rechtsseiten (Impressum, Datenschutz) */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 40px;
}

.legal h1 {
  color: var(--green-dark);
  font-size: 1.8rem;
  margin: 24px 0 8px;
}

.legal h2 {
  color: var(--green-dark);
  font-size: 1.15rem;
  margin: 28px 0 8px;
}

.legal p,
.legal ul {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 12px;
}

.legal a {
  color: var(--purple);
  font-weight: 600;
}

.legal-back {
  display: inline-block;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 8px;
}

.legal-back:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .hero-line-2 {
    font-size: 1.15rem;
  }
  .hero-line-3 {
    font-size: 1.05rem;
  }
}
