/* IBPOOL – Gestaltungskonzept „bildbetont“ (Entwurf)
   Einheitliche Sans-Typografie, vollflächige Medienbereiche mit dunkler Überlagerung.
   Herkunft der Bilder und verbleibende Platzhalter: siehe MEDIENPLAN.md. */

:root {
  --ink: #0b1724;
  --navy: #12263a;
  --navy-2: #1c3550;
  --gold: #d9b77a;
  --gold-dark: #7d5f26;
  --sand: #f3eee5;
  --paper: #fbfaf7;
  --white: #ffffff;
  --text: #15212d;
  --muted: #55616d;
  --line: rgba(21, 33, 45, 0.14);
  --line-dark: rgba(255, 255, 255, 0.18);
  --focus: #1d5fa6;

  --font: "Inter", "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 80rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 4.5rem;
  --radius: 1.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Grundlagen */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
picture { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.on-dark { --focus: var(--gold); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

main:focus { outline: none; }

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.preview-note {
  background: var(--gold);
  color: var(--ink);
  font-size: 0.8125rem;
  text-align: center;
}

.preview-note p { padding-block: 0.4rem; }

/* Kopfbereich – liegt transparent über dem Hero, wird beim Scrollen flächig */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  margin-bottom: calc(-1 * var(--header-h));
  background: rgba(11, 23, 36, 0.94);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.js .site-header:not(.is-solid) { background: transparent; }
.site-header.is-solid { box-shadow: 0 1px 0 var(--line-dark); }
.js .site-header.is-menu-open { background: var(--ink); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  margin-right: auto;
  line-height: 1.15;
  text-decoration: none;
}

.brand-mark__name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  opacity: 0.78;
}

.menu-toggle { display: none; }

.js .menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.menu-icon { position: relative; transform: translateY(-3px); }

.menu-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(-90deg); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.site-nav .nav-cta {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}

.site-nav .nav-cta:hover { background: var(--sand); }

.lang-switch ul {
  display: flex;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0.82;
}

.lang-switch a:hover { opacity: 1; background: rgba(255, 255, 255, 0.1); }

.lang-switch a[aria-current="page"] {
  opacity: 1;
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 29.99em) {
  .brand-mark__sub { display: none; }
  .js .menu-toggle .menu-label { font-size: 0.875rem; }
}

/* Mobile Navigation (unterhalb 72em, muss zu navigation.js passen) */
@media (max-width: 71.99em) {
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 0.5rem var(--gutter) 1.75rem;
    border-top: 1px solid var(--line-dark);
    background: var(--ink);
  }

  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }

  .js .site-nav a:not(.nav-cta) {
    display: block;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 1.125rem;
  }

  .js .site-nav a:not(.nav-cta)::after { display: none; }
  .js .site-nav a.is-active:not(.nav-cta) { color: var(--gold); } /* nicht Gold auf dem weißen Kontakt-Knopf */
  .js .site-nav .nav-cta { margin-top: 1.25rem; font-size: 1rem; }

  /* Ohne JavaScript: Navigation als Zeile unter dem Logo */
  .no-js .site-header { position: relative; height: auto; margin-bottom: 0; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
  .no-js .site-nav { order: 3; width: 100%; }
}

@media (min-width: 72em) {
  .js .menu-toggle { display: none; }
  .site-nav { margin-left: 1.5rem; }
}

/* Gemeinsame Bausteine */
.eyebrow {
  margin-bottom: 1rem;
  color: var(--gold-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.on-dark .eyebrow { color: var(--gold); }

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section--white { background: var(--white); }
.section--sand { background: var(--sand); }

.section-title,
.section h2 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem);
  font-weight: 400;
}

.display-title {
  font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.75rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
}

.on-dark .lead { color: rgba(255, 255, 255, 0.86); }

.section-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 56em) {
  .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 4rem; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); }

.btn-secondary { border-color: currentColor; color: var(--ink); }
.btn-secondary:hover { background: rgba(11, 23, 36, 0.06); }

