/*
 * Icarus Rigging — Marketing-Webseite
 * Globales Stylesheet — geteilt über alle Seiten
 */

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; line-height: 1.5; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
a { color: inherit; }
input, textarea, select { font: inherit; }

/* ============================================================
   Tokens
   ============================================================ */
:root {
  /* Brand */
  --navy:        #193459;
  --navy-2:      #1e4a7a;
  --navy-3:      #0f1e36;
  --accent:      #38bdf8;
  --accent-dark: #0284c7;
  --amber:       #fbbf24;
  --amber-dark:  #b45309;
  --red:         #c0152d;
  --red-dark:    #991b1b;

  /* Slate-Skala */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;

  /* Typo */
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Russo One', 'Arial Black', 'Impact', sans-serif;

  /* Layout */
  --container-max: 1280px;
  --section-py: clamp(60px, 8vw, 100px);

  /* Schatten */
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.05);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 36px -8px rgba(15,23,42,0.18);
  --shadow-xl: 0 30px 80px -20px rgba(15,23,42,0.25);
}

/* ============================================================
   Base
   ============================================================ */
body {
  font-family: var(--font-body);
  color: var(--slate-900);
  background: #fff;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -1px; line-height: 1.04; color: var(--navy); }

/* ============================================================
   Container & Sections
   ============================================================ */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

.section { padding: var(--section-py) 0; }
.section-alt { background: var(--slate-50); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-block;
  font: 600 12px var(--font-body);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  margin-bottom: 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--slate-500);
  line-height: 1.6;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px;
  border-radius: 10px;
  font: 600 15px var(--font-body);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 8px 24px rgba(25,52,89,0.22);
}
.btn-primary:hover { background: var(--navy-3); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(25,52,89,0.32); }
.btn-secondary {
  background: #fff; color: var(--navy);
  border: 1px solid var(--slate-200);
}
.btn-secondary:hover { border-color: var(--navy); }
.btn-ghost {
  background: transparent; color: var(--navy); padding: 8px 0;
}
.btn-ghost:hover { color: var(--accent-dark); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Pills / Badges
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--slate-200);
  color: var(--navy);
  font: 600 12px var(--font-body); letter-spacing: 1px;
  padding: 7px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pill-mini {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(56,189,248,0.12); color: var(--accent-dark);
  font: 600 11px var(--font-body); letter-spacing: 0.4px;
  padding: 4px 10px; border-radius: 999px;
}

/* ============================================================
   Topbar / Nav
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--slate-200);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.topbar .logo { height: 42px; width: auto; max-width: 180px; object-fit: contain; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--slate-700);
  text-decoration: none;
  font: 500 14px var(--font-body);
  letter-spacing: 0.2px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }

.lang {
  display: flex; gap: 4px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 3px;
}
.lang button {
  color: var(--slate-500);
  font: 600 12px var(--font-body); letter-spacing: 0.5px;
  padding: 5px 12px; border-radius: 999px;
  transition: all 0.2s;
}
.lang button.active { background: var(--navy); color: #fff; }

.menu-toggle { display: none; padding: 8px; }
.menu-toggle svg { width: 24px; height: 24px; stroke: var(--slate-700); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 20px 32px 28px;
    border-bottom: 1px solid var(--slate-200);
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 10px 0; font-size: 16px; border-bottom: 1px solid var(--slate-100); }
  .nav-links.open a:last-of-type { border-bottom: 0; }
  .nav-links.open .lang { align-self: flex-start; margin-top: 8px; }
  .menu-toggle { display: inline-flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(56,189,248,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 110%, rgba(25,52,89,0.08) 0%, transparent 60%),
    var(--slate-50);
  overflow: hidden;
  padding: 64px 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(25,52,89,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,52,89,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 5;
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 72px);
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .pill { margin-bottom: 32px; }
.hero-sub {
  font-size: 19px; color: var(--slate-500);
  max-width: 640px; margin: 0 auto 40px; line-height: 1.6;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

@media (max-width: 640px) {
  .hero { padding-top: 32px; }
  .hero-sub { font-size: 17px; }
  .hero-ctas { margin-bottom: 40px; }
}

/* ============================================================
   Mockup-Frames (Hero und sonst)
   ============================================================ */
