/* ====================================================================
   X3 MEDICS — HOME.CSS
   Cassiopeia Child Template "cassiopeia_extended"
   --------------------------------------------------------------------
   Ablage: /media/templates/site/cassiopeia_extended/css/home.css
   Eingebunden via Custom-HTML-Modul "Home CSS Loader"
   (Position: debug, nur Startseite)
   --------------------------------------------------------------------
   Inhalt:
   16)  HERO (Frame-Layer, Speed-Lines, 10° Diagonal-Cut SVG)
   16b) Hero Telemetry HUD
   16c) Hero Content Reveal (Trennlinie + Frosted Glass)
   16d) Hero Mobile/Tablet
   16e) Hero Animations
   16f) Hero Touch-Modus (kein Scroll-Effekt)
   17)  STATS Section (verzahnt mit Hero über 10° Diagonal-Cut)
   17b) ZERTIFIZIERUNGS-BAR (DMSB · FIA · FIM)
   18)  ABOUT Section (Parallax-BG, Diagonal-Cut oben+unten, Glass-Cards)
   19)  LEISTUNGEN Section (Ice-Blue, 3 Dark-Cards mit Icons)
   --------------------------------------------------------------------
   Changelog
   2026-04-30 (1): Sektion 18 (About) hinzugefügt
   2026-04-30 (2):
     - CTA pointer-events-Sperre entfernt → Button ist klickbar sobald
       sichtbar (bei opacity 0 kann niemand draufklicken, also safe)
     - About-Overlay: rgba 0.65 → 0.40 (40% weniger)
     - About-Cut: 17.6vw → 10.6vw (Gefälle ~40% reduziert, ~6° statt 10°)
     - Cert-Bar: Layout auf flex-end umgestellt — alles rechts,
       Label in gleicher Schriftgröße wie DMSB/FIA/FIM
   2026-05-13: Body-Text-Farben auf var(--x3-ice) angehoben
     - .x3-hero-body: rgba 0.7 → var(--x3-ice)
     - .x3-about-card p: rgba 0.8 → var(--x3-ice)
     - .x3-srv-desc: rgba 0.5 → var(--x3-ice)
     - Landscape .x3-hero-body: rgba 0.75 → var(--x3-ice)
   ==================================================================== */


:root {
  --x3-stats-bg: #0b1a2e;
  --x3-ice:      #e8eef6;
}


/* ====================================================================
   16) HERO
   ==================================================================== */

.x3-hero-wrap { position: relative; height: 500vh; }
.x3-hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }

.x3-hero-gradient { position: absolute; inset: 0; background: linear-gradient(160deg, var(--x3-carbon) 0%, var(--x3-night) 50%, var(--x3-pit) 100%); z-index: 1; }

.x3-hero-frames { position: absolute; inset: 0; z-index: 2; opacity: 0; }
#x3-frame-canvas { width: 100%; height: 100%; display: block; }

.x3-speed-lines { position: absolute; inset: -10%; z-index: 3; overflow: hidden; pointer-events: none; transition: opacity 0.4s; transform: rotate(-12deg); transform-origin: center; }
.x3-speed-line { position: absolute; height: 1px; will-change: transform, opacity; animation: x3-speed-move linear infinite; }
.x3-speed-line.x3-line-white { background: linear-gradient(to right, transparent, rgba(240, 244, 248, 0.5), transparent); }
.x3-speed-line.x3-line-signal { background: linear-gradient(to right, transparent, rgba(255, 107, 53, 0.45), transparent); height: 1.5px; }
.x3-speed-line.x3-line-faint { background: linear-gradient(to right, transparent, rgba(240, 244, 248, 0.2), transparent); }

.x3-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 15, 0.55) 0%, rgba(10, 10, 15, 0.2) 40%, transparent 70%); z-index: 4; pointer-events: none; }

