/* ============================================================
   STARTSEITE — nur was es sonst nirgends gibt
   Angelegt 15.09.2026.

   Bis heute stand das komplette Aussehen der Startseite als
   <style>-Block im Kopf von index.php: 55.465 Zeichen, 380
   Regelbloecke. 182 davon standen Wort fuer Wort auch in
   css/fif-base.css, das jede andere Seite laedt. Wer eine Farbe
   aendern wollte, musste das an zwei Stellen tun - und wenn er
   eine vergass, sah die Startseite anders aus als der Rest.
   Genau so ist der SOS-Knopf im News-Bereich gelb geblieben,
   als die ganze Site auf Rot umgestellt wurde.

   Jetzt laedt index.php erst fif-base.css wie jede andere Seite
   und dann diese Datei. Hier steht nur noch, was die Startseite
   wirklich allein hat: Kopfbereich mit Terminal, Laufband,
   Zahlenband, Ablauf-Abschnitt, Preisbereich, Chat-Fenster,
   Datenschutz-Hinweis - und einige wenige bewusste
   Uebersteuerungen der Basis, die unten einzeln kommentiert sind.

   REIHENFOLGE ZAEHLT. In index.php stehen die drei Stylesheets in
   dieser Reihenfolge, und sie muss so bleiben:
       1. css/fif-base.css        (die gemeinsame Grundlage)
       2. css/startseite.css      (diese Datei, uebersteuert 1.)
       3. assets/css/fif-assist.css
   ============================================================ */

:root {
  --bg-base: #0a0e14;
  --bg-elevated: #11161f;
  --bg-card: #161c27;
  --border: rgba(120, 200, 255, 0.08);
  --border-strong: rgba(120, 200, 255, 0.18);
  --text-primary: #e6edf3;
  --text-secondary: #9aa7b8;
  --text-muted: #8a97a8 /* aufgehellt 17.08.2026: #5e6b7d ergab nur 3,57:1 gegen den Seitenhintergrund, WCAG AA verlangt 4,5:1 */;
  --accent: #00e5a8;
  --accent-glow: rgba(0, 229, 168, 0.25);
  --accent-secondary: #4dc4ff;
  --warn: #ffb84d;
  /* Signalrot des Designsystems, u. a. fuer den SOS-Knopf im
     Header (11.09.2026). news/site.css hatte unter demselben
     Namen bisher ein blasseres #ff6b6b — dort ebenfalls auf
     diesen Wert gesetzt, damit die Site EIN Rot hat. */
  --danger: #ff2d2d;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --max-width: 1240px;
}

/* ==================== GOOGLE REVIEW BANNER ==================== */
.review-banner {
  margin-top: 48px;
  padding: 36px 32px;
  background: linear-gradient(135deg, rgba(0, 229, 168, 0.06), rgba(77, 196, 255, 0.04));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.review-banner::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 220px;
  background: radial-gradient(circle at right, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.review-banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.review-banner-text h3 {
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.review-banner-text p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 540px;
}
.review-stars {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 12px;
}
.review-stars svg {
  width: 22px;
  height: 22px;
  fill: #ffb84d;
}
.review-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.review-google-btn:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
}
.google-g-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .review-banner-inner { grid-template-columns: 1fr; }
  .review-banner { padding: 28px 22px; }
  .review-banner-text h3 { font-size: 1.25rem; }
}

/* ==================== HEADER ==================== */

.nav-links a:hover { color: var(--accent); }

/* ==================== HERO ==================== */
.hero {
  padding: 120px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(0, 229, 168, 0.08);
  border: 1px solid rgba(0, 229, 168, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-tagline::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-base) !important;
}

