/* ============================================================
   ÜBER UNS — eigene Bausteine
   Angelegt 16.09.2026.

   Die Seite hatte vorher nur die allgemeinen Bausteine aus
   fif-base.css (.page-hero, .content, .team-grid, .callout) und
   war dadurch eine Textwand: ein Hero mit einer Zeile, zwei lange
   Absätze grauer Schrift über die volle Breite, zwei
   Buchstaben-Kacheln als "Team". Eine Seite über Menschen ohne
   etwas zum Ansehen.

   Was hier dazukommt und WARUM:

   .uu-hero-*     Der Hero bekommt Kennzahlen und einen zarten
                  technischen Hintergrund, damit er nicht als
                  leere dunkle Fläche dasteht.
   .uu-fakten     Textspalte auf lesbare Breite (~62 Zeichen)
                  plus Faktenkasten. 900 px Absatzbreite wie in
                  fif-base.css sind rund 105 Zeichen pro Zeile -
                  das Auge verliert die Zeile.
   .uu-merkmal    Vier Karten mit dem, was FiF-IT unterscheidet.
   .uu-karte      Die Technik-Grafik (reines SVG, kein Bild).
   .uu-person     Team-Karten mit Platz für ein Foto, das noch
                  nicht existiert - siehe .uu-person-bild.

   Geladen wird die Datei von ueber-uns.php über $seitenCss-Ersatz;
   die Reihenfolge ist fif-base.css -> diese Datei.
   ============================================================ */

/* ==================== HERO ==================== */
.uu-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 0;
  border-bottom: 1px solid var(--border);
}

/* Zarter technischer Hintergrund: Punktraster plus zwei
   Lichtschleier. Reines CSS, kein Bild - lädt also nichts nach
   und kostet kein Byte Übertragung. */
.uu-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(120, 200, 255, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
.uu-hero::after {
  content: '';
  position: absolute;
  top: -140px; right: -120px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(0, 229, 168, 0.10), transparent 65%);
  pointer-events: none;
}

.uu-hero-inner { position: relative; z-index: 1; max-width: 820px; }

.uu-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.uu-kicker::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(0, 229, 168, 0.4), transparent);
}

.uu-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 22px;
}
/* Das Zahlwort ist das Argument - es darf man sehen. */
.uu-hero h1 .zahl { color: var(--accent); white-space: nowrap; }

/* "Einfach" wird bei FiF-IT bewusst gross geschrieben - es ist Teil
   des Firmenspruchs ("Weil es Einfach funktioniert."). Im Fuss steht
   es in der Akzentfarbe; hier genauso, damit der Bezug sichtbar ist
   und nicht wie ein Tippfehler aussieht. */
.uu-einfach { color: var(--accent); }

.uu-hero .uu-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0;
}

/* ==================== KENNZAHLEN ==================== */
/* Die stärksten Tatsachen standen bisher in 10-px-Grau ganz unten
   auf der Seite. Jetzt stehen sie im Hero. */
/* 16.09.2026: von vier Kennzahlen sind zwei geblieben - Geraete-
   und Standortzahlen sollen nicht auf der Seite stehen. Zwei Kacheln
   in einem Vierer-Raster haetten wie ein Fehler gewirkt, deshalb
   jetzt zwei Spalten mit mehr Luft. */
.uu-zahlen {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 56px;
  max-width: 820px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
.uu-zahl { padding: 30px 28px 34px; background: var(--bg-base); }
.uu-zahl b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.uu-zahl span {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* ==================== WER WIR SIND ==================== */
.uu-fakten {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}
/* ~62 Zeichen pro Zeile. Das ist die Spanne, in der man einen
   Absatz noch mühelos liest. */
.uu-text > p {
  color: var(--text-secondary);
  font-size: 1.06rem;
  line-height: 1.75;
  max-width: 34em;
  margin: 0 0 20px;
}
.uu-text > p:last-child { margin-bottom: 0; }
.uu-text strong { color: var(--text-primary); font-weight: 600; }

/* Ein Satz, der für sich steht. */
.uu-zitat {
  margin: 36px 0 0;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, rgba(0, 229, 168, 0.05), rgba(77, 196, 255, 0.03));
  border-radius: 0 8px 8px 0;
  font-size: 1.12rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-primary);
}