.x3-hero-content { position: absolute; bottom: calc(17.6vw + 4vh); left: 8vw; z-index: 5; max-width: 700px; }
.x3-hero-headline { font-family: var(--x3-font-display); font-size: clamp(56px, 10vw, 120px); letter-spacing: 0.06em; line-height: 0.9; color: var(--x3-flood); position: relative; z-index: 2; }
.x3-hero-headline em { font-style: normal; color: var(--x3-signal); }


/* ====================================================================
   16c) HERO CONTENT REVEAL
   ==================================================================== */

.x3-hero-content {
  --x3-reveal-rule:  0;
  --x3-reveal-text:  0;
  --x3-reveal-glass: 0;
}

.x3-hero-content::before {
  content: '';
  position: absolute;
  inset: -28px -36px;
  z-index: 1;
  background: rgba(11, 29, 51, calc(var(--x3-reveal-glass) * 0.4));
  backdrop-filter: blur(calc(var(--x3-reveal-glass) * 12px));
  -webkit-backdrop-filter: blur(calc(var(--x3-reveal-glass) * 12px));
  border: 1px solid rgba(255, 107, 53, calc(var(--x3-reveal-glass) * 0.18));
  border-radius: 4px;
  opacity: var(--x3-reveal-glass);
  pointer-events: none;
}

.x3-hero-content::after {
  content: '';
  position: absolute;
  bottom: -29px;
  left: -37px;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid var(--x3-signal);
  border-left: 2px solid var(--x3-signal);
  z-index: 2;
  opacity: var(--x3-reveal-glass);
  pointer-events: none;
}

.x3-hero-headline,
.x3-hero-rule,
.x3-hero-sub,
.x3-hero-body,
.x3-hero-cta { position: relative; z-index: 2; }

.x3-hero-rule {
  display: block;
  width: 280px;
  max-width: 70%;
  height: 2px;
  margin: 22px 0 18px;
  background: var(--x3-signal);
  transform-origin: left center;
  transform: scaleX(var(--x3-reveal-rule));
  box-shadow: 0 0 12px rgba(255, 107, 53, calc(var(--x3-reveal-rule) * 0.4));
}

.x3-hero-sub,
.x3-hero-body,
.x3-hero-cta {
  opacity: var(--x3-reveal-text);
  transform: translateY(calc((1 - var(--x3-reveal-text)) * 16px));
}
.x3-hero-sub  { font-family: var(--x3-font-display); font-size: clamp(16px, 2.5vw, 22px); color: var(--x3-flood); letter-spacing: 0.08em; }
.x3-hero-body { font-family: var(--x3-font-body); font-size: 16px; font-weight: 300; color: var(--x3-ice); line-height: 1.7; margin-top: 14px; max-width: 480px; }
.x3-hero-cta  { display: inline-block; margin-top: 24px; padding: 14px 40px; background: var(--x3-signal); color: var(--x3-carbon); font-family: var(--x3-font-display); font-size: 18px; letter-spacing: 0.08em; border-radius: 4px; text-decoration: none; transition: transform 0.2s, box-shadow 0.3s; }
.x3-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 107, 53, 0.35); color: var(--x3-carbon); text-decoration: none; }

/* CTA pointer-events-Sperre ENTFERNT (2026-04-30).
   Bei opacity 0 (--x3-reveal-text: 0) ist der Button unsichtbar und
   kann nicht angeklickt werden. Sobald der Reveal ihn einblendet,
   ist er sofort klickbar — kein Warten auf data-reveal-text-done nötig. */


/* ====================================================================
   Scroll-Hint, Frame-Counter, Progress-Bar
   ==================================================================== */

.x3-scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 6; font-family: var(--x3-font-mono); font-size: 11px; color: rgba(240, 244, 248, 0.2); letter-spacing: 0.15em; animation: x3-pulse-hint 2s ease-in-out infinite; transition: opacity 0.4s; }
.x3-frame-counter { display: none; }
.x3-frame-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255, 107, 53, 0.08); z-index: 7; }
.x3-frame-progress-fill { height: 100%; width: 0%; background: var(--x3-signal); transition: width 0.05s linear; }


