/* ── MARKSENSE THEME — main.css ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blau:       #1E3A5F;
  --blau-hell:  #2a4f80;
  --gold:       #E8971E;
  --gold-hell:  #f5a93a;
  --grau:       #6B7280;
  --grau-hell:  #F8F9FA;
  --grau-mid:   #E5E7EB;
  --weiss:      #FFFFFF;
  --text:       #1F2937;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(30,58,95,.10);
  --max-w:      1080px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.65; font-size: 17px; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--blau); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── NAVIGATION ──────────────────────────────────────────── */
.ms-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--weiss);
  border-bottom: 1px solid var(--grau-mid);
  box-shadow: 0 2px 12px rgba(30,58,95,.07);
}
.ms-nav__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 104px;
}
.ms-nav__logo img { height: 90px; width: auto; }
.ms-nav__links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.ms-nav__links a {
  text-decoration: none; color: var(--blau); font-size: 15px; font-weight: 500;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.ms-nav__links a:hover { border-bottom-color: var(--gold); color: var(--gold); }
.ms-nav__cta {
  background: var(--gold) !important; color: var(--weiss) !important;
  padding: 10px 22px; border-radius: var(--radius); border: none !important;
  font-weight: 600; font-size: 14px; transition: background .2s;
  text-decoration: none !important;
}
.ms-nav__cta:hover { background: var(--gold-hell) !important; }
.ms-nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.ms-nav__toggle span { display: block; width: 24px; height: 2px; background: var(--blau); border-radius: 2px; }

/* ── HERO ────────────────────────────────────────────────── */
.ms-hero {
  background: linear-gradient(135deg, var(--blau) 0%, var(--blau-hell) 60%, #1a4a7a 100%);
  color: var(--weiss); padding: 100px 1.5rem 90px; text-align: center;
  position: relative; overflow: hidden;
}
.ms-hero::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: rgba(232,151,30,.10); pointer-events: none;
}
.ms-hero__inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.ms-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700;
  line-height: 1.18; margin-bottom: 22px; letter-spacing: -.02em;
}
.ms-hero p { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 40px; }
.ms-hero__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── PAGE HERO ───────────────────────────────────────────── */
.ms-page-hero {
  background: linear-gradient(135deg, var(--blau) 0%, var(--blau-hell) 100%);
  color: var(--weiss); padding: 72px 1.5rem 64px;
}
.ms-page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 16px; }
.ms-page-hero p  { font-size: 1.1rem; color: rgba(255,255,255,.80); max-width: 600px; }
.ms-page-hero--small { padding: 48px 1.5rem; }

/* ── TRUST BAR ───────────────────────────────────────────── */
.ms-trust { background: var(--blau); padding: 40px 1.5rem; }
.ms-trust__grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center;
}
.ms-trust__item strong { display: block; font-size: 2rem; font-weight: 700; color: var(--gold); }
.ms-trust__item span  { font-size: 13px; color: rgba(255,255,255,.65); }

/* ── SECTIONS ────────────────────────────────────────────── */
.ms-section { padding: 88px 1.5rem; }
.ms-section--light { background: var(--grau-hell); }
.ms-section--dark  { background: var(--blau); }

/* ── TYPO HELPERS ────────────────────────────────────────── */
.ms-label {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.ms-label--gold  { color: var(--gold); }
.ms-label--light { color: rgba(255,255,255,.6); }
.ms-gold { color: var(--gold); }
.ms-h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: var(--blau);
  line-height: 1.25; margin-bottom: 18px; letter-spacing: -.02em;
}
.ms-subtitle { font-size: 1.05rem; color: var(--grau); max-width: 600px; line-height: 1.7; margin-bottom: 52px; }
.ms-quote {
  margin-top: 28px; padding: 20px 24px;
  border-left: 4px solid var(--gold);
  background: var(--weiss); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem; font-weight: 500; color: var(--blau); line-height: 1.55;
  box-shadow: var(--shadow);
}
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── GRID ────────────────────────────────────────────────── */
.ms-grid { display: grid; gap: 52px; align-items: center; }
.ms-grid--2 { grid-template-columns: 1fr 1fr; }
.ms-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ms-grid--reverse { direction: rtl; }
.ms-grid--reverse > * { direction: ltr; }
.ms-grid--kontakt { grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.ms-btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  border-radius: var(--radius); transition: background .2s, transform .15s;
  padding: 14px 28px; font-size: 15px;
}
.ms-btn--primary { background: var(--gold); color: var(--weiss); box-shadow: 0 4px 16px rgba(232,151,30,.30); }
.ms-btn--primary:hover { background: var(--gold-hell); transform: translateY(-1px); color: var(--weiss); }
.ms-btn--ghost { background: rgba(255,255,255,.12); color: var(--weiss); border: 1px solid rgba(255,255,255,.30); }
.ms-btn--ghost:hover { background: rgba(255,255,255,.22); color: var(--weiss); }
.ms-btn--lg { padding: 16px 36px; font-size: 16px; }
.ms-btn--full { width: 100%; text-align: center; }

