/* unimdm.info — Vorstellungsseite für UniMDM. Farben aus dem Logo
   (logo/UniMDM-Logo mit blauem U-Emblem.png). */
:root {
  --blue: #0a62f5;
  --blue-light: #2f8cff;
  --navy: #0b2a63;
  --green: #12b88f;
  --green-light: #1fd6a6;

  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --surface: #ffffff;
  --border: #e2e8f2;
  --text: #13223f;
  --text-muted: #5a6880;
  --heading: var(--navy);
  --shadow: 0 10px 30px rgba(11, 42, 99, 0.08);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1226;
    --bg-alt: #0f1a33;
    --surface: #13203d;
    --border: rgba(255, 255, 255, 0.1);
    --text: #e6ecf7;
    --text-muted: #a3b0c8;
    --heading: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 19px;
}

p {
  margin: 0 0 14px;
}

.container {
  width: min(1160px, 100% - 32px);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.lead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 680px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 98, 245, 0.3);
}
.btn-ghost {
  border-color: var(--border);
  color: var(--heading);
  background: var(--surface);
}

/* ---- Kopfzeile ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.logo img {
  height: 36px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.site-nav a:hover {
  color: var(--blue);
}
.site-nav .btn {
  padding: 9px 18px;
  font-size: 15px;
  color: #fff;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--heading);
  font-size: 18px;
  cursor: pointer;
}

/* ---- Hero ---- */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--green) 18%, transparent), transparent 70%),
    radial-gradient(700px 400px at 0% 10%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-logo {
  width: min(420px, 100%);
  padding: 28px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 15px;
}
.hero-facts strong {
  display: block;
  color: var(--heading);
  font-size: 22px;
}

/* ---- Abschnitte ---- */
section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .lead {
  margin: 0 auto;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card p {
  color: var(--text-muted);
  font-size: 16px;
}
.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 15px;
}
.card li {
  margin: 4px 0;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}
.icon.green {
  background: linear-gradient(135deg, var(--green), var(--green-light));
}
.icon.navy {
  background: linear-gradient(135deg, var(--navy), #1c4a9e);
}
.icon svg {
  width: 24px;
  height: 24px;
}

/* Problem → Lösung */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}
.compare .arrow {
  align-self: center;
  font-size: 34px;
  color: var(--green);
}
.compare ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compare li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px dashed var(--border);
}
.compare li:last-child {
  border-bottom: none;
}
.compare .before li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #d0544a;
  font-weight: 700;
}
.compare .after li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Schritte */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.step {
  position: relative;
  padding-top: 58px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
}
.step p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Sicherheit */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}
.checklist li {
  padding-left: 34px;
  position: relative;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist strong {
  color: var(--heading);
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  color: var(--heading);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--blue);
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  color: var(--text-muted);
  padding-bottom: 6px;
}

/* Kontakt */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--navy), #123c86 55%, #0d6f6a);
  color: #fff;
  border-radius: 28px;
  padding: 56px 28px;
}
.cta h2 {
  color: #fff;
}
.cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 24px;
}
.cta .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Fußzeile */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--text-muted);
  margin-left: 18px;
}

/* Rechtstexte */
.legal {
  padding: 56px 0 80px;
}
.legal .container {
  max-width: 820px;
}
.legal h2 {
  font-size: 22px;
  margin-top: 32px;
}
.todo {
  background: #fff4cc;
  color: #5b4500;
  border: 1px solid #f0d27a;
  border-radius: 8px;
  padding: 2px 6px;
}

/* ---- Responsiv ---- */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .hero-logo {
    width: min(300px, 100%);
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  section {
    padding: 56px 0;
  }
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .site-nav .btn {
    margin-top: 12px;
    justify-content: center;
  }
  .grid-3,
  .grid-2,
  .steps,
  .checklist {
    grid-template-columns: 1fr;
  }
  .compare {
    grid-template-columns: 1fr;
  }
  .compare .arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
  .site-footer a {
    margin: 0 18px 0 0;
  }
}

/* ---- Screenshots im Browser-Rahmen ---- */
.browser-frame {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(11, 42, 99, 0.18);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: color-mix(in srgb, var(--bg-alt) 80%, var(--border));
  border-bottom: 1px solid var(--border);
}
.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f26b5b;
}
.browser-bar span:nth-child(2) { background: #f5bf4f; }
.browser-bar span:nth-child(3) { background: #61c554; }
.browser-bar em {
  margin-left: 10px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-shot {
  width: 100%;
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}

.shot-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.shot-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.shot-tab:hover {
  border-color: var(--blue);
}
.shot-tab.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-color: transparent;
  color: #fff;
}
.shot-stage {
  max-width: 1040px;
  margin: 0 auto;
}
.shot-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.shot-caption {
  max-width: 760px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--text-muted);
}
.shot-dialog {
  width: min(96vw, 1440px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  overflow: auto;
}
.shot-dialog::backdrop {
  background: rgba(5, 12, 30, 0.75);
}
.shot-dialog img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-dialog-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(11, 42, 99, 0.85);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
@media (max-width: 960px) {
  .hero-shot {
    transform: none;
  }
}