.btn-primary:hover {
  background: #00ffbe;
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-2px);
  color: var(--bg-base) !important;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary) !important;
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* Quick-Support: zwei Boxen nebeneinander unter den CTAs */
.quick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.quick-support {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px dashed rgba(120, 200, 255, 0.18);
  transition: all 0.25s;
  background: rgba(0, 229, 168, 0.02);
}
.quick-support:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  border-style: solid;
  background: rgba(0, 229, 168, 0.06);
  transform: translateY(-1px);
}
.quick-support-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 229, 168, 0.1);
  border: 1px solid rgba(0, 229, 168, 0.2);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.25s;
}
.quick-support-icon svg { width: 16px; height: 16px; transition: transform 0.3s; }
.quick-support:hover .quick-support-icon {
  background: var(--accent);
  color: var(--bg-base);
  border-color: var(--accent);
}
.quick-support-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.quick-support-text strong {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}
.quick-support-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (max-width: 700px) {
  .quick-row { grid-template-columns: 1fr; }
}

/* Hero terminal card */
.terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  position: relative;
}

/* Wrapper für Terminal-Inhalt mit rounded corners (overflow hidden) */
.terminal-header {
  border-radius: 12px 12px 0 0;
}
.terminal-body {
  border-radius: 0 0 12px 12px;
}

/* SYSTEM_STATUS-Tag inline im Terminal-Header */
.terminal-status-tag {
  margin: 0 0 0 8px;
  padding: 4px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border: 1px solid rgba(0, 229, 168, 0.4);
  background: rgba(0, 229, 168, 0.06);
}

.terminal-header {
  background: var(--bg-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a4250;
}

.terminal-dot.green { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  /* 18 statt 24 px an den Seiten (14.09.2026): die laengste Pruefzeile
     braucht 400 px, bei 24 px waren nur 393 px frei und sie lief um. */
  padding: 24px 18px;
  line-height: 1.9;
}

/* Pruefzeilen (14.09.2026): [OK] links, Text rechts daneben. Laeuft
   der Text um, steht die Fortsetzung unter dem Text und nicht unter
   dem [OK] - die neuen Namen sind laenger als der Kasten breit ist.
   Die feste Breite am Laufzeichen verhindert, dass der Text beim
   Durchlaufen der Punkte seitlich zappelt. */
.terminal-body .t-check {
  display: flex;
  align-items: baseline;
}
.terminal-body .t-check > .key { flex: none; margin-right: 1ch; }
.terminal-body .t-check > .out { flex: 1 1 auto; min-width: 0; }
.terminal-body .t-spinner { width: 2ch; text-align: center; }

.terminal-body .prompt { color: var(--accent); }
.terminal-body .out { color: var(--text-secondary); }
.terminal-body .key { color: var(--accent-secondary); }
.terminal-body .ok { color: var(--accent); }
.terminal-body .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Animated terminal lines */
.t-line {
  opacity: 1;
  transform: none;
}
.t-line.visible {
  opacity: 1;
  transform: none;
}
.t-spinner {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--warn);
  animation: t-spin 0.6s steps(3) infinite;
  width: 1.6em;
  text-align: center;
  letter-spacing: 0.05em;
}
.t-spinner.done {
  animation: none;
  color: var(--accent-secondary);
}
@keyframes t-spin {
  0%   { content: '·'; }
  33%  { content: '··'; }
  66%  { content: '···'; }
}
/* CSS only does string animation via attr/content tricks → use JS instead, see below */
.t-spacer { line-height: 0.6; }

/* ==================== PARTNER TICKER ==================== */
.ticker-section {
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-base);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ticker-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  opacity: 0.7;
}
.ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Soft fade on the edges so logos appear/disappear smoothly */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  align-items: center;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  flex-shrink: 0;
  width: 160px;
  height: 70px;
  background: #f5f7fa;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  padding: 14px 22px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  text-decoration: none !important;
  border-bottom: 1px solid var(--border) !important;
}
.ticker-item:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--accent) !important;
  box-shadow: 0 12px 32px rgba(0, 229, 168, 0.18);
}
.ticker-item img {
  max-width: 100%;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0;
  border: none;
}
.ticker-item > svg {
  display: block;
  height: 32px;
  width: auto;
  max-width: 100%;
  margin: 0;
  border: none;
}

/* Pause animation if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

@media (max-width: 540px) {
  .ticker-section { padding: 36px 0 40px; }
  .ticker-track { gap: 32px; }
  .ticker-item { width: 130px; height: 60px; padding: 10px 16px; }
  .ticker-item img { max-height: 36px; }
  .ticker-item > svg { height: 26px; }
}

/* ==================== SECTION BASE ==================== */
section { padding: 100px 0; position: relative; }

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 24px;
  max-width: 720px;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 680px;
  margin-bottom: 64px;
}