.ms-link { color: var(--gold); text-decoration: none; font-weight: 600; font-size: 14px; transition: gap .2s; }
.ms-link:hover { text-decoration: underline; }

/* ── STEPS ───────────────────────────────────────────────── */
.ms-steps { display: flex; flex-direction: column; gap: 16px; }
.ms-step {
  background: var(--weiss); border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: flex-start; gap: 16px; box-shadow: var(--shadow);
}
.ms-step__nr {
  min-width: 36px; height: 36px; background: var(--blau); color: var(--weiss);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.ms-step h4 { font-size: 15px; font-weight: 600; color: var(--blau); margin-bottom: 4px; }
.ms-step p  { font-size: 14px; color: var(--grau); margin: 0; }

/* ── CARDS ───────────────────────────────────────────────── */
.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ms-card {
  background: var(--grau-hell); border-radius: 12px; padding: 36px 28px;
  border: 1px solid var(--grau-mid); transition: box-shadow .2s, transform .2s;
  position: relative; overflow: hidden;
}
.ms-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.ms-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.ms-card:hover::before { transform: scaleX(1); }
.ms-card__icon {
  width: 52px; height: 52px; background: var(--blau); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--weiss);
}
.ms-card__icon svg { width: 26px; height: 26px; }
.ms-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--blau); margin-bottom: 12px; }
.ms-card p  { font-size: 14px; color: var(--grau); line-height: 1.7; margin-bottom: 20px; }

/* ── PHOTO PLACEHOLDER ───────────────────────────────────── */
.ms-photo-placeholder {
  background: rgba(255,255,255,.08); border-radius: 12px; aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.15); font-size: 14px; color: rgba(255,255,255,.4);
  text-align: center; padding: 24px;
}
.ms-photo-placeholder--light {
  background: var(--grau-mid); border-color: var(--grau-mid); color: var(--grau);
}

/* ── CHECKLIST ───────────────────────────────────────────── */
.ms-checklist { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.ms-checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,.9); }
.ms-checklist li::before { content: ''; min-width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }

/* ── TARGET GRID ─────────────────────────────────────────── */
.ms-target-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ms-target {
  background: var(--weiss); border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--grau-mid); box-shadow: var(--shadow);
}
.ms-target__check {
  width: 32px; height: 32px; background: rgba(232,151,30,.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-weight: 700; margin-bottom: 14px;
}
.ms-target h4 { font-size: 15px; font-weight: 700; color: var(--blau); margin-bottom: 8px; }
.ms-target p  { font-size: 14px; color: var(--grau); }

/* ── CTA SECTION ─────────────────────────────────────────── */
.ms-cta {
  background: linear-gradient(135deg, var(--blau) 0%, var(--blau-hell) 100%);
  padding: 88px 1.5rem; text-align: center;
}
.ms-cta__inner { max-width: 600px; margin: 0 auto; }
.ms-cta h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: var(--weiss); margin-bottom: 16px; }
.ms-cta p  { color: rgba(255,255,255,.80); margin-bottom: 32px; font-size: 1.05rem; }
.ms-cta__note { font-size: 13px; color: rgba(255,255,255,.50); margin-top: 16px; margin-bottom: 0; }

