/* ==========================================================================
   Mohr-IT GmbH – Design System
   Leitidee: „Komplexe Geschäftsdaten. Klar im Griff.“
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-var-latin.woff2") format("woff2-variations"),
       url("../assets/fonts/inter-var-latin.woff2") format("woff2");
}

:root {
  /* Marke */
  --c-slate: #446084;       /* Primärblau, reale Bestandsfarbe */
  --c-slate-dark: #334862;  /* dunkles Link-Blau, reale Bestandsfarbe */
  --c-deep: #263B55;        /* Deep Data Blue, Ergänzung */
  --c-terracotta: #C05530;  /* Sekundärakzent, reale Bestandsfarbe */
  --c-terracotta-dark: #9c4426;
  --c-sage: #627D47;        /* Erfolg / validierte Daten */
  --c-danger: #B20000;

  /* Neutrale Flächen */
  --c-bg: #F8FAFC;          /* Cloud White */
  --c-surface: #FFFFFF;
  --c-border: #E7ECF1;      /* Interface Gray */
  --c-graphite: #20262E;    /* Haupttext */
  --c-muted: #4A4A4A;

  /* Typografie */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-base: 1rem;
  --lh-base: 1.65;

  /* Layout */
  --container-w: 1280px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow-s: 0 1px 2px rgba(32, 38, 46, 0.06), 0 1px 1px rgba(32, 38, 46, 0.04);
  --shadow-m: 0 8px 24px rgba(38, 59, 85, 0.10), 0 2px 6px rgba(38, 59, 85, 0.06);
  --shadow-l: 0 24px 60px rgba(38, 59, 85, 0.16), 0 8px 20px rgba(38, 59, 85, 0.08);
  --header-h: 76px;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-graphite);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-slate-dark); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--c-terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--c-deep); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.35rem + 1.1vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--c-muted); }
ul, ol { padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 2vw, 2.5rem);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -60px;
  background: var(--c-deep); color: #fff; padding: 0.75em 1.25em;
  border-radius: var(--radius-s); z-index: 1000; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: inherit; font-weight: 600; font-size: 0.98rem;
  padding: 0.85em 1.5em; border-radius: var(--radius-s);
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.16s ease; flex-shrink: 0; }
.btn-primary { background: var(--c-terracotta); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--c-terracotta-dark); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-secondary { background: transparent; color: var(--c-deep); border-color: var(--c-slate); }
.btn-secondary:hover { background: var(--c-slate); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--c-deep); }
.btn-ghost:hover { background: var(--c-border); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
}
.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  flex-shrink: 0; margin-right: auto;
  text-decoration: none;
}
.brand img { height: 34px; width: auto; display: block; }
.brand-name { display: none; }

.main-nav { display: flex; align-items: center; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center;
  gap: clamp(1rem, 1.8vw, 2.1rem);
}
.main-nav a {
  display: inline-block;
  color: var(--c-graphite); text-decoration: none; font-weight: 600;
  font-size: 0.97rem; white-space: nowrap; padding: 0.4em 0.1em;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--c-slate); border-bottom-color: var(--c-terracotta); }
