/* Reset & Grundlayout */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: none;
  color: #15223b;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Unscharfes, aufgehelltes Hintergrundbild */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px) brightness(1.25);
  z-index: -2;
  pointer-events: none;
}

/* Helles Overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(255,255,255,0.4);
  z-index: -1;
  pointer-events: none;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

/* Kopfbereich */
.site-header { text-align: center; margin-bottom: 1rem; }
.logo {
  height: 180px;
  width: auto;
  display: block;
  margin: 0.2rem auto;
  border-radius: 12px;
  border: 3px solid #C62828;
}
.site-title {
  font-size: 3rem;
  margin: 0.5rem 0 0.25rem;
  color: #15223b;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.lead { color: #f1f1f1; margin: 0.25rem 0 1rem; }
.text-container .lead {
  color: #15223b;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 50px;
  padding: 0 20px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.06s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
  box-shadow: none;
}

/* Glow nur bei Hover/Fokus */
.btn:hover,
.btn:focus {
  box-shadow:
    0 0 10px rgba(0, 153, 255, 0.7),
    0 0 20px rgba(0, 153, 255, 0.5);
}

/* Farbvarianten */
.btn-primary {
  background-image: linear-gradient(180deg,#E53935,#C62828);
  color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-image: linear-gradient(180deg,#D32F2F,#8E2424);
  transform: translateY(-1px);
  outline: none;
}
.btn-secondary {
  background-image: linear-gradient(180deg,#00897B,#00695C);
  color: #ffffff;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background-image: linear-gradient(180deg,#00796B,#004D40);
  transform: translateY(-1px);
  outline: none;
}
.btn-muted { background: #666; color: #fff; opacity: 0.95; cursor: default; }

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0.75rem 0;
}
.button-group > .btn { flex: 1 1 0; min-width: 180px; }

/* === Produktkarten: Buttons am Boden & auf Desktop auf einer Höhe === */
.digital-products .product-row {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  );
  gap: 16px;
  margin-top: 0.75rem;
  align-items: stretch; /* sorgt für gleiche Zeilenhöhe je Row */
}

.digital-products .product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  overflow: hidden; /* hält die cta-bar sauber im Rahmen */
}

.digital-products .product-card .content {
  padding: 18px 18px 10px;
  flex: 1 1 auto;   /* füllt den Rest -> cta-bar bleibt unten */
}

.digital-products .product-card h3 {
  margin: 0 0 8px;
  color: #15223b;
}

.digital-products .product-card p {
  margin: 0;
  color: #435066;
  line-height: 1.5;
}

/* fester Bottom-Frame für die Buttons */
.digital-products .product-card .cta-bar {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.02),
      rgba(0,0,0,0.04)
    );
}

.digital-products .product-card .product-btn {
  display: inline-block;
  width: 100%;
}

/* Optionaler Desktop-Feinschliff:
   fixe Mindesthöhe, damit die Buttons garantiert bündig sind */
@media (min-width: 901px) {
  .digital-products .product-card {
    min-height: 360px; /* an Content-Länge anpassen, falls nötig */
  }
}

/* Cookie-Banner */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  max-width: 920px;
  width: calc(100% - 36px);
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.cookie-content { flex: 1 1 560px; min-width: 220px; }
.cookie-content h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #15223b;
}
.cookie-content p { margin: 0; color: #435066; line-height: 1.35; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-footer a { color: #0b66c3; text-decoration: none; }
.cookie-footer a:hover,
.cookie-footer a:focus { text-decoration: underline; }

/* Hinweistext unter Affiliate-Toggle */
.affiliate-note {
  display: block;
  font-size: 1rem;
  color: #C62828;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Footer */
.footer { margin-top: 1.5rem; text-align: center; color: #ffffff; opacity: 0.95; }
.footer.text-container { color: #15223b; opacity: 1; }

/* Weißer Container */
.text-container {
  background: rgba(255,255,255,0.9);
  padding: 1rem;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  color: #15223b;
}
.text-container a { color: #C62828; text-decoration: underline; }
.text-container a:hover,
.text-container a:focus { text-decoration: none; }
.text-container h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #15223b;
}

.consent-info { display: flex; flex-direction: column; gap: 0.5rem; }
.consent-info .cookie-toggle { margin: 0; }

/* Screenreader helper */
.sr-only {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.hidden { display: none !important; }

/* Barrierefreier Modus */
body.accessible-mode {
  background-color: #ffffff !important;
  color: #000000 !important;
}
body.accessible-mode .btn {
  background: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.accessible-mode .text-container {
  background: #fff !important;
  color: #000 !important;
}

/* Responsive */
@media (max-width: 900px) {
  .site-title { font-size: 2rem; }
  .logo { height: 120px; }
  .btn {
    min-width: 140px;
    height: 46px;
    font-size: 15px;
    border-radius: 10px;
  }
  .container {
    max-width: none;
    margin: 0;
    padding: 1rem;
  }
}