/* ── LEISTUNGEN PAGE ─────────────────────────────────────── */
.ms-leistung { display: grid; grid-template-columns: 100px 1fr; gap: 40px; margin-bottom: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--grau-mid); align-items: start; }
.ms-leistung:last-child { border-bottom: none; margin-bottom: 0; }
.ms-leistung__nr { font-size: 3.5rem; font-weight: 700; color: var(--grau-mid); line-height: 1; }
.ms-leistung--alt { background: var(--grau-hell); border-radius: 12px; padding: 40px; margin: 0 -40px 64px; border-bottom: none; }
.ms-leistung--alt .ms-leistung__nr { color: var(--blau); opacity: .3; }
.ms-leistung__content h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; color: var(--blau); margin-bottom: 8px; }
.ms-leistung__lead { font-size: 1.1rem; font-weight: 500; color: var(--blau); margin-bottom: 16px; }
.ms-leistung__punkte { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.ms-leistung__punkte div { font-size: 14px; color: var(--grau); }
.ms-leistung__punkte strong { color: var(--blau); }

/* ── ABGRENZUNG ──────────────────────────────────────────── */
.ms-abgrenzung {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  background: var(--grau-hell); border-radius: 12px; padding: 40px 48px;
  border: 1px solid var(--grau-mid);
}
.ms-abgrenzung h4 { font-size: 1rem; font-weight: 700; color: var(--blau); margin-bottom: 16px; }
.ms-abgrenzung ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ms-abgrenzung li { font-size: 14px; display: flex; align-items: center; gap: 10px; }

/* ── ABLAUF ──────────────────────────────────────────────── */
.ms-ablauf { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.ms-ablauf__step { flex: 1; min-width: 160px; text-align: center; }
.ms-ablauf__nr {
  width: 48px; height: 48px; background: var(--blau); color: var(--weiss);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; margin: 0 auto 12px;
}
.ms-ablauf__step h4 { font-weight: 700; color: var(--blau); margin-bottom: 8px; }
.ms-ablauf__step p  { font-size: 14px; color: var(--grau); }
.ms-ablauf__arrow { font-size: 1.5rem; color: var(--gold); margin-top: 14px; }

/* ── INSIGHTS ────────────────────────────────────────────── */
.ms-insight-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: start;
}
.ms-insight-box__item {
  background: var(--weiss); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--grau-mid); box-shadow: var(--shadow); text-align: center;
}
.ms-insight-box__item strong { display: block; font-size: 2.2rem; font-weight: 700; color: var(--blau); }
.ms-insight-box__item span   { font-size: 13px; color: var(--grau); }

.ms-insights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.ms-insight-card {
  background: var(--grau-hell); border-radius: 12px; padding: 32px 28px;
  border: 1px solid var(--grau-mid); border-top: 4px solid var(--gold);
}
.ms-insight-card h3 { font-size: 1rem; font-weight: 700; color: var(--blau); margin-bottom: 8px; }
.ms-insight-card__value { font-size: 1.6rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.ms-insight-card p  { font-size: 14px; color: var(--grau); line-height: 1.65; margin-bottom: 14px; }
.ms-insight-card__tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blau); background: rgba(30,58,95,.08);
  padding: 4px 10px; border-radius: 4px;
}

.ms-highlight-box {
  background: var(--grau-hell); border-radius: 12px; padding: 48px;
  border: 1px solid var(--grau-mid);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.ms-highlight-box h2 { color: var(--blau); margin-bottom: 12px; font-size: 1.6rem; }
.ms-highlight-box p  { color: var(--grau); margin-bottom: 10px; }
.ms-highlight-box .ms-btn { white-space: nowrap; }

/* ── ÜBER PAGE ───────────────────────────────────────────── */
.ms-ueber-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px;
  background: var(--grau-hell); border-radius: var(--radius); padding: 20px;
}
.ms-ueber-facts div { font-size: 14px; color: var(--grau); }
.ms-ueber-facts strong { color: var(--blau); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.ms-wert { background: var(--weiss); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--grau-mid); }
.ms-wert h4 { font-weight: 700; color: var(--blau); margin-bottom: 10px; }
.ms-wert p  { font-size: 14px; color: var(--grau); margin: 0; }

