/* ==========================================================================
   Tietje Defence – Landingpage (ergänzt style.css)
   ========================================================================== */

/* Hero ------------------------------------------------------------------- */
.d-hero { position: relative; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.d-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: min(88vh, 780px); }
.d-hero__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px) clamp(56px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.d-hero__brand { height: 58px; width: auto; margin-bottom: clamp(32px, 5vw, 56px); align-self: flex-start; }
.d-hero h1 { font-family: var(--font-sans); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.02em; margin-bottom: 22px; }
.d-hero__rule { width: 88px; height: 4px; background: var(--orange); border-radius: 2px; margin-bottom: 22px; }
.d-hero__sub { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--ink-2); line-height: 1.4; margin-bottom: 18px; max-width: 520px; }
.d-hero__claim { font-family: var(--font-sans); font-weight: 700; color: var(--orange); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 34px; }
.d-hero__media { position: relative; min-height: 360px; }
.d-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-hero__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--ink) 0 18%, var(--orange) 18% 86%, var(--ink) 86%); z-index: 2; }
@media (max-width: 900px) {
  .d-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .d-hero__text { padding: 44px var(--gutter) 48px; }
  .d-hero__media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .d-hero__brand { height: 46px; margin-bottom: 28px; }
}

/* Sprungmarken-Leiste */
.d-subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.d-subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.d-subnav ul::-webkit-scrollbar { display: none; }
.d-subnav a { display: block; white-space: nowrap; padding: 14px 14px; font-size: .9375rem; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.d-subnav a:hover, .d-subnav a.is-current { color: var(--ink); border-bottom-color: var(--orange); }

/* Painpoints ------------------------------------------------------------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 960px) { .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pain-grid { grid-template-columns: 1fr; } }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pain:hover { border-color: #f0c7ae; box-shadow: var(--shadow); transform: translateY(-2px); }
.pain h3 { font-size: 1.2rem; }
.pain p { color: var(--muted); margin: 0; }
.pain--bridge { background: var(--orange); border-color: var(--orange); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.pain--bridge:hover { border-color: var(--orange); }
.pain--bridge p { color: #fff; font-family: var(--font-sans); font-weight: 700; font-size: 1.35rem; line-height: 1.35; font-weight: 600; }
.pain--bridge a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.pain--bridge a:hover { color: var(--ink); }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 860px) { .kpis { grid-template-columns: 1fr; } }
.kpi { border-top: 3px solid var(--orange); padding-top: 20px; }
.kpi strong { display: block; font-family: var(--font-sans); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.1; color: var(--ink); margin-bottom: 8px; letter-spacing: -.02em; }
.kpi span { color: var(--muted); }
.kpi-source { font-size: .875rem; color: var(--muted); margin-top: 20px; }

/* Brücken-Statement */
.statement { text-align: center; max-width: 980px; margin: 0 auto; }
.statement p { font-family: var(--font-sans); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.25; color: var(--ink); margin: 0 0 30px; letter-spacing: -.015em; }
.statement .btn-row { justify-content: center; }

/* Autorität & Vertrauen ---------------------------------------------------- */
.proof-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; margin-bottom: clamp(48px, 6vw, 72px); }
@media (max-width: 860px) { .proof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proof-stats div { background: var(--bg-dark-2); padding: 28px 24px; }
.proof-stats strong { display: block; font-family: var(--font-sans); font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: var(--orange); line-height: 1.1; margin-bottom: 8px; }
.proof-stats span { color: #c3c9cf; font-size: .975rem; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(56px, 7vw, 88px); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar { display: flex; gap: 16px; align-items: flex-start; }
.pillar .icon { background: rgba(226,115,58,.14); margin: 0; }
.pillar p { margin: 0; color: #dde2e6 !important; font-size: 1.0625rem; }

.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; max-width: 420px; } }
.member { background: var(--bg-dark-2); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.member img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: center 18%; background: #fff; }
.member div { padding: 18px 22px 22px; }
.member strong { display: block; color: #fff; font-size: 1.2rem; }
.member span { color: var(--orange); font-weight: 600; font-size: .9375rem; }

/* Zeitstrahl */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: rgba(226,115,58,.45); }
.timeline li { position: relative; padding-top: 36px; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(226,115,58,.18); }
.timeline li:last-child::before { background: #fff; box-shadow: 0 0 0 6px rgba(226,115,58,.5); }
.timeline strong { display: block; color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.timeline p { margin: 0; font-size: .975rem; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; padding-left: 34px; }
  .timeline::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -34px; top: 3px; }
}

/* Ergebnis --------------------------------------------------------------- */
.outcome-quote { background: var(--orange-tint); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; padding: clamp(24px, 4vw, 40px); margin: 0 0 clamp(36px, 5vw, 56px); }
.outcome-quote p { font-family: var(--font-sans); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.3; margin: 0; color: var(--ink); }
.outcome-quote small { display: block; margin-top: 14px; font-size: 1rem; color: var(--muted); font-family: var(--font-sans); font-weight: 400; }

/* Methodik / Stepper ------------------------------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; position: relative; }
.step__num { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step__num b { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 1.125rem; }
.step__num span { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.step h3 { font-size: 1.5rem; margin-bottom: 12px; }
.step ul { margin: 0; padding-left: 18px; color: var(--muted); }
.step li { margin-bottom: 6px; }
.step__meta { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .875rem; color: var(--muted); }
.step::after { content: ""; position: absolute; top: 49px; right: -18px; width: 20px; height: 2px; background: var(--orange); }
.step:last-child::after { display: none; }
@media (max-width: 960px) { .step::after { display: none; } }

/* Leistungsbausteine (Input -> Bausteine -> Ergebnis) */
.flow { display: grid; grid-template-columns: 1fr 2.6fr 1fr; gap: 18px; align-items: stretch; margin-top: clamp(48px, 6vw, 72px); }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr; } }
.flow__col h4 { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 12px; }
.flow__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; height: calc(100% - 34px); display: flex; align-items: center; font-weight: 600; }
.flow__box--result { background: var(--ink); color: #fff; border-color: var(--ink); }
.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .modules { grid-template-columns: 1fr; } }
.modules li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 16px 16px; display: flex; gap: 12px; font-size: .975rem; line-height: 1.45; }
.modules b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange-tint); color: var(--orange-dark); display: grid; place-items: center; font-size: .875rem; }

