/* ============================================================
   Gastro-Events — B2B: Crews und Gewerke für Veranstalter,
   Agenturen, Caterer. Zwei Tiefen, Module als Bildkacheln,
   Referenzen als ruhige Belege mit Mono-Eckdaten.
   ============================================================ */

/* ---------- Zwei Leistungstiefen: hell = Verstärkung, dunkel = ganzes Gewerk ---------- */
.depth {
  display: grid; grid-template-columns: minmax(0, 1fr) 0 minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
}
.depth__card {
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 4vw, 3.5rem);
  border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px);
}
.depth__card--own {
  background: var(--green-900); color: var(--porcelain);
  border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0;
}
.depth__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.depth__kicker { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-text); }
.depth__card--own .depth__kicker { color: var(--brass); }
/* Tiefenanzeige: ein Balken = Verstärkung, zwei = ganzes Gewerk */
.depth__meter { display: inline-flex; gap: 4px; flex: none; }
.depth__meter i { width: 26px; height: 8px; border: 1px solid var(--brass-deep); }
.depth__meter i:first-child, .depth__meter--full i { background: var(--brass-deep); }
.depth__card--own .depth__meter i { border-color: var(--brass); background: var(--brass); }
.depth__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.4rem, 1.6rem + 2.8vw, 4.2rem); line-height: 0.9; letter-spacing: 0.002em;
  margin-top: clamp(1.75rem, 4vw, 3.25rem); max-width: 11ch;
}
.depth__text { margin-top: 1.25rem; color: var(--ink-soft); max-width: 46ch; }
.depth__card--own .depth__text { color: #C9D2CA; }
.depth__facts { margin-top: auto; padding-top: clamp(1.75rem, 3vw, 2.5rem); font-size: 0.8rem; }
.depth__facts div { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 0.7rem; border-top: 1px solid var(--line); }
.depth__facts dt { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; color: var(--ink-soft); padding-top: 0.12em; white-space: nowrap; }
.depth__facts dd { text-align: right; font-weight: 500; }
.depth__card--own .depth__facts div { border-color: var(--line-inv); }
.depth__card--own .depth__facts dt { color: var(--mist); }

.depth__or { position: relative; width: 0; height: 0; place-self: center; z-index: 1; }
.depth__or span {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brass); color: var(--ink);
  font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; line-height: 1;
  padding-bottom: 0.15em;
  box-shadow: 0 0 0 6px var(--porcelain);
}
@media (max-width: 820px) {
  .depth { grid-template-columns: minmax(0, 1fr); }
  .depth__card { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
  .depth__card--own { border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); }
  .depth__title { max-width: none; }
  .depth__or span { width: 56px; height: 56px; font-size: 1.1rem; box-shadow: 0 0 0 5px var(--paper); }
}

/* ---------- Formate: Bild + Tafel-Liste ---------- */
.ev-formats { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ev-formats__media { position: relative; margin: 0; }
.ev-formats__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.ev-formats__media figcaption {
  position: absolute; left: -0.6rem; bottom: 1.25rem;
  background: var(--paper); color: var(--ink); padding: 0.45em 0.9em;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: var(--shadow-sm); transform: rotate(-2deg);
}
.ev-formats h2 { margin-top: 1rem; }
.format-list { margin-top: clamp(1.75rem, 3vw, 2.75rem); border-top: 1px solid var(--line); }
.format-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: baseline;
  padding-block: 0.8rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.15rem); line-height: 1; letter-spacing: 0.01em;
  text-wrap: balance;
}
.format-list li::before { content: ""; width: 0.36em; height: 0.36em; background: var(--brass-deep); translate: 0 -0.2em; }
@media (max-width: 860px) {
  .ev-formats { grid-template-columns: 1fr; }
  .ev-formats__media img { aspect-ratio: 4 / 3; }
  .ev-formats__media figcaption { left: 0.75rem; }
}

/* ---------- Add-ons: Bildkacheln mit Versal-Titel ---------- */
.ao-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ao {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  aspect-ratio: 6 / 5;
  border-radius: var(--radius); background: var(--green-700);
}
.ao__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1400ms var(--ease-out);
}
.ao::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgb(11 26 19 / .96) 0%, rgb(11 26 19 / .82) 30%, rgb(11 26 19 / .18) 66%, rgb(11 26 19 / .1) 100%);
  transition: opacity var(--dur-slow) var(--ease-out);
}
.ao > .fi {
  position: absolute; top: 1rem; left: 1rem;
  background: rgb(11 26 19 / .78); border: 1px solid rgb(201 164 106 / .45);
}
.ao__body { padding: 1.35rem 1.4rem 1.4rem; width: 100%; }
.ao__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.9rem, 1.3rem + 1.5vw, 2.7rem); line-height: 0.92; letter-spacing: 0.004em;
  color: var(--porcelain);
}
.ao__title::after { content: ""; display: block; width: 2.2rem; height: 2px; background: var(--brass); margin-top: 0.7rem; transition: width var(--dur-slow) var(--ease-out); }
.ao__body p { margin-top: 0.7rem; color: #D3DAD3; font-size: 0.95rem; line-height: 1.45; max-width: 40ch; }
@media (hover: hover) {
  .ao:hover .ao__img { transform: scale(1.06); }
  .ao:hover .ao__title::after { width: 4.5rem; }
}

/* Individuelle Extras: breites Band über die ganze Zeile */
.ao--wide { grid-column: 1 / -1; aspect-ratio: auto; min-height: clamp(280px, 26vw, 360px); align-items: center; }
.ao--wide::after { background: linear-gradient(90deg, rgb(11 26 19 / .97) 0%, rgb(11 26 19 / .9) 38%, rgb(11 26 19 / .35) 72%, rgb(11 26 19 / .15) 100%); }
.ao--wide .ao__img { left: auto; width: 62%; }
.ao--wide .ao__body { padding: clamp(1.5rem, 4vw, 3rem); max-width: 40rem; }
.ao--wide .fi { margin-bottom: 1.1rem; background: rgb(11 26 19 / .78); border: 1px solid rgb(201 164 106 / .45); }
.ao--wide .ao__title { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.6rem); }
.ao--wide .ao__body p { font-size: var(--step-0); max-width: 48ch; }
.ao--wide .link-arrow { margin-top: 1.25rem; min-height: 44px; }