.mockup-wrap { position: relative; max-width: 1120px; margin: 0 auto; padding-bottom: 80px; }
.mockup {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  box-shadow: var(--shadow-xl), 0 8px 16px -8px rgba(15,23,42,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
  overflow: hidden;
}
.mockup-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 13px 16px;
  background: #fafbfc;
  border-bottom: 1px solid var(--slate-200);
}
.mockup-bar i { width: 11px; height: 11px; border-radius: 50%; }
.mockup-bar i:nth-child(1) { background: #ff5f57; }
.mockup-bar i:nth-child(2) { background: #febc2e; }
.mockup-bar i:nth-child(3) { background: #28c840; }
.mockup-bar span {
  margin-left: 18px;
  font: 500 12px 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  color: var(--slate-500);
  background: #fff;
  padding: 5px 12px; border-radius: 6px;
  border: 1px solid var(--slate-200);
}

.mockup-body { display: grid; grid-template-columns: 240px 1fr; min-height: 480px; }

/* Sidebar im Mockup */
.mock-sb { background: var(--navy); padding: 18px 12px; color: #fff; }
.mock-sb-logo {
  font: 400 14px var(--font-display); letter-spacing: 0.3px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 8px;
}
.mock-sb-logo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.mock-sb-section {
  font: 600 10px var(--font-body); letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  padding: 18px 8px 8px;
}
.mock-sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 6px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}
.mock-sb-item.active { background: rgba(56,189,248,0.15); color: #fff; font-weight: 600; }
.mock-sb-icon { width: 14px; height: 14px; border-radius: 3px; background: currentColor; opacity: 0.6; }

/* Main im Mockup */
.mock-main { padding: 24px 28px; background: #fafbfc; }
.mock-main-h {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 18px; gap: 16px;
}
.mock-main-h h3 { font-family: var(--font-body); font-size: 22px; font-weight: 700; color: var(--slate-900); letter-spacing: -0.5px; }
.mock-main-h p { font-size: 13px; color: var(--slate-500); margin-top: 4px; }

.comp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.comp-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 14px;
  transition: all 0.2s;
}
.comp-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(25,52,89,0.08); }
.comp-icon-lg {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 10px;
}
.comp-icon-lg.c1 { background: #dbeafe; color: #1d4ed8; }
.comp-icon-lg.c2 { background: #fef3c7; color: #b45309; }
.comp-icon-lg.c3 { background: #fee2e2; color: #b91c1c; }
.comp-icon-lg.c4 { background: #dcfce7; color: #166534; }
.comp-name { font-size: 12px; color: var(--slate-500); margin-bottom: 2px; }
.comp-count {
  font: 400 24px var(--font-display);
  color: var(--slate-900);
  letter-spacing: -1px;
}

.kpi-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 14px;
}
.kpi-cell { text-align: left; }
.kpi-cell + .kpi-cell { border-left: 1px solid var(--slate-200); padding-left: 12px; }
.kpi-num { font: 400 20px var(--font-display); color: var(--slate-900); letter-spacing: -0.5px; }
.kpi-num.warn { color: var(--amber-dark); }
.kpi-num.crit { color: #dc2626; }
.kpi-lbl {
  font: 500 10px var(--font-body);
  color: var(--slate-500);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Floating Notification-Cards */
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 12px 36px -8px rgba(15,23,42,0.18);
  display: flex; align-items: center; gap: 12px;
  z-index: 4;
}
.float-card.left { left: -30px; top: 35%; animation: floatL 5s ease-in-out infinite; }
.float-card.right { right: -20px; top: 65%; animation: floatR 6s ease-in-out infinite; }
.float-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.float-card.left .float-icon { background: #fee2e2; color: #b91c1c; }
.float-card.right .float-icon { background: #dcfce7; color: #166534; }
.float-text b { display: block; font-size: 13px; color: var(--slate-900); font-weight: 700; margin-bottom: 2px; }
.float-text span { font-size: 11px; color: var(--slate-500); }

@keyframes floatL { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatR { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

@media (max-width: 980px) {
  .mockup-body { grid-template-columns: 1fr; }
  .mock-sb { display: none; }
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .kpi-cell:nth-child(4), .kpi-cell:nth-child(5) { border-left: 0; padding-left: 0; }
  .float-card { display: none; }
}
@media (max-width: 640px) {
  .comp-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi-row { grid-template-columns: 1fr 1fr 1fr; padding: 10px; gap: 6px; }
  .kpi-cell + .kpi-cell { padding-left: 6px; }
  .mock-main { padding: 16px 14px; }
  .mock-main-h h3 { font-size: 18px; }
  .comp-count { font-size: 20px; }
}

/* ============================================================
   Feature-Cards
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(25,52,89,0.2);
}
.feature-icon.amber { background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%); color: #fff; }
.feature-icon.red   { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; }
.feature-icon.cyan  { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: #fff; }
.feature-card h3 {
  font-family: var(--font-body);
  font-size: 20px; font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 15px;
  color: var(--slate-500);
  line-height: 1.6;
}
.feature-list {
  list-style: none;
  padding: 0; margin-top: 16px;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--slate-700);
}
.feature-list li::before {
  content: "✓";
  color: var(--accent-dark);
  font-weight: 800;
  flex-shrink: 0;
}

/* ============================================================
   Detail-Sektion mit Mockup links/rechts
   ============================================================ */
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.detail-row.reverse { direction: rtl; }
.detail-row.reverse > * { direction: ltr; }
.detail-row .copy h3 {
  font-family: var(--font-body);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.detail-row .copy > p {
  font-size: 17px; color: var(--slate-500);
  line-height: 1.65; margin-bottom: 24px;
}
.detail-row .copy .feature-list { margin-top: 0; }
.detail-row .copy .feature-list li { padding: 8px 0; font-size: 15px; }

@media (max-width: 880px) {
  .detail-row { grid-template-columns: 1fr; gap: 32px; }
  .detail-row.reverse { direction: ltr; }
}

/* Tab-Mockup für Komponentenakte */
.tab-mockup {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.tab-mockup-tabs {
  display: flex; gap: 0;
  padding: 0 18px;
  background: #fafbfc;
  border-bottom: 1px solid var(--slate-200);
  overflow-x: auto;
}
.tab-mockup-tab {
  padding: 14px 16px;
  font: 500 13px var(--font-body);
  color: var(--slate-500);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab-mockup-tab.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
  font-weight: 700;
}
.tab-mockup-body { padding: 24px; }

.rig-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rig-table th, .rig-table td {
  padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--slate-100);
}
.rig-table th {
  font: 600 11px var(--font-body);
  color: var(--slate-500);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.rig-table td { color: var(--slate-700); }
.rig-table .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.rig-table .badge.ok   { background: #dcfce7; color: #166534; }
.rig-table .badge.warn { background: #fef3c7; color: #92400e; }
.rig-table .badge.crit { background: #fee2e2; color: #991b1b; }

/* ============================================================
   Roadmap
   ============================================================ */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.roadmap::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--navy) 50%, var(--slate-300) 100%);
  z-index: 0;
}
.roadmap-step {
  position: relative; z-index: 1;
  text-align: center;
}
.roadmap-step .dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(25,52,89,0.12);
}
.roadmap-step.done .dot {
  background: var(--navy);
  color: #fff;
}
.roadmap-step.now .dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(56,189,248,0.18);
}
.roadmap-step h4 {
  font-family: var(--font-body);
  font-size: 16px; font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.roadmap-step p {
  font-size: 13px;
  color: var(--slate-500);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.55;
}
.roadmap-step .stage-tag {
  display: inline-block;
  font: 600 10px var(--font-body);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}
.roadmap-step.done .stage-tag { background: #dcfce7; color: #166534; }
.roadmap-step.now  .stage-tag { background: rgba(56,189,248,0.18); color: var(--accent-dark); }
.roadmap-step.next .stage-tag { background: var(--slate-100); color: var(--slate-500); }

@media (max-width: 880px) {
  .roadmap { grid-template-columns: 1fr; gap: 32px; }
  .roadmap::before { display: none; }
}

/* ============================================================
   CTA-Sektion
   ============================================================ */
.cta-section {
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(56,189,248,0.18) 0%, transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(60px, 8vw, 96px) 32px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 60px, rgba(255,255,255,0.025) 60px, rgba(255,255,255,0.025) 61px);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 {
  color: #fff;
  font-size: clamp(30px, 4.5vw, 48px);
  margin-bottom: 20px;
}
.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-section .btn-primary {
  background: #fff; color: var(--navy);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cta-section .btn-primary:hover { background: #f8fafc; }

/* ============================================================
   Kontaktformular
   ============================================================ */
.contact-form {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font: 600 13px var(--font-body);
  color: var(--slate-700);
  margin-bottom: 6px;
}
.form-group label .req { color: var(--red); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font: 400 15px var(--font-body);
  color: var(--slate-900);
  background: var(--slate-50);
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-honeypot {
  position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; width: 0;
}
.form-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.form-hint { font-size: 12px; color: var(--slate-500); }
.form-status {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.form-status.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

@media (max-width: 640px) {
  .contact-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy-3);
  color: rgba(255,255,255,0.7);
  padding: 56px 32px 32px;
  font-size: 14px;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font: 600 13px var(--font-body);
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-brand img { height: 56px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  max-width: 360px;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Legal-Pages
   ============================================================ */
.legal-page { padding: 64px 0; background: #fff; }
.legal-page .container { max-width: 860px; }
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 8px;
}
.legal-page .lead {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 36px;
}
.legal-page h2 {
  font-family: var(--font-body);
  font-size: 22px; font-weight: 700;
  color: var(--navy);
  margin: 36px 0 12px;
  letter-spacing: -0.3px;
}
.legal-page h3 {
  font-family: var(--font-body);
  font-size: 17px; font-weight: 700;
  color: var(--slate-900);
  margin: 24px 0 8px;
}
.legal-page p, .legal-page li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate-700);
}
.legal-page p { margin-bottom: 12px; }
.legal-page ul, .legal-page ol { margin: 8px 0 16px 24px; }
.legal-page li { margin-bottom: 4px; }
.legal-page a { color: var(--navy); text-decoration: underline; }
.legal-page a:hover { color: var(--accent-dark); }
.legal-page .toc {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0 36px;
}
.legal-page .toc ul { margin: 0 0 0 20px; }
.legal-page .toc li { margin-bottom: 4px; font-size: 14px; }

/* ============================================================
   Animation: fade-in beim Reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Reduced motion: keine Animationen */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ============================================================
   MODULE-SEKTION (8 Module in 3 Gruppen)
   ============================================================ */
.module-group {
  margin-bottom: 56px;
}
.module-group:last-of-type {
  margin-bottom: 24px;
}
.module-group-title {
  font: 600 22px/1.3 var(--font-body);
  color: var(--navy);
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}
.module-group-sub {
  font-size: 14px;
  color: var(--slate-500);
  margin: 0 0 20px 0;
  max-width: 720px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.module-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
}
.module-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.module-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(25, 52, 89, 0.08);
}
.module-card-highlight {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.04) 0%, #fff 60%);
}
.module-card-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.module-card-h h4 {
  font: 600 17px/1.3 var(--font-body);
  color: var(--slate-900);
  margin: 0;
  letter-spacing: -0.2px;
}
.module-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
}
.module-icon.amber { background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%); }
.module-icon.red   { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); }
.module-icon.cyan  { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); }
.module-badge {
  font: 700 10px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent-dark);
  background: rgba(14, 165, 233, 0.12);
  padding: 4px 8px;
  border-radius: 99px;
  margin-left: auto;
}
.module-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0;
}

/* Module-Extra (Auswertung als Footer) */
.module-extra {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: 12px;
}
.module-extra-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.module-extra-text h4 {
  font: 600 17px/1.3 var(--font-body);
  color: #fff;
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
}
.module-extra-text p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ============================================================
   TM/SM 3-Schritt-Flow
   ============================================================ */
.tmsm-block {
  margin-top: 48px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 28px;
}
.tmsm-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.tmsm-step {
  background: var(--slate-50);
  border-radius: 12px;
  padding: 18px;
  position: relative;
}
.tmsm-step-num {
  position: absolute;
  top: -14px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 13px/1 var(--font-body);
  box-shadow: 0 4px 10px rgba(25, 52, 89, 0.2);
}
.tmsm-step-title {
  font: 600 16px/1.3 var(--font-body);
  color: var(--slate-900);
  margin: 6px 0 6px 0;
  letter-spacing: -0.2px;
}
.tmsm-step-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--slate-600);
}
.tmsm-arrow {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}

/* ============================================================
   AUFTRÄGE-KANBAN-MOCKUP
   ============================================================ */
.kanban-mockup {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.kanban-col {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 240px;
}
.kanban-col-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 11px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate-500);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--slate-200);
}
.kanban-count {
  background: var(--slate-100);
  color: var(--slate-600);
  border-radius: 99px;
  padding: 2px 7px;
  font-size: 10px;
}
.kanban-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 8px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.kanban-card-active {
  border-color: var(--amber);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.06) 0%, #fff 100%);
}
.kanban-card-done {
  border-color: #10b981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, #fff 100%);
}
.kanban-card-title {
  font: 600 12px/1.3 var(--font-body);
  color: var(--slate-900);
  margin-bottom: 2px;
}
.kanban-card-meta {
  font-size: 10.5px;
  color: var(--slate-500);
}
.kanban-card-badge {
  display: inline-block;
  margin-top: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font: 600 9.5px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 6px;
  border-radius: 4px;
}

/* ============================================================
   MARKETPLACE-MOCKUP
   ============================================================ */
.marketplace-mockup {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.market-h {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.market-h-title {
  font: 600 14px/1 var(--font-body);
  letter-spacing: -0.2px;
}
.market-h-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-family: monospace;
}
.market-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.market-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.market-card:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}
.market-card-img {
  width: 100%;
  height: 64px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 6px;
}
.market-card-cat {
  font: 600 10px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--slate-500);
}
.market-card-name {
  font: 600 13px/1.3 var(--font-body);
  color: var(--slate-900);
}
.market-card-price {
  font: 700 14px/1 var(--font-body);
  color: var(--accent-dark);
  margin-top: 2px;
}

/* ============================================================
   HIGHLIGHT-GRID (Was drinsteckt)
   ============================================================ */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.highlight-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.highlight-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(25, 52, 89, 0.08);
}
.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(25, 52, 89, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.highlight-card h4 {
  font: 600 16px/1.3 var(--font-body);
  color: var(--slate-900);
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}
.highlight-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0;
}

