/* ============================================================
   STARTSEITE / HOMEPAGE STYLES
   ============================================================
   Specific styles for index.html including hero, FAQ,
   featured content, stats, intro cards, collage background.
============================================================ */

/* Body Styles for Homepage */
body {
  background: var(--bg);
  min-height: 100vh;
  color: #f5f5f5;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Collage Background */
.collage-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.collage-img {
  position: absolute;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  opacity: 0.82;
  transition: opacity 0.3s;
  will-change: transform;
}

@media (max-width: 700px) {
  .collage-bg {
    display: block;
  }
  .collage-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    opacity: 0.7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }
}

@media (max-width: 480px) {
  .collage-img {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    opacity: 0.6;
  }
}

/* Hero Section */
.hero-bg {
  width: 100vw;
  min-height: 92vh;
  background:
    url("images/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 180px;
  background: rgba(10, 10, 10, 0.9);
  z-index: 4;
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px;
  border-radius: 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.hero-sub {
  font-size: 1.35rem;
  color: #aeaeb3;
  margin: 0 auto 24px auto;
  font-weight: 500;
  letter-spacing: 0.6px;
  font-style: italic;
  min-height: 1.5em;
}

.typing-effect {
  white-space: nowrap;
  overflow: hidden;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border-right: 0.12em solid var(--muted, #888);
}

.typing-effect.typing-finished {
  border-right: 0;
}

/* Intro Grid Section */
.intro-grid {
  width: 100%;
  max-width: 1200px;
  margin: -48px auto 12px auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  position: relative;
  z-index: 5;
}

.intro-col {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  border-radius: 16px;
  padding: 22px 22px 18px 22px;
}

.intro-col h2 {
  margin: 8px 0 10px 0;
  font-size: 1.8rem;
}

.intro-col .muted {
  color: #b5b5bc;
  margin-bottom: 14px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  transition:
    background 0.14s,
    transform 0.14s,
    box-shadow 0.14s,
    border-color 0.14s;
}

.ghost-btn:hover,
.ghost-btn:focus-visible {
  background: var(--glass-bg-hover);
  transform: translateY(-1px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover), var(--glass-inner-shadow);
}

.link-inline {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

.link-inline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease;
  transform-origin: left;
}

.link-inline:hover::after,
.link-inline:focus-visible::after {
  transform: scaleX(0.8);
}

/* Stats Cards */
.intro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px 16px 14px 16px;
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.stat-card:hover,
.stat-card:focus-visible {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--glass-shadow-hover), var(--glass-inner-shadow);
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
}

.stat-card.alt {
  background: var(--glass-bg-hover);
  backdrop-filter: blur(14px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.6px;
}

.stat-label {
  color: #ffffff;
  font-weight: 700;
  margin: 2px 0 8px 0;
}

.stat-card p {
  color: #d9d9de;
  font-size: 0.98rem;
}

/* Mini Strip Gallery */
.mini-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.mini-strip img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  filter: saturate(1.08) contrast(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.mini-strip img:hover,
.mini-strip img:focus-visible {
  transform: translateY(-3px) scale(1.02);
  filter: saturate(1.12) contrast(1.04);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

/* Featured Section */
.featured {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 18px 28px 18px;
}

.featured-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.featured-head h2 {
  margin: 6px 0 4px 0;
}

.featured-head .muted {
  color: #b5b5bc;
}

.featured-head .eyebrow {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.82rem;
}

.featured-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 320px);
  gap: 16px;
  overflow-x: auto;
  padding: 6px 4px 10px 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.featured-strip::-webkit-scrollbar {
  height: 8px;
}

.featured-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.featured-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.featured-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.featured-card figcaption {
  padding: 12px 14px;
  color: #e8e8e8;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.featured-card:hover,
.featured-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover), var(--glass-inner-shadow);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.featured-card:hover img,
.featured-card:focus-within img {
  transform: scale(1.03);
}

.featured-ctrl {
  display: flex;
  gap: 10px;
}

.featured-progress {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.featured-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.25);
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.featured-dot:hover {
  transform: scale(1.2);
}

.featured-dot.is-active {
  width: 24px;
  background: rgba(255, 255, 255, 0.95);
}

/* FAQ Section */
.faq-section {
  background: var(--bg);
  color: var(--muted, #aeaeb3);
  padding: 64px 0 48px 0;
  margin-top: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.faq-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px;
}

.faq-section h2 {
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 36px;
  font-weight: 700;
  color: #fff;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, background 0.2s;
}

.faq-item:focus-within, .faq-item:hover {
  box-shadow: var(--glass-shadow-hover), var(--glass-inner-shadow);
  background: var(--glass-bg-hover);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.13rem;
  font-weight: 600;
  text-align: left;
  padding: 18px 22px 16px 22px;
  cursor: pointer;
  outline: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question[aria-expanded="true"] {
  color: var(--accent, #ffffff);
}

.faq-arrow {
  display: inline-flex;
  align-items: center;
  margin-left: 18px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--muted, #aeaeb3);
}

.faq-arrow.rotated {
  transform: rotate(180deg);
  color: var(--accent, #ffffff);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: none;
  color: var(--muted, #aeaeb3);
  font-size: 1rem;
  padding: 0 22px;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  padding-bottom: 18px;
}

.faq-contact-hint {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--muted, #aeaeb3);
  font-size: 1.08rem;
}

.faq-contact-hint a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Fade In Section Animation */
.fade-in-section {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: opacity, transform;
}

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

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

/* Footer Centered Text */
.footer-centered {
  text-align: center;
  color: #aeaeb3;
  padding: 32px 0 18px 0;
  font-size: 1rem;
  width: 100vw;
  background: none;
}

/* Responsive */
@media (max-width: 720px) {
  .intro-grid {
    margin-top: -18px;
  }
  .intro-col h2 {
    font-size: 1.45rem;
  }
  .mini-strip img {
    height: 110px;
  }
  .featured-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .featured-strip {
    grid-auto-columns: minmax(220px, 280px);
  }
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-content {
    width: min(92vw, 560px);
    padding: 20px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  }
  .hero-bg {
    min-height: 62vh;
  }

  .typing-effect {
    white-space: normal;
    width: 100%;
    border-right: 0;
  }
}

@media (max-width: 600px) {
  .featured {
    padding: 22px 12px 12px 12px;
  }
  .featured-strip {
    grid-auto-columns: minmax(190px, 230px);
    gap: 10px;
  }
  .featured-card img {
    height: 180px;
  }
  .featured-ctrl {
    width: 100%;
    justify-content: flex-end;
  }
  .featured-progress {
    margin-top: 8px;
  }
}

@media (max-width: 540px) {
  .intro-col {
    padding: 18px 16px 14px 16px;
  }
  .intro-grid {
    padding: 0 12px;
    gap: 12px;
  }
  .tag {
    padding: 7px 10px;
  }
  .stat-number {
    font-size: 1.7rem;
  }
  .stat-card {
    text-align: center;
  }
  .stat-card p {
    text-align: center;
  }
  .mini-strip {
    justify-content: center;
    gap: 8px;
  }
  .mini-strip img {
    height: 104px;
  }
  .hero-content {
    width: min(94vw, 520px);
    padding: 18px 12px;
    border-radius: 16px;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-sub {
    font-size: 1.05rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .featured {
    padding: 18px 10px 10px 10px;
  }
  .featured-head {
    margin-bottom: 12px;
  }
  .featured-strip {
    grid-auto-columns: minmax(170px, 210px);
    gap: 8px;
    padding: 4px 2px 8px 2px;
  }
  .featured-card img {
    height: 160px;
  }

  .featured-ctrl {
    display: none;
  }
}
