:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border: #cbd5e1;
  --border-hover: #3ec700;
  --primary: #55ff00;        /* Euer echtes BASH-Terminal-Grün */
  --primary-dark: #15803d;   /* Kontraststarker Dunkelgrün-Ton für Links & Text (WCAG AA/AAA) */
  --primary-light: #f0fdf4;
  --text: #0f172a;
  --text-muted: #475569;     /* Erhöhter Kontrast für bessere Lesbarkeit */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Barrierefreiheit: Skip-Link für Tastatur- & Screenreader-Nutzer */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  border: 2px solid var(--primary);
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Barrierefreiheit: Deutlicher Fokus-Indikator für Tastaturnavigation */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #0284c7;
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #0f172a;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  box-shadow: 0 0 14px rgba(85, 255, 0, 0.25);
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: var(--primary);
  border: 1px solid #1e293b;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.hero {
  text-align: center;
  margin-bottom: 50px;
}

.hero-badge {
  display: inline-block;
  background: #0f172a;
  color: var(--primary);
  border: 1px solid #1e293b;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

.services-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-bottom: 44px;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px;
  position: relative;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
}

.card-infra {
  border: 2px solid #38bdf8;
  box-shadow: 0 6px 20px -4px rgba(56, 189, 248, 0.18);
}
.card-infra:hover {
  border-color: #0284c7;
  box-shadow: 0 10px 25px -4px rgba(2, 132, 199, 0.25);
}

.card-cloud {
  border: 2px solid #818cf8;
  box-shadow: 0 6px 20px -4px rgba(129, 140, 248, 0.18);
}
.card-cloud:hover {
  border-color: #6366f1;
  box-shadow: 0 10px 25px -4px rgba(99, 102, 241, 0.25);
}

.card-hardware {
  border: 2px solid #34d399;
  box-shadow: 0 6px 20px -4px rgba(52, 211, 153, 0.18);
}
.card-hardware:hover {
  border-color: #10b981;
  box-shadow: 0 10px 25px -4px rgba(16, 185, 129, 0.25);
}

.card-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.badge-infra { background: #e0f2fe; color: #0284c7; }
.badge-cloud { background: #e0e7ff; color: #4338ca; }
.badge-hardware { background: #dcfce7; color: #059669; }

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Regionaler SEO- & Vertrauensabschnitt */
.region-box {
  background: #ffffff;
  border: 2px solid #818cf8;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 36px;
  box-shadow: 0 6px 20px -4px rgba(129, 140, 248, 0.18);
}

.region-box h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text);
}

.region-box p {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.region-tags li {
  background: #f1f5f9;
  color: var(--text);
  border: 1px solid #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
}

.contact-box {
  background: #ffffff;
  border: 2px solid #22c55e;
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  margin-bottom: 50px;
  box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.12);
}

.contact-box h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text);
}

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

.contact-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  border: 2px solid #0f172a;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--primary);
  border-color: #15803d;
  color: #0f172a;
}

.btn-whatsapp {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #166534;
  border-color: #166534;
  color: #ffffff;
}

.btn-secondary {
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: var(--text);
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 44px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.legal-card > * {
  max-width: 78ch;
}

/* Ebene 1 (Hauptüberschrift der Unterseite) -> Farbe Kasten 1 (IT-Infrastruktur) */
.legal-card h1 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
  color: #0284c7;
  border-bottom: 3px solid #38bdf8;
  padding-bottom: 14px;
}

/* Ebene 2 (Unterpunkte Ebene 1: 1., 2., 3. ...) -> Farbe Kasten 2 (Cloud) */
.legal-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 34px;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid #818cf8;
  color: #4f46e5;
}

/* Ebene 3 (Unterüberschriften & Unterpunkte a), b), c) ...) -> Farbe Kasten 3 (Hardware) */
.legal-card h3,
.legal-card p.sub-heading {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 20px;
  margin-bottom: 6px;
  color: #059669;
}

.legal-card p, .legal-card ul, .legal-card ol {
  font-size: 0.98rem;
  color: #334155;
  margin-bottom: 14px;
  line-height: 1.72;
}

.legal-card ul, .legal-card ol {
  padding-left: 24px;
  margin-top: 6px;
  margin-bottom: 18px;
}

.legal-card li {
  margin-bottom: 8px;
  line-height: 1.68;
}

.legal-card a {
  color: var(--primary-dark);
  text-decoration: underline;
  font-weight: 500;
  word-break: break-word;
}

.legal-card a:hover {
  color: #14532d;
}

@media (max-width: 640px) {
  .legal-card {
    padding: 24px 20px;
  }
}

.back-nav {
  margin-bottom: 24px;
}

footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 30px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-nav {
  margin-bottom: 16px;
}

.footer-nav a {
  color: var(--primary-dark);
  text-decoration: underline;
  font-weight: 600;
  margin: 0 12px;
}

.footer-nav a:hover {
  color: #14532d;
}

@media (prefers-reduced-motion: reduce) {
  .card, .btn, .skip-link {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}

.contact-hours {
  display: inline-block;
  background: #0f172a;
  color: var(--primary);
  border: 1px solid #1e293b;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}
.contact-hours strong {
  color: #ffffff;
}

.system-status.off-hours {
  color: #ff00ee;
  border-color: #334155;
  text-shadow: 0 0 8px rgba(255, 0, 238, 0.35);
}
.system-status.off-hours .status-dot {
  background: #ff00ee;
  box-shadow: 0 0 6px #ff00ee, 0 0 12px #ff00ee;
}

.contact-hours.off-hours {
  color: #ff00ee;
  border-color: #334155;
  text-shadow: 0 0 8px rgba(255, 0, 238, 0.35);
}