/* ====================================================================
   HERO-CUT — 10° Vollbreiten-Diagonale (SVG-basiert)
   ==================================================================== */

.x3-hero-cut {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 17.6vw;
  z-index: 8;
  pointer-events: none;
}
.x3-hero-cut svg { display: block; width: 100%; height: 100%; }
.x3-hero-cut polygon { fill: var(--x3-stats-bg); }

@media (min-width: 2400px) {
  .x3-hero-cut { height: 400px; }
  .x3-hero-content { bottom: calc(400px + 4vh); }
}


/* ====================================================================
   16b) HERO TELEMETRY HUD
   ==================================================================== */

.x3-hud { position: absolute; top: 110px; right: 40px; z-index: 6; padding: 16px 20px 14px; min-width: 220px; background: rgba(11, 29, 51, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 107, 53, 0.15); border-radius: 4px; opacity: 0; transform: translateY(-8px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); pointer-events: none; }
.x3-hud.is-active { opacity: 1; transform: translateY(0); }

.x3-hud::before, .x3-hud::after { content: ''; position: absolute; width: 12px; height: 12px; border-color: var(--x3-signal); }
.x3-hud::before { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.x3-hud::after { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }

.x3-hud-header { display: flex; justify-content: space-between; align-items: center; font-family: var(--x3-font-mono); font-size: 9px; letter-spacing: 0.18em; color: var(--x3-signal); margin-bottom: 10px; }
.x3-hud-status { display: inline-flex; align-items: center; gap: 6px; }
.x3-hud-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--x3-signal); animation: x3-hud-blink 1.4s ease-in-out infinite; }

.x3-hud-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; font-family: var(--x3-font-mono); font-size: 10px; letter-spacing: 0.06em; border-top: 1px dashed rgba(255, 107, 53, 0.1); }
.x3-hud-row:first-of-type { border-top: none; padding-top: 0; }
.x3-hud-label { color: rgba(240, 244, 248, 0.4); }
.x3-hud-value { color: var(--x3-flood); font-weight: 500; }
.x3-hud-value.is-signal { color: var(--x3-signal); }


/* ====================================================================
   16d) HERO RESPONSIVE
   ==================================================================== */

@media (max-width: 992px) {
  .x3-hero-content { bottom: calc(17.6vw + 3vh); left: 6vw; max-width: 80%; }
  .x3-hero-content::before { inset: -20px -24px; }
  .x3-hero-content::after  { bottom: -21px; left: -25px; }
  .x3-hud { top: 80px; right: 20px; min-width: 190px; padding: 12px 16px 10px; }
}

@media (max-width: 640px) {
  .x3-hero-content { bottom: calc(17.6vw + 4vh); left: 24px; right: 24px; }
  .x3-hero-content::before { inset: -16px -16px; }
  .x3-hero-content::after  { bottom: -17px; left: -17px; }
  .x3-hero-body { font-size: 14px; margin-top: 10px; }
  .x3-hero-cta { padding: 12px 28px; font-size: 16px; margin-top: 18px; }
  .x3-hero-rule { width: 60%; }
  .x3-hud { display: none; }
}

/* === Querformat-Smartphone (Landscape, max-height: 600px) ===
   Im Querformat:
   - Sticky-Box ist nur ~360–500px hoch
   - Header sitzt absolut bei y=0 mit ~50px Höhe
   - .x3-hero-cut (Diagonale unten rechts) ist 17.6vw hoch
   Lösung: Content TOP-aligned, direkt unter dem Header.
   Box auf max 50% Viewport-Breite (linke Hälfte) — Hero-BG
   bleibt rechts sichtbar (Medical Car / Strecke).
   Body bleibt drin (passt in die schmale Box mit 1–3 Zeilen).
   Neu 2026-05-08, verstärkt 2026-05-09 (TOP-Anchor + 50% Box). */