/* Featured Highlight-Card — 7. Card mit CTA-Link */
.highlight-card--featured {
  background: linear-gradient(135deg, rgba(56,189,248,0.06) 0%, rgba(193,25,35,0.04) 100%);
  border-color: rgba(56,189,248,0.3);
  position: relative;
  grid-column: 1 / -1; /* volle Breite über alle Spalten */
}
.highlight-card--featured::before {
  content: 'NEU';
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--red, #c11923);
  color: #fff;
}
.highlight-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  transition: color 0.2s ease;
}
.highlight-cta:hover {
  color: #0369a1;
}
/* ============================================================
   RESPONSIVE für neue Sections
   ============================================================ */
@media (max-width: 980px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .tmsm-flow {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tmsm-arrow { transform: rotate(90deg); justify-self: center; }
  .kanban-mockup { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .module-grid { grid-template-columns: 1fr; }
  .module-grid-2 { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }
  .kanban-mockup { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .module-extra { flex-direction: column; }
}

/* ============================================================
   E-Rechnung / Compliance — Hero-Pills + Sektion
   Hinzugefügt: 21.05.2026
   ============================================================ */

/* Mehrere Pills im Hero nebeneinander/untereinander */
.hero-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
}
.hero .pill { margin-bottom: 0; }

/* Grüner Dot für E-Rechnungs-konform-Pill */
.pill-dot--green {
  background: #16a34a !important;
  box-shadow: 0 0 10px #16a34a !important;
}

/* Compliance-Sektion: 2-spaltiges Karten-Grid */
.erechnung-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.erechnung-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.erechnung-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(25, 52, 89, 0.08);
}

/* Badge "Primär" / "Fallback" oben rechts */
.erechnung-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font: 600 10px var(--font-body);
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.erechnung-badge--primary {
  background: rgba(56,189,248,0.12);
  color: var(--accent-dark);
}
.erechnung-badge--fallback {
  background: rgba(100,116,139,0.12);
  color: var(--slate-700);
}

/* Icon-Square mit Brand-Gradient */
.erechnung-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}
.erechnung-icon--navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.erechnung-icon--cyan {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.erechnung-card h4 {
  font: 600 17px/1.3 var(--font-body);
  color: var(--slate-900);
  margin: 0 0 10px 0;
  letter-spacing: -0.2px;
}
.erechnung-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate-500);
  margin: 0 0 14px 0;
}

.erechnung-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.erechnung-tag {
  font: 500 11px var(--font-body);
  color: var(--accent-dark);
  background: rgba(56,189,248,0.10);
  padding: 3px 9px;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .erechnung-grid { grid-template-columns: 1fr; }
  .erechnung-card { padding: 24px; }
}
