/* ============================================================
   TvK Consult · Komponenten
   Baut auf tvk-brand.css auf. Navy-dominant, Azure als Akzent.
   ============================================================ */

/* ---- Icon-Kachel: 3 Finishes (Varianten) ------------------------------- */
.tvk-icon {
  --s: 64px;
  width: var(--s);
  height: var(--s);
  display: grid;
  place-items: center;
  border-radius: var(--tvk-radius);
  flex: none;
}
.tvk-icon svg { width: 58%; height: 58%; display: block; }

/* A · Solid Navy-Kachel, Glyph weiß + Azure-Akzent (Default-Stil) */
.tvk-icon--solid   { background: var(--tvk-navy); color: #fff; }
/* B · Ice-Kachel, Glyph Navy + Azure-Akzent */
.tvk-icon--ice     { background: var(--tvk-ice); color: var(--tvk-navy); }
/* C · Outline, transparent, Glyph Navy */
.tvk-icon--outline { background: #fff; color: var(--tvk-navy); box-shadow: inset 0 0 0 1.5px var(--tvk-ice-deep); }

/* Größen */
.tvk-icon--lg { --s: 84px; }
.tvk-icon--sm { --s: 48px; }

/* dezenter Hover (Level 2) */
.tvk-icon { transition: transform .5s var(--tvk-ease), box-shadow .5s var(--tvk-ease); }
.tvk-card:hover .tvk-icon--solid { box-shadow: 0 14px 30px -14px rgba(0,41,77,.55); }

/* ---- Winkel-Frame / Passepartout (CD: Frame an zwei Seiten) ------------- */
.tvk-frame {
  position: relative;
  padding: clamp(22px, 3vw, 40px);
  background: #fff;
}
.tvk-frame::before,
.tvk-frame::after {
  content: "";
  position: absolute;
  width: 46px; height: 46px;
  pointer-events: none;
}
/* oben-links + unten-rechts (winkelförmig, zwei Seiten) */
.tvk-frame::before {
  top: 0; left: 0;
  border-top: 2px solid var(--tvk-azure);
  border-left: 2px solid var(--tvk-azure);
}
.tvk-frame::after {
  bottom: 0; right: 0;
  border-bottom: 2px solid var(--tvk-azure);
  border-right: 2px solid var(--tvk-azure);
}
.tvk-frame--navy::before,
.tvk-frame--navy::after { border-color: var(--tvk-navy); }
.tvk-frame--lg::before,
.tvk-frame--lg::after { width: 72px; height: 72px; }

/* ---- Zitat / Statement (CD: von zwei Linien eingefasst) ---------------- */
.tvk-quote {
  margin: 0;
  padding: 28px 0;
  border-top: 2px solid var(--tvk-navy);
  border-bottom: 2px solid var(--tvk-navy);
  max-width: 760px;
}
.tvk-quote p {
  margin: 0;
  font-family: var(--tvk-font);
  font-weight: var(--tvk-w-light);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.18;
  color: var(--tvk-navy);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.tvk-quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: var(--tvk-w-medium);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tvk-azure);
}
/* Variante: Azure-Linien + großes Anführungszeichen */
.tvk-quote--azure { border-color: var(--tvk-azure); }
.tvk-quote--mark { position: relative; padding-top: 40px; border-top: none; }
.tvk-quote--mark::before {
  content: "\201C";
  position: absolute; top: -18px; left: -4px;
  font-family: var(--tvk-font); font-weight: var(--tvk-w-black);
  font-size: 5rem; line-height: 1; color: var(--tvk-azure);
}
/* Variante: Navy-Flächen-Statement (Layer) */
.tvk-quote--solid {
  background: var(--tvk-navy);
  color: #fff;
  border: none;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--tvk-radius);
}
.tvk-quote--solid p { color: #fff; }
.tvk-quote--solid cite { color: var(--tvk-azure-soft); }

/* ---- Kennzahlen / Stats ------------------------------------------------ */
.tvk-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 56px);
}
.tvk-stat { position: relative; padding-top: 18px; }
.tvk-stat::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 36px; height: 3px; background: var(--tvk-azure);
}
.tvk-stat .tvk-stat__num {
  font-family: var(--tvk-font);
  font-weight: var(--tvk-w-black);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: .9;
  color: var(--tvk-navy);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tvk-stat .tvk-stat__num .u { color: var(--tvk-azure); }
.tvk-stat .tvk-stat__label {
  margin-top: 12px;
  font-weight: var(--tvk-w-medium);
  font-size: .9rem;
  line-height: 1.35;
  color: var(--tvk-text-muted);
  max-width: 22ch;
}
/* Variante: auf Navy-Fläche */
.tvk-stats--onnavy .tvk-stat__num { color: #fff; }
.tvk-stats--onnavy .tvk-stat__num .u { color: var(--tvk-azure-soft); }
.tvk-stats--onnavy .tvk-stat__label { color: var(--tvk-ice); }
.tvk-stats--onnavy .tvk-stat::before { background: var(--tvk-azure-soft); }

/* ---- Karten ------------------------------------------------------------ */
.tvk-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--tvk-line);
  border-radius: var(--tvk-radius);
  padding: clamp(22px, 2.4vw, 30px);
  transition: border-color .5s var(--tvk-ease), transform .5s var(--tvk-ease), box-shadow .5s var(--tvk-ease);
}
.tvk-card:hover {
  border-color: var(--tvk-azure);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -28px rgba(0,41,77,.4);
}
.tvk-card__no {
  font-family: var(--tvk-font); font-weight: var(--tvk-w-medium);
  font-size: .78rem; letter-spacing: .18em; color: var(--tvk-navy-300);
}
.tvk-card h3 {
  font-family: var(--tvk-font); font-weight: var(--tvk-w-medium);
  font-size: 1.18rem; color: var(--tvk-navy); margin: 16px 0 8px;
}
.tvk-card p { margin: 0; font-size: .94rem; line-height: 1.55; color: var(--tvk-text-muted); }
/* Azure-Unterstrich, der bei Hover wächst */
.tvk-card__bar { height: 2px; width: 34px; background: var(--tvk-azure); margin-top: 18px; transition: width .5s var(--tvk-ease); }
.tvk-card:hover .tvk-card__bar { width: 64px; }