@media (orientation: landscape) and (max-height: 600px) {
  .x3-hero-content {
    top: 60px;          /* knapp unter Header (~50–56px hoch) */
    bottom: auto;
    left: 4vw;
    right: auto;        /* NICHT stretchen — Box-Breite via max-width */
    max-width: 50%;     /* maximal halbe Viewport-Breite */
  }
  .x3-hero-headline {
    font-size: clamp(24px, 6.5vh, 44px);
    line-height: 0.92;
  }
  .x3-hero-rule {
    width: 140px;
    max-width: 60%;
    margin: 8px 0 6px;
  }
  .x3-hero-sub {
    font-size: 11px;
    letter-spacing: 0.06em;
    line-height: 1.3;
  }
  .x3-hero-body {
    font-size: 11px;
    font-weight: 300;
    line-height: 1.4;
    margin-top: 6px;
    max-width: 100%;
    color: var(--x3-ice);
  }
  .x3-hero-cta {
    padding: 8px 20px;
    font-size: 12px;
    margin-top: 10px;
    letter-spacing: 0.08em;
  }
  /* HUD + Frame-Counter + Scroll-Hint raus — kein Platz */
  .x3-hud,
  .x3-scroll-hint,
  .x3-frame-counter,
  .x3-frame-progress { display: none; }
  /* Glass-Pseudo enger (Akzentwinkel sitzt entsprechend kompakt) */
  .x3-hero-content::before { inset: -8px -12px; }
  .x3-hero-content::after  { bottom: -9px; left: -13px; }
}


/* ====================================================================
   16e) HERO ANIMATIONS
   ==================================================================== */

@keyframes x3-speed-move { 0% { transform: translateX(-100%); } 100% { transform: translateX(200vw); } }
@keyframes x3-pulse-hint { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.6; } }
@keyframes x3-hud-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(255, 107, 53, 0.6); } 50% { opacity: 0.4; box-shadow: 0 0 2px rgba(255, 107, 53, 0.2); } }

@media (prefers-reduced-motion: reduce) {
  .x3-speed-line, .x3-scroll-hint, .x3-hud-dot { animation: none; }
  .x3-frame-progress-fill, .x3-hud, .x3-hero-rule, .x3-hero-sub, .x3-hero-body, .x3-hero-cta { transition: none; }
}


/* ====================================================================
   16f) HERO TOUCH-MODUS
   ==================================================================== */

@media (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  .x3-hero-wrap { height: 100vh !important; }
  .x3-hero-sticky { position: relative; }
  .x3-hero-frames { transition: opacity 1.5s ease-out; }
  .x3-speed-lines { opacity: 0.6; }
  .x3-scroll-hint,
  .x3-frame-progress { display: none; }
  .x3-hud { transition-delay: 0.8s; }
}


/* ====================================================================
   17) STATS Section
   ==================================================================== */

.x3-stats {
  position: relative;
  background: var(--x3-stats-bg);
  padding: 80px 60px 40px;
  min-height: 60vh;
  z-index: 1;
}

.x3-stats-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.x3-stats-meta {
  font-family: var(--x3-font-mono);
  font-size: 11px;
  color: var(--x3-signal);
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.x3-stats-meta::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--x3-signal);
}

.x3-stats-h2 {
  font-family: var(--x3-font-display);
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: var(--x3-flood);
  margin-bottom: 64px;
}
.x3-stats-h2 em {
  font-style: normal;
  color: var(--x3-signal);
}

.x3-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.x3-stat {
  position: relative;
  padding: 0 24px;
  border-left: 1px solid rgba(240, 244, 248, 0.1);
}
.x3-stat:first-child {
  border-left: none;
  padding-left: 0;
}