.header-cta { display: flex; align-items: center; gap: 0.7rem; margin-left: 1.5rem; flex-shrink: 0; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--c-border);
  border-radius: var(--radius-s); width: 44px; height: 44px;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .header-cta .btn-secondary { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--c-surface);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 0; }
  .main-nav a { display: block; padding: 0.95em 1.5rem; border-bottom: 1px solid var(--c-border); border-radius: 0; }
  .main-nav a:hover { border-bottom-color: var(--c-border); background: var(--c-bg); }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--c-bg) 100%);
  padding-block: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c-slate-dark); background: var(--c-border);
  padding: 0.4em 0.9em; border-radius: 999px; margin-bottom: 1.1em;
}
.hero h1 { margin-bottom: 0.45em; }
.hero .lede { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  aspect-ratio: 1672 / 941;
  background: #dfe6ee;
  will-change: transform;
  transform: scale(1.025);
  opacity: 0;
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroReveal { to { transform: scale(1); opacity: 1; } }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-visual .hero-flowline {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-flowline path {
  fill: none; stroke: var(--c-slate); stroke-width: 2.5;
  stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(68,96,132,0.55));
}
.hero-flowline circle { fill: var(--c-terracotta); filter: drop-shadow(0 0 5px rgba(192,85,48,0.7)); }

.hero-visual .sheen {
  position: absolute; top: 27%; left: 54%; width: 34%; height: 30%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 65%, transparent 100%);
  transform: translateX(-140%);
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual { transition: transform 0.4s ease-out; }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* Trust bar */
.trust-bar {
  background: var(--c-deep); color: #fff;
  padding-block: 1.4rem;
}
.trust-bar .container {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem;
  align-items: center; justify-content: space-between;
}
.trust-item { display: flex; align-items: center; gap: 0.6em; font-weight: 600; font-size: 0.96rem; white-space: nowrap; }
.trust-item svg { width: 1.2em; height: 1.2em; color: var(--c-terracotta); flex-shrink: 0; }
.trust-item .stars { color: #f2c14e; letter-spacing: 0.05em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 6vw, 6rem); }
.section-alt { background: var(--c-surface); border-block: 1px solid var(--c-border); }
.section-dark { background: var(--c-deep); color: #dbe3ec; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #b9c5d3; }
.section-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 3vw, 3rem); }
.eyebrow {
  display: block; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-terracotta); margin-bottom: 0.6em;
}
.section-dark .eyebrow { color: #f0a488; }

/* Grids & Cards */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-m); padding: 1.7rem;
  box-shadow: var(--shadow-s);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: #cddaea; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--radius-s);
  background: #eaf0f7; color: var(--c-slate); margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.4em; font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; margin-top: 0.9em; }
.card-link svg { width: 1em; height: 1em; transition: transform 0.16s ease; }
.card-link:hover svg { transform: translateX(4px); }

.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--c-border); color: var(--c-slate-dark); padding: 0.3em 0.7em; border-radius: 999px; margin-bottom: 0.7em; }

/* Media + text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) { .split, .split.reverse .split-media { grid-template-columns: 1fr; order: initial; } }
.split-media img { border-radius: var(--radius-l); box-shadow: var(--shadow-m); width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }

/* Produktfinder */
.finder {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-l);
  padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-m);
}
.finder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
@media (max-width: 800px) { .finder-grid { grid-template-columns: 1fr; } }
.finder label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.5em; color: var(--c-deep); }
.finder select {
  width: 100%; padding: 0.75em 0.9em; border-radius: var(--radius-s);
  border: 1.5px solid var(--c-border); font-family: inherit; font-size: 0.98rem;
  background: var(--c-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23334862' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.9em center;
  appearance: none; color: var(--c-graphite);
}
#finder-result { border-top: 1px dashed var(--c-border); padding-top: 1.25rem; margin-top: 0.5rem; }
.finder-result-empty { color: var(--c-muted); font-style: italic; }
.finder-match { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius-m); padding: 1.1rem 1.3rem; }
.finder-match strong { color: var(--c-deep); font-size: 1.05rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-m); border: 1px solid var(--c-border); }
.compare-table { min-width: 640px; background: var(--c-surface); }
.compare-table th, .compare-table td { text-align: left; padding: 0.9em 1.1em; border-bottom: 1px solid var(--c-border); font-size: 0.94rem; }
.compare-table thead th { background: var(--c-bg); color: var(--c-deep); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--c-sage); font-weight: 700; }
.compare-table .no { color: #a9b3bd; }

/* Standards accordion-ish cards */
.standard-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.3rem; }
.standard-badge {
  width: 52px; height: 52px; border-radius: var(--radius-s); background: var(--c-deep); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.82rem;
}

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.3rem 0.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 700; color: var(--c-deep); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex-shrink: 0; width: 26px; height: 26px; position: relative; }
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ""; position: absolute; background: var(--c-slate); border-radius: 2px; transition: transform 0.2s ease;
}
.faq-item summary .plus::before { top: 50%; left: 0; width: 100%; height: 2.5px; transform: translateY(-50%); }
.faq-item summary .plus::after { left: 50%; top: 0; height: 100%; width: 2.5px; transform: translateX(-50%); }
.faq-item[open] summary .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item .faq-a { padding: 0 0.2rem 1.4rem; color: var(--c-muted); max-width: 68ch; }