/* ---- Sektion-Trenner --------------------------------------------------- */
.tvk-divider { display: flex; align-items: center; gap: 18px; color: var(--tvk-line); }
.tvk-divider::before, .tvk-divider::after { content: ""; height: 1px; background: currentColor; flex: 1; }
.tvk-divider span {
  font-weight: var(--tvk-w-medium); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--tvk-navy-300);
}
.tvk-divider--plus::before, .tvk-divider--plus::after { background: var(--tvk-ice-deep); }
.tvk-divider--plus span { color: var(--tvk-azure); font-weight: var(--tvk-w-black); font-size: 1rem; letter-spacing: 0; }

/* dünne Akzentlinie mit Azure-Knoten */
.tvk-rule { height: 2px; background: var(--tvk-ice-deep); position: relative; }
.tvk-rule::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 64px; background: var(--tvk-azure); }

/* ---- Hintergrund-Flächen ----------------------------------------------- */
.tvk-surface-ice  { background: var(--tvk-ice); }
.tvk-surface-navy { background: var(--tvk-navy); color: #fff; }
.tvk-surface-navy .tvk-eyebrow { color: var(--tvk-azure-soft); }
.tvk-surface-navy .tvk-eyebrow::before { background: var(--tvk-azure-soft); }

/* ---- Schloss-Pesch Zeichnung (dezenter Linien-Aufbau) ------------------ */
.tvk-schloss { display: block; overflow: hidden; }
.tvk-schloss img {
  display: block; width: 100%; height: auto;
  /* Weiß der Vorlage auf hellen Flächen unsichtbar machen */
  mix-blend-mode: multiply;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition: clip-path 2.6s var(--tvk-ease), opacity 1.2s ease;
}
.tvk-schloss.is-drawn img { clip-path: inset(0 0 0 0); opacity: 1; }
.tvk-schloss--faint img { opacity: 0; }
.tvk-schloss--faint.is-drawn img { opacity: .5; }
@media (prefers-reduced-motion: reduce) {
  .tvk-schloss img { clip-path: none !important; opacity: 1; transition: none; }
  .tvk-schloss--faint img { opacity: .5; }
}

/* ---- Hero-Bausteine ---------------------------------------------------- */
.tvk-hero { position: relative; overflow: hidden; background: #fff; }
.tvk-hero__inner {
  position: relative; z-index: 2;
  max-width: var(--tvk-maxw); margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) clamp(20px, 5vw, 56px);
}
.tvk-hero__lead {
  font-family: var(--tvk-font); font-weight: var(--tvk-w-black);
  text-transform: uppercase; line-height: .92; letter-spacing: -0.015em;
  color: var(--tvk-navy);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  margin: 18px 0 0; text-wrap: balance;
}
.tvk-hero__lead .accent { color: var(--tvk-azure); }
.tvk-hero__sub {
  font-weight: var(--tvk-w-light); color: var(--tvk-text-muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.5;
  max-width: 52ch; margin: 22px 0 0;
}
.tvk-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Schloss als dezenter Hero-Unterbau */
.tvk-hero__schloss {
  position: absolute; left: 0; right: 0; bottom: -2%; z-index: 1;
  width: 100%; pointer-events: none;
}
.tvk-hero__schloss .tvk-schloss img { opacity: 0; }
.tvk-hero__schloss .tvk-schloss.is-drawn img { opacity: .42; }

/* Buttons (passend zur Site) */
.tvk-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--tvk-font); font-weight: var(--tvk-w-medium);
  font-size: .92rem; letter-spacing: .02em;
  padding: 14px 26px; border-radius: var(--tvk-radius);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .4s var(--tvk-ease), color .4s var(--tvk-ease), border-color .4s var(--tvk-ease), transform .4s var(--tvk-ease);
}
.tvk-btn--primary { background: var(--tvk-navy); color: #fff; }
.tvk-btn--primary:hover { background: var(--tvk-azure); transform: translateY(-2px); }
.tvk-btn--ghost { border-color: var(--tvk-ice-deep); color: var(--tvk-navy); background: #fff; }
.tvk-btn--ghost:hover { border-color: var(--tvk-azure); color: var(--tvk-azure); }
.tvk-btn .arr { transition: transform .4s var(--tvk-ease); }
.tvk-btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   ERWEITERUNG: Schloss seitlich, Foto-Hero, Platzhalter,
   Nutzen-Karten, Sektion-Akzente
   ============================================================ */

/* ---- Schloss Pesch ruhig seitlich (statisch, KEIN Aufbau) -------------- *
 * Strichzeichnung rechts/unten, sehr dezent, fadet zum Text hin aus,
 * sodass die Headline frei und gut lesbar steht.                          */
.tvk-hero--schloss { position: relative; overflow: hidden; background: #fff; }
.tvk-hero--schloss .tvk-hero__inner { position: relative; z-index: 2; }
.tvk-schloss-side {
  position: absolute; right: 0; bottom: 0; z-index: 1;
  width: min(58%, 760px); pointer-events: none; user-select: none;
}
.tvk-schloss-side img {
  display: block; width: 100%; height: auto;
  opacity: .22;                 /* ruhig, stört den Text nicht */
  mix-blend-mode: multiply;     /* Weiß der Vorlage verschwindet auf Hell */
  /* nach links ausblenden, damit Text frei bleibt */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%);
          mask-image: linear-gradient(90deg, transparent 0, #000 42%);
}
/* Variante: voll mittig, noch dezenter (z. B. Über-uns-Sektion) */
.tvk-schloss-band { position: relative; overflow: hidden; }
.tvk-schloss-band > img {
  position: absolute; left: 50%; bottom: -6%; translate: -50% 0;
  width: min(92%, 1100px); opacity: .12; mix-blend-mode: multiply; pointer-events: none;
}
.tvk-schloss-band > * { position: relative; z-index: 1; }

/* ---- Foto-Hero mit Navy-Overlay (Text bleibt lesbar) ------------------- *
 * <header class="tvk-hero-photo">
 *   <img class="tvk-hero-photo__img" src="…"> ODER .tvk-photo-slot
 *   <div class="tvk-hero-photo__inner"> … weiße Schrift … </div>
 * </header>                                                                */
.tvk-hero-photo { position: relative; overflow: hidden; background: var(--tvk-navy); isolation: isolate; }
.tvk-hero-photo__img, .tvk-hero-photo > .tvk-photo-slot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
/* Lesbarkeits-Overlay: links satt Navy, rechts transparent + leichte Abdunklung gesamt */
.tvk-hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,41,77,.92) 0%, rgba(0,41,77,.74) 42%, rgba(0,41,77,.34) 100%),
    linear-gradient(0deg, rgba(0,41,77,.35), rgba(0,41,77,.05));
}
.tvk-hero-photo__inner {
  position: relative; z-index: 2;
  max-width: var(--tvk-maxw); margin: 0 auto;
  padding: clamp(64px, 11vw, 150px) clamp(20px, 5vw, 56px);
  color: #fff;
}
.tvk-hero-photo__inner .tvk-hero__lead { color: #fff; }
.tvk-hero-photo__inner .tvk-hero__lead .accent { color: var(--tvk-azure-soft); }
.tvk-hero-photo__inner .tvk-hero__sub { color: var(--tvk-ice); }
.tvk-hero-photo__inner .tvk-eyebrow { color: var(--tvk-azure-soft); }
.tvk-hero-photo__inner .tvk-eyebrow::before { background: var(--tvk-azure-soft); }

/* dezente Foto-Sektion (Bild halbseitig neben Text) */
.tvk-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,4vw,56px); align-items: center; }
.tvk-media--flip { direction: rtl; }
.tvk-media--flip > * { direction: ltr; }
.tvk-media__frame { border-radius: var(--tvk-radius); overflow: hidden; aspect-ratio: 4 / 3; }
.tvk-media__frame img, .tvk-media__frame .tvk-photo-slot { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px){ .tvk-media { grid-template-columns: 1fr; } }

