:root {
  --primary: #b71234;
  --primary-dark: #8b0d27;
  --text: #333333;
  --muted: #777777;
  --bg-light: #f7f7f7;
  --border: #e2e2e2;
  --max-width: 1280px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */

.topbar {
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  min-height: 44px;
}

.topbar-left span {
  font-weight: 600;
  margin-right: 8px;
}

.topbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-small {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 12px;
  background: #fff;
  cursor: pointer;
}

.btn-small:hover {
  background: var(--primary);
  color: #fff;
}

header.main-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  min-height: 100px;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  font-size: 14px;
}

nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 18px;
  font-family: 'Roboto', Arial, sans-serif;
}

nav a:hover {
  color: var(--primary);
}

/* AVATARE – 2x2 Sprite */

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-image: url("../images/avatars.png");
  background-size: 200% 200%; /* 2 Spalten, 2 Reihen */
  background-repeat: no-repeat;
  background-color: #ddd;
  margin: 0 auto 12px;
  overflow: hidden;
}

/* Oben links */
.avatar-1 {
  background-position: 0% 0%;
}

/* Oben rechts */
.avatar-2 {
  background-position: 100% 0%;
}

/* Unten links */
.avatar-3 {
  background-position: 0% 100%;
}

/* Unten rechts */
.avatar-4 {
  background-position: 100% 100%;
}

/* To Top */

#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--primary-dark);
}

#back-to-top svg {
  fill: #ffffff;
}

/* HERO */

.hero {
	background: linear-gradient( to right, #ffffffee 0%, #ffffffee 55%, #ffffffcc 70%, #ffffff00 100% ), url("../images/header-hintergrund.jpg") center/cover no-repeat !important;
	border-bottom: 1px solid var(--border);
	min-height: calc(100vh - 145px);
	display: flex;
	align-items: center;
	position: relative;
}

.btn-hero-next {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  overflow: hidden; /* fürs saubere Wippen */
}

/* Wrapper, der gerade nach unten bewegt werden kann */
.btn-hero-next span {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chevron */
.btn-hero-next span::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  display: block;
}

/* Hover → Endlos-Wippen */
.btn-hero-next:hover span {
  animation: arrowBounce 0.6s infinite ease-in-out;
}

/* Keyframes: nur Y-Bewegung, kein schräges Abrutschen */
@keyframes arrowBounce {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(4px); }
  100% { transform: translateY(0); }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 40px 0 50px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.hero h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--text);
}

.hero-sub {
  font-size: 15px;
  margin-bottom: 12px;
  font-weight: 500;
}

.hero p {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 18px;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  font-size: 13px;
}

.hero-stat {
  background: #ffffffcc;
  border-radius: 4px;
  border: 1px solid var(--border);
  padding: 10px;
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--primary);
}

/* SECTION GENERIC */

section {
  padding: 40px 0;
}

section:nth-of-type(odd) {
  background: #fff;
}

section:nth-of-type(even) {
  background: var(--bg-light);
}

h2.section-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 4px;
}

.section-subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* PRODUKTE */

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 32px;
  margin-bottom: 40px;
  align-items: center;
}

.product-image-buch {
  background: #ddd url("../images/erfa-buch.jpg")
    center/cover no-repeat;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 290px;
}

.product-image-spiel {
  background: #ddd url("../images/erfa-spiel.jpg")
    center/cover no-repeat;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 290px;
}

.product-text h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--primary);
}

.product-text h4 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
}

.product-text p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 10px;
}

.product-text ul {
  list-style: none;
  margin-bottom: 12px;
  font-size: 15px;
}

.product-text li::before {
  content: "✔ ";
  color: var(--primary);
  margin-right: 4px;
}

.btn-outline {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* WARUM */

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  font-size: 13px;
}

.reason {
  text-align: center;
  padding: 16px;
}

.reason-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0 auto 10px;
}

.reason-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 15px;
}

.reason p {
  color: var(--muted);
  font-size: 14px;
}

/* TESTIMONIALS */

.testimonial-wrapper {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.testimonial {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  padding: 16px;
  font-size: 13px;
}

.testimonial p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
}

.testimonial strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.testimonial small {
  color: var(--muted);
  font-size: 12px;
}

/* TEAM */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.team-card {
  text-align: center;
  font-size: 13px;
}

.team-name {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 15px;
}

.team-role {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.team-card p {
  color: var(--muted);
  font-size: 14px;
}

/* CTA / KONTAKT & SERVICE – zwei Boxen nebeneinander */

.cta-section {
  /* optional eigener Hintergrund */
  background: var(--bg-light);
}

.cta-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: stretch;
}

.cta-box {
  flex: 1;
  max-width: 600px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  padding: 28px 24px;
  text-align: center;
  margin: 0 auto 32px;

  /* NEU: Flex Column Layout */
  display: flex;
  flex-direction: column;
  gap: 16px;

  /* Option: verteilt Inhalt sauber */
  justify-content: space-between;
}

.cta-box .btn-primary {
  width: auto;
  align-self: center; /* oder: flex-start / flex-end */
}

.cta-phone {
  font-weight: 600;
  margin: 10px 0;
  font-size: 15px;
}

.cta-phone a {
  color: inherit;
}

/* SUPPORT / DOWNLOADS */

.downloads-section {
  padding: 40px 0 60px;
}

.downloads-header h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.downloads-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.downloads-list {
  display: flex;
  flex-direction: column;
  gap: 12px; /* weißer Abstand zwischen den Zeilen */
}

/* eine Zeile der Download-Liste */
.download-row {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  font-size: 14px;
}

/* farbige Varianten */

.download-row--blue {
  background: #f4f8ff;
}

.download-row--green {
  background: #f4fff7;
}

.download-title a {
  font-weight: 600;
  color: var(--primary);
}

.download-title a:hover {
  text-decoration: underline;
}

.download-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* kleiner auf mobilen Geräten */

@media (max-width: 900px) {
  .download-row {
    grid-template-columns: 1fr;
  }
}

/* FOOTER */

footer {
  background: #222;
  color: #ddd;
  font-size: 12px;
  padding: 30px 0 10px;
  margin-top: 40px;
}

footer .container {
  max-width: 1100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 1fr 0.5fr 0.5fr;
  gap: 15px;
  margin-bottom: 16px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-col p {
  color: #aaaaaa;
  margin-bottom: 6px;
}

.footer-col a {
  color: #eeeeee;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  color: #777;
  border-top: 1px solid #333;
  padding-top: 8px;
  font-size: 11px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  /* CTAs untereinander statt nebeneinander */
  .cta-row {
    flex-direction: column;
    gap: 20px;
  }

  .cta-box {
    max-width: none;
    margin: 0 auto 24px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    background: #fafafa;
  }

  .product-grid,
  .reasons-grid,
  .testimonial-wrapper,
  .team-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  header.main-header {
    position: static;
  }

  nav ul {
    gap: 12px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .topbar-inner,
  .main-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hero-inner {
    padding: 24px 0 30px;
  }

  section {
    padding: 30px 0;
  }
}