/* ==================== ABOUT ==================== */
.about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about-text strong { color: var(--text-primary); font-weight: 600; }

.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-secondary));
}

.mission-card .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.mission-card blockquote {
  font-size: 1.35rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--text-primary);
  font-weight: 300;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.stat {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s;
}

.stat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==================== SERVICES ==================== */
.services { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.service-card:hover::after { opacity: 0.4; }

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 229, 168, 0.08);
  border: 1px solid rgba(0, 229, 168, 0.2);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.service-card ul {
  list-style: none;
  position: relative;
  z-index: 1;
}

.service-card li {
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card li:last-child { border-bottom: none; }

.service-card li::before {
  content: '→';
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ==================== QUESTIONS ==================== */
.questions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.question-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s;
}

.question-item:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 229, 168, 0.03));
}

.question-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(0, 229, 168, 0.1);
  border: 1px solid rgba(0, 229, 168, 0.3);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.question-item p {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
}

/* ==================== WHY ==================== */

/* ===== Teaser: IT für Kanzleien ===== */
.kanzlei-teaser { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 760px 420px at 12% 0%, rgba(0,229,168,0.08), transparent 60%), var(--bg-base); }
.kanzlei-teaser-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px; align-items: center; }
.kanzlei-teaser-text .section-title { margin-bottom: 18px; }
.kanzlei-teaser-text p { color: var(--text-secondary); font-size: 1.1rem; max-width: 560px; margin-bottom: 30px; }
.kanzlei-teaser .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.kanzlei-card { background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 14px; padding: 30px 32px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.kanzlei-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.kanzlei-points li { position: relative; padding-left: 30px; color: var(--text-primary); font-size: 0.98rem; line-height: 1.4; }
.kanzlei-points li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--accent); font-family: var(--font-mono); font-weight: 700; }
@media (max-width: 860px) { .kanzlei-teaser-inner { grid-template-columns: 1fr; gap: 34px; } }

.why { border-top: 1px solid var(--border); }

.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.why-text strong { color: var(--accent); font-weight: 500; }

.why-callout {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(0, 229, 168, 0.05), rgba(77, 196, 255, 0.03));
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
}

.principles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.principle {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s;
}

.principle:hover { border-color: var(--border-strong); transform: translateX(4px); }

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  padding-top: 2px;
}

.principle h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.principle p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}

/* ==================== CONTACT ==================== */
.contact {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.contact-info dt {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
  margin-top: 24px;
}

.contact-info dt:first-child { margin-top: 0; }

.contact-info dd {
  color: var(--text-primary);
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.contact-info .contact-value { flex: 1; min-width: 0; }

.contact-info dd a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--border-strong);
}

.contact-info dd a:hover { border-bottom-color: var(--accent); }

/* Copy-to-clipboard button */
.copy-btn {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  padding: 0;
  margin-top: -2px;
}
.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 229, 168, 0.05);
}
.copy-btn svg {
  width: 14px;
  height: 14px;
  transition: opacity 0.15s, transform 0.15s;
}
.copy-btn .copy-feedback {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--accent);
  color: var(--bg-base);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
}
.copy-btn.copied {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 229, 168, 0.12);
}
.copy-btn.copied .copy-feedback {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.copy-btn.copied svg { opacity: 0.5; }

.contact-cta {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.contact-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ==================== MAP SECTION ==================== */
.map-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-base);
}
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: stretch;
}
.map-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.map-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.map-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.map-actions .btn { font-size: 0.9rem; padding: 11px 18px; }
.map-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  min-height: 360px;
  background: var(--bg-card);
}
.map-frame {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: none;
  display: block;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(0.95);
}
/* Platzhalter der Zwei-Klick-Karte (ergänzt 17.08.2026) */
.map-consent {
  min-height: 360px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 32px 28px;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 229, 168, 0.07), transparent 65%),
    var(--bg-card);
}
.map-consent svg { width: 34px; height: 34px; color: var(--accent); }
.map-consent-title { font-weight: 600; font-size: 1.02rem; margin: 0; }
.map-consent-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 6px;
}
@media (max-width: 960px) {
  .map-grid { grid-template-columns: 1fr; gap: 32px; }
  .map-section { padding: 60px 0; }
}

