/* ============================================================
   geckIT Startseite — seitenspezifische Komponenten-Styles
   Quelle: _entwurf/startseite-2026-a.html (Entwurf A, abgenommen).
   Nur auf der Startseite eingebunden (zusaetzlich zu /css/site.css).
   Token-Werte als :root-Variablen, damit diese plain-CSS-Datei
   ohne Tailwind-Build funktioniert. Die Tailwind-Utilities
   (text-ink, bg-bg-soft, border-line, text-bg/70 ...) kommen aus
   site.css — die noetigen Tokens stehen dort additiv im @theme.
   ============================================================ */

:root {
  --color-primary: #0d7c66;
  --color-primary-deep: #0a6354;
  --color-primary-bright: #3cb79a;
  --color-accent: #3b3b98;
  --color-bg: #faf8f5;
  --color-bg-soft: #f1ede6;
  --color-ink: #1c1917;
  --color-ink-soft: #57534e;
  --color-line: #e5e0d7;
  --color-white: #ffffff;
  --font-display: "Space Grotesk", sans-serif;
  --font-sans: "DM Sans", sans-serif;
}

/* ── EINE Button-Formsprache: rounded-lg, Space Grotesk 600 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 1rem 1.6rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-deep);
}
.btn-outline {
  border: 2px solid var(--color-ink);
  color: var(--color-ink);
}
.btn-outline:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}
.btn-inverse {
  background: var(--color-white);
  color: var(--color-primary-deep);
}
.btn-inverse:hover {
  background: var(--color-ink);
  color: var(--color-white);
}

/* Unterstrich-Animation fuer Textlinks (additiv, rein CSS) */
.link-grow {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
  padding-bottom: 2px;
}
.link-grow:hover {
  background-size: 100% 1.5px;
}

/* ── Leistungen: Sticky-Stack-Karten ── */
.ld-scene {
  position: relative;
}
.ld-card {
  position: sticky;
  border-radius: 28px;
  padding: 40px 44px;
  margin-bottom: 20px;
  min-height: 420px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
  box-shadow:
    0 -8px 0 rgba(28, 25, 23, 0.02),
    0 24px 48px -28px rgba(28, 25, 23, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.ld-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ld-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 8px 20px -10px rgba(0, 0, 0, 0.25),
    0 24px 48px -20px rgba(0, 0, 0, 0.18);
  background: rgba(250, 248, 245, 0.08);
  transform: translateZ(0);
}
.ld-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.ld-card:hover .ld-visual img {
  transform: scale(1.04);
}
.ld-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(250, 248, 245, 0.12);
  pointer-events: none;
}
.ld-card-2 .ld-visual,
.ld-card-4 .ld-visual {
  box-shadow:
    0 8px 20px -10px rgba(28, 25, 23, 0.18),
    0 24px 48px -20px rgba(28, 25, 23, 0.12);
}
.ld-card-2 .ld-visual::after,
.ld-card-4 .ld-visual::after {
  border-color: rgba(28, 25, 23, 0.08);
}
.ld-card-1 {
  background: #0d7c66;
  color: #faf8f5;
  top: 100px;
}
.ld-card-2 {
  background: #f0ece6;
  color: #1c1917;
  top: 120px;
}
.ld-card-3 {
  background: #3b3b98;
  color: #faf8f5;
  top: 140px;
}
.ld-card-4 {
  background: #fcfaf2;
  color: #1c1917;
  top: 160px;
  border: 1px solid rgba(28, 25, 23, 0.08);
}
.ld-card-5 {
  background: #1c1917;
  color: #faf8f5;
  top: 180px;
}
.ld-card-6 {
  background: #10a37f;
  color: #faf8f5;
  top: 200px;
}
.ld-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
}
.ld-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.ld-desc {
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.85;
  max-width: 480px;
  margin-bottom: 24px;
}
.ld-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ld-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(250, 248, 245, 0.15);
  font-size: 12px;
  font-weight: 500;
}
.ld-card-2 .ld-chip,
.ld-card-4 .ld-chip {
  background: rgba(28, 25, 23, 0.08);
}
.ld-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(250, 248, 245, 0.15);
}
.ld-card-2 .ld-meta,
.ld-card-4 .ld-meta {
  border-top-color: rgba(28, 25, 23, 0.1);
}
.ld-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.ld-price small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 2px;
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .ld-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    min-height: 0;
    gap: 20px;
  }
  .ld-visual {
    aspect-ratio: 16 / 10;
    order: -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ld-card:hover .ld-visual img {
    transform: none;
  }
}

/* Hero-Portrait: Tiefe ueber versetzten Rahmen statt Schlagschatten-Inflation */
.portrait-frame {
  position: relative;
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 2px solid var(--color-primary);
  border-radius: 0.75rem;
  opacity: 0.35;
  pointer-events: none;
}

/* FAQ */
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary svg {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary svg {
  transform: rotate(45deg);
}

/* ── Hero-Entrance: Mask-Slide (rein CSS, LCP-sicher, nur unter html.js) ── */
.hl-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hl-line {
  display: inline-block;
}
html.js .hl-line {
  animation: hl-rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
html.js .hl-mask-2 .hl-line {
  animation-delay: 0.14s;
}
html.js .hero-lead {
  animation: hero-lead-in 0.6s ease-out 0.3s both;
}
@keyframes hl-rise {
  from {
    transform: translateY(130%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes hero-lead-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero-H1: Google- + ChatGPT-Markenfarben ── */
.hl-brand {
  position: relative;
  display: inline-block;
  font-style: normal;
}
.hl-google .g-1 {
  color: #4285f4;
}
.hl-google .g-2 {
  color: #ea4335;
}
.hl-google .g-3 {
  color: #fbbc05;
}
.hl-google .g-4 {
  color: #4285f4;
}
.hl-google .g-5 {
  color: #34a853;
}
.hl-google .g-6 {
  color: #ea4335;
}
.hl-chatgpt {
  color: #a8a29e;
}
.h4-dot {
  color: var(--color-primary);
}
.hl-brand:hover {
  transform: scale(1.02);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── Deutschland-Radar-Karte (Region-Block) ── */
@keyframes radar-expand {
  0% {
    r: 0;
    opacity: 0.2;
  }
  100% {
    r: 220;
    opacity: 0;
  }
}
.radar-ring {
  fill: none;
  stroke: #3b3b98;
  stroke-width: 1;
  opacity: 0;
  animation: radar-expand 5s ease-out infinite;
}
.radar-ring:nth-child(2) {
  animation-delay: 1.7s;
}
.radar-ring:nth-child(3) {
  animation-delay: 3.4s;
}
.topo-contour {
  fill: none;
  stroke: #0d7c66;
  stroke-linejoin: round;
}
.radar-city {
  fill: #0d7c66;
  transition:
    fill 0.3s ease,
    r 0.3s ease,
    opacity 0.3s ease;
}
.radar-city-label {
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.radar-city-minor {
  fill: #0d7c66;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.radar-city-label-minor {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
@keyframes home-glow {
  0%,
  100% {
    opacity: 0.12;
    r: 18;
  }
  50% {
    opacity: 0.28;
    r: 22;
  }
}
.detmold-glow {
  fill: #3b3b98;
  opacity: 0.18;
  animation: home-glow 4s ease-in-out infinite;
}
.city-group {
  cursor: pointer;
}
.city-group:hover .radar-city {
  r: 7;
}
@keyframes hover-ping {
  0% {
    r: 5;
    opacity: 0.4;
  }
  100% {
    r: 30;
    opacity: 0;
  }
}
.city-ping {
  fill: none;
  stroke: #0d7c66;
  stroke-width: 1.5;
  opacity: 0;
  pointer-events: none;
}
.city-group:hover .city-ping {
  animation: hover-ping 0.8s ease-out forwards;
}
.city-connection {
  stroke: #0d7c66;
  stroke-width: 1;
  stroke-dasharray: 4 3;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.city-group:hover .city-connection {
  opacity: 0.35;
}
/* Dim-Effekt: gehoverte Stadt hervorheben, Rest abdunkeln */
.region-map:has(.city-group:hover) .city-group:not(:hover) .radar-city,
.region-map:has(.city-group:hover) .city-group:not(:hover) .radar-city-label {
  opacity: 0.25;
}
.region-map:has(.city-group:hover) .city-group:not(:hover) .radar-city-minor,
.region-map:has(.city-group:hover)
  .city-group:not(:hover)
  .radar-city-label-minor {
  opacity: 0.15;
}

/* Base-Typo + Focus (von Entwurf A @layer base, hier plain) */
.font-home h1,
.font-home h2,
.font-home h3 {
  font-family: var(--font-display);
}
@media (prefers-reduced-motion: reduce) {
  .ld-card,
  .hl-line,
  .hero-lead,
  .radar-ring,
  .detmold-glow,
  .city-ping {
    animation: none !important;
    transition: none !important;
  }
}