/* Verantwortlichkeiten */
.resp { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: clamp(48px, 6vw, 72px); }
@media (max-width: 760px) { .resp { grid-template-columns: 1fr; } }
.resp > div { padding: clamp(24px, 3.4vw, 40px); }
.resp__tietje { background: var(--ink); color: #dde2e6; }
.resp__tietje h3 { color: #fff; }
.resp__tietje .checklist li::before { background-color: rgba(226,115,58,.2); }
.resp__client { background: #fff; }
.resp h3 { margin-bottom: 4px; }
.resp .sub { font-size: .9375rem; margin-bottom: 20px; color: var(--muted); }
.resp__tietje .sub { color: var(--orange); }
.resp .checklist { margin: 0; }
.resp__client .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e666e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); background-color: #eef0f2; }

/* Referenzen ------------------------------------------------------------- */
.refs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
@media (max-width: 860px) { .refs { grid-template-columns: 1fr; } }
.ref { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ref__img { position: relative; aspect-ratio: 16 / 8; }
.ref__img img { width: 100%; height: 100%; object-fit: cover; }
.ref__img span { position: absolute; left: 16px; top: 16px; background: rgba(22,25,28,.82); color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.ref__body { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; flex: 1; }
.ref__body h3 { font-size: 1.45rem; }
.ref__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 20px; }
.ref__stats div { background: var(--bg-warm); border-radius: 10px; padding: 14px; }
.ref__stats strong { display: block; color: var(--orange-dark); font-size: 1.2rem; line-height: 1.2; }
.ref__stats span { font-size: .875rem; color: var(--muted); }
@media (max-width: 480px) { .ref__stats { grid-template-columns: 1fr; } }
.ref__services { font-size: .9375rem; color: var(--muted); margin-top: auto; }
.ref__services b { color: var(--ink); }

.compare { width: 100%; border-collapse: collapse; margin-top: clamp(32px, 4vw, 48px); background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: 1rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; font-weight: 700; }
.compare tbody th { font-weight: 600; color: var(--muted); width: 28%; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.relevance { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; background: var(--orange-tint); border-radius: var(--radius); padding: 22px 24px; }
.relevance .icon { margin: 0; background: #fff; }
.relevance p { margin: 0; color: var(--ink-2); }

/* Erstgespräch-Schritte */
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .next-steps { grid-template-columns: 1fr; } }
.next-steps li { display: flex; gap: 16px; }
.next-steps b { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--orange); color: var(--orange-dark); display: grid; place-items: center; }
.next-steps strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.next-steps p { margin: 0; color: var(--muted); }

/* Kontaktbereich */
.d-contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .d-contact { grid-template-columns: 1fr; } }
.d-contact__card { background: var(--bg-dark-2); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 40px); border: 1px solid rgba(255,255,255,.06); }
.d-contact .info-list .icon { background: rgba(226,115,58,.14); }
.d-contact .info-list a { color: #fff; }
.d-contact .info-list span { color: #aeb5bc; }
.d-contact .field input, .d-contact .field select, .d-contact .field textarea { background: #fff; }

/* Platzhalter-Hinweise (nur sichtbar mit ?platzhalter im URL) */
.placeholder-note { display: none; }
body.show-placeholders .placeholder-note { display: block; margin-top: 18px; padding: 10px 14px; border: 2px dashed #d33; color: #b00; background: #fff5f5; font-size: .9rem; border-radius: 8px; }
.pain--bridge a svg { width: 20px; height: 20px; }
.modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modules li { min-width: 0; hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 640px) { .modules { grid-template-columns: 1fr; } }
/* Dauer/Ergebnis je Phase: erst sichtbar, wenn Inhalte geliefert sind (bis dahin nur mit ?platzhalter) */
.step__meta { display: none; }
body.show-placeholders .step__meta { display: block; color: #b00; }
@media (max-width: 760px) {
  .team { max-width: none; gap: 12px; }
  .member { display: flex; align-items: center; }
  .member img { width: 96px; height: 96px; aspect-ratio: 1; flex: none; object-position: center 15%; }
  .member div { padding: 14px 18px; }
}
/* Allgemeiner Teamtext über den Porträts */
.team-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px clamp(32px, 5vw, 64px); margin-bottom: 32px; align-items: start; }
.team-intro h3 { grid-column: 1 / -1; margin: 0; }
.team-intro p { margin: 0; font-size: 1.0625rem; }
.team-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.team-points li { position: relative; padding-left: 22px; color: #dde2e6; }
.team-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
@media (max-width: 860px) { .team-intro { grid-template-columns: 1fr; } }
/* Hero im Stil der übrigen Tietje-Group-Seiten (Bild, dunkler Verlauf, weiße Schrift) */
.d-hero2 .hero__media img { object-position: center 55%; }
.d-hero2::after { background: linear-gradient(90deg, rgba(10,12,14,.72) 0%, rgba(10,12,14,.45) 55%, rgba(10,12,14,.15) 100%), linear-gradient(180deg, transparent 50%, rgba(10,12,14,.5)); }
.d-hero2 p { margin-bottom: 6px; }
.d-hero2 .d-hero2__claim { color: var(--orange); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-top: 14px; }

/* Hero-Foto: Bildausschnitt so, dass Tore und Fassade sichtbar bleiben */
.d-hero2 .hero__media img { object-position: 60% 50%; }
@media (max-width: 760px) { .d-hero2 .hero__media img { object-position: 62% 50%; } }

/* Markenleiste mit Tietje-Defence-Logo direkt unter dem Hero */
.d-brand { background: #fff; border-bottom: 1px solid var(--line); }
.d-brand__inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); padding-top: 28px; padding-bottom: 28px; }
.d-brand img { height: 64px; width: auto; flex: none; }
.d-brand p { margin: 0; padding-left: clamp(20px, 4vw, 48px); border-left: 3px solid var(--orange); color: var(--ink-2); font-size: 1.125rem; max-width: 620px; }
@media (max-width: 640px) {
  .d-brand__inner { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
  .d-brand img { height: 52px; }
  .d-brand p { font-size: 1rem; padding-left: 16px; }
}
/* Referenzkarten: Überschrift, Kennzahlen und Texte stehen in beiden Karten auf gleicher Höhe (CSS Subgrid) */
@supports (grid-template-rows: subgrid) {
  .refs { row-gap: 0; }
  .ref { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; margin-bottom: clamp(20px, 3vw, 32px); }
  .ref__body { display: grid; grid-row: 2 / span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .ref__body h3 { align-self: end; }
  .ref__services { margin-top: 0; }
}
@supports not (grid-template-rows: subgrid) {
  @media (min-width: 861px) { .ref__body h3 { min-height: 2.3em; } }
}
/* neues Tietje-Defence-Logo etwas größer darstellen */
.d-brand img { height: 84px; }
@media (max-width: 640px) { .d-brand img { height: 64px; } }
/* Kontakt ohne Formular: Text links, Kontaktkarte rechts, vertikal zentriert */
.d-contact { align-items: center; }
.d-contact .info-list li > div { line-height: 1.5; }
