/* PPM-Bridge / ePPM öffentliche Website (angelehnt an objectlink.de & ea.arbeitsblatt.de) */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --navy: #0d2240;
  --navy-2: #14325c;
  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-soft: rgba(22, 163, 74, 0.12);
  --warm: #f0744a;
  --shadow: 0 18px 45px rgba(13, 34, 64, 0.10);
  --radius: 16px;
}

[data-theme="dark"] {
  --bg: #090d16;
  --surface: #111827;
  --surface-2: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #1f2937;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.web {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.web-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.web-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.web-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 94px;
}
.web-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
}
.web-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-weight: 800; font-size: 1.85rem; letter-spacing: -0.02em; }
.brand-accent { color: var(--accent); }
.brand-subline { font-size: 0.89rem; color: var(--muted); font-weight: 500; white-space: nowrap; }

.web-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.web-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color .15s;
}
.web-nav a:hover { color: var(--text); }
.web-nav-mobil { display: none; }

.web-aktionen {
  display: flex;
  align-items: center;
  gap: 12px;
}
.web-login {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 10px;
}
.web-login:hover { background: var(--surface-2); }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
.web-menu-btn { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 18px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, background-color .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 24px; font-size: 0.98rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost-hell { background: rgba(255, 255, 255, 0.10); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.btn-ghost-hell:hover { background: rgba(255, 255, 255, 0.18); }

/* Hero */
.web-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #193a6b 0%, var(--navy) 65%, #081529 100%);
  color: #fff;
  padding: 76px 0 88px;
}
.web-hero-linien {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}
.web-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}
.web-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.20);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #bbf7d0;
  margin-bottom: 18px;
}
.web-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.web-hero h1 span { color: #4ade80; }
.web-lead {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: rgba(241, 245, 249, 0.86);
  max-width: 56ch;
}
.web-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.web-haken {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.9);
}
.web-haken li { display: inline-flex; align-items: center; gap: 7px; }
.web-haken svg { color: #4ade80; }

/* Browser Mockup */
.web-mock {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}
.web-mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  color: rgba(226, 232, 240, 0.7);
}
.web-mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); display: inline-block; }
.web-mock-bar span { margin-left: 8px; }
.web-mock-body { padding: 18px; background: #ffffff; color: #0f172a; }
[data-theme="dark"] .web-mock-body { background: #111827; color: #f1f5f9; }
.web-mock-kopf { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.web-mock-kopf small { color: var(--muted); font-size: 0.76rem; }
.web-mock-kacheln {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.web-mock-kacheln > div {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.web-mock-kacheln small { display: block; font-size: 0.72rem; color: var(--muted); }
.web-mock-kacheln b { font-size: 1.15rem; font-weight: 800; }
.web-mock-kacheln b.o { color: var(--warm); }
.web-mock-chart {
  height: 74px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
}
.web-mock-chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #22c55e, #15803d);
}
.web-mock-liste { display: grid; gap: 8px; font-size: 0.8rem; }
.web-mock-liste > div { display: flex; align-items: center; gap: 8px; }
.punkt { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.punkt.gruen { background: #16a34a; }
.punkt.orange { background: #f0744a; }
.punkt.blau { background: #2563eb; }

/* Sections */
.web-sektion { padding: 76px 0; }
.web-sektion-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.web-titel { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.web-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.web-titel h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
.web-titel p { margin: 0; color: var(--muted); }

.web-raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.web-karte {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.web-karte-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.web-karte h3 { margin: 0 0 8px; font-size: 1.06rem; }
.web-karte p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.web-vorteile {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* CTA Band */
.web-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 56px 0;
}
.web-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.web-band h2 { margin: 0 0 6px; font-size: 1.6rem; }
.web-band p { margin: 0; color: rgba(241, 245, 249, 0.85); }
.web-band .web-cta { margin: 0; }

/* Testzugang Form Page */
.web-form-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.web-feld { margin-bottom: 16px; }
.web-feld label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.web-feld input, .web-feld textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.web-feld input:focus, .web-feld textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}
.web-alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 600;
}
.web-alert-ok { background: rgba(22, 163, 74, 0.14); border: 1px solid rgba(22, 163, 74, 0.4); color: #15803d; }
[data-theme="dark"] .web-alert-ok { color: #86efac; }
.web-alert-err { background: rgba(220, 38, 38, 0.12); border: 1px solid rgba(220, 38, 38, 0.35); color: #b91c1c; }
[data-theme="dark"] .web-alert-err { color: #fca5a5; }
.web-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Footer */
.web-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 36px 0 28px;
  font-size: 0.88rem;
}
.web-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.web-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.web-footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
.web-footer a:hover { color: var(--text); }
.web-footer-recht {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
  font-size: 0.82rem;
}
.web-muted { color: var(--muted); }

/* Legal Dialog */
dialog.web-modal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  max-width: 680px;
  width: calc(100% - 32px);
  padding: 0;
  box-shadow: var(--shadow);
}
dialog.web-modal::backdrop { background: rgba(2, 6, 23, 0.6); backdrop-filter: blur(3px); }
.web-modal-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.web-modal-kopf h2 { margin: 0; font-size: 1.15rem; }
.web-modal-inhalt { padding: 20px 22px; max-height: 70vh; overflow-y: auto; font-size: 0.92rem; }
.web-modal-inhalt h3 { margin: 16px 0 6px; font-size: 0.98rem; }

.web-nur-mobil { display: none; }

@media (max-width: 920px) {
  .web-hero-inner { grid-template-columns: 1fr; }
  .web-raster { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .web-nur-desktop { display: none; }
  .web-nur-mobil { display: inline-flex; }
  .web-menu-btn { display: inline-flex; }
  .web-nav {
    display: none;
    position: absolute;
    top: 94px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .web-nav.offen { display: flex; }
  .web-nav-mobil { display: flex; gap: 10px; padding-top: 8px; }
  .web-raster, .web-vorteile { grid-template-columns: 1fr; }
}
