/*
 * Brillante Strukturen - Transformation (2026-09-09)
 * Seiteneigene Styles fuer den Produkt-Pitch der BS-Toolbox (Digitalisierung)
 * und die Wachstumsfelder-Kacheln (Unternehmensentwicklung). Wird nach
 * brand-override.css geladen, nur auf transformation.html eingebunden.
 */

/* ---------- BS-Toolbox Produkt-Pitch (dunkle Karte im beigen Block) ---------- */
.tf-pitch {
  position: relative;
  background: linear-gradient(135deg, #1A2E16 0%, #16260F 100%);
  border-top: 4px solid #C2A165;
  border-radius: 10px;
  padding: 60px 50px;
  margin-top: 40px;
  box-shadow: 0 25px 60px rgba(26, 46, 22, 0.25);
  overflow: hidden;
}

.tf-pitch-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.tf-pitch-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E9CD8C;
  margin-bottom: 18px;
}
.tf-pitch-eyebrow img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.tf-pitch h3 {
  color: #FFFFFF;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

.tf-pitch p {
  color: #CFC7AB;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.tf-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.tf-stat {
  border: 1px solid rgba(194, 161, 101, 0.45);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #F2F8EC;
  background: rgba(194, 161, 101, 0.08);
  white-space: nowrap;
}

.tf-divider {
  height: 1px;
  background: rgba(194, 161, 101, 0.3);
  margin: 28px 0 26px;
}

.tf-store-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-store,
.btn-store:link,
.btn-store:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #70A837;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn-store i {
  font-size: 18px;
}
/* Hover/Hell-Dunkel-Wechsel wird bewusst per JS (mouseenter/mouseleave in
   transformation.js) statt per CSS :hover gesteuert - auf Touch-Geräten
   bzw. in manchen Browsern feuert nach einem Tap kein mouseleave, wodurch
   ein reines CSS-:hover den Button dauerhaft in der dunkleren Farbe
   haengen laesst. So bleibt der Grundzustand immer garantiert #70A837. */
.btn-store.is-hovering {
  background-color: #5b8a2c;
}
.btn-store:focus {
  background-color: #70A837;
}

/* Dezenter dritter Link neben den Store-Buttons - bewusst kein weiterer
   .btn-store (soll nicht gleichwertig zu den beiden Download-CTAs wirken). */
.tf-agb-link,
.tf-agb-link:link,
.tf-agb-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #9C9483;
  text-decoration: none;
}
.tf-agb-link i {
  font-size: 12px;
}
.tf-agb-link:hover {
  color: #CFC7AB;
  text-decoration: underline;
}

/* Phone-Mockups rechts */
.tf-phones {
  position: relative;
  min-height: 460px;
}

/* Rotierender weißer "Sonnenstrahlen"-Schein hinter den Phones (reiner
   CSS-Effekt per repeating-conic-gradient, per radial mask zur Mitte hin
   ausgeblendet, damit er weich in den dunklen Panel-Hintergrund übergeht). */
.tf-sunburst {
  position: absolute;
  top: 50%;
  right: -85px;
  width: 580px;
  height: 580px;
  margin-top: -290px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.22) 2deg, transparent 4deg, transparent 20deg);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 32%, rgba(0, 0, 0, 0) 62%);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 32%, rgba(0, 0, 0, 0) 62%);
  animation: tf-sun-rotate 60s linear infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes tf-sun-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tf-sunburst {
    animation: none;
  }
}

.tf-phone {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 28px;
  border: 6px solid #0d1a0a;
  overflow: hidden;
  width: 220px;
}
.tf-phone img {
  display: block;
  width: 100%;
  height: auto;
}
.tf-phone-main {
  right: 110px;
  width: 190px;
  z-index: 2;
  box-shadow:
    0 30px 50px rgba(0, 0, 0, 0.45),
    0 0 40px 6px rgba(255, 255, 255, 0.55),
    0 0 90px 18px rgba(255, 255, 255, 0.28);
}
.tf-phone-secondary {
  right: 70px;
  width: 150px;
  box-shadow:
    0 30px 50px rgba(0, 0, 0, 0.45),
    0 0 30px 4px rgba(255, 255, 255, 0.35),
    0 0 60px 12px rgba(255, 255, 255, 0.16);
  z-index: 1;
  opacity: 0.9;
  filter: brightness(0.85);
}

/* ============================================================
   COMING-SOON-POPUP (temporaer, bis echte Store-Links vorliegen)
   Entfernbar als Ganzes: dieser Block + HTML-Block "tf-soon-overlay" in
   transformation.html + JS-Abschnitt "COMING-SOON-POPUP" in transformation.js
   ============================================================ */
