/* =============================================
   ÜBER UNS — Page Styles
   ============================================= */


/* ── Geschichte & Ort ───────────────────────── */
.about-history {
  background: var(--color-dark);
  padding: clamp(5rem, 9vw, 9rem) 0;
}

.about-history__header {
  text-align: center;
  padding-bottom: clamp(3rem, 5vw, 5rem);
  margin-bottom: clamp(3rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.about-history__headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.about-history__headline em {
  color: var(--color-red);
  font-style: italic;
}

.about-history__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.about-history__col { display: flex; flex-direction: column; gap: 1.4rem; }

.about-history__lead {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
}

.about-history__text {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
}

.about-history__location {
  text-align: center;
  padding-top: clamp(2rem, 3vw, 3rem);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-body);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* ── Photo Strip ─────────────────────────────── */
.about-photos { overflow: hidden; }

.about-photos__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: clamp(180px, 22vw, 320px);
}

.about-photos__item { overflow: hidden; }

.about-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.9s var(--ease-out);
  filter: brightness(0.9);
}

.about-photos__item:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

/* ── Restaurant Story ────────────────────────── */
.about-story__intro {
  max-width: 820px;
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: clamp(3rem, 5vw, 5rem);
  border-bottom: 1px solid var(--color-grey-light);
}

.about-story__headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 300;
  color: var(--color-dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.about-story__headline em {
  color: var(--color-red);
  font-style: italic;
}

.about-story__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.about-story__pillar {
  padding-top: 1.6rem;
  position: relative;
}

.about-story__pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--color-red);
  transition: width 0s;
}

.about-story__pillars.is-visible .about-story__pillar::before {
  width: 100%;
  transition: width 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-story__pillars.is-visible .about-story__pillar:nth-child(2)::before {
  transition-delay: 0.2s;
}

.about-story__pillars.is-visible .about-story__pillar:nth-child(3)::before {
  transition-delay: 0.4s;
}

.about-story__pillar-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 1rem;
}

.about-story__pillar-text {
  font-size: 0.93rem;
  color: var(--color-dark);
  line-height: 1.85;
}


/* ── Divider ─────────────────────────────────── */
.about-divider { padding: 0; }

.about-divider__line {
  height: 1px;
  background: var(--color-grey-light);
}

/* ── Team ────────────────────────────────────── */
.about-team__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(2rem, 3vw, 3rem);
  border-bottom: 1px solid var(--color-grey-light);
  margin-bottom: clamp(3rem, 5vw, 5rem);
  flex-wrap: wrap;
}

.about-team__eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-red);
  display: block;
  margin-bottom: 0.8rem;
}

.about-team__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--color-dark);
  line-height: 1.2;
}

.about-team__title em { color: var(--color-red); }

.about-team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 760px;
  margin-inline: auto;
}

/* ── Team Card ───────────────────────────────── */
.team-card { display: flex; flex-direction: column; }

.team-card__photo-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--color-grey-light);
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

.team-card:hover .team-card__photo { transform: scale(1.04); }

.team-card__photo-placeholder {
  width: 100%;
  height: 100%;
  background: #e0dbd6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card__photo-placeholder span {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(29,29,27,0.2);
  letter-spacing: 0.1em;
}

.team-card__role {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 0.4rem;
}

.team-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 300;
  color: var(--color-dark);
  margin-bottom: 0.9rem;
}

.team-card__bio {
  font-size: 0.88rem;
  color: var(--color-grey-mid);
  line-height: 1.8;
}

/* ── Atmosphäre / CTA ───────────────────────── */
.about-atmosphere {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.about-atmosphere__bg {
  position: absolute;
  inset: 0;
}

.about-atmosphere__img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
}

.about-atmosphere__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(29,29,27,0.85) 0%,
    rgba(29,29,27,0.60) 100%
  );
}

.about-atmosphere__content {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 10vw, 9rem) 0;
  text-align: center;
}

.about-atmosphere__quote {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.2;
  margin: 0 auto 3.5rem;
  max-width: 820px;
}

