/* ============================================================
   Seite: crew.html
   ============================================================ */

/* === Bereiche-Tile === */
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.role-grid.info { pointer-events: none; }
.role-tile {
  background: white; border: 1.5px solid rgba(11,46,63,0.10);
  padding: 24px 22px; cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; transition: all .12s;
  min-height: 200px;
}
.role-tile:hover { border-color: var(--red); transform: translateY(-2px); }
.role-tile.selected {
  border-color: var(--red); border-width: 2.5px;
  background: linear-gradient(180deg, white 0%, rgba(226,0,26,0.04) 100%);
  padding: 23px 21px;
}
.role-tile.selected::after {
  content: "✓"; position: absolute; top: 14px; right: 16px;
  background: var(--red); color: white;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.role-tile .code {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 36px; color: var(--red); line-height: 1;
}
.role-tile .name {
  font-family: var(--display); font-weight: 800; font-style: normal;
  font-size: 22px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.005em;
}
.role-tile .desc {
  font-family: var(--body); font-size: 12px; line-height: 1.5;
  color: #5b5853; margin-top: auto;
}
.role-tile .meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink); font-weight: 700;
}
/* === Aufgaben-Karten (Info-Bereich) === */
.role-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.role-filter button {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  padding: 10px 14px; background: white; color: var(--ink); border: 1.5px solid rgba(11,46,63,0.14); cursor: pointer;
}
.role-filter button:hover { border-color: var(--red); }
.role-filter button.on { background: var(--red); border-color: var(--red); color: white; }
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role-card { background: white; border: 1px solid rgba(11,46,63,0.10); display: flex; flex-direction: column; }
.role-card[hidden] { display: none; }
.role-card .photo { position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center 35%; background-color: var(--graphite); }
.role-card .photo.ph { background: var(--red); }
.role-card .photo.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.22) 1.2px, transparent 1.6px); background-size: 14px 14px;
}
.role-card .photo.ph::after { background: none; }
.role-card .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,46,63,0) 45%, rgba(11,46,63,0.65) 100%); }
.role-card .photo .code {
  position: absolute; left: 16px; bottom: 10px; z-index: 1; font-family: var(--display); font-weight: 900;
  font-size: 44px; line-height: 1; color: white;
}
.role-card .photo .cat {
  position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--red); color: white;
  padding: 4px 9px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
}
.role-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.role-card .meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.role-card .name {
  font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.02; margin: 0;
  text-transform: uppercase; color: var(--ink);
}
.role-card .desc { font-size: 13px; line-height: 1.55; color: #5b5853; margin: 0; }
.role-card .tasks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.role-card .tasks li { font-size: 13px; line-height: 1.4; color: var(--ink); padding-left: 18px; position: relative; }
.role-card .tasks li::before { content: "→"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.role-card .fit {
  margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(11,46,63,0.10);
  font-size: 13px; line-height: 1.45; color: var(--ink);
}
.role-card .fit span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-right: 4px; }

.bereiche-note {
  margin-top: 16px; text-align: center; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; color: #5b5853;
}
.bereiche-note .accent { color: var(--red); font-weight: 700; }

/* === Game-Multiselect === */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.game-tile {
  background: white; border: 1.5px solid rgba(11,46,63,0.10);
  padding: 14px 16px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  transition: all .12s; position: relative;
}
.game-tile:hover { border-color: var(--red); }
.game-tile.selected {
  border-color: var(--red); border-width: 2.5px;
  background: linear-gradient(180deg, white 0%, rgba(226,0,26,0.04) 100%);
  padding: 13px 15px;
}
.game-tile.selected::after {
  content: "✓"; position: absolute; top: 8px; right: 12px;
  background: var(--red); color: white;
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.game-tile .date {
  font-family: var(--display); font-weight: 800; font-style: normal;
  font-size: 18px; color: var(--ink); line-height: 1;
}
.game-tile .opp {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #5b5853; font-weight: 600;
}
.game-tile .meta {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red); font-weight: 700;
}
.game-tile.top { background: rgba(226,0,26,0.04); }
.game-tile.all-games { background: var(--ink); color: white; border: 2px solid var(--red); }
.game-tile.all-games .date { color: white; }
.game-tile.all-games .opp { color: rgba(255,255,255,0.85); }
.game-tile.all-games .meta { color: var(--red); }
.game-note {
  margin-top: 14px; font-family: var(--body); font-size: 13px; line-height: 1.5; color: #5b5853;
}

/* === Form ===
   Gemeinsame Formular-Bausteine (Step-Card, Grid, Felder, Submit,
   Erfolgs-Box, .form-step-note) leben jetzt in components/form.css. */

/* === Info-Kachel: wiederverwendetes Muster für "3 Gründe" + "Was du denkst" === */
.info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.info-tile {
  padding: 32px 36px; display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden; min-height: 320px; justify-content: space-between;
}
.info-tile.white { background: white; color: var(--ink); border: 1px solid rgba(11,46,63,0.08); }
.info-tile.sand { background: var(--sand); color: var(--ink); border: 1px solid rgba(11,46,63,0.10); }
.info-tile.red { background: var(--red); color: white; }
.info-tile.red .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.30; pointer-events: none;
}
.info-tile .ghost {
  position: absolute; right: -20px; top: -30px; font-family: var(--display);
  font-weight: 900; font-style: normal; font-size: 200px; line-height: 0.78; pointer-events: none;
}
.info-tile.white .ghost, .info-tile.sand .ghost { color: var(--red); opacity: 0.10; }
.info-tile.red .ghost { color: white; opacity: 0.18; }
.info-tile > * { position: relative; }
.info-tile .display { font-size: 32px; line-height: 1; }
.info-tile .display .accent { color: var(--red); }
.info-tile.red .display { color: white; }
.info-tile.red .display .ink-accent { color: var(--ink); }
.info-tile .answer { margin-top: auto; padding-top: 18px; border-top: 2px solid var(--red); }
.info-tile.red .answer { border-top-color: var(--ink); }
.info-tile .answer .label,
.info-tile .answer .label-light { margin-bottom: 8px; }
.info-tile .answer p { font-family: var(--body); font-size: 14px; line-height: 1.55; margin: 0; }
.info-tile.white .answer p, .info-tile.sand .answer p { color: #2A2A33; }
.info-tile.red .answer p { color: rgba(255,255,255,0.95); }
.info-tile.red .label-light { color: rgba(255,255,255,0.88); }
.info-tile.red .answer .label-light { color: var(--ink); }

/* Variante "Was du machst / bekommst / Zeit" (3 Gründe) — etwas größere Titel */
.reasons-tile .display { font-size: 42px; }
.reasons-tile ul {
  font-size: 14px; line-height: 1.8; margin-top: 18px; color: rgba(255,255,255,0.95);
  padding-left: 0; list-style: none;
}
.reasons-tile p { font-size: 14px; line-height: 1.55; margin-top: 18px; color: #5b5853; }

.form-section { padding-top: 60px; padding-bottom: 80px; }
.contact-section { padding-bottom: 80px; }

/* === Hero === */
.crew-hero { position: relative; height: 800px; background: var(--paper); color: var(--ink); overflow: hidden; }
.crew-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: 1;
  background-image: url('../../assets/crew-shirt-ruecken.jpg');
}
.crew-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%);
}
.crew-hero .giant-number { position: absolute; right: -40px; top: -80px; font-size: 400px; opacity: 0.20; }
.crew-hero-copy { position: absolute; left: 56px; top: 80px; max-width: 780px; z-index: 3; }
.crew-hero-copy .label { font-size: 12px; letter-spacing: 0.32em; }
.crew-hero-copy h1 { font-size: 138px; margin: 18px 0 0; color: var(--ink); line-height: 0.86; }
.crew-hero-copy h1 .r { color: var(--red); }
.crew-hero-copy p { font-size: 17px; line-height: 1.55; max-width: 560px; margin: 26px 0 0; color: rgba(11,46,63,0.78); }
.crew-hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.crew-hero-ctas 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);
}
.crew-hero-ctas a.primary { background: var(--red); color: white; font-weight: 900; border: none; }