.on-dark .btn-primary { background: var(--white); color: var(--ink); }
.on-dark .btn-primary:hover { background: var(--sand); }

.on-dark .btn-secondary { border-color: rgba(255, 255, 255, 0.65); color: var(--white); }
.on-dark .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.text-link:hover { text-decoration-thickness: 2px; }

.note {
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
  color: var(--muted);
  font-size: 0.9375rem;
}

.on-dark .note { color: rgba(255, 255, 255, 0.8); }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.9375rem;
}

.on-dark .pill-list li {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

/* Medien und Platzhalter */
.media {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
}

.media > img,
.media > video,
.media > picture,
.media > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dunkle Überlagerung für Text auf Bild */
.media--cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 13, 22, 0.6) 0%, rgba(6, 13, 22, 0) 24%),
    linear-gradient(90deg, rgba(6, 13, 22, 0.88) 0%, rgba(6, 13, 22, 0.6) 48%, rgba(6, 13, 22, 0.22) 100%),
    linear-gradient(0deg, rgba(6, 13, 22, 0.55) 0%, rgba(6, 13, 22, 0) 45%);
}

/* Platzhalterrahmen – entfällt, sobald ein echtes Bild eingesetzt und die Klasse entfernt ist */
.media--placeholder:not(.media--cover)::before {
  content: "";
  position: absolute;
  inset: clamp(0.75rem, 2vw, 1.25rem);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: calc(var(--radius) - 0.5rem);
  pointer-events: none;
}

.media-tag {
  position: absolute;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 2;
  max-width: min(24rem, calc(100% - 1.5rem));
  margin: 0;
  padding: 0.45rem 0.8rem;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  border-radius: 0.6rem;
  background: rgba(6, 13, 22, 0.7);
  color: var(--white);
  font-size: 0.75rem;
  line-height: 1.4;
}

.media-tag strong { font-weight: 600; }

