/* ==========================================================================
   MK Pages – Ergänzungen zum Aximo-Template
   Cookie-Banner, Formular-Feedback, Karten-Platzhalter, Rechtstexte
   ========================================================================== */

:root {
  --mk-accent: #BFF747;
  --mk-dark: #0c0c0c;
  --mk-dark-2: #13111A;
  --mk-line: rgba(255, 255, 255, .16);
  --mk-text-muted: rgba(255, 255, 255, .72);
}

/* Barrierefreiheit ---------------------------------------------------- */
.mk-skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100000;
  padding: 10px 18px;
  border-radius: 30px;
  background: var(--mk-accent);
  color: #000;
  font-weight: 600;
  transition: top .2s;
}
.mk-skip-link:focus { top: 16px; }

.mk-logo { max-height: 56px; width: auto; }
.aximo-footer-logo .mk-logo { max-height: 64px; }

:focus-visible { outline: 3px solid var(--mk-accent); outline-offset: 3px; }
.light :focus-visible { outline-color: #0000ff; }
.dark-bg :focus-visible { outline-color: var(--mk-accent); }

/* Layout-Helfer ------------------------------------------------------- */
.mk-center-btn,
.mk-btn-row { margin-top: 40px; text-align: center; }
.mk-btn-row { text-align: left; margin-top: 30px; }

.mk-footer-address {
  margin: 22px 0 0;
  font-style: normal;
  color: var(--mk-text-muted);
  line-height: 1.7;
}
.mk-footer-cta { padding: 20px 0; }

.mk-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: flex-end;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.aximo-footer-section .mk-footer-links a { color: #fff; opacity: .85; transition: opacity .2s, color .2s; }
.aximo-footer-section .mk-footer-links a:hover { opacity: 1; color: var(--mk-accent); }
.aximo-copywright.one { text-align: right; }
@media (max-width: 991px) {
  .aximo-copywright.one { text-align: left; margin-top: 20px; }
  .mk-footer-links { justify-content: flex-start; }
}

/* Referenz-Karten ----------------------------------------------------- */
.mk-ref-card {
  height: 100%;
  margin-bottom: 30px;
  padding: 34px 30px;
  border: 1px solid #e3e3e3;
  border-radius: 24px;
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}
.mk-ref-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, .08); }
.mk-ref-card i { display: inline-block; margin-bottom: 18px; font-size: 38px; color: var(--mk-dark); }
.mk-ref-card h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; }
.mk-ref-card p { margin: 0; color: #666; }

/* Formulare ----------------------------------------------------------- */
.mk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mk-consent-check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; font-size: 14px; line-height: 1.5; }
.mk-consent-check input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; accent-color: #0c0c0c; cursor: pointer; }
.mk-consent-check label { margin: 0; cursor: pointer; }
.mk-consent-check a { text-decoration: underline; }
.aximo-form-wrap .mk-consent-check { color: #fff; }
.aximo-form-wrap .mk-consent-check input { accent-color: var(--mk-accent); }
.aximo-form-wrap .mk-consent-check a { color: var(--mk-accent); }

.mk-form-status { display: none; margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.mk-form-status.is-visible { display: block; }
.mk-form-status.is-success { background: #e9fbd0; color: #1d3a00; border: 1px solid #b6e36b; }
.mk-form-status.is-error { background: #ffe5e7; color: #6b0010; border: 1px solid #ff9aa4; }

.mk-form [aria-invalid="true"] { border-color: #e5253a !important; }
.mk-form button[disabled] { opacity: .6; cursor: progress; }

/* Karten-Platzhalter (Zwei-Klick-Lösung) ------------------------------- */
.mk-map { position: relative; min-height: 420px; border-radius: 24px; overflow: hidden; background: #f1f1ec; }
.mk-map iframe { display: block; width: 100%; height: 450px; border: 0; }
.mk-map-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 420px; padding: 40px 24px; text-align: center; }
.mk-map-placeholder h3 { margin-bottom: 12px; }
.mk-map-placeholder p { max-width: 560px; margin: 0 auto 22px; color: #555; }
.mk-map-placeholder a { text-decoration: underline; }

/* Rechtstexte --------------------------------------------------------- */
.mk-legal h2 { margin: 44px 0 14px; font-size: 28px; line-height: 1.25; }
.mk-legal h2:first-child { margin-top: 0; }
.mk-legal p,
.mk-legal li { font-size: 17px; line-height: 1.75; color: #3b3b3b; }
.mk-legal ul { margin: 0 0 20px; padding-left: 22px; }
.mk-legal a { text-decoration: underline; text-underline-offset: 3px; }
.mk-legal a:hover { color: #0000ff; }
.mk-legal code { padding: 2px 6px; border-radius: 6px; background: #f1f1ec; font-size: .9em; }
.mk-legal-lead { font-size: 20px !important; color: #111 !important; margin-bottom: 10px; }

/* Buttons (Cookie-Banner & Platzhalter) -------------------------------- */
.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 40px;
  font: 600 15px/1 "Syne", "Inter", system-ui, sans-serif;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.mk-btn:hover { transform: translateY(-1px); }
.mk-btn-primary { background: var(--mk-accent); color: #000; }
.mk-btn-primary:hover { background: #d3ff6a; }
.mk-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.mk-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* Cookie-Banner -------------------------------------------------------- */
.mk-cc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.mk-cc-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.mk-cc {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 99999;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--mk-line);
  border-radius: 28px;
  background: var(--mk-dark-2);
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  font-family: "Inter", system-ui, sans-serif;
  transform: translateY(24px);
  opacity: 0;
  visibility: hidden;
  transition: transform .3s ease, opacity .3s ease, visibility .3s;
}
.mk-cc.is-visible { transform: none; opacity: 1; visibility: visible; }

.mk-cc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #00c2cb, var(--mk-accent));
  border-radius: 28px 28px 0 0;
}

.mk-cc-title { margin: 0 0 10px; font: 700 22px/1.2 "Syne", "Inter", sans-serif; color: #fff; }
.mk-cc p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: var(--mk-text-muted); }
.mk-cc a { color: var(--mk-accent); text-decoration: underline; text-underline-offset: 3px; }

.mk-cc-details { display: none; margin: 4px 0 18px; border-top: 1px solid var(--mk-line); }
.mk-cc.is-expanded .mk-cc-details { display: block; }
.mk-cc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--mk-line); }
.mk-cc-row strong { display: block; margin-bottom: 4px; font-size: 15px; color: #fff; }
.mk-cc-row span { display: block; font-size: 13px; line-height: 1.5; color: var(--mk-text-muted); }

.mk-switch { position: relative; flex: 0 0 auto; width: 48px; height: 28px; }
.mk-switch input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mk-switch i { position: absolute; inset: 0; border-radius: 28px; background: rgba(255, 255, 255, .22); transition: background .2s; }
.mk-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.mk-switch input:checked + i { background: var(--mk-accent); }
.mk-switch input:checked + i::after { transform: translateX(20px); background: #000; }
.mk-switch input:disabled { cursor: not-allowed; }
.mk-switch input:disabled + i { opacity: .55; }
.mk-switch input:focus-visible + i { outline: 3px solid #fff; outline-offset: 3px; }

.mk-cc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.mk-cc-actions .mk-btn { flex: 1 1 auto; }
.mk-cc-link { margin: 14px 0 0 !important; font-size: 13px !important; }
.mk-cc-link a { margin-right: 14px; }

@media (max-width: 575px) {
  .mk-cc { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 22px 18px; border-radius: 22px; }
  .mk-cc-actions .mk-btn { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-cc, .mk-cc-backdrop, .mk-btn, .mk-switch i, .mk-switch i::after { transition: none; }
}