/* ==================== FOOTER ==================== */

.footer-newsletter h5 { color: var(--accent) !important; }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-updated { color: var(--text-muted); opacity: 0.7; font-size: 0.75rem; }
.footer-updated::before { content: '// '; opacity: 0.5; }
}

/* ==================== SUBMENU / MEGA MENU ==================== */
.has-submenu { position: relative; }

.nav-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

/* Invisible bridge so dropdown doesn't close when crossing the gap */

.submenu.mega {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-width: 1120px;
  padding: 24px;
}

/* Live opening-hours indicator inside the terminal */
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(0, 229, 168, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 168, 0.3);
  transition: all 0.4s ease;
}
.status-badge.offline {
  background: rgba(255, 184, 77, 0.10);
  color: var(--warn);
  border-color: rgba(255, 184, 77, 0.3);
}
.status-badge .pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: status-pulse 1.8s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.status-countdown {
  display: inline-block;
  color: var(--text-secondary);
  margin-top: 2px;
}
.status-countdown .cd-value {
  color: var(--accent);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: color 0.4s ease;
}
.status-countdown.offline .cd-value {
  color: var(--warn);
}
/* Terminal dot reflects offline state */
.terminal-dot.green.offline {
  background: var(--warn);
  box-shadow: 0 0 8px rgba(255, 184, 77, 0.4);
}
/* SYSTEM_STATUS tag also reacts */
.tag.offline {
  color: var(--warn);
  background: rgba(255, 184, 77, 0.08);
  border-color: rgba(255, 184, 77, 0.25);
}
.tag.offline::before {
  background: var(--warn);
  box-shadow: 0 0 10px var(--warn);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1200px) {

  

  

  /* Mobile submenus = accordion, not floating */

  
  .nav-links.open .submenu.mega.open,
  .nav-links.open .has-submenu.open .submenu.mega { display: grid; }
  
}

@media (max-width: 960px) {
  .hero-grid, .about-grid, .why-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .service-grid { grid-template-columns: 1fr; }
  .questions-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  section { padding: 70px 0; }
}

/* CHAT PANEL (eingebetteter Xelion-Webchat, kein Popup/Subdomain-Tab) */

