/* =====================================================================
   Mind driven Shooting · Basis
   Grundtypografie, Bausteine. Gilt für Seiten aus den Block-Vorlagen, LearnPress, Blog.
   Die Vorlagen und Block-Stile des Themes vergeben die Klassen mit Präfix mds-.
   ===================================================================== */

/* ---------- Grund ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--mds-ink);
  color: var(--mds-paper);
  font-family: var(--mds-font);
  font-size: var(--mds-body);
  line-height: var(--mds-body-lh);
  -webkit-font-smoothing: antialiased;
}
body p { color: var(--mds-muted); }
a { color: var(--mds-steel); text-decoration: none; }
a:hover { color: var(--mds-paper); text-decoration: underline; text-underline-offset: 4px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--mds-paper); color: var(--mds-ink); }

/* Fokus sichtbar, monochrom */
:focus-visible { outline: 2px solid var(--mds-paper); outline-offset: 3px; }

/* ---------- Überschriften ---------- */
h1, h2, h3, h4, .mds-h1, .mds-h2, .mds-h3 {
  font-family: var(--mds-font);
  color: var(--mds-paper);
  margin: 0;
}
h1, .mds-h1 {
  font-size: var(--mds-h1); line-height: var(--mds-h1-lh); letter-spacing: var(--mds-h1-ls);
  font-weight: 900; text-transform: uppercase; text-wrap: balance;
}
.mds-h1-lang, h1.mds-h1-lang {
  font-size: var(--mds-h1-lang); line-height: var(--mds-h1-lang-lh); letter-spacing: -0.025em;
  font-weight: 900; text-transform: none;
}
h2, .mds-h2 {
  font-size: var(--mds-h2); line-height: var(--mds-h2-lh); letter-spacing: var(--mds-h2-ls);
  font-weight: 900; text-transform: uppercase; text-wrap: balance;
}
h3, .mds-h3 { font-size: var(--mds-h3); line-height: var(--mds-h3-lh); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: var(--mds-body); font-weight: 700; }

/* Signature-Muster: kursives Light-Wort in Steel, eines pro Zeile, höchstens zwei je Überschrift */
h1 em, h2 em, .mds-h1 em, .mds-h2 em {
  font-style: italic; font-weight: 300; text-transform: none; letter-spacing: 0; color: var(--mds-steel);
}

/* ---------- Textrollen ---------- */
.mds-eyebrow {
  display: block; font-size: var(--mds-eyebrow); font-weight: 500; line-height: 1.4;
  letter-spacing: var(--mds-eyebrow-ls); text-transform: uppercase; color: var(--mds-steel);
}
.mds-lead  { font-size: var(--mds-lead); line-height: var(--mds-lead-lh); font-weight: 300; color: var(--mds-paper); }
.mds-body  { font-size: var(--mds-body); line-height: var(--mds-body-lh); color: var(--mds-muted); }
.mds-small { font-size: var(--mds-small); line-height: var(--mds-small-lh); color: var(--mds-muted); }
.mds-quote {
  font-size: var(--mds-quote); line-height: var(--mds-quote-lh); font-weight: 300; font-style: italic; color: var(--mds-paper);
}
.mds-rule { width: 40px; height: 2px; background: var(--mds-paper); }
.mds-hair { height: 1px; background: var(--mds-hair); }

/* ---------- Helle Sektion ---------- */
.mds-light { background: var(--mds-paper); color: var(--mds-ink); }
.mds-light h1, .mds-light h2, .mds-light h3, .mds-light .mds-lead, .mds-light .mds-quote { color: var(--mds-ink); }
.mds-light h1 em, .mds-light h2 em, .mds-light .mds-eyebrow { color: var(--mds-surface); }
.mds-light p, .mds-light .mds-body, .mds-light .mds-small { color: var(--mds-surface); }
.mds-light a { color: var(--mds-surface); }
.mds-light a:hover { color: var(--mds-ink); }
.mds-light .mds-rule { background: var(--mds-ink); }
.mds-light .mds-hair { background: var(--mds-hair-light); }
/* Steel erreicht auf Paper nur 1,95:1 und ist dort nur für Linien und Icons erlaubt */
.mds-light .mds-icon { stroke: var(--mds-surface); }

