/* Portal-Seiten: Startseite (Hero, persönlicher Demo-Code, Branchen) und Branchenseiten (drei Ausbaustufen).
   Meshor-CI: dunkler Grund, Blau als einzige Akzentfarbe, helle Karte für den Demo-Code. */
.mdb-page {
  --p-bg: #0b0f14; --p-raise: #111720; --p-line: #1f2a37; --p-line-2: #2c3a4b;
  --p-text: #f8fafc; --p-mute: #9aa7b8; --p-dim: #64748b; --p-blue: #2563eb; --p-blue-2: #3b82f6; --p-blue-text: #7cb4ff;
  color: var(--p-text); font: 400 16px/1.55 'Archivo Meshor', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.mdb-page *, .mdb-page *::before, .mdb-page *::after { box-sizing: border-box; }
/* Rücksetzen ohne Spezifität, damit die Komponentenregeln unten gewinnen */
:where(.mdp, .mdp-foot) :where(h1, h2, h3, p, ul, figure) { margin: 0; }
:where(.mdp) :where(ul) { padding: 0; list-style: none; }
.mdp img { display: block; max-width: 100%; height: auto; }
.mdb-page a:focus-visible, .mdb-page button:focus-visible { outline: 2px solid var(--p-blue-text); outline-offset: 3px; }
/* Sprungziele nicht unter der festen Leiste verstecken */
.mdb-page [id] { scroll-margin-top: 96px; }
.mdp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ---------- Schaltflächen ---------- */
.mdp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mdp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--p-line-2); border-radius: 999px; color: var(--p-text); text-decoration: none;
  font-size: 15.5px; font-weight: 600; line-height: 1.2; text-align: center; transition: background-color .2s, border-color .2s;
}
.mdp-btn:hover { border-color: #4a5b70; background: rgb(255 255 255 / .04); }
.mdp-btn.is-primary { background: var(--p-blue); border-color: var(--p-blue); color: #fff; }
.mdp-btn.is-primary:hover { background: var(--p-blue-2); border-color: var(--p-blue-2); }
.mdp-btn svg { flex: none; transition: transform .2s; }
.mdp-btn:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.mdp-hero { padding: clamp(48px, 8vw, 112px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.mdp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.mdp-eyebrow { color: var(--p-blue-text); font-size: 13px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.mdp-hero h1 {
  margin-top: 18px; max-width: 13em; font-size: clamp(38px, 5.4vw, 68px); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.035em; text-wrap: balance;
}
.mdp-sub { margin-top: 22px; max-width: 34em; color: var(--p-mute); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; text-wrap: pretty; }
.mdp-hero .mdp-actions { margin-top: 32px; }
.mdp-by { margin-top: 28px; color: var(--p-dim); font-size: 14px; }

/* drei echte Vorschauen, leicht versetzt gestapelt */
.mdp-hero-shots { position: relative; aspect-ratio: 16 / 12; }
.mdp-shot { position: absolute; width: 74%; overflow: hidden; border: 1px solid var(--p-line-2); border-radius: 14px; background: var(--p-raise); box-shadow: 0 30px 80px rgb(0 0 0 / .45); }
.mdp-shot img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; }
.mdp-shot-1 { top: 0; right: 0; width: 82%; }
.mdp-shot-2 { bottom: 0; left: 0; width: 50%; }
.mdp-shot-3 { bottom: 7%; right: 4%; width: 44%; }

.mdp-hero.is-branch { padding-bottom: clamp(16px, 3vw, 32px); }
.mdp-hero.is-branch h1 { font-size: clamp(40px, 6vw, 72px); }
.mdp-back { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0 12px; color: var(--p-mute); font-size: 15px; text-decoration: none; }
.mdp-back:hover { color: var(--p-text); }

/* ---------- Abschnitte ---------- */
.mdp-section { padding: clamp(56px, 8vw, 112px) 0 0; }
.mdp-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }
.mdp-head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.mdp-head p { margin-top: 14px; color: var(--p-mute); font-size: clamp(16px, 1.4vw, 18px); text-wrap: pretty; }

/* ---------- Persönlicher Demo-Code: helle, ruhige Karte ---------- */
.mdc {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(28px, 5vw, 72px); padding: clamp(28px, 5vw, 56px); border-radius: 24px;
  background: #fff; color: #0b0f14;
}
.mdc-kicker { margin-bottom: 14px; color: var(--p-blue); font-size: 12.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.mdc h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.mdc-lead { margin-top: 14px; max-width: 40ch; color: #475569; font-size: clamp(16px, 1.4vw, 18px); }
.mdc-panel { padding: clamp(20px, 2.4vw, 28px); border: 1px solid #e2e8f0; border-radius: 18px; background: #f8fafc; }
.mdc-panel [hidden] { display: none !important; }
.mdc-label { margin-bottom: 8px; font-size: 13px; font-weight: 650; }
.mdc-row { display: flex; flex-direction: column; gap: 10px; }
.mdc-row input {
  width: 100%; height: 56px; padding: 0 16px; border: 1.5px solid #cbd5e1; border-radius: 14px; background: #fff; color: #0b0f14;
  font: 600 17px/1 'Archivo Meshor', ui-sans-serif, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  transition: border-color .15s, box-shadow .15s;
}
.mdc-row input::placeholder { color: #94a3b8; font-weight: 400; letter-spacing: 0; text-transform: none; }
.mdc-row input:focus { outline: none; border-color: var(--p-blue); box-shadow: 0 0 0 4px rgb(37 99 235 / .16); }
.mdc-row input[aria-invalid='true'] { border-color: #b91c1c; }
.mdc-row button, .mdc-open {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; padding: 0 24px;
  border: 0; border-radius: 14px; background: var(--p-blue); color: #fff; cursor: pointer; text-decoration: none;
  font: 600 16px/1 'Archivo Meshor', ui-sans-serif, system-ui, sans-serif; white-space: nowrap; transition: background-color .15s;
}
.mdc-row button:hover, .mdc-open:hover { background: #1d4ed8; }
.mdc :focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.mdc-row button:disabled { cursor: progress; background: #3b6fe0; }
.mdc-btn-i { font-size: 18px; }
.mdc-form[aria-busy='true'] .mdc-btn-i { width: 14px; height: 14px; border: 2px solid rgb(255 255 255 / .45); border-top-color: #fff; border-radius: 50%; font-size: 0; animation: mdc-spin .7s linear infinite; }
@keyframes mdc-spin { to { transform: rotate(360deg); } }
.mdc-msg { margin-top: 12px; color: #b91c1c; font-size: 14px; line-height: 1.5; }
.mdc-msg a { color: #1d4ed8; font-size: 13.5px; text-underline-offset: 3px; }
.mdc-error { outline: none; }
.mdc-error h2 { margin-bottom: 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.mdc-error p { margin-bottom: 20px; color: #475569; font-size: 15px; line-height: 1.55; }
.mdc-retry, .mdc-request { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; box-sizing: border-box; border-radius: 14px; font: 600 16px/1 'Archivo Meshor', ui-sans-serif, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.mdc-retry { border: 0; background: #2563eb; color: #fff; transition: background-color .15s; }
.mdc-retry:hover { background: #1d4ed8; }
.mdc-request { margin-top: 10px; border: 1.5px solid #cbd5e1; background: #fff; color: #0b0f14; }
.mdc-request:hover { border-color: #94a3b8; }
.mdc-retry:focus-visible, .mdc-request:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.mdc-hint { margin: 14px 0 0; color: #64748b; font-size: 13px; line-height: 1.5; }
.mdc-company { margin-bottom: 18px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.mdc-other {
  display: block; min-height: 44px; margin: 6px auto 0; padding: 0 8px; border: 0; background: none; cursor: pointer;
  color: #475569; font: 500 14px/1.4 'Archivo Meshor', ui-sans-serif, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px;
}
.mdc-other:hover { color: #0b0f14; }

/* ---------- Branchenfilter ---------- */
.mdp-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.mdp-filter[hidden] { display: none; }
.mdp-filter button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--p-line-2); border-radius: 999px; background: transparent; color: var(--p-mute);
  font: 500 14.5px/1 'Archivo Meshor', ui-sans-serif, system-ui, sans-serif; cursor: pointer; transition: color .2s, background-color .2s, border-color .2s;
}
.mdp-filter button span { color: var(--p-dim); font-size: 13px; }
.mdp-filter button:hover { color: var(--p-text); border-color: #4a5b70; }
.mdp-filter button[aria-pressed='true'] { background: var(--p-text); border-color: var(--p-text); color: var(--p-bg); }
.mdp-filter button[aria-pressed='true'] span { color: #475569; }
.mdp-card[hidden] { display: none; }

/* ---------- Branchenkarten ---------- */
.mdp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mdp-card a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--p-line); border-radius: 20px;
  background: var(--p-raise); color: inherit; text-decoration: none; transition: border-color .2s, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.mdp-card-shot { display: block; aspect-ratio: 8 / 5; overflow: hidden; background: #0e141c; border-bottom: 1px solid var(--p-line); }
.mdp-card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.mdp-card-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 20px 20px 22px; }
.mdp-card-meta { color: var(--p-dim); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.mdp-card strong { font-size: 21px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; }
.mdp-card-text { color: var(--p-mute); font-size: 15px; line-height: 1.5; }
.mdp-card-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; color: var(--p-blue-text); font-size: 15px; font-weight: 600; }
.mdp-card-cta svg { transition: transform .2s; }
@media (hover: hover) and (pointer: fine) {
  .mdp-card a:hover { border-color: var(--p-line-2); transform: translateY(-2px); }
  .mdp-card a:hover img { transform: scale(1.025); }
  .mdp-card a:hover .mdp-card-cta svg { transform: translateX(3px); }
}

/* weitere Branchen in Vorbereitung */
.mdp-soon {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  margin-top: 16px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--p-line); border-radius: 20px;
}
.mdp-soon > div { flex: 1 1 420px; min-width: 0; }
.mdp-soon h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.mdp-soon p { margin-top: 6px; color: var(--p-mute); font-size: 15px; }

/* ---------- Branchenseite: drei Ausbaustufen ---------- */
.mdp-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.mdp-tier { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--p-line); border-radius: 22px; background: var(--p-raise); }
/* Premium dezent hervorgehoben: blaue Kante statt Abzeichen */
.mdp-tier.is-top { border-color: rgb(59 130 246 / .55); box-shadow: 0 0 0 1px rgb(59 130 246 / .25), 0 24px 60px rgb(37 99 235 / .12); }
.mdp-tier-shot { display: block; aspect-ratio: 8 / 5; overflow: hidden; background: #0e141c; border-bottom: 1px solid var(--p-line); }
.mdp-tier-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mdp-tier-body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.2vw, 28px); }
.mdp-tier-label { color: var(--p-mute); font-size: 13px; font-weight: 650; letter-spacing: .12em; }
.mdp-tier.is-top .mdp-tier-label { color: var(--p-blue-text); }
.mdp-tier h3 { margin-top: 8px; font-size: clamp(20px, 1.9vw, 24px); font-weight: 650; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.mdp-points { display: grid; gap: 10px; margin: 18px 0 24px; }
.mdp-points li { display: flex; gap: 10px; color: #cbd5e1; font-size: 15px; line-height: 1.45; }
.mdp-points svg { flex: none; margin-top: 3px; color: var(--p-blue-text); }
.mdp-tier .mdp-btn { margin-top: auto; width: 100%; }
.mdp-extras { margin-top: 20px; color: var(--p-mute); font-size: 15px; }
.mdp-extras strong { color: var(--p-text); font-weight: 600; }

/* ---------- Abschlussband ---------- */
.mdp-cta { padding: clamp(72px, 10vw, 136px) 0; text-align: center; }
.mdp-cta .mdp-wrap { display: flex; flex-direction: column; align-items: center; }
.mdp-cta h2 { max-width: 16em; font-size: clamp(30px, 4.4vw, 54px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.mdp-cta p { margin-top: 18px; max-width: 36em; color: var(--p-mute); font-size: clamp(16px, 1.4vw, 18px); text-wrap: pretty; }
.mdp-cta .mdp-actions { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.mdp-foot { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--p-line); }
.mdp-foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.mdp-foot-brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; color: var(--p-text); font-size: 19px; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; }
.mdp-foot-brand i { font-style: normal; color: var(--p-blue-2); }
.mdp-foot nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-right: -10px; }
.mdp-foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--p-mute); font-size: 14.5px; text-decoration: none; }
.mdp-foot nav a:hover { color: var(--p-text); }
.mdp-foot-note { margin-top: 20px; max-width: 60em; color: var(--p-dim); font-size: 13.5px; line-height: 1.55; }

/* ---------- Breiten ---------- */
@media (max-width: 1279px) {
  .mdp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .mdp-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .mdp-hero-shots { max-width: 640px; width: 100%; }
  .mdp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Tablet: Stufen untereinander, Vorschau links */
  .mdp-tiers { grid-template-columns: minmax(0, 1fr); }
  .mdp-tier { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .mdp-tier-shot { aspect-ratio: auto; height: 100%; border-bottom: 0; border-right: 1px solid var(--p-line); }
  .mdc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .mdp-cards { grid-template-columns: minmax(0, 1fr); }
  .mdp-tier { display: flex; }
  .mdp-tier-shot { aspect-ratio: 8 / 5; height: auto; border-right: 0; border-bottom: 1px solid var(--p-line); }
  .mdp-actions .mdp-btn { flex: 1 1 100%; }
  .mdc { padding: 24px 18px; border-radius: 20px; }
  .mdc-panel { padding: 16px; }
  .mdp-foot nav { margin-right: 0; margin-left: -10px; }
}
@media (max-width: 380px) {
  .mdc-row input::placeholder { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .mdb-page *, .mdb-page *::before, .mdb-page *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .mdp-card a:hover, .mdp-card a:hover img { transform: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.mdb-page) { scroll-behavior: smooth; }
}