@keyframes chat-panel-dot { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

.chat-panel-close:hover { opacity: 1; }

@media (max-width: 540px) {
  .chat-panel {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    height: calc(100vh - 100px);
    max-height: none;
  }
}

/* ============================================================
   UEBERSTEUERUNGEN DER BASIS (15.09.2026)

   Drei Regeln stehen in fif-base.css, die die Startseite vorher
   nicht kannte - ihr <style>-Block hatte sie einfach nicht. Durch
   das Verlinken der Basis wurden sie auf einen Schlag wirksam und
   haetten das Aussehen veraendert. Nachgemessen habe ich das nicht
   geschaetzt: die errechneten Stile JEDES Elements vorher/nachher
   verglichen, in vier Breiten, mit offenem und geschlossenem Menue.

   Die drei stehen hier ausgeschrieben, damit klar ist, dass sie
   Absicht sind und keine Schlamperei.
   ============================================================ */

/* fif-base.css: .has-submenu { position: relative }
   Das ist die wichtigste. Auf den Unterseiten haengt das Untermenue
   an seinem eigenen <li>. Auf der Startseite gab es diese Regel nie,
   das <li> blieb "static", und das Untermenue richtet sich an einem
   weiter aussen liegenden Kasten aus. Mit der Basis-Regel sprang das
   grosse Menue um 24 px nach oben und 8 px zur Seite, wurde 23 px
   schmaler, und alles darin - Spalten, Titel, Beschreibungen -
   verschob sich mit. Das waren fast alle gemessenen Unterschiede.

   Bewusst zurueckgestellt: die Startseite behaelt ihr Verhalten.
   ANMERKUNG FUER SPAETER: dass Startseite und Unterseiten ihr
   Untermenue unterschiedlich ausrichten, ist an sich ein Bruch im
   Designsystem. Das gehoert angeglichen - aber als eigene Aufgabe,
   mit Blick darauf, welche der beiden Varianten die richtige ist,
   und nicht nebenbei beim Aufraeumen. */
.has-submenu { position: static; }

/* fif-base.css: .cta-row { margin-top: 32px }
   Auf der Startseite hatte die Knopfreihe keinen Abstand nach oben
   (drei Vorkommen). Mit der Basis-Regel waere die Seite 4 px hoeher
   geworden und die Abschnitte darunter waeren verrutscht. */
.cta-row { margin-top: 0; }

/* fif-base.css: .nav-toggle { white-space: nowrap }
   Reine Kleinigkeit - der Umbruchschutz an den Menueknoepfen. Auf
   der Startseite stand er nicht. Ich stelle ihn zurueck, damit
   "nichts veraendert" auch wirklich nichts heisst; wenn du ihn
   haben willst, ist es eine Zeile weniger hier. */
.nav-toggle { white-space: normal; }

/* fif-base.css: .submenu.mega .sub-title { hyphens: auto; line-height: 1.3 }
   Diese Regel ist spezifischer (zwei Klassen im Vorfahren-Pfad) als
   die .sub-title der Startseite - sie gewinnt also, obwohl diese
   Datei spaeter geladen wird. Die Uebersteuerung muss deshalb
   genauso spezifisch sein.
   Vorher erbten die Titel im grossen Menue die Zeilenhoehe 1,6 vom
   Koerper (23,55 px); mit der Basis-Regel waeren es 1,3 (19,14 px)
   und jeder Menueeintrag 4,4 px flacher geworden.
   "inherit" statt einer festen Zahl, damit es weiter dem Koerper
   folgt, auch wenn der irgendwann geaendert wird. */
.submenu.mega .sub-title { hyphens: manual; line-height: inherit; }

/* fif-base.css hat fuer .footer-grid einen Haltepunkt MEHR als die
   Startseite hatte: @media (max-width: 960px) mit gap: 32px. Die
   Startseite kannte nur 1100 px (gap 36) und 640 px (gap 32) - im
   Bereich 641 bis 960 px waren es also 36 px, jetzt waeren es 32.
   Gemessen: der Fuss wurde dadurch 8 px flacher und die Spalten
   2 px breiter, ab 960 px abwaerts.

   Die Uebersteuerung ist absichtlich auf dieses Band begrenzt. Ein
   einfaches "@media (max-width: 960px)" wuerde auch unter 640 px
   greifen und dort die 32 px der Basis wieder auf 36 heben - also
   einen neuen Unterschied schaffen, statt einen zu beheben. */
@media (max-width: 960px) and (min-width: 641px) {
  .footer-grid { gap: 36px; }
}

/* Und noch ein Fall aus derselben Ecke, der beim Messen auffiel.
   In fif-base.css steht der Fussbereich ZWEIMAL: einmal im
   urspruenglichen Block (Zeile 597-607, mit @media 1100 und 640)
   und einmal in einem spaeteren Nachtrag (Zeile 723-730, mit
   @media 960 und 540). Bei gleicher Spezifitaet gewinnt das
   Spaetere - der Nachtrag mit "960: 1fr 1fr" haengt also die
   fruehere Regel "640: 1fr" aus. Auf den Unterseiten steht der
   Fuss bei 640 px deshalb ZWEISPALTIG.

   Die Startseite hatte nur den ersten Block, bei ihr war er
   einspaltig - 592 px breit statt 280, der Fuss 220 px hoeher.
   Ich stelle das fuer die Startseite zurueck.

   ANMERKUNG FUER SPAETER: das gehoert in fif-base.css selbst
   geradegezogen - zwei Fussbereich-Bloecke, die sich gegenseitig
   aushebeln, sind eine Stolperfalle fuer die naechste Aenderung.
   Als eigene Aufgabe, nicht nebenbei: es betrifft alle
   Unterseiten, nicht nur diese hier. */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
