/* Blocks that belong to one page. Start page first, then the subpages in menu order. */

/* ===== Start ===== */

/* --- Poster hero (CI p. 17): H1 Exo 2 Black up to 160 px, line height .86 --- */

.hero {
  container-type: inline-size;
  gap: clamp(28px, calc(4 * var(--vw)), 48px);
  padding-top: clamp(32px, calc(4 * var(--vw)), 56px);
}

.poster {
  display: flex;
  flex-direction: column;
  gap: .08em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 10.4cqi, 160px);
  line-height: .86;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.poster__line {
  display: flex;
  flex-wrap: wrap;
  gap: .08em .14em;
  align-items: stretch;
}

/* Small word set on its side in a pflaume block ("DIE") */
.poster__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  padding: .4em 0;
  background: var(--pflaume);
  color: var(--weiss);
  font-size: .2em;
  letter-spacing: .04em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.poster__mark {
  padding: .1em .12em .02em;
  background: var(--magenta);
  color: var(--weiss);
  box-shadow: .06em .06em 0 var(--pflaume);
}

/* Plain word between two dotted magenta lines */
.poster__plain {
  padding: .1em 0 .02em;
  border-block: .04em dotted var(--magenta);
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 64px;
  align-items: center;
  justify-content: space-between;
}

.hero__text {
  max-width: 62ch;
  font-size: clamp(18px, calc(1.5 * var(--vw)), 20px);
  line-height: 1.55;
}

/* --- Numbers on anthrazit: ocker (CI p. 12) --- */

.stat-tile { justify-content: space-between; gap: 40px; min-height: 220px; }

.stat-tile__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, calc(6 * var(--vw)), 88px);
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--ocker);
}

.stat-tile__label {
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* --- Was uns ausmacht --- */

.about__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 64ch;
  font-size: 18px;
  line-height: 1.55;
}

.motto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 24px;
  border-top: 2px dotted var(--dots);
}
.motto__main {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, calc(2.6 * var(--vw)), 36px);
  line-height: 1;
  text-transform: uppercase;
}
.motto__sub {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* --- Vier Bereiche --- */

.bereich {
  justify-content: space-between;
  gap: 24px;
  padding-block: 36px;
  text-decoration: none;
}

.bereich__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.bereich__number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
}

.bereich__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.bereich__sub {
  padding-bottom: 16px;
  border-bottom: 2px dotted var(--dots);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.bereich__text { font-size: 17px; line-height: 1.5; }

/* --- Leistungsspektrum --- */

.leistungen-intro { justify-content: space-between; }

.leistungen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  column-gap: 40px;
}

.leistung {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  height: 100%;
  padding: 24px 0;
  border-bottom: 2px dotted var(--dots);
  text-decoration: none;
  transition: padding .2s;
}
.leistung:hover { padding-left: 6px; color: inherit; }
.leistung:hover .leistung__title { color: var(--magenta); }

.leistung__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  hyphens: auto; /* long German compounds on narrow phones */
}

.leistung__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.1;
  text-transform: uppercase;
}

.leistung__text { font-size: 16px; line-height: 1.45; }
.leistung .arrow { color: var(--magenta); font-size: 20px; }

/* --- Plattformen --- */

.platforms-intro { min-height: 460px; padding-bottom: 200px; overflow: hidden; }
.platforms-intro .half { left: 0; margin-inline: auto; width: clamp(260px, calc(32 * var(--vw)), 460px); }

/* --- Erfolgsgeschichten --- */

.head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
}
.head-row__text { max-width: 44ch; font-size: 18px; line-height: 1.55; }

.case-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

/* Customer quotes: a big comic quotation mark, the quote, the (anonymous) source. */
.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  height: 100%;
}
.quote blockquote::before {
  content: "“";
  display: block;
  height: .5em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 72px;
  line-height: 0;
  color: var(--accent);
}
.box--anthrazit .quote blockquote::before { color: var(--ocker); }
.quote p { font-size: 19px; line-height: 1.5; }
.quote figcaption {
  padding-top: 18px;
  border-top: 2px dotted var(--dots);
}

/* --- In drei Schritten --- */

.schritte { overflow: hidden; }
.schritte .star--1 { --star: 64px; right: 7%; top: 28px; }
.schritte .star--2 { --star: 30px; right: 8%; bottom: 48px; }