/* ── KONTAKT PAGE ────────────────────────────────────────── */
.ms-form .ms-form__group { margin-bottom: 20px; }
.ms-form label { display: block; font-size: 14px; font-weight: 600; color: var(--blau); margin-bottom: 6px; }
.ms-form input, .ms-form textarea, .ms-form select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--grau-mid);
  border-radius: var(--radius); font-size: 15px; font-family: inherit;
  transition: border-color .2s; outline: none;
}
.ms-form input:focus, .ms-form textarea:focus { border-color: var(--blau); }
.ms-form textarea { resize: vertical; }
.ms-form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ms-form__group--checkbox label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--grau); font-size: 14px; }
.ms-form__group--checkbox input { width: auto; margin-top: 2px; }
.ms-form-success { background: #d1fae5; color: #065f46; padding: 16px; border-radius: var(--radius); margin-bottom: 24px; }
.ms-form-error   { background: #fee2e2; color: #991b1b; padding: 16px; border-radius: var(--radius); margin-bottom: 24px; }
.ms-kontakt-list { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.ms-kontakt-list li { display: flex; gap: 16px; }
.ms-kontakt-list__icon { font-size: 1.4rem; min-width: 32px; }
.ms-kontakt-list strong { display: block; font-size: 15px; color: var(--blau); margin-bottom: 4px; }
.ms-kontakt-list p { font-size: 14px; color: var(--grau); margin: 0; }
.ms-kontakt-direkt { background: var(--grau-hell); border-radius: var(--radius); padding: 20px 24px; }
.ms-kontakt-direkt h4 { font-size: 14px; font-weight: 700; color: var(--blau); margin-bottom: 10px; }
.ms-kontakt-direkt p { font-size: 14px; margin-bottom: 6px; }
.ms-kontakt-direkt a { color: var(--gold); text-decoration: none; }

/* ── LEGAL PAGE ──────────────────────────────────────────── */
.ms-legal h1, .ms-legal h2 { color: var(--blau); margin-bottom: 16px; margin-top: 32px; }
.ms-legal p, .ms-legal li { color: var(--grau); line-height: 1.75; }
.ms-legal a { color: var(--gold); }

/* ── CONTENT ─────────────────────────────────────────────── */
.ms-content { padding: 80px 0; }

/* ── FOOTER ──────────────────────────────────────────────── */
.ms-footer { background: #111827; padding: 64px 1.5rem 0; }
.ms-footer__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.ms-footer__brand img { height: 36px; margin-bottom: 16px; opacity: .8; }
.ms-footer__brand p { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.7; }
.ms-footer__links h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.ms-footer__links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ms-footer__links a { font-size: 14px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.ms-footer__links a:hover { color: var(--gold); }
.ms-footer__contact h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.ms-footer__contact p { font-size: 14px; margin-bottom: 8px; }
.ms-footer__contact a { color: rgba(255,255,255,.55); text-decoration: none; }
.ms-footer__contact a:hover { color: var(--gold); }
.ms-footer__copy {
  max-width: var(--max-w); margin: 0 auto;
  padding: 24px 0 32px;
  font-size: 12px; color: rgba(255,255,255,.3); text-align: center;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .ms-grid--2, .ms-grid--kontakt { grid-template-columns: 1fr; }
  .ms-grid--reverse { direction: ltr; }
  .ms-cards { grid-template-columns: 1fr; }
  .ms-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .ms-target-grid { grid-template-columns: 1fr; }
  .ms-insights-grid { grid-template-columns: 1fr; }
  .ms-abgrenzung { grid-template-columns: 1fr; padding: 28px; }
  .ms-highlight-box { flex-direction: column; }
  .ms-footer__inner { grid-template-columns: 1fr 1fr; }
  .ms-leistung { grid-template-columns: 1fr; }
  .ms-leistung--alt { margin: 0 0 64px; }
  .ms-leistung__nr { font-size: 2rem; }
  .ms-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ms-nav__links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--weiss); padding: 16px 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,.1); border-top: 1px solid var(--grau-mid); }
  .ms-nav__links.is-open { display: flex; }
  .ms-nav__toggle { display: flex; }
  .ms-section { padding: 60px 1.25rem; }
  .ms-hero, .ms-page-hero { padding: 64px 1.25rem 56px; }
  .ms-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .ms-form__row--2 { grid-template-columns: 1fr; }
  .ms-footer__inner { grid-template-columns: 1fr; }
  .ms-ablauf { flex-direction: column; }
  .ms-ablauf__arrow { transform: rotate(90deg); margin: 0 auto; }
  .ms-ueber-facts { grid-template-columns: 1fr; }
  .ms-insight-box { grid-template-columns: 1fr; }
  .ms-abgrenzung { padding: 20px; }
}