/* ---- Foto-Platzhalter (zum späteren Einsetzen echter Bilder) ----------- *
 * <div class="tvk-photo-slot" style="aspect-ratio:16/9">
 *   <span>Büro · Schloss Pesch (Außenansicht)</span>
 * </div>                                                                   */
.tvk-photo-slot {
  position: relative; display: grid; place-items: center; text-align: center;
  background-color: var(--tvk-ice);
  background-image: repeating-linear-gradient(135deg,
     rgba(0,41,77,.06) 0 2px, transparent 2px 11px);
  color: var(--tvk-navy-500); border: 1px solid var(--tvk-ice-deep);
  border-radius: var(--tvk-radius); overflow: hidden; min-height: 140px;
}
.tvk-photo-slot::before {
  content: ""; width: 30px; height: 24px; margin-bottom: 10px;
  border: 2px solid var(--tvk-navy-300); border-radius: 4px;
  background:
    radial-gradient(circle at 70% 68%, var(--tvk-navy-300) 0 4px, transparent 4px),
    linear-gradient(transparent 0);
  box-shadow: 0 -6px 0 -2px transparent;
}
.tvk-photo-slot span {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .72rem;
  letter-spacing: .02em; line-height: 1.45; max-width: 26ch; padding: 0 14px;
}
.tvk-photo-slot span::before { content: "Bild: "; color: var(--tvk-azure); }
/* auf dunklem Grund (im Foto-Hero) */
.tvk-hero-photo > .tvk-photo-slot { border: none; border-radius: 0; }