.x3-stat-num {
  font-family: var(--x3-font-display);
  font-size: clamp(80px, 11vw, 160px);
  line-height: 0.85;
  color: var(--x3-flood);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.x3-stat-counter { display: inline-block; }
.x3-stat-num em {
  font-style: normal;
  color: var(--x3-signal);
  font-size: 0.45em;
  margin-left: 6px;
}

.x3-stat-divider {
  width: 40px;
  height: 2px;
  background: var(--x3-signal);
  margin: 16px 0;
}

.x3-stat-label {
  font-family: var(--x3-font-display);
  font-size: clamp(16px, 1.4vw, 22px);
  color: var(--x3-flood);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.x3-stat-sub {
  font-family: var(--x3-font-mono);
  font-size: 11px;
  color: rgba(240, 244, 248, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .x3-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
  .x3-stat:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 600px) {
  .x3-stats { padding: 60px 24px 32px; }
  .x3-stats-grid { grid-template-columns: 1fr; }
  .x3-stat { border-left: none; padding-left: 0; padding-bottom: 32px; }
}


/* ====================================================================
   17b) ZERTIFIZIERUNGS-BAR
   ==================================================================== */

.x3-certs {
  background: var(--x3-stats-bg);
  padding: 24px 60px 80px;
}

.x3-certs-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(240, 244, 248, 0.08);
}

.x3-certs-label {
  font-family: var(--x3-font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: rgba(240, 244, 248, 0.45);
  text-transform: uppercase;
}

.x3-certs-list { display: flex; align-items: center; gap: 48px; }

.x3-cert {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--x3-font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--x3-flood);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}
.x3-cert::before {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 10px 10px;
  border-color: transparent transparent var(--x3-signal) transparent;
  transition: transform 0.3s;
}
.x3-cert:hover { color: var(--x3-signal); text-decoration: none; }
.x3-cert:hover::before { transform: translateX(2px) translateY(-2px); }

@media (max-width: 600px) {
  .x3-certs { padding: 24px 24px 60px; }
  .x3-certs-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 28px; }
  .x3-certs-list { gap: 28px; }
}


/* ====================================================================
   18) ABOUT Section
   ==================================================================== */

.x3-about {
  position: relative;
  min-height: 100vh;
  background-image: url('/images/gallery/IMG_20230818_152355.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.x3-about::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 20, 0.40);
  z-index: 1;
}

.x3-about-cut {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 10.6vw;
  z-index: 2;
  pointer-events: none;
}
.x3-about-cut svg { display: block; width: 100%; height: 100%; }
.x3-about-cut polygon { fill: var(--x3-stats-bg); }

@media (min-width: 2400px) {
  .x3-about-cut { height: 240px; }
}

.x3-about-content {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(10.6vw + 60px) 60px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.x3-about-meta {
  grid-column: 1 / -1;
  margin-bottom: 16px;
}
.x3-about-label {
  font-family: var(--x3-font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--x3-signal);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.x3-about-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--x3-signal);
}
.x3-about-h2 {
  font-family: var(--x3-font-display);
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--x3-flood);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.x3-about-h2 em {
  font-style: normal;
  color: var(--x3-signal);
}

.x3-about-card {
  background: rgba(11, 29, 51, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 107, 53, 0.12);
  border-radius: 4px;
  padding: 36px 32px;
  position: relative;
}
.x3-about-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--x3-signal);
  border-left: 2px solid var(--x3-signal);
}
.x3-about-card h3 {
  font-family: var(--x3-font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--x3-signal);
  margin-bottom: 16px;
}
.x3-about-card p {
  font-family: var(--x3-font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--x3-ice);
}
.x3-about-card p + p {
  margin-top: 14px;
}
.x3-about-card a {
  color: var(--x3-signal);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 53, 0.3);
  transition: border-color 0.3s;
}
.x3-about-card a:hover {
  border-color: var(--x3-signal);
}

@media (max-width: 900px) {
  .x3-about-content {
    grid-template-columns: 1fr;
    padding: calc(10.6vw + 40px) 32px 80px;
  }
}
@media (max-width: 600px) {
  .x3-about-content {
    padding: calc(10.6vw + 32px) 20px 60px;
  }
  .x3-about-card { padding: 28px 24px; }
}

@media (hover: none) and (pointer: coarse) {
  .x3-about {
    background-attachment: scroll;
  }
}