/* === Stats-Leiste === */
/* === Einblicke (Fotoauswahl, ersetzt die Spieltag-Timeline) === */
.gallery-section .dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(11,46,63,0.04) 1.2px, transparent 1.6px);
  background-size: 22px 22px; pointer-events: none;
}
.gallery-section .head { position: relative; }
.gallery-section .head .l .accent { color: var(--red); }

/* Einblicke: Fotoauswahl, 4 Spalten × 3 Reihen, Hoch-/Querformate über Spans */
.gallery-section { background: var(--sand); color: var(--ink); position: relative; overflow: hidden; }
.crew-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 12px; position: relative;
  grid-template-areas: "a a b c" "d e b c" "d f g g";
}
.crew-gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--graphite); }
.crew-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.crew-gallery figure:hover img { transform: scale(1.04); }
.crew-gallery figcaption {
  position: absolute; left: 10px; bottom: 10px; background: var(--red); color: white;
  padding: 4px 9px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 700;
}
.crew-gallery .g-a { grid-area: a; } .crew-gallery .g-b { grid-area: b; } .crew-gallery .g-c { grid-area: c; }
.crew-gallery .g-d { grid-area: d; } .crew-gallery .g-e { grid-area: e; } .crew-gallery .g-f { grid-area: f; }
.crew-gallery .g-g { grid-area: g; }
.crew-gallery .g-b img { object-position: center 30%; } .crew-gallery .g-d img { object-position: center 30%; }
.crew-gallery .g-g img { object-position: center 25%; }