@media (max-width: 980px) { .ao-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  /* mobil: kompakte Zeilen mit Vorschaubild statt zehn hoher Kacheln */
  .ao-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line-inv); }
  .ao:not(.ao--wide) {
    aspect-ratio: auto; overflow: visible; border-radius: 0; background: none;
    display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 1.1rem; align-items: center;
    padding-block: 1rem; border-bottom: 1px solid var(--line-inv);
  }
  .ao:not(.ao--wide)::after, .ao:not(.ao--wide) > .fi { display: none; }
  .ao:not(.ao--wide) .ao__img { position: static; width: 104px; height: 104px; border-radius: var(--radius-sm); }
  .ao:not(.ao--wide) .ao__body { padding: 0; }
  .ao:not(.ao--wide) .ao__title { font-size: 1.75rem; }
  .ao:not(.ao--wide) .ao__title::after { display: none; }
  .ao:not(.ao--wide) .ao__body p { margin-top: 0.4rem; font-size: 0.92rem; color: var(--mist); }
  .ao--wide { margin-top: 1.5rem; align-items: flex-end; min-height: 380px; }
  .ao--wide .ao__img { width: 100%; }
  .ao--wide::after { background: linear-gradient(0deg, rgb(11 26 19 / .97) 0%, rgb(11 26 19 / .88) 48%, rgb(11 26 19 / .2) 100%); }
}

/* ---------- Referenzen: Belege in Zeilen ---------- */
.cases { border-top: 2px solid var(--ink); }
.case {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 1.25rem clamp(1.5rem, 4vw, 4rem); align-items: start;
  padding-block: clamp(1.75rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.case__tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-text); }
.case__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.3rem); line-height: 0.92; letter-spacing: 0.002em;
  margin-top: 0.8rem; max-width: 16ch;
}
.case__text { color: var(--ink-soft); max-width: 46ch; padding-top: 0.2rem; }
.case__facts { font-size: 0.8rem; }
.case__facts div { display: flex; justify-content: space-between; gap: 1.25rem; padding-block: 0.6rem; border-bottom: 1px dashed rgb(14 21 18 / .3); }
.case__facts div:first-child { padding-top: 0.2rem; }
.case__facts dt { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; color: var(--ink-soft); padding-top: 0.12em; white-space: nowrap; }
.case__facts dd { text-align: right; font-weight: 500; }
@media (max-width: 980px) {
  .case { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .case__head { grid-column: 1 / -1; }
  .case__title { max-width: 20ch; }
}
@media (max-width: 640px) {
  .case { grid-template-columns: 1fr; }
}

/* ---------- Ablauf: Bild bleibt stehen, Schritte laufen ---------- */
.ev-flow { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.ev-flow__media { margin: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.ev-flow__media img { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 4rem); object-fit: cover; border-radius: var(--radius); }
.ev-flow .step { grid-template-columns: clamp(4rem, 7vw, 6.5rem) minmax(0, 1fr); }
@media (max-width: 860px) {
  .ev-flow { grid-template-columns: 1fr; }
  .ev-flow__media { position: static; }
  .ev-flow__media img { aspect-ratio: 16 / 10; }
}

/* ---------- FAQ: Kopf links, Fragen rechts ---------- */
.faq-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-split .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-split .faq { max-width: none; margin: 0; width: 100%; }
.faq summary { min-height: 44px; }
@media (hover: hover) { .faq summary:hover::after { border-color: var(--ink); } }
@media (max-width: 860px) {
  .faq-split { grid-template-columns: 1fr; }
  .faq-split .sec-head { position: static; }
}

/* Touch-Ziel für Textlinks auf dieser Seite */
.subhero .link-arrow { min-height: 44px; }

/* Feinschliff mobil */
@media (max-width: 820px) {
  .depth__card:not(.depth__card--own) { padding-bottom: 2.75rem; }
  .depth__card--own { padding-top: 3rem; }
}
@media (max-width: 980px) {
  .case__facts div:last-child { border-bottom: 0; padding-bottom: 0; }
}
/* Tablet (zwei Spalten): neunte Kachel füllt die Zeile, statt allein zu stehen */
@media (min-width: 641px) and (max-width: 980px) {
  .ao:nth-child(9) { grid-column: 1 / -1; aspect-ratio: 12 / 5; }
}