/* ---------- Buttons ---------- */
.mds-btn,
.wp-block-button__link,
.lp-button, .lp-btn, button.lp-button, .button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--mds-control); padding: 0 28px;
  font-family: var(--mds-font); font-size: var(--mds-button); font-weight: 500; line-height: 1;
  letter-spacing: var(--mds-button-ls); text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--mds-paper); border-radius: var(--mds-radius);
  background: var(--mds-paper); color: var(--mds-ink);
  cursor: pointer; white-space: nowrap; box-shadow: none; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.mds-btn:hover, .lp-button:hover, .button:hover, input[type="submit"]:hover {
  background: #ffffff; border-color: #ffffff; color: var(--mds-ink); text-decoration: none;
}
.mds-btn--secondary, .mds-btn.is-secondary {
  background: transparent; color: var(--mds-steel); border-color: var(--mds-steel);
}
.mds-btn--secondary:hover, .mds-btn.is-secondary:hover { background: transparent; color: var(--mds-paper); border-color: var(--mds-paper); }
.mds-btn--tertiary, .mds-btn.is-tertiary {
  min-height: 0; padding: 0; background: transparent; color: var(--mds-steel);
  border: 0; border-bottom: 1px solid transparent; border-radius: 0;
}
.mds-btn--tertiary:hover, .mds-btn.is-tertiary:hover { background: transparent; color: var(--mds-paper); border-bottom-color: var(--mds-paper); }
.mds-btn--sm { min-height: var(--mds-control-sm); padding: 0 20px; font-size: 13px; }
.mds-btn[aria-disabled="true"], .mds-btn:disabled, .mds-btn.is-disabled { opacity: .4; cursor: not-allowed; }

.mds-light .mds-btn { background: var(--mds-ink); border-color: var(--mds-ink); color: var(--mds-paper); }
.mds-light .mds-btn:hover { background: var(--mds-surface); border-color: var(--mds-surface); }
.mds-light .mds-btn--secondary { background: transparent; color: var(--mds-surface); border-color: var(--mds-surface); }
.mds-light .mds-btn--secondary:hover { color: var(--mds-ink); border-color: var(--mds-ink); }

/* Hover-Linie (Wortmarke, Navigation, Textlinks in Listen) */
.mds-underline { position: relative; display: inline-block; }
.mds-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--mds-paper);
  transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
}
.mds-underline:hover::after, .mds-underline.is-active::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .mds-underline::after, .mds-btn { transition: none; } }

/* ---------- Formulare ---------- */
.mds-label, label {
  display: block; margin-bottom: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mds-muted);
}
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
input[type="search"], input[type="url"], select, textarea, .mds-input {
  width: 100%; min-height: var(--mds-control); padding: 0 16px;
  font-family: var(--mds-font); font-size: 16px; color: var(--mds-paper);
  background: transparent; border: 1px solid var(--mds-hair-strong); border-radius: var(--mds-radius);
  box-shadow: none; outline: none;
}
textarea { min-height: 160px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8A9099; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--mds-paper); }
input[aria-invalid="true"], .mds-field.is-error input { border-color: var(--mds-paper); border-width: 2px; }
.mds-error { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--mds-paper); }
input[type="checkbox"], input[type="radio"] {
  appearance: none; width: 20px; height: 20px; margin: 0 12px 0 0; flex-shrink: 0; vertical-align: middle;
  border: 1px solid var(--mds-steel); border-radius: var(--mds-radius); background: transparent; display: inline-grid; place-content: center;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked { background: var(--mds-paper); }
input[type="checkbox"]:checked::before { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--mds-ink); border-bottom: 2px solid var(--mds-ink); transform: translateY(-2px) rotate(-45deg); }
input[type="radio"]:checked::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mds-paper); }
.mds-light input, .mds-light select, .mds-light textarea { color: var(--mds-ink); border-color: rgba(9,10,12,.35); }
.mds-light label { color: var(--mds-surface); }
.mds-light input[type="checkbox"], .mds-light input[type="radio"] { border-color: var(--mds-surface); }
.mds-light input[type="checkbox"]:checked, .mds-light input[type="radio"]:checked::before { background: var(--mds-ink); }
.mds-light input[type="checkbox"]:checked::before { border-color: var(--mds-paper); }

/* ---------- Karte ---------- */
.mds-card {
  display: flex; flex-direction: column; gap: 24px; padding: 40px;
  border: 1px solid var(--mds-hair); border-radius: var(--mds-radius); background: transparent;
}
.mds-card__image { aspect-ratio: 16 / 9; margin: -40px -40px 8px; overflow: hidden; border-radius: var(--mds-radius) var(--mds-radius) 0 0; background: var(--mds-surface); }
.mds-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mds-card__price { font-size: 32px; font-weight: 900; letter-spacing: -.02em; color: var(--mds-paper); }
.mds-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
@media (max-width: 767px) { .mds-card { padding: 28px; } .mds-card__image { margin: -28px -28px 8px; } }

/* ---------- Layout-Helfer ---------- */
.mds-container { width: var(--mds-container); max-width: 100%; margin: 0 auto; padding: 0 var(--mds-gutter); box-sizing: border-box; }
.mds-section { padding: var(--mds-section) 0; }
.mds-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--mds-gutter); }
@media (max-width: 767px) { .mds-grid > * { grid-column: 1 / -1 !important; } }

/* ---------- Bildmarke ---------- */
.mds-mark { display: block; width: auto; }
.mds-mark--hero { max-width: 420px; width: 100%; }
.mds-mark--section { width: 80px; }