/* ---- Nutzen-Karten (01-04 mit Icon) ------------------------------------ */
.tvk-benefit { position: relative; padding-top: 8px; }
.tvk-benefit__no {
  font-family: var(--tvk-font); font-weight: var(--tvk-w-black);
  font-size: 1rem; color: var(--tvk-azure); letter-spacing: .04em;
}
.tvk-benefit .tvk-icon { margin: 14px 0 16px; }
.tvk-benefit h3 { font-weight: var(--tvk-w-medium); font-size: 1.12rem; color: var(--tvk-navy); margin: 0 0 8px; }
.tvk-benefit p { margin: 0; color: var(--tvk-text-muted); line-height: 1.55; font-size: .95rem; }
.tvk-benefit::before {
  content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 3px; background: var(--tvk-ice-deep);
}

/* ---- Sektion-Akzente (dekorative SVGs positionieren) ------------------- */
.tvk-accent { position: absolute; z-index: 0; pointer-events: none; opacity: .9; }
.tvk-accent--tr { top: 0; right: 0; width: clamp(160px, 22vw, 280px); }
.tvk-accent--bl { bottom: 0; left: 0; width: clamp(160px, 22vw, 280px); }
.tvk-has-accent { position: relative; overflow: hidden; }
.tvk-has-accent > * { position: relative; z-index: 1; }


/* ---- Bridge: neutralisiert globale Heading-Regeln der styles.css ------- */
.tvk-h { text-transform: none; font-weight: var(--tvk-w-light); color: var(--tvk-navy); line-height: 1.05; letter-spacing: -0.005em; }
.tvk-card h3 { text-transform: none; }
.tvk-surface-navy .tvk-h, .tvk-surface-navy h2 { color: #fff; }

/* ---- Rechtstexte (Impressum/Datenschutz) ------------------------------ */
.legal h2 { font-family: var(--tvk-font); font-weight: var(--tvk-w-light); text-transform: none; font-size: 1.5rem; color: var(--tvk-navy); line-height: 1.15; letter-spacing: -0.005em; margin: 2em 0 0.4em; }
.legal h3 { font-family: var(--tvk-font); font-weight: var(--tvk-w-medium); text-transform: none; font-size: 1.1rem; color: var(--tvk-navy); margin: 1.4em 0 0.3em; }
.legal p, .legal li { color: var(--tvk-text-muted); line-height: 1.7; }
.legal a { color: var(--tvk-azure); }

.tvk-icon img { width: 58%; height: 58%; display: block; object-fit: contain; }

/* Akzent unten rechts, gespiegelt (Klammer-Wirkung mit --tr) */
.tvk-accent--br { bottom: 0; right: 0; width: clamp(160px, 22vw, 280px); transform: rotate(180deg); }

/* Fix: Akzente bleiben absolut (sonst ueberschreibt .tvk-has-accent > *) */
.tvk-has-accent > .tvk-accent { position: absolute; z-index: 0; }
/* Klammer: oben links + unten rechts (gespiegelt), umschliesst den Inhalt */
.tvk-accent--tl { top: 0; left: 0; width: clamp(160px, 22vw, 280px); }

@media (max-width: 760px) { .tvk-schloss-side { width: min(90%, 460px) !important; right: 0 !important; bottom: clamp(8px, 3vw, 28px) !important; opacity: 0.5; } }