/* Testimonial / rating */
.rating-badge { display: inline-flex; align-items: center; gap: 0.7em; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-m); padding: 0.9em 1.3em; box-shadow: var(--shadow-s); }
.rating-badge .stars { color: #f2c14e; font-size: 1.2rem; letter-spacing: 0.05em; }
.rating-badge strong { color: var(--c-deep); }
.rating-badge small { color: var(--c-muted); display: block; }

/* Forms */
.form-grid { display: grid; gap: 1.1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .form-row-2 { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.4em; color: var(--c-deep); }
.field .hint { font-weight: 400; color: var(--c-muted); font-size: 0.82rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.8em 0.95em; border-radius: var(--radius-s);
  border: 1.5px solid var(--c-border); font-family: inherit; font-size: 0.98rem; background: #fff; color: var(--c-graphite);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-slate); }
.field-checkbox { display: flex; align-items: flex-start; gap: 0.6em; font-size: 0.88rem; color: var(--c-muted); }
.field-checkbox input { width: auto; margin-top: 0.25em; }

/* Info list (contact/hours) */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: 0.9em; align-items: flex-start; }
.info-list svg { width: 1.3em; height: 1.3em; color: var(--c-slate); flex-shrink: 0; margin-top: 0.15em; }
.info-list strong { display: block; color: var(--c-deep); }

.hours-table td { padding: 0.4em 0.8em 0.4em 0; color: var(--c-muted); border: none; }
.hours-table td:first-child { color: var(--c-deep); font-weight: 600; width: 40%; }

.map-embed { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--c-border); background: var(--c-border); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.notice-box {
  background: #fff7ed; border: 1px solid #f2c9a8; color: #7a3a15;
  border-radius: var(--radius-m); padding: 1.1rem 1.3rem; font-size: 0.92rem; margin-bottom: 1.6rem;
}
.notice-box strong { color: #7a3a15; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--c-deep), var(--c-slate));
  color: #fff; border-radius: var(--radius-l);
  padding: clamp(2rem, 4vw, 3.2rem);
  display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: space-between;
}
.cta-band h2, .cta-band p { color: #fff; margin: 0; }
.cta-band p { color: #dbe3ec; max-width: 46ch; }

/* Footer */
.site-footer { background: var(--c-graphite); color: #b9c2cc; padding-block: clamp(2.5rem, 4vw, 4rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6em; }
.site-footer a { color: #b9c2cc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 30px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { color: #8b96a3; max-width: 34ch; font-size: 0.92rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; justify-content: space-between; font-size: 0.85rem; color: #8b96a3;
}
.footer-bottom a { color: #8b96a3; }

/* Legal pages */
.legal-content { max-width: 800px; }
.legal-content h2 { margin-top: 1.8em; }
.legal-content h3 { margin-top: 1.3em; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual { opacity: 1; transform: none; animation: none; }
}

/* Breadcrumb-ish page header for subpages */
.page-hero { background: var(--c-deep); color: #fff; padding-block: clamp(2.6rem, 5vw, 4.2rem); }
.page-hero .eyebrow { color: #f0a488; }
.page-hero h1 { color: #fff; margin-bottom: 0.4em; }
.page-hero p { color: #c3cedb; max-width: 62ch; font-size: 1.08rem; margin: 0; }

.calendly-placeholder {
  border: 2px dashed var(--c-border); border-radius: var(--radius-m);
  padding: 2.2rem; text-align: center; background: var(--c-surface);
}
.calendly-placeholder svg { width: 40px; height: 40px; color: var(--c-slate); margin-bottom: 0.8rem; }