.about-atmosphere__quote em {
  color: var(--color-red);
  font-style: italic;
}

.about-atmosphere__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  border-bottom: 1px solid var(--color-red);
  padding-bottom: 0.45rem;
  transition: color 0.3s var(--ease-out);
}

.about-atmosphere__cta:hover { color: var(--color-red); }

.about-atmosphere__cta-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}

.about-atmosphere__cta:hover .about-atmosphere__cta-arrow {
  transform: translateX(5px);
}

/* ── Slow Food ───────────────────────────────── */
.about-slowfood {
  background: var(--color-dark);
}

.about-slowfood__inner {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: clamp(3rem, 5vw, 6rem);
  align-items: center;
}

.about-slowfood__rule svg {
  width: 2px;
  height: 100%;
  min-height: 120px;
}

.about-slowfood__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.2;
  margin: 0.8rem 0 1.2rem;
}

.about-slowfood__title em { color: var(--color-red); }

.about-slowfood__body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.85;
  margin-bottom: 1.8rem;
}

.about-slowfood__blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.about-slowfood__cite {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
  font-style: normal;
}

/* ── Offene Stellen ───────────────────────────── */
.section--stellen {
  background: var(--color-off-white);
}

.stellen__header {
  max-width: 680px;
  margin-bottom: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid var(--color-grey-light);
}

.stellen__headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
  font-weight: 300;
  color: var(--color-dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}

.stellen__headline em {
  color: var(--color-red);
  font-style: italic;
}

.stellen__intro {
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
  color: var(--color-grey-mid);
  line-height: 1.85;
  max-width: 54ch;
}

/* Job rows */
.stellen__list {
  margin-bottom: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
  border-bottom: 1px solid var(--color-grey-light);
}

.stellen-item {
  position: relative;
}

.stellen-item__heading {
  margin: 0;
  font: inherit;
}

.stellen-item__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.8rem, 2.5vw, 2.5rem) 0;
  background: none;
  border: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.stellen-item__toggle:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 6px;
}

.stellen-item__toggle:hover .stellen-item__title { color: var(--color-red); }

/* Red border draws from left as list enters viewport */
.stellen-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--color-red);
  transition: width 0s;
}

.stellen__list.is-visible .stellen-item::before {
  width: 100%;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger delays match stagger-group CSS in style.css */
.stellen__list.is-visible .stellen-item:nth-child(1)::before { transition-delay: 0.04s; }
.stellen__list.is-visible .stellen-item:nth-child(2)::before { transition-delay: 0.14s; }
.stellen__list.is-visible .stellen-item:nth-child(3)::before { transition-delay: 0.24s; }

/* Bottom border on last item (top borders of following items already
   close the gap between rows, so only the last item needs its own) */
.stellen-item:last-child::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--color-red);
  transition: width 0s;
}

.stellen__list.is-visible .stellen-item:last-child::after {
  width: 100%;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.28s;
}

.stellen-item__body { flex: 1; min-width: 0; }

.stellen-item__meta {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 0.5rem;
}

.stellen-item__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--color-dark);
  line-height: 1.1;
  transition: color 0.3s var(--ease-out);
}

/* Plus/minus toggle icon */
.stellen-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
}

.stellen-item__icon::before,
.stellen-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-red);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stellen-item__icon::before {
  top: 50%; left: 0;
  width: 100%; height: 1px;
  transform: translateY(-50%);
}

.stellen-item__icon::after {
  left: 50%; top: 0;
  width: 1px; height: 100%;
  transform: translateX(-50%);
}

.stellen-item.is-open .stellen-item__icon::after {
  transform: translateX(-50%) rotate(90deg);
}

/* Expandable description panel */
.stellen-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stellen-item.is-open .stellen-item__panel {
  grid-template-rows: 1fr;
}

.stellen-item__panel-inner {
  overflow: hidden;
  min-height: 0;
  padding-bottom: 0.3rem;
}

/* Markdown-Feld "beschreibung" rendert nackte p/ul/strong-Tags,
   deshalb hier auf die Tags statt auf feste Klassen gestylt. */