.timeline-note {
  margin-top: 24px; padding: 18px 22px; background: var(--graphite);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  flex-wrap: wrap; border-left: 3px solid var(--red); position: relative;
}
.timeline-note p { font-family: var(--body); font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.85); max-width: 880px; margin: 0; }
.timeline-note strong {
  color: white; font-family: var(--display); font-weight: 800; font-style: normal;
  font-size: 16px; text-transform: uppercase; letter-spacing: 0.01em;
}
.timeline-note a {
  background: var(--red); color: white; text-decoration: none; font-family: var(--display);
  font-weight: 900; font-style: normal; font-size: 14px; padding: 10px 18px;
  text-transform: uppercase; letter-spacing: 0.02em; flex-shrink: 0;
}

/* === Kontakt-Kachel (Crew-Lead + Reinschnuppern) === */
/* .contact-tile Basis-Styling lebt in components/contact-tile.css. */

/* === MOBILE ≤760px — Desktop bleibt unberührt ===
   iOS-Zoom-Fix, Formular-Grid-Kollaps, Submit-Bar und Erfolgs-Box-Padding
   sind bereits Teil von components/form.css. Hier nur, was crew.html
   zusätzlich oder abweichend braucht. */
@media (max-width: 1100px) { .role-cards { grid-template-columns: 1fr 1fr; } }

@media (max-width: 760px) {
  /* Hero: gestapelt statt absolut, Titel geclampt, Deko-Riese weg */
  .crew-hero { height: auto !important; }
  .crew-hero .giant-number { display: none; }
  .crew-hero-copy {
    position: relative !important; left: 0 !important; top: 0 !important;
    max-width: none !important; padding: 52px 20px 44px;
  }
  .crew-hero-copy h1 { font-size: clamp(48px, 15vw, 72px) !important; }
  .crew-hero-copy a { font-size: 17px !important; padding: 13px 20px !important; }

  /* Stats-Band: 2×2 statt 4 Spalten */
  /* Inline-Grids: 3/6 Spalten → 1 bzw. 2 */
  .info-grid { grid-template-columns: 1fr !important; }
  .crew-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; grid-template-areas: "a a" "b c" "b c" "d e" "d f" "g g"; }
  .contact-tile { grid-template-columns: 1fr !important; padding: 28px 20px !important; }
  .contact-tile .display { font-size: 36px !important; }

  /* Rollen- & Spiele-Kacheln */
  .role-grid { grid-template-columns: 1fr; gap: 12px; }
  .role-cards { grid-template-columns: 1fr; }
  .role-tile { min-height: 0; }
  .game-grid { grid-template-columns: 1fr 1fr; }

  /* Formular: Step-Card-Innenabstand + Step-Num-Position weichen von
     mitglied.html ab, deshalb hier statt in components/form.css. */
  .form-step { padding: 24px 20px; }
  .form-step:has(.step-num) { padding-top: 64px; }
  .form-step .step-num {
    left: -1px; top: -1px; width: 40px; height: 40px; font-size: 17px;
  }
  .form-step .step-head { flex-wrap: wrap; gap: 8px 14px; margin-bottom: 18px; }
  .form-step .step-head .h { font-size: 26px; }

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