/* CSS-Ersatzflächen je Bildkonzept – bewusst abstrakt, keine vorgetäuschten Fotos */
.tone-hero {
  background-image:
    radial-gradient(55% 70% at 80% 30%, rgba(217, 183, 122, 0.38), transparent 62%),
    radial-gradient(45% 60% at 96% 92%, rgba(84, 134, 192, 0.4), transparent 70%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 56px),
    linear-gradient(135deg, #0b1828 0%, #163150 55%, #27507a 100%);
}

.tone-route {
  background-image:
    radial-gradient(40% 60% at 85% 40%, rgba(217, 183, 122, 0.3), transparent 70%),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 44px),
    linear-gradient(160deg, #0f2438 0%, #29475f 60%, #5f5137 100%);
}

.tone-talk {
  background-image:
    radial-gradient(45% 40% at 55% 45%, rgba(255, 244, 226, 0.28), transparent 70%),
    linear-gradient(165deg, #23364a 0%, #4f6477 55%, #b8a17a 100%);
}

.tone-warehouse {
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 96px),
    linear-gradient(180deg, #3b4855 0%, #1b2732 100%);
}

.tone-product {
  background-image:
    radial-gradient(38% 50% at 72% 55%, rgba(255, 228, 214, 0.5), transparent 70%),
    radial-gradient(30% 40% at 88% 25%, rgba(217, 183, 122, 0.35), transparent 70%),
    linear-gradient(135deg, #2e2129 0%, #6f4d55 50%, #c9a596 100%);
}

.tone-shop {
  background-image:
    radial-gradient(50% 50% at 50% 45%, rgba(255, 255, 255, 0.5), transparent 70%),
    linear-gradient(140deg, #7b6650 0%, #b59a7b 55%, #e2d1bb 100%);
}

.tone-portrait {
  background-image:
    radial-gradient(32% 40% at 50% 38%, rgba(255, 255, 255, 0.2), transparent 70%),
    linear-gradient(180deg, #34475a 0%, #15212d 100%);
}

.tone-city {
  background-image:
    radial-gradient(60% 50% at 75% 100%, rgba(217, 183, 122, 0.3), transparent 70%),
    linear-gradient(180deg, #0c1a29 0%, #1c3550 60%, #3b5068 100%);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(36rem, min(100vh, 62rem));
  min-height: max(36rem, min(100svh, 62rem));
  overflow: hidden; /* skaliertes Medium (hero-settle) darf nicht seitlich überstehen */
  background: var(--ink);
  isolation: isolate;
}

.hero > .media { position: absolute; inset: 0; z-index: -1; }

/* Hero-Bild (Weltkarte, M1): zusätzliche Grundabdunklung; mobil liegt der Text über
   der ganzen Breite, daher dort gleichmäßig dunkel statt Verlauf von links */
.hero > .media--cover::after {
  background:
    linear-gradient(180deg, rgba(6, 13, 22, 0.6) 0%, rgba(6, 13, 22, 0) 24%),
    linear-gradient(90deg, rgba(6, 13, 22, 0.88) 0%, rgba(6, 13, 22, 0.6) 48%, rgba(6, 13, 22, 0.3) 100%),
    linear-gradient(0deg, rgba(6, 13, 22, 0.6) 0%, rgba(6, 13, 22, 0) 45%),
    linear-gradient(rgba(6, 13, 22, 0.2), rgba(6, 13, 22, 0.2));
}

@media (max-width: 55.99em) {
  .hero > .media--cover::after {
    background: linear-gradient(180deg, rgba(6, 13, 22, 0.72) 0%, rgba(6, 13, 22, 0.58) 35%, rgba(6, 13, 22, 0.9) 100%);
  }
}

.hero > .media > img { object-position: 50% 50%; } /* mobil mittiger Ausschnitt */

/* Sichtbare Bildunterschrift auf Vollflächen, z. B. „Symbolbild: …“ */
.media-credit {
  position: absolute;
  top: calc(var(--header-h) + 0.75rem);
  right: var(--gutter);
  z-index: 2;
  max-width: calc(100% - 2 * var(--gutter));
  margin: 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(6, 13, 22, 0.6);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  line-height: 1.4;
}

.hero .media-tag {
  top: calc(var(--header-h) + 1rem);
  bottom: auto;
}

.hero-content {
  padding-top: calc(var(--header-h) + 6rem);
  padding-bottom: clamp(4rem, 10vh, 7.5rem);
}

/* Überschrift ist seit dem Konzept vom 5. Oktober 2026 ein ganzer Satz (Textvorschlag):
   natürlicher Umbruch statt einzeiligem Slogan, Breite begrenzt */
.hero h1 {
  max-width: 15em;
  margin-bottom: 0.4em;
  font-size: clamp(2.5rem, 1rem + 5vw, 5.25rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

/* Bestehender Slogan „We Connect Business.“ bleibt sichtbar unter dem Einstiegstext */
.hero-slogan {
  margin-top: 1.25rem;
  color: var(--gold);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.hero-text {
  max-width: 40rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
}

/* Schwerpunkte unter dem Hero */
.focus-band {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}

.focus-band ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin: 0;
  list-style: none;
}

.focus-band a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.9375rem;
  text-decoration: none;
}

.focus-band a:hover span[aria-hidden] { transform: translateY(2px); }
.focus-band span[aria-hidden] { color: var(--gold); transition: transform 0.2s ease; }

@media (min-width: 56em) {
  .focus-band ul { gap: 0 2rem; }
  .focus-band a { border-bottom: 0; }
}

/* Leistungsübersicht */
.service-list {
  display: grid;
  gap: 0 clamp(2rem, 4vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40em) { .service-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .service-list { grid-template-columns: repeat(3, 1fr); } }

.service {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

/* Kleine Kartenbilder, einheitlich 4:3; Breite begrenzt, weil einzelne Vorlagen nur
   wenige hundert Pixel breit sind und nicht hochskaliert werden sollen */
.service__img {
  width: min(100%, 16rem);
  aspect-ratio: 4 / 3;
  margin-bottom: 1.5rem;
  border-radius: calc(var(--radius) - 0.5rem);
  background-color: var(--sand);
  object-fit: cover;
}

.service__num {
  margin-bottom: 1.25rem;
  color: var(--gold-dark);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.service h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; }
.service p { color: var(--muted); }
.service .text-link { margin-top: auto; padding-top: 0.75rem; font-size: 0.9375rem; }

.section-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Vollflächige Bildsektion */
.feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(90vh, 52rem);
  background: var(--ink);
  isolation: isolate;
}

.feature > .media { position: absolute; inset: 0; z-index: -1; }
.feature .media-tag { top: clamp(0.75rem, 2vw, 1.5rem); bottom: auto; }

.feature-content {
  padding-top: clamp(6rem, 14vw, 10rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.feature-content > * { max-width: 42rem; }
.feature-content > .display-title { max-width: 52rem; }

/* Bild + Text */
.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.split__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}

@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; }
  .split__media { aspect-ratio: 4 / 5; }
  .split--reverse .split__media { order: 2; }
}

.steps {
  display: grid;
  gap: 1.5rem 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 30em) { .steps { grid-template-columns: repeat(2, 1fr); } }

.steps li { padding-top: 1rem; border-top: 1px solid var(--line); }
.steps h3,
.steps h4 { margin: 0 0 0.35rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }
.steps p { color: var(--muted); font-size: 0.9375rem; }

.step-num {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.subhead {
  margin: 2.5rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checklist {
  display: grid;
  gap: 0.6rem;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0.1rem;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark);
  transform: rotate(-45deg);
}

/* TrendyPrime */
.section .wordmark {
  font-size: clamp(2.75rem, 1.8rem + 3.6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.tp-claim { font-size: 1.25rem; }

/* Marken & TrendyPrime: Ablauf für Marken, Zwischenüberschriften und drei Bausteine */
.feature-content > .steps { max-width: 60rem; }

.feature-content .subhead + p,
.tp-body .subhead + p { margin-top: 0.75rem; }

.tp-body .subhead { margin-top: 2rem; }
.tp-source { margin-top: 1.5rem; }

.section .tp-flow { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.tp-flow + .card-grid { margin-top: 1.25rem; }

.card-grid h4 {
  margin: 0 0 0.5em;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Bebilderte Vorschau (Auftrag 24): Bilder von trendyprime.com und eigene Piktogramme.
   Feste Seitenverhältnisse verhindern Layoutsprünge beim verzögerten Laden. */

/* Produktfoto im weißen Rahmen – vollständige Flasche, nicht beschnitten */
.product-frame { margin: 0; }

.product-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: clamp(1rem, 3vw, 1.75rem);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(21, 33, 45, 0.08), 0 1.5rem 3rem -1.75rem rgba(6, 13, 22, 0.5);
  object-fit: contain;
}

.product-frame figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.on-dark .product-frame figcaption { color: rgba(255, 255, 255, 0.78); }

/* Handel & Marken, Internationale Geschäftsentwicklung: Text links, Foto rechts; mobil darunter */
.feature-content--product > *,
.feature-content--media > * { max-width: none; }
.feature-copy > * { max-width: 42rem; }
.feature-copy > .display-title { max-width: 52rem; }
.feature-copy > .steps { max-width: 60rem; }

.feature-content--product .product-frame {
  max-width: 20rem;
  margin-top: 3rem;
}

.feature-content--media .photo-frame { margin-top: 3rem; }

@media (min-width: 64em) {
  .feature-content--product,
  .feature-content--media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }

  .feature-content--product .product-frame { max-width: none; margin-top: 0; }
  .feature-content--media .photo-frame { margin-top: 0; }

  /* Internationale Geschäftsentwicklung (M2, Vorlage 768 px): Bildspalte bis 500 px */
  .feature-content--media-500 { grid-template-columns: minmax(0, 1fr) minmax(18rem, 31.25rem); }
}

/* Symbolfotos der bisherigen IBPOOL-Website (M2–M4).
   Vorlagen sind 384 bis 768 px breit: Fläche begrenzt, nicht auf Vollbreite hochskaliert. */
.photo-frame {
  width: 100%;
  max-width: 24rem; /* 384 px */
  margin: 0;
}

.photo-frame--500 { max-width: 31.25rem; } /* 500 px */

.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background-color: var(--navy);
  object-fit: cover;
}

.photo-frame figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* Hochformat 3:4 ohne Beschnitt, z. B. Lagerhalle M4 (Vorlage 720 × 960) */
.photo-frame--3x4 img { aspect-ratio: 3 / 4; }

.on-dark .photo-frame figcaption { color: rgba(255, 255, 255, 0.78); }

.split > .photo-frame { justify-self: center; }

@media (min-width: 56em) {
  .split--reverse > .photo-frame { order: 2; }
}

/* Shutterstock-Fotos (S1–S5, siehe MEDIENPLAN.md): Querformat 3:2, vollständig gezeigt
   (contain statt cover), damit Personen und wichtige Bildteile nicht abgeschnitten werden.
   Im HTML steht der Text vor dem Bild, mobil liegt das Bild also unter dem Text. */
.photo-frame--600 { max-width: 37.5rem; }  /* 600 px */
.photo-frame--420 { max-width: 26.25rem; } /* 420 px */

.photo-frame--3x2 img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

/* Fulfillment: Lagerteam (S2) und kleinere Aufnahme Auftragsbearbeitung (S3) untereinander */
.media-stack {
  display: grid;
  gap: 2rem;
  width: 100%;
  max-width: 37.5rem;
}

.split > .media-stack { justify-self: center; }

/* Beratung: Bild auf breiten Bildschirmen links, mobil unter dem Text */
@media (min-width: 56em) {
  .split--media-first > .photo-frame { order: -1; }
}

/* E-Commerce: Produktbezug zu TrendyPrime, bis eine echte Shopaufnahme vorliegt */
.shop-ref {
  display: grid;
  gap: 1.5rem clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.shop-ref .product-frame { max-width: 16rem; }
.shop-ref__body { max-width: 40rem; }
.shop-ref__body > * + * { margin-top: 1rem; }

@media (min-width: 40em) {
  .shop-ref { grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr); }
}

/* E-Commerce (M9): breites Querformat 2000 × 1028 neben dem Text; vollständig gezeigt,
   damit die Schrift im Motiv nicht abgeschnitten wird. Unter 56em untereinander. */
@media (min-width: 40em) {
  .shop-ref--wide { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 56em) {
  .shop-ref--wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

.wide-frame {
  width: 100%;
  max-width: 40rem;
  margin: 0;
}

.wide-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 2000 / 1028;
  border-radius: var(--radius);
  background-color: var(--sand);
  object-fit: contain;
}

/* E-Commerce (S1, 6000 × 3719): natürliches Seitenverhältnis aus width/height, ohne Beschnitt;
   Bild steht im HTML nach dem Text (mobil darunter), ab 56em links daneben */
.wide-frame--natural img { aspect-ratio: auto; }

@media (min-width: 56em) {
  .shop-ref--wide .wide-frame--natural { order: -1; }
}

.wide-frame figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.placeholder-note {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 1px dashed var(--muted);
  border-radius: 0.6rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* TrendyPrime: Logo und Banner als kleines Bildpaar, höchstens 500 px breit */
.tp-media {
  align-self: start;
  width: 100%;
  max-width: 31.25rem;
  margin: 0;
}

.tp-logo {
  width: 12rem;
  height: 5rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--white);
  object-fit: contain; /* Seitenverhältnis des Logos bleibt erhalten */
  object-position: left center;
}

/* Mobil: Ausschnitt auf die Texturen links, ab 40em ganzes Motiv */
.tp-banner {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background-color: var(--white);
  object-fit: cover;
  object-position: 22% 50%;
}

@media (min-width: 40em) {
  .tp-banner { aspect-ratio: 1000 / 616; }
}

@media (min-width: 56em) {
  .tp-media { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.tp-media figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Piktogramme: Dunkelblau auf warmem Neutral */
.pictogram {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.9rem;
  border-radius: 50%;
  background: var(--sand);
}

.steps .pictogram { margin-bottom: 1rem; }

/* Fulfillment-Ablauf: mobil senkrecht, ab 56em waagerecht in sechs Spalten */
.flow-wrap { margin-top: clamp(3.5rem, 7vw, 5.5rem); }

.flow {
  display: grid;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.5rem;
}

.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4rem;
  bottom: -0.5rem;
  left: 1.75rem;
  width: 1px;
  background: var(--line);
}

.flow__num {
  display: block;
  color: var(--gold-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.flow__label {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 56em) {
  .flow { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
  .flow li { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 0; }

  .flow li:not(:last-child)::after {
    top: 1.75rem;
    bottom: auto;
    left: 4rem;
    right: -0.5rem;
    width: auto;
    height: 1px;
  }
}

/* Beiträge */
.posts {
  display: grid;
  gap: 0 clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 56em) { .posts { grid-template-columns: repeat(3, 1fr); } }

.post {
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--ink);
}

.post--placeholder { border-top: 1px dashed var(--muted); }
.post--placeholder h3,
.post--placeholder p { color: var(--muted); }

.post h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag,
.status {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag { background: var(--sand); }
.status--live { background: var(--ink); color: var(--white); }
.status--planned { border: 1px dashed var(--muted); color: var(--muted); }

/* Über uns */
.facts {
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) 1.2fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt { color: var(--muted); font-size: 0.9375rem; }
.facts dd { margin: 0; font-weight: 500; }

/* Kontakt */
.feature--contact { min-height: min(80vh, 44rem); }

/* Kontakt (M8): Symbolbild Brandenburger Tor. Ruhige, gleichmäßige Grundabdunklung plus
   Verlauf hinter dem Text; Tor mittig im Ausschnitt, mobil gleichmäßig dunkler */
.media--berlin > img { object-position: 50% 50%; }

.media--berlin::after {
  background:
    linear-gradient(90deg, rgba(6, 13, 22, 0.86) 0%, rgba(6, 13, 22, 0.55) 50%, rgba(6, 13, 22, 0.3) 100%),
    linear-gradient(0deg, rgba(6, 13, 22, 0.6) 0%, rgba(6, 13, 22, 0) 50%),
    linear-gradient(rgba(6, 13, 22, 0.25), rgba(6, 13, 22, 0.25));
}

@media (max-width: 55.99em) {
  .media--berlin::after {
    background: linear-gradient(180deg, rgba(6, 13, 22, 0.55) 0%, rgba(6, 13, 22, 0.65) 40%, rgba(6, 13, 22, 0.9) 100%);
  }
}

/* Kontakt auf den Startseiten (S5): ruhige dunkle Fläche statt Vollbild. Text und
   Kontaktdaten links, Shutterstock-Symbolfoto (S5, 3:2) als kleine Querformatfläche
   (höchstens 500 px) rechts – ohne Überlagerung des Textes; mobil Bild unter dem Text.
   .feature--contact und .media--berlin oben werden auf den Startseiten nicht mehr genutzt. */
.contact {
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
  background: var(--ink);
}

.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.contact-copy > * { max-width: 42rem; }
.contact-copy > .display-title { max-width: 52rem; }

.contact .photo-frame { max-width: 31.25rem; } /* 500 px */

@media (min-width: 56em) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(16rem, 31.25rem); }
}

.btn-mail {
  min-height: 3.75rem;
  padding-inline: 2rem;
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);
}

/* Fußbereich */
.site-footer {
  background: var(--ink);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem 3rem;
}

@media (min-width: 40em) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
@media (min-width: 64em) { .footer-grid--5 { grid-template-columns: 1.5fr repeat(4, 1fr); } } /* Startseiten: zusätzliche Spalte „Seiten“ */

.footer-slogan {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.footer-title {
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
}

.footer-bottom p { margin: 0; }

/* Unterseiten (Leistungen, Über uns) – gleiche Schrift und Bausteine wie die Startseite */
.site-nav a[aria-current="page"]::after,
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }

@media (max-width: 71.99em) {
  .js .site-nav a[aria-current="page"],
  .js .site-nav a[aria-current="true"] { color: var(--gold); }
}

.page-head {
  background: var(--ink);
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.page-head h1 {
  max-width: 52rem;
  margin-bottom: 0.5em;
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.page-head .lead { max-width: 44rem; }

/* Großer Seitenkopf ohne Bild (Fulfillment): abstrakte Fläche wie .tone-hero, kein vorgetäuschtes Foto */
.page-head--wide {
  display: flex;
  align-items: flex-end;
  min-height: min(80vh, 44rem);
  background-image:
    radial-gradient(55% 70% at 85% 25%, rgba(217, 183, 122, 0.3), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 72px),
    linear-gradient(135deg, #0b1828 0%, #163150 60%, #27507a 100%);
}

.page-head--wide h1 {
  max-width: 60rem;
  font-size: clamp(2.5rem, 1.2rem + 4.8vw, 5.25rem);
}

/* Leistungsbereiche */
.detail-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
}

@media (min-width: 56em) {
  .detail-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); align-items: start; }
}

.section .detail-title {
  font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.75rem);
}

/* Kleine Vorlagen (u. a. marken.jpg, mentoring.jpg) nicht hochskalieren: Breite begrenzt wie in der Übersicht */
.detail-img {
  width: min(100%, 20rem);
  aspect-ratio: 4 / 3;
  margin-top: 1.5rem;
  border-radius: calc(var(--radius) - 0.5rem);
  background-color: var(--sand);
  object-fit: cover;
}

.detail-body .subhead { margin-top: 2rem; }
.detail-body .checklist { margin-bottom: 1.5rem; }

/* Abschluss mit nächsten Schritten */
.page-contact { background: var(--ink); }
.page-contact h2 { max-width: 40rem; }

.contact-alt {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
}

.on-dark .steps li { border-top-color: var(--line-dark); }
.on-dark .steps p { color: rgba(255, 255, 255, 0.8); }
.on-dark .step-num { color: var(--gold); }

@media (min-width: 56em) {
  .steps--3 { grid-template-columns: repeat(3, 1fr); }
  .steps--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Über uns */
.split--top { align-items: start; }

.media--portrait > img { object-position: 50% 20%; }

.role {
  color: var(--muted);
  font-size: 1.125rem;
}

.quote {
  margin: 2rem 0 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
}

.quote blockquote {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 300;
  line-height: 1.4;
}

.quote figcaption {
  color: var(--muted);
  font-size: 0.9375rem;
}

.quote + p { margin-top: 2rem; }
.split + .card-grid { margin-top: clamp(2.5rem, 5vw, 4rem); }

.card-grid {
  display: grid;
  gap: 0 clamp(2rem, 4vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40em) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 56em) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card-grid > li {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--ink);
}

.card-grid h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; }
.card-grid p { color: var(--muted); }

@media (min-width: 56em) {
  .checklist--cols { grid-template-columns: repeat(2, 1fr); gap: 0.75rem 3rem; }
}

/* Bewegung nur ohne Wunsch nach reduzierter Bewegung; einmalig, keine Endlosschleifen */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero > .media { animation: hero-settle 1.8s var(--ease) both; }
  .hero-content > * { animation: rise 0.8s var(--ease) both; }
  .hero-content > :nth-child(2) { animation-delay: 0.08s; }
  .hero-content > :nth-child(3) { animation-delay: 0.16s; }
  .hero-content > :nth-child(4) { animation-delay: 0.24s; }
  .hero-content > :nth-child(5) { animation-delay: 0.32s; }
}

@keyframes hero-settle {
  from { transform: scale(1.06); }
  to { transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .btn,
  .site-nav .nav-cta,
  .js .menu-toggle { border: 1px solid ButtonText; }
  .media-tag { border-style: solid; }
}