/* --- Newsletter --- */

.newsletter-card { justify-content: space-between; gap: 18px; }

.newsletter-card__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, calc(3.4 * var(--vw)), 48px);
  line-height: .9;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.newsletter-card__audience {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
}

.newsletter-card__text {
  flex: 1;
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.newsletter-form .form-error { flex-basis: 100%; }
.newsletter-form .input { flex: 1 1 220px; }

/* ===== Vorteile & Coins ===== */

.coins__lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, calc(1.8 * var(--vw)), 24px);
  line-height: 1.35;
}

/* ===== Support-Stufen ===== */

.levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.level { gap: 20px; }

.level__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, calc(3.4 * var(--vw)), 52px);
  line-height: .9;
  letter-spacing: -.03em;
}

.level__text { font-size: 17px; line-height: 1.55; }

/* Comparison table: level colours as on the cards above (sand, anthrazit, magenta) */
.cmp__table { overflow-x: auto; border: 3px solid var(--schrift); }
.cmp__table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.cmp__table th,
.cmp__table td { padding: 12px 14px; border-top: 2px dotted var(--linie); text-align: center; }
.cmp__table thead th { border-top: 0; }
.cmp__table thead th:first-child { background: var(--sand); text-align: left; }
.cmp__table tbody th { text-align: left; font-weight: 600; }
.cmp__level {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .04em;
}
.cmp__level--core { background: var(--sand); color: var(--schrift); }
.cmp__level--growth { background: var(--anthrazit); color: var(--weiss); }
.cmp__level--strategic { background: var(--magenta); color: var(--weiss); }
.cmp__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 13px;
  background: var(--magenta);
  color: var(--weiss);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
}
.cmp__value { display: block; margin-top: 4px; font-size: 13px; }
.cmp__coins { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .04em; }
.cmp__stars { font-family: var(--font-display); font-weight: 900; }
.cmp__lists { display: none; }
@container frame (max-width: 747.98px) {
  .cmp__table { display: none; }
  .cmp__lists { display: flex; flex-direction: column; gap: 20px; }
}
.cmp__list { border: 3px solid var(--schrift); background: var(--weiss); }
.cmp__list .cmp__level { padding: 12px 16px; }
.cmp__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-top: 2px dotted var(--linie);
}
.cmp__cell { flex: none; text-align: right; }
.cmp__cell .cmp__value { display: inline; margin: 0 0 0 6px; }
.cmp__legend { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.cmp__legend li { display: flex; align-items: center; gap: 10px; }

/* ===== Leistungen ===== */

.service {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 28px 72px;
  align-items: start;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.service__head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.service__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 70ch;
  font-size: 18px;
  line-height: 1.55;
}

.service__extra { margin-top: 16px; }
/* Column 1, not 1 / -1: a button spanning every track keeps auto-fit's spare third
   track alive on wide screens, and head and text shrink into thirds. */
.service > .btn { grid-column: 1; justify-self: start; }

/* ===== Plattformen ===== */

.numbered-title {
  display: flex;
  gap: 18px;
  align-items: center;
}

.numbered-title__number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  color: var(--accent);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 28px 0;
  border-block: 2px dotted var(--dots);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, calc(4.4 * var(--vw)), 64px);
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--magenta);
}

.criteo-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  column-gap: 40px;
}

.criteo-channel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0;
  border-top: 2px dotted var(--dots);
  line-height: 1.55;
}

.criteo-channel__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--accent);
}


/* ===== Wer wir sind ===== */

.closing-statement {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, calc(3.2 * var(--vw)), 44px);
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ===== Das Team ===== */

/* One row per person: portrait, name and role, text */
.member {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px 40px;
  align-items: start;
  padding: 32px 0;
  border-top: 2px dotted var(--dots);
}
.member:first-child { border-top: 0; padding-top: 0; }

/* Portraits sit in a circle (CI p. 18). The photos show the whole person, so the
   circle zooms in on head and shoulders. */
.member__photo {
  grid-row: span 2;
  width: 140px;
  height: 140px;
  overflow: hidden;
  border: 4px solid var(--magenta);
  border-radius: 50%;
  background: var(--weiss);
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transform: scale(1.7);
  /* --photo-y (team.members.photo_y) moves the window up for heads that sit high in
     the photo; 0% starts it at the top edge. */
  transform-origin: 50% var(--photo-y, 12%);
}