.stellen-item__panel-inner p {
  font-size: 0.95rem;
  color: var(--color-grey-mid);
  line-height: 1.8;
  max-width: 62ch;
  margin: 0 0 1.6rem;
}

/* Zwischenüberschrift = Absatz, der nur aus einem <strong> besteht
   (z.B. "**Das bringst du mit**" im Markdown) */
.stellen-item__panel-inner p:has(> strong:only-child) {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin: 0 0 0.9rem;
}

.stellen-item__panel-inner ul {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  max-width: 62ch;
}

.stellen-item__panel-inner ul li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.92rem;
  color: var(--color-grey-mid);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.stellen-item__panel-inner ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--color-red);
}

.stellen-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--color-red);
  padding-bottom: 0.4rem;
  white-space: nowrap;
  transition: color 0.3s var(--ease-out);
}

.stellen-item__cta:hover { color: var(--color-red); }

.stellen-item__arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}

.stellen-item__cta:hover .stellen-item__arrow { transform: translateX(5px); }

/* Leer-Zustand (Grav: wenn stellen-Array leer) */
.stellen__empty {
  padding: clamp(2rem, 3vw, 3rem) 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-grey-mid);
}

/* Initiativbewerbung panel */
.stellen__initiative {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(2rem, 3.5vw, 3.5rem) clamp(2rem, 4vw, 4rem);
  background: var(--color-dark);
}

.stellen__initiative-label {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.stellen__initiative-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   ANIMATIONS — Über uns
   ══════════════════════════════════════════════ */

/* ── Shared: split-line reveal containers ─────── */
.story-line,
.atmo-line {
  display: block;
  overflow: hidden;
  /* Buffer below for italic descenders (g, j, p, q, y) */
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.story-line__inner,
.atmo-line__inner {
  display: block;
}

/* ── About-Story headline: scroll-triggered line reveal ── */
.story-line__inner {
  transform: translateY(112%);
  transition: transform 0s;
}

.about-story__headline.is-line-visible .story-line__inner {
  transform: translateY(0);
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-story__headline.is-line-visible .story-line:nth-child(2) .story-line__inner {
  transition-delay: 0.18s;
}

/* ── Atmosphere quote: scroll-triggered line reveal ── */
.atmo-line__inner {
  transform: translateY(112%);
  transition: transform 0s;
}

.about-atmosphere__quote.is-line-visible .atmo-line__inner {
  transform: translateY(0);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-atmosphere__quote.is-line-visible .atmo-line:nth-child(2) .atmo-line__inner {
  transition-delay: 0.22s;
}

/* ── Photo strip: clip-path wipe reveal ─────────── */
/* Override standard reveal-child opacity/transform */
.about-photos .about-photos__item.reveal-child {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0s;
}

.about-photos .about-photos__item.reveal-child.is-visible {
  clip-path: inset(0 0 0% 0);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--photo-i, 0) * 0.09s);
}

/* ── Reduced motion: disable all new animations ── */
@media (prefers-reduced-motion: reduce) {
  .story-line__inner,
  .atmo-line__inner {
    transform: none !important;
    transition: none !important;
  }

  .about-photos .about-photos__item.reveal-child {
    clip-path: none !important;
    transition: none !important;
  }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .about-team__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 768px) {
  .about-story__pillars { grid-template-columns: 1fr; gap: 2rem; }
  .about-history__body { grid-template-columns: 1fr; }
  .about-history__headline { white-space: normal; }
  .about-photos__strip { grid-template-columns: repeat(2, 1fr); height: 280px; }
  .about-team__grid { grid-template-columns: 1fr; max-width: 420px; }
  .about-team__header { flex-direction: column; align-items: flex-start; }
  .about-atmosphere { min-height: 60vh; }
  .about-atmosphere__quote { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .about-slowfood__inner { grid-template-columns: 1fr; }
  .about-slowfood__rule { display: none; }

  .stellen-item__toggle {
    gap: 1rem;
  }

  .stellen__initiative {
    grid-template-columns: 1fr;
  }
}