.tf-soon-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 26, 10, 0.72);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.tf-soon-overlay.is-open {
  display: flex;
}
.tf-soon-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: linear-gradient(135deg, #1A2E16 0%, #16260F 100%);
  border-top: 4px solid #C2A165;
  border-radius: 10px;
  padding: 44px 40px 38px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: tf-soon-pop 0.25s ease;
}
@keyframes tf-soon-pop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.tf-soon-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(194, 161, 101, 0.12);
  color: #CFC7AB;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tf-soon-close:hover {
  background: rgba(194, 161, 101, 0.25);
  color: #fff;
}
.tf-soon-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E9CD8C;
  margin-bottom: 20px;
}
.tf-soon-eyebrow img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}
.tf-soon-card h3 {
  color: #FFFFFF;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
}
.tf-soon-card p {
  color: #CFC7AB;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 0;
}
.tf-soon-divider {
  height: 1px;
  background: rgba(194, 161, 101, 0.3);
  margin: 20px 0;
}
.tf-soon-hint {
  font-size: 13px !important;
}
.tf-soon-hint a {
  color: #E9CD8C;
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Bruecke zu Enterprise-Loesungen ---------- */
.tf-bridge {
  margin-top: 60px;
}
.tf-bridge h3 {
  margin-bottom: 14px;
}
.tf-bridge p.lead {
  text-align: justify;
}

.tf-enterprise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.tf-enterprise-card {
  background: #FFFFFF;
  border: 1px solid #E6DEC8;
  border-radius: 8px;
  padding: 32px 28px;
}
.tf-enterprise-card i {
  font-size: 26px;
  color: #70A837;
  margin-bottom: 16px;
  display: block;
}
.tf-enterprise-card h5 {
  color: #1A2E16;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.tf-enterprise-card p {
  color: #6b6555;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}

.tf-enterprise-cta {
  margin-top: 40px;
}

/* ---------- Unternehmensentwicklung: interaktive KMU-Grafik ---------- */
.tf-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.tf-title-row .title {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}
.tf-info-badge,
.tf-info-badge:link,
.tf-info-badge:visited {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #70A837;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  margin-top: -18px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .tf-info-badge:hover {
    background: #5b8a2c;
    color: #fff;
  }
}

.tf-kmu {
  position: relative;
}

.tf-kmu-outro {
  margin-top: 40px;
  margin-bottom: 0;
}
.tf-kmu-cta {
  margin-top: 50px;
}

/* Bild-Stack: 5 ultra-realistische Renderings exakt übereinander (gleiche
   Kameraperspektive), pro Zone wird nur die Deckkraft umgeschaltet - das
   ergibt einen weichen Crossfade statt eines harten Bildwechsels. */
.tf-kmu-stack {
  position: relative;
  aspect-ratio: 1408 / 768;
}
.tf-kmu-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.tf-kmu-img.is-base {
  opacity: 1;
  z-index: 1;
}
.tf-kmu-stack[data-active-zone="wachstum"] .is-base,
.tf-kmu-stack[data-active-zone="diversifikation"] .is-base,
.tf-kmu-stack[data-active-zone="wertschoepfung"] .is-base,
.tf-kmu-stack[data-active-zone="innovation"] .is-base {
  opacity: 0;
}
.tf-kmu-stack[data-active-zone="wachstum"] .tf-kmu-img[data-zone-img="wachstum"],
.tf-kmu-stack[data-active-zone="diversifikation"] .tf-kmu-img[data-zone-img="diversifikation"],
.tf-kmu-stack[data-active-zone="wertschoepfung"] .tf-kmu-img[data-zone-img="wertschoepfung"],
.tf-kmu-stack[data-active-zone="innovation"] .tf-kmu-img[data-zone-img="innovation"] {
  opacity: 1;
  z-index: 2;
}

/* Hotspots: unsichtbare Klick-Ziele auf dem Bild, Position/Größe per
   Inline-Style in Prozent (siehe HTML). Dezentes Hover-Feedback statt
   dauerhafter Zustandsänderung (siehe Erfahrung mit den Store-Buttons). */
.tf-kmu-hit {
  position: absolute;
  z-index: 3;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .tf-kmu-hit:hover {
    background: rgba(255, 255, 255, 0.1);
    outline: 1px dashed rgba(194, 161, 101, 0.6);
    outline-offset: 2px;
  }
}

/* Tooltip-Karte, folgt der aktiven Zone */
.tf-kmu-tooltip {
  position: absolute;
  width: 340px;
  max-width: 80vw;
  background: #1A2E16;
  color: #F2F8EC;
  border-top: 3px solid #C2A165;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 15px 35px rgba(26, 46, 22, 0.3);
  opacity: 0;
  transform: translate(-50%, -100%) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 3;
}
.tf-kmu-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 14px)) scale(1);
}
/* Zonen nahe am oberen Rand (z.B. Innovation/Antenne): Tooltip faellt
   sonst ueber den Grafikrand hinaus - dort stattdessen unterhalb zeigen. */
.tf-kmu-tooltip.tt-below {
  transform: translate(-50%, 14px) scale(0.96);
}
.tf-kmu-tooltip.tt-below.is-visible {
  transform: translate(-50%, 28px) scale(1);
}
.tf-kmu-tooltip h5 {
  color: #E9CD8C;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.tf-kmu-tooltip p {
  color: #CFC7AB;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
}
.tf-kmu-tooltip-list {
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(194, 161, 101, 0.3);
}
.tf-kmu-tooltip-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #CFC7AB;
}
.tf-kmu-tooltip-list li:last-child {
  margin-bottom: 0;
}
.tf-kmu-tooltip-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #C2A165;
}
.tf-kmu-tooltip-list li strong {
  color: #F2F8EC;
}

@media (max-width: 576px) {
  .tf-kmu-tooltip {
    width: 260px;
    font-size: 13px;
  }
}

@media (max-width: 992px) {
  .tf-pitch-grid {
    grid-template-columns: 1fr;
  }
  .tf-phones {
    min-height: 300px;
    margin-top: 40px;
  }
  .tf-phone-main {
    right: 50%;
    transform: translate(50%, -50%);
  }
  .tf-phone-secondary {
    display: none;
  }
  .tf-enterprise-grid {
    grid-template-columns: 1fr;
  }
}
