/* MMSE – Manuel Moldan Software Engineering
   Zurückhaltendes, helles Design. Keine externen Schriften oder Ressourcen. */

:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eaeff4;
  --ink: #14202b;
  --muted: #55636f;
  --line: #dde3ea;
  --accent: #1d5c8a;
  --accent-dark: #164a70;
  --accent-soft: #e6f0f7;
  --gold: #d9a900;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 32, 43, .06), 0 8px 24px rgba(20, 32, 43, .07);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { height: 52px; width: auto; }
.brand-text { display: none; font-weight: 700; line-height: 1.15; font-size: .95rem; }
.brand-text small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }

.nav ul { display: flex; gap: .25rem; align-items: center; }
.nav a {
  display: block; padding: .5rem .8rem; border-radius: 6px;
  color: var(--muted); text-decoration: none; font-size: .96rem; font-weight: 500;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); background: var(--surface); }
.nav a.cta { color: #fff; background: var(--accent); }
.nav a.cta:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (min-width: 560px) { .brand-text { display: block; } }
@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none; padding: .5rem 1.25rem 1rem;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: .8rem .6rem; }
}

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.alt { background: var(--surface); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .8rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 span { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 8px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 2.2rem; color: var(--muted); font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: .5rem; }
.hero-facts svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.shot {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
}
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd7df; display: block; }
.shot figcaption { padding: .6rem 1rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: #c3d3e0; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; color: var(--muted); font-size: 1rem; }
.icon {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Two-column text ---------- */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split h3 { margin-top: 1.6rem; }
.split h3:first-child { margin-top: 0; }
.split p { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tags li {
  padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: .92rem; color: var(--ink);
}

/* ---------- Products ---------- */
.product {
  display: grid; gap: 1.5rem; padding: 2rem; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; margin-bottom: 1.5rem;
}
@media (min-width: 800px) { .product { grid-template-columns: 120px 1fr; gap: 2rem; } }
.product img.pi { width: 100px; height: 100px; }
.product h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.product .sub { color: var(--muted); margin-bottom: 1rem; }
.product .norm { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: .15rem .6rem; border-radius: 4px; margin-bottom: .8rem; }
.checks { display: grid; gap: .45rem 2rem; margin-top: 1rem; }
@media (min-width: 700px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { position: relative; padding-left: 1.7rem; font-size: .98rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 1rem; height: .55rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) scale(.85); transform-origin: left top; margin-top: .05rem;
}
.product .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.product .shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; max-width: 640px; margin-top: 1.2rem; }
.product .shots-2 { grid-template-columns: repeat(2, 1fr); max-width: 420px; }
.product .shots img, .product .shot-wide { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.product .shot-wide { max-width: 520px; margin-top: 1.2rem; }
.product .more { margin-top: 1.2rem; font-size: .95rem; color: var(--muted); }
.versions { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1rem; font-size: .95rem; }
.versions b { font-weight: 650; }

/* ---------- About ---------- */
.clients { display: grid; gap: .8rem; margin-top: 1.2rem; }
.clients li { padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; }
.clients b { display: block; }
.clients span { color: var(--muted); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon { margin: 0; flex: none; width: 42px; height: 42px; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.contact-list a { font-weight: 600; }
address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4ced8; padding: 2.5rem 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
.site-footer a { color: #e8eef3; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-footer button.link {
  background: none; border: 0; padding: 0; font: inherit; color: #e8eef3;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---------- Legal pages ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.4rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6rem; }
.legal p, .legal li { color: #2f3d49; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.legal li { margin-bottom: .3rem; }
.legal .back { display: inline-block; margin-bottom: 1.5rem; font-size: .95rem; }

/* ---------- Cookie / Datenschutz-Hinweis ---------- */
.consent {
  position: fixed; z-index: 200; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 560px; margin-left: auto; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(20, 32, 43, .22);
  padding: 1.3rem 1.4rem; font-size: .95rem; line-height: 1.55;
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.consent p { margin: 0 0 1rem; color: var(--muted); }
.consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.consent-actions .btn { padding: .6rem 1.1rem; font-size: .95rem; flex: 1 1 auto; justify-content: center; }
.consent-links { margin: .9rem 0 0; font-size: .85rem; }
.consent-links a { color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  .site-header, .consent, .nav-toggle { display: none !important; }
  section { padding: 1.5rem 0; }
}