.uu-kasten {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  position: sticky;
  top: 96px;
}
.uu-kasten h3 {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.uu-kasten dl { margin: 0; display: grid; gap: 16px; }
.uu-kasten dt {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.uu-kasten dd {
  margin: 3px 0 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.45;
}
.uu-kasten dd a { color: var(--accent); text-decoration: none; }
.uu-kasten dd a:hover { text-decoration: underline; }

/* ==================== WAS UNS AUSMACHT ==================== */
.uu-merkmale {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.uu-merkmal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.uu-merkmal:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.uu-merkmal-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.uu-merkmal-symbol {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 10px;
  background: rgba(0, 229, 168, 0.08);
  border: 1px solid rgba(0, 229, 168, 0.22);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.uu-merkmal-symbol svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.uu-merkmal h3 { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.uu-merkmal p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==================== TECHNIK-GRAFIK ==================== */
/* Statt eines Fotos, das es nicht gibt: ein Schaubild dessen, was
   bei einer betreuten Kanzlei tatsächlich unter Beobachtung steht.
   Reines SVG mit viewBox - skaliert bis 320 px herunter, ohne
   nachzuladen, und bleibt in jeder Auflösung scharf. */
.uu-karte {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 28px 28px;
  margin-top: 8px;
  overflow: hidden;
}

/* Das Schaubild: drei Spalten (Kunde | Verbindung | wir), die auf
   schmalen Schirmen zu einer werden. Bewusst HTML statt SVG - ein
   SVG skaliert als Ganzes und wird auf dem Handy unlesbar klein,
   HTML bricht um und behaelt die Schriftgroesse. */
.uu-schema {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.uu-schema-gruppe {
  border: 1px solid rgba(120, 200, 255, 0.14);
  background: rgba(120, 200, 255, 0.03);
  border-radius: 14px;
  padding: 22px;
}
.uu-schema-gruppe-eigen {
  border-color: rgba(0, 229, 168, 0.20);
  background: rgba(0, 229, 168, 0.035);
}
.uu-schema-titel {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.uu-schema-gruppe-eigen .uu-schema-titel { color: var(--accent); }

.uu-schema-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.uu-schema-el {
  background: var(--bg-card);
  border: 1px solid rgba(120, 200, 255, 0.14);
  border-radius: 9px;
  padding: 13px 16px;
  min-width: 0;
}
.uu-schema-gruppe-eigen .uu-schema-el { border-color: rgba(0, 229, 168, 0.18); }
/* Ein Eintrag, der die ganze Breite der Gruppe einnimmt. */
.uu-schema-el-weit { grid-column: 1 / -1; }
.uu-schema-el b {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.uu-schema-el span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
/* Der beA-Eintrag verweist auf die eigene Ampel-Seite. */
.uu-schema-el span a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.uu-schema-el span a:hover { color: #00ffbe; }
/* Der beA-Eintrag ist der wichtigste im linken Kasten - er darf
   sich abheben. */
.uu-schema-gruppe:not(.uu-schema-gruppe-eigen) .uu-schema-el-weit {
  background: rgba(0, 229, 168, 0.06);
  border-color: rgba(0, 229, 168, 0.22);
}
.uu-schema-gruppe:not(.uu-schema-gruppe-eigen) .uu-schema-el-weit b { color: var(--accent); }

/* Verbindung zwischen den Gruppen. */
.uu-schema-mitte {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 6px;
}
.uu-schema-strich {
  flex: 1 1 auto;
  width: 1px;
  min-height: 24px;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 168, 0.5), transparent);
}
.uu-schema-marke {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}
.uu-schema-marke-akzent { color: var(--accent); }
.uu-karte-fuss {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==================== TEAM ==================== */
.uu-personen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.uu-person {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: border-color 0.25s;
}
.uu-person:hover { border-color: var(--border-strong); }

/* Der Platz für ein Portrait, das noch nicht existiert.
   OHNE Foto: Monogramm im Farbverlauf mit Ring.
   MIT Foto: in ueber-uns.php ein <img> in diesen Kasten legen -
   das Monogramm fällt dann von allein weg (siehe :has()), und am
   Layout muss nichts geändert werden. */
.uu-person-bild {
  width: 84px; height: 84px;
  flex: none;
  position: relative;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: var(--bg-base);
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.uu-person-bild::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 168, 0.28);
}
.uu-person-bild img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.uu-person-bild:has(img) { background: none; font-size: 0; }

.uu-person h3 { margin: 0 0 5px; font-size: 1.15rem; font-weight: 600; }
.uu-person .rolle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.uu-person p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==================== ABSCHNITTE ==================== */
.uu-block { padding: 80px 0; }
.uu-block + .uu-block { padding-top: 0; }
.uu-block-kopf { max-width: 680px; margin-bottom: 36px; }
.uu-block-kopf h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 14px;
}
.uu-block-kopf p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ==================== SCHMALE SCHIRME ==================== */
@media (max-width: 1000px) {
  .uu-fakten { grid-template-columns: 1fr; gap: 36px; }
  .uu-kasten { position: static; }
}
@media (max-width: 900px) {
  /* Aus drei Spalten wird eine: die Verbindung legt sich waagerecht
     zwischen die beiden Gruppen. */
  .uu-schema { grid-template-columns: 1fr; gap: 14px; }
  .uu-schema-mitte { flex-direction: row; padding: 2px 0; }
  .uu-schema-strich {
    width: auto; height: 1px; min-height: 0; min-width: 24px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 168, 0.5), transparent);
  }
}
@media (max-width: 760px) {
  .uu-merkmale, .uu-personen { grid-template-columns: 1fr; }
  .uu-hero { padding-top: 72px; }
  .uu-block { padding: 56px 0; }
  .uu-karte { padding: 24px 16px 20px; }
}
@media (max-width: 560px) {
  .uu-schema-liste { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .uu-zahlen { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .uu-person { flex-direction: column; gap: 18px; }
  .uu-zitat { padding: 20px 20px; font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .uu-merkmal:hover { transform: none; }
}
