/* Google Font "Atkinson Hyperlegible" direkt im CSS laden */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
  --bg-color: #FFCC5F;
  --bg-footer: #F7E2C7;
  --color-black: #000000;
  --color-text-primary: #030201;
  --font-family: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --section-gap: 148px;
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   2. CONTAINER & PERFORMANCE-SCROLL
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* Performanter, ruckelfreier Fade-In */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   3. HEADER
   ========================================================================== */
.site-header {
  padding-top: 32px;
  padding-bottom: 32px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-logo {
  max-width: 100%;
  height: auto;
  display: block;
}

.back-link {
  color: var(--color-black);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  font-family: var(--font-family);
}

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

/* ==========================================================================
   4. INTRO SECTION
   ========================================================================== */
.intro-section {
  padding-top: 24px;
  padding-bottom: var(--section-gap);
}

.intro-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 32px;
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.intro-image-wrapper {
  width: calc(100% + 48px);
  margin-left: -24px;
  margin-right: -24px;
}

.intro-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

h1 {
  color: var(--color-black);
  font-family: var(--font-family);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
}

.subline {
  color: var(--color-black);
  font-family: var(--font-family);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.1;
}

.copy {
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .intro-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: center;
  }

  .intro-text {
    grid-column: 2 / span 5;
  }

  .intro-image-wrapper {
    grid-column: 7 / span 6;
    width: calc(100% + 32px);
    margin-left: 0;
    margin-right: -32px;
  }

  .intro-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }
}

/* ==========================================================================
   5. HIGHLIGHTS SECTION
   ========================================================================== */
.highlights-section {
  padding-bottom: var(--section-gap);
  width: 100%;
}

.section-title {
  color: var(--color-black);
  font-family: var(--font-family);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 48px;
}

.cards-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 16px;
  padding-bottom: 24px;
  width: 100vw;
  margin-left: -24px;
  padding-left: 24px;
  padding-right: 24px;
  -webkit-overflow-scrolling: touch;
}

.cards-grid::-webkit-scrollbar {
  display: none;
}
.cards-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.card {
  flex: 0 0 85vw;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.card-image-wrapper {
  width: 100%;
  margin-bottom: 24px;
}

.card-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.card h3 {
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.16;
  margin-bottom: 16px;
}

.card-copy {
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.28px;
  margin-bottom: 24px;
}

.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 24px;
  border: 3px solid var(--color-black);
  border-radius: 40px;
  color: var(--color-text-primary, #030201);
  background-color: transparent;
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  line-height: 110%;
  letter-spacing: 0.16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: auto;
}

.btn:hover, .btn:focus {
  background-color: var(--color-black);
  color: var(--bg-color);
}

@media (min-width: 1024px) {
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    gap: 24px;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .card {
    flex: none;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-footer);
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--color-black);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-social {
  order: 1;
}

.footer-info {
  order: 2;
}

.footer-nav {
  order: 3;
}

.footer-col {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.35;
}

.footer-logo {
  margin-bottom: 24px;
  max-width: 160px;
  height: auto;
  display: block;
}

address {
  font-style: normal;
  font-family: var(--font-family);
  margin-bottom: 16px;
}

.footer-link {
  color: var(--color-text-primary);
  font-family: var(--font-family);
  text-decoration: underline;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: var(--color-text-primary);
  font-family: var(--font-family);
  text-decoration: underline;
}

.social-headline {
  font-weight: 700;
  font-family: var(--font-family);
  margin-bottom: 8px;
}

.social-text {
  font-family: var(--font-family);
  margin-bottom: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  text-decoration: underline;
  font-weight: 700;
}

.instagram-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-black);
  border-radius: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.instagram-icon-box img {
  filter: brightness(0) invert(1);
}

.social-link:hover .instagram-icon-box {
  transform: scale(1.08);
  opacity: 0.85;
}

@media (min-width: 1024px) {
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: start;
  }

  .footer-info {
    order: unset;
    grid-column: 1 / span 4;
  }

  .footer-nav {
    order: unset;
    grid-column: 5 / span 3;
  }

  .footer-social {
    order: unset;
    grid-column: 8 / span 5;
    border-left: 1px solid var(--color-black);
    padding-left: 32px;
  }

  .footer-col {
    font-size: 20px;
  }
}

/* ==========================================================================
   7. LEGAL PAGES
   ========================================================================== */
.legal-page {
  padding-top: 32px;
  padding-bottom: 64px;
  max-width: 800px;
}

.legal-page h1 {
  margin-bottom: 32px;
  font-family: var(--font-family);
  font-size: clamp(36px, 5vw, 64px);
}

.legal-page h2 {
  font-family: var(--font-family);
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page h3 {
  font-family: var(--font-family);
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-page p, .legal-page ul {
  margin-bottom: 16px;
  font-family: var(--font-family);
  font-size: 16px;
}

.legal-page ul {
  padding-left: 20px;
}

.legal-page a {
  color: var(--color-black);
  font-family: var(--font-family);
  text-decoration: underline;
}

.source {
  margin-top: 40px;
  font-style: italic;
  font-family: var(--font-family);
}