.member__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 75ch;
  font-size: 17px;
  line-height: 1.55;
}

@container frame (min-width: 988px) {
  .member { grid-template-columns: 140px minmax(0, 1fr) minmax(0, 2fr); }
  .member__photo { grid-row: auto; }
}
@container frame (max-width: 547.98px) {
  .member { grid-template-columns: 96px minmax(0, 1fr); }
  .member__photo { width: 96px; height: 96px; grid-row: auto; }
  .member__text { grid-column: 1 / -1; }
}

/* ===== Partnerschaften ===== */

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}

.logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  padding: 28px 36px;
  background: var(--weiss);
  transition: transform .2s, box-shadow .2s;
}
.logos__item:hover { transform: translateY(-3px); box-shadow: var(--hover-shadow); }
.logos__item img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

/* ===== News and events ===== */

.post {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 28px 56px;
  align-items: start;
}

/* Natural proportions: the news pictures are graphics with text that must not be cut. */
.post__image { width: 100%; }

/* Rest of the article behind "Ganzen Beitrag lesen" */
.post__more > summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.post__more > summary::-webkit-details-marker { display: none; }
.post__more > summary::after { content: " ↓"; }
.post__more[open] > summary::after { content: " ↑"; }
.post__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 75ch;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
}
.post__body .h-card { margin-top: 18px; }
.post__sub {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--accent);
}
.post__list,
.event__points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 1.3em;
  list-style: square;
}
.post__list li::marker,
.event__points li::marker { color: var(--accent); }
.post__note { font-size: 15px; line-height: 1.5; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 12px;
}
.gallery a { display: block; }
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .2s, box-shadow .2s;
}
.gallery a:hover img { transform: translateY(-3px); box-shadow: var(--hover-shadow); }

.event {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px 56px;
  padding: 28px 0;
  border-top: 2px dotted var(--dots);
}

.event__format,
.event__points-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.event__points-title { color: var(--accent); }

/* ===== 404 ===== */

.not-found {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 48px 72px;
  align-items: center;
}
.not-found__andy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ===== Impressum ===== */

.legal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px 72px;
  align-items: start;
}
.legal__address { font-style: normal; }
.legal__list { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.legal__row { display: flex; flex-direction: column; gap: 4px; }
.legal__row dd { margin: 0; }

/* ===== Datenschutz, AGB: long legal texts (content/rechtstexte.toml) ===== */

.legal__note { max-width: 70ch; }
.legal__toc { display: flex; flex-direction: column; gap: 12px; }
.legal__toc ul { display: flex; flex-direction: column; gap: 8px; }
.legal__toc a { font-weight: 600; }

.prose {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 78ch;
}
.prose__section { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.prose h2:not(.h-sub),
.prose h3,
.prose h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
}
.prose h2:not(.h-sub) { font-size: clamp(22px, calc(2 * var(--vw)), 28px); }
.prose h3 { font-size: clamp(20px, calc(1.6 * var(--vw)), 24px); }
.prose h4 { font-size: 19px; padding-top: 6px; }
.prose ul { display: flex; flex-direction: column; gap: 6px; padding-left: 1.3em; list-style: disc; }
.prose li::marker { color: var(--accent); }
.prose__label { font-weight: 700; }
.prose__stand { font-family: var(--font-mono); font-size: 15px; }
/* Long web addresses wrap instead of widening the page. */
.prose a { overflow-wrap: anywhere; }

/* ===== Barrierefreiheit (accessibility statement) ===== */

.ax-list { display: flex; flex-direction: column; }
.ax-item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px 40px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 3px dotted var(--schrift);
}
.ax-item:first-child { padding-top: 0; }
.ax-item__head { display: flex; align-items: center; gap: 16px; }
.ax-item__n {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--weiss);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
}
.ax-item__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, calc(2.2 * var(--vw)), 30px);
  line-height: 1;
  text-transform: uppercase;
}
.ax-item__text { max-width: 720px; font-size: 18px; line-height: 1.6; }
.ax-contact {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 40px;
}
.ax-contact .stack { max-width: 720px; }
.ax-contact a { text-decoration: underline; }
