/* ============================================================
   Seite: mitglied.html
   ============================================================ */

/* === Sparten-Picker === */
.sparte-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sparte-tile {
  background: white; border: 1.5px solid rgba(11,46,63,0.10);
  padding: 22px 20px; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
  transition: all .12s;
  position: relative;
}
.sparte-tile:hover { border-color: var(--red); transform: translateY(-2px); }
.sparte-tile.selected {
  border-color: var(--red); border-width: 2.5px;
  background: linear-gradient(180deg, white 0%, rgba(226,0,26,0.04) 100%);
  padding: 21px 19px;
}
.sparte-tile.selected::after {
  content: "✓"; position: absolute; top: 12px; right: 14px;
  background: var(--red); color: white;
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.sparte-tile .label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red); font-weight: 700;
}
.sparte-tile .name {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 26px; line-height: 1; text-transform: uppercase; letter-spacing: 0.005em;
}
.sparte-tile .desc {
  font-family: var(--body); font-size: 12px; line-height: 1.4;
  color: #5b5853; margin-top: auto;
}

/* === Beitrags-Karten === */
.beitrag-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.beitrag-card {
  background: white; border: 1px solid rgba(11,46,63,0.10);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.beitrag-card.featured {
  background: var(--ink); color: white; border: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}
.beitrag-card.featured::after {
  content: "Beliebt"; position: absolute; top: 0; right: 0;
  background: var(--red); color: white;
  padding: 6px 12px; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
}
.beitrag-card .age {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red); font-weight: 700;
}
.beitrag-card.featured .age { color: var(--red); }
.beitrag-card .title {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 28px; line-height: 0.95; text-transform: uppercase;
}
.beitrag-card .price {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 36px; color: var(--red);
}
.beitrag-card .price small {
  font-family: var(--body); font-size: 12px; font-weight: 500;
  font-style: normal; opacity: 0.7; letter-spacing: 0;
}
.beitrag-card .desc {
  font-family: var(--body); font-size: 12px; line-height: 1.5;
  color: #5b5853;
}
.beitrag-card.featured .desc { color: rgba(255,255,255,0.85); }
.beitrag-note {
  margin-top: 18px; text-align: center; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; color: #5b5853;
}
.beitrag-note .accent { color: var(--red); font-weight: 700; }

/* === Form === Gemeinsame Bausteine in components/form.css.
   === FAQ === Akkordeon-Styling in components/faq.css. */

/* === Hero === */
.mitglied-hero { position: relative; height: 730px; background: var(--paper); color: var(--ink); overflow: hidden; }
.mitglied-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 35%; opacity: 1;
  background-image: url('../../assets/team-celebration.jpg');
}
.mitglied-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(250,248,245,0.95) 0%, rgba(250,248,245,0.78) 44%, rgba(250,248,245,0.38) 72%, rgba(250,248,245,0.12) 100%),
    linear-gradient(0deg, rgba(250,248,245,0.60) 0%, transparent 42%);
}
.mitglied-hero .giant-number { position: absolute; right: -40px; top: -80px; font-size: 360px; opacity: 0.20; }
.m-hero-inner { position: absolute; left: 56px; top: 80px; max-width: 760px; z-index: 3; }
.m-hero-inner .label { font-size: 12px; letter-spacing: 0.32em; }
.m-hero-title { font-size: 130px; margin: 18px 0 0; color: var(--ink); line-height: 0.86; }
.m-hero-title .r { color: var(--red); }
.m-hero-inner p { font-size: 17px; line-height: 1.55; max-width: 560px; margin: 26px 0 0; color: rgba(11,46,63,0.78); }
.m-hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.m-hero-cta a {
  text-decoration: none; font-family: var(--display); font-weight: 800; font-style: normal;
  font-size: 20px; padding: 16px 28px; text-transform: uppercase; letter-spacing: 0.02em;
  background: transparent; color: var(--ink); border: 2px solid rgba(11,46,63,0.4);
}
.m-hero-cta a.primary { background: var(--red); color: white; font-weight: 900; border: none; }

/* === Stats-Leiste === */
.mitglied-stats {
  background: var(--red); color: white; padding: 32px 56px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  position: relative; overflow: hidden;
}
.mitglied-stats .dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1.2px, transparent 1.6px);
  background-size: 16px 16px; opacity: 0.4;
}
.mitglied-stats .stat { padding: 0 22px; border-right: 1px solid rgba(255,255,255,0.25); position: relative; }
.mitglied-stats .stat:first-child { padding-left: 0; }
.mitglied-stats .stat:last-child { border-right: none; padding-right: 0; }
.mitglied-stats .stat .display { font-size: 72px; color: white; line-height: 0.9; }
.mitglied-stats .stat .label-light { color: rgba(255,255,255,0.85); margin-top: 8px; }

.form-section { padding-top: 60px; padding-bottom: 80px; }
.mitglied-form { max-width: 1080px; margin: 0 auto; }
.contact-section { padding-bottom: 80px; }

/* === Kontakt-Kachel === Basis-Styling in components/contact-tile.css. */

/* Horizontal-Scroll-Wrapper (auf Desktop wirkungslos) */
.m-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* === Mobile ≤760px ===
   iOS-Zoom-Fix, Formular-Grid-Kollaps, Submit-Bar und Erfolgs-Box-Padding
   sind bereits Teil von components/form.css. Hier nur, was mitglied.html
   zusätzlich oder abweichend braucht. */
@media (max-width: 760px) {

  /* Hero: aus dem Absolut-Layout in den Fluss holen */
  .mitglied-hero { height: auto !important; min-height: 0 !important; }
  .m-hero-inner {
    position: relative !important; left: 0 !important; top: 0 !important;
    max-width: none !important; padding: 60px 20px 44px;
  }
  .m-hero-title { font-size: clamp(46px, 14vw, 60px) !important; line-height: 0.9 !important; }
  .m-hero-cta a { font-size: 16px !important; padding: 12px 18px !important; }

  /* Dekorative Riesen-Typo (SVW. / ✓ / LP) verkleinern */
  .mitglied-hero .giant-number, .form-success .ghost, .contact-tile .ghost { font-size: 120px !important; }

  /* Stats-Band: 4 → 2 Spalten */
  .mitglied-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 26px 20px !important; gap: 22px 18px !important;
  }
  .mitglied-stats .stat { padding: 0 !important; border-right: none !important; }
  .mitglied-stats .stat .display { font-size: 44px !important; }

  /* Sparten: 4 → 2 Spalten, kleinere Kacheln */
  .sparte-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sparte-tile { padding: 16px 14px; }
  .sparte-tile.selected { padding: 15px 13px; }
  .sparte-tile .name { font-size: 20px; }

  /* Beiträge: 5 → 1 Spalte */
  .beitrag-grid { grid-template-columns: 1fr; }

  /* Formular: Step-Card-Innenabstand + Step-Num-Position weichen von
     crew.html ab, deshalb hier statt in components/form.css. */
  .form-step { padding: 56px 18px 24px; }
  .form-step .step-num { left: 18px; top: 14px; width: 34px; height: 34px; font-size: 15px; }
  .form-step .step-head { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .form-step .step-head .h { font-size: 24px; }

  .form-success .display { font-size: 34px !important; }

  /* Kontakt-Karte: 2 → 1 Spalte */
  .contact-tile {
    grid-template-columns: 1fr !important;
    padding: 28px 20px !important; gap: 26px !important;
  }
  .contact-tile .display { font-size: 34px !important; }

  /* FAQ kompakter */
  .faq summary { padding: 16px 18px; font-size: 17px; }
  .faq .body { padding: 0 18px 18px; }
}
