:root {
  --purple-700: #6c3ef2;
  --purple-500: #8747ff;
  --text-dark: #201034;
  --text-muted: #4c3a68;
  --white: #ffffff;
  --bg-light: #f8f5ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f8f5ff 0%, #ebe1ff 45%, #ffffff 100%);
  color: var(--text-muted);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 80px;
}

/* Text Content Page (Impressum, Datenschutz) Styles */
.text-page {
  max-width: 800px;
  /* Narrower container for reading text */
}

.text-page h1 {
  font-size: 2.4rem;
  color: var(--purple-700);
  margin-bottom: 24px;
}

.text-page h2 {
  font-size: 1.8rem;
  color: var(--purple-700);
  margin-top: 32px;
  margin-bottom: 12px;
}

.text-page p,
.text-page ul {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(32, 16, 52, 0.82);
}

.text-page ul {
  list-style: disc inside;
  padding-left: 20px;
}

.text-page strong {
  color: var(--text-dark);
  font-weight: 600;
}

.text-page a {
  color: var(--purple-500);
  text-decoration: none;
}

.text-page a:hover {
  text-decoration: underline;
}

.text-page small {
  display: block;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}


/* Common Components */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 12px 24px rgba(108, 62, 242, 0.25);
  transition: all 0.3s ease;
  width: fit-content;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(108, 62, 242, 0.35);
}

.button:active {
  transform: translateY(-1px);
}

/* Footer Styles */
footer {
  width: 100%;
  padding: 48px 24px;
  border-top: 1px solid rgba(108, 62, 242, 0.15);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  margin-top: auto;
  /* Pushes footer to bottom */
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-left strong {
  color: var(--text-dark);
  font-weight: 600;
}

.footer-middle,
.footer-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-middle a,
.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  cursor: pointer;
}

.footer-middle a:hover,
.footer-right a:hover {
  color: var(--purple-700);
  background: rgba(108, 62, 242, 0.12);
}

.footer-right a {
  font-weight: 600;
}

/* Footer Media Queries */
@media (max-width: 768px) {
  footer {
    padding: 36px 16px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-middle,
  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
  }
}