/* ====================================================================
   18b) ABOUT — Bottom Cut (Übergang About → Leistungen)
   --------------------------------------------------------------------
   Sehr flacher Cut (~2°, 4vw). Links hoch, nach rechts flach
   auslaufend. Polygon (0,0)(100,100)(0,100) = linkes Dreieck.
   Fill: --x3-ice (Ice-Blue der Leistungen-Sektion).
   Neu 2026-04-30.
   ==================================================================== */

.x3-about-cut-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 4vw;
  z-index: 2;
  pointer-events: none;
}
.x3-about-cut-bottom svg { display: block; width: 100%; height: 100%; }
.x3-about-cut-bottom polygon { fill: var(--x3-ice); }

@media (min-width: 2400px) {
  .x3-about-cut-bottom { height: 96px; }
}


/* ====================================================================
   19) LEISTUNGEN Section — Ice-Blue mit 3 Dark-Cards
   --------------------------------------------------------------------
   Erster heller Kontrast nach dem dunklen Hero→Stats→About-Block.
   3 Cards mit Inline-SVG-Icons, Hover-Effekt (Lift + Glow +
   Akzentwinkel-Wachstum + Shine-Sweep + Icon-Scale + Arrow-FadeIn).
   Neu 2026-04-30.
   ==================================================================== */

.x3-services {
  position: relative;
  background: var(--x3-ice);
  padding: 80px 60px 100px;
}

.x3-services-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.x3-services-meta {
  font-family: var(--x3-font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--x3-signal);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.x3-services-meta::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--x3-signal);
}

.x3-services-h2 {
  font-family: var(--x3-font-display);
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--x3-night);
  margin-bottom: 48px;
}
.x3-services-h2 em {
  font-style: normal;
  color: var(--x3-signal);
}

/* --- Card Grid --- */
.x3-srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- Card Base --- */
.x3-srv-card {
  background: var(--x3-night);
  border-radius: 4px;
  padding: 36px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 53, 0.08);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s;
}

/* Akzentwinkel oben-links — wächst bei Hover */
.x3-srv-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--x3-signal);
  border-left: 2px solid var(--x3-signal);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shine-Sweep (diagonaler Lichtstreifen) */
.x3-srv-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 107, 53, 0.06) 50%, transparent 60%);
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* --- Card Hover --- */
.x3-srv-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 40px rgba(11, 29, 51, 0.3),
    0 0 24px rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.3);
  text-decoration: none;
}
.x3-srv-card:hover::before {
  width: 28px;
  height: 28px;
}
.x3-srv-card:hover::after {
  left: 100%;
}

/* --- Icon --- */
.x3-srv-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.x3-srv-icon svg {
  width: 100%;
  height: 100%;
}
.x3-srv-card:hover .x3-srv-icon {
  transform: scale(1.12) translateY(-4px);
}

/* --- Title + Description --- */
.x3-srv-title {
  font-family: var(--x3-font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--x3-flood);
  margin-bottom: 12px;
}

.x3-srv-desc {
  font-family: var(--x3-font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--x3-ice);
  line-height: 1.65;
  flex: 1;
}

/* --- Arrow (fadet bei Hover ein) --- */
.x3-srv-arrow {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s;
}
.x3-srv-card:hover .x3-srv-arrow {
  opacity: 1;
  transform: translateY(0);
}
.x3-srv-arrow-line {
  width: 28px;
  height: 1.5px;
  background: var(--x3-signal);
  position: relative;
}
.x3-srv-arrow-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid var(--x3-signal);
  border-right: 1.5px solid var(--x3-signal);
  transform: rotate(45deg);
}

/* --- Leistungen Responsive --- */
@media (max-width: 900px) {
  .x3-srv-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .x3-services { padding: 60px 24px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .x3-srv-card,
  .x3-srv-card::before,
  .x3-srv-card::after,
  .x3-srv-icon,
  .x3-srv-arrow { transition: none; }
  .x3-srv-arrow { opacity: 1; transform: none; }
}