/* ==========================================================
   Rechtstexte (Impressum/Datenschutz) - Ueberschriften/Absaetze
   innerhalb der globalen .card (boxen.css). Analog zur alten
   "#outerBox .box h2/p"-Variante in basis.css, die dort fuer andere
   Module (Community/Activity/Dashboard, nutzen weiterhin .box) aktiv
   bleibt - hier bewusst auf .card umgestellt, siehe module/static/.
   ========================================================== */
#outerBox .card h2 { margin: 24px 0 8px; font-size: 16px; color: var(--text-primary); }
#outerBox .card h2:first-child { margin-top: 0; }
#outerBox .card p { color: var(--text-muted); line-height: 1.6; margin: 0 0 8px; }

/* ==========================================================
   "Hinter den Kulissen" (module/static/technik.php)
   ========================================================== */

/* Hero-Kopf: eigener Header statt der generischen #headerBox, damit die
   Seite optisch naeher an der Landing-Page (Badge, Akzent-Farbe im
   Titel) ist statt an den reinen Rechtstexten (Impressum/DSGVO). */
.tech-hero {
  position: relative;
  padding: 34px 28px 30px;
  margin-bottom: 18px;
  border-radius: var(--radius-lg, 12px);
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}
.tech-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.tech-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3.4vw, 32px);
  color: var(--text-primary);
}
.tech-accent { color: var(--accent); }
.tech-hero .sub {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 4px;
}
.tech-hero .back-btn {
  position: absolute;
  top: 24px;
  right: 24px;
}
@media (max-width: 560px) {
  .tech-hero .back-btn { position: static; margin-top: 14px; }
}

/* Scroll-Reveal: dezentes Einblenden der Karten beim Runterscrollen,
   passend zum bewegungsreicheren Look der Landing-Page - hier bewusst
   subtil (nur Fade + leichter Versatz), damit reine Text-/Infoseite
   nicht ueberladen wirkt. */
.tech-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.tech-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .tech-reveal { opacity: 1; transform: none; transition: none; }
}

.tech-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  /* Kein max-width mehr: die Karte ist wesentlich breiter als 68ch,
     dadurch stand der Absatz nur links als schmale Spalte im Raum statt
     die Breite der Karte zu nutzen. */
}

.tech-section-lead {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0 0 16px;
}

/* Feature-Uebersicht: alle Module auf einen Blick */
.tech-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.tech-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.tech-feature:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-raised));
  transform: translateY(-2px);
}
.tech-feature-ic { font-size: 20px; }
.tech-feature h3 { margin: 2px 0 0; font-size: 14px; color: var(--text-primary); }
.tech-feature p { margin: 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

/* Zwei-Dienste-Visual: Webseite <-> Hintergrunddienst */
.tech-duo {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}
.tech-duo-box {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.tech-duo-box:hover { border-color: var(--accent); transform: translateY(-2px); }
.tech-duo-box .tech-duo-ic { font-size: 22px; }
.tech-duo-box strong { color: var(--text-primary); font-size: 15px; }
.tech-duo-box span { color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.tech-duo-arrow {
  flex: 0 0 auto;
  align-self: center;
  font-size: 22px;
  color: var(--accent);
}
@media (max-width: 620px) {
  .tech-duo-arrow { transform: rotate(90deg); }
}

/* Ereignis-Fluss (Stream-Start-Erkennung) */
.tech-flow { display: flex; flex-direction: column; gap: 16px; }
.tech-flow-step { display: flex; gap: 14px; align-items: flex-start; }
.tech-flow-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.tech-flow-step h3 { margin: 0 0 3px; font-size: 14.5px; color: var(--text-primary); }
.tech-flow-step p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* Prinzipien-Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.tech-grid .tech-card {
  padding: 14px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
  /* .tech-card wird an manchen Stellen (z.B. DSGVO-Schnellzugriff) als <a>
     statt <div> verwendet - Linkfarbe/-unterstreichung hier neutralisieren,
     damit es unabhaengig vom Element gleich aussieht. */
  text-decoration: none;
}
.tech-grid .tech-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tech-card .tech-ic { font-size: 21px; }
.tech-card h3 { margin: 0; font-size: 14.5px; color: var(--text-primary); }
.tech-card p { margin: 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

/* .card ist selbst ein Flex-Container (flex-direction: column), dessen
   Kinder standardmaessig ueber die volle Breite gestreckt werden
   (align-items: stretch). Damit Ueberschrift/Absatz/Buttons hier
   wirklich zentriert stehen (nicht nur der Text linksbuendig in voller
   Breite), wird zusaetzlich align-items: center gesetzt statt sich
   allein auf "margin: 0 auto" am p zu verlassen. */
.tech-closing {
  text-align: center;
  align-items: center;
}
.tech-closing h2 { width: 100%; }
.tech-closing p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 58ch;
  width: 100%;
  margin: 0 auto 16px;
  line-height: 1.6;
}
.tech-closing-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
