﻿/* ============================================================
   MT-CarKeys Â· Eigenes Layout auf Basis Quark2
   Design-Tokens & Basis
   ============================================================ */
:root {
  --mtc-navy: #0b1523;
  --mtc-navy-2: #132036;
  --mtc-amber: #00b3e1;
  --mtc-amber-soft: #e6f8fc;
  --mtc-ink: #16202e;
  --mtc-body: #4b5a6c;
  --mtc-line: #e3e9f0;
  --mtc-bg: #f4f6f9;
  --mtc-white: #ffffff;
  --mtc-blue: #0092b8;
  --mtc-blue-600: #0092b8;
  --mtc-blue-700: #007391;
  --mtc-blue-500: #00b3e1;
  --mtc-blue-soft: #e6f8fc;
  --mtc-radius: 14px;
  --mtc-shadow: 0 10px 30px -12px rgba(11, 21, 35, 0.18);
}

body {
  background: var(--mtc-bg);
  color: var(--mtc-body);
}

::selection { background: var(--mtc-amber); color: var(--mtc-navy); }

.mtc-ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -0.2em; }
a { text-underline-offset: 3px; }

h1, h2, h3, h4 { color: var(--mtc-navy); letter-spacing: -0.01em; }

.mtc-section { padding: 4.25rem 0; }
.mtc-section-dark {
  background: var(--mtc-navy);
  background-image: radial-gradient(60rem 26rem at 85% -10%, rgba(0, 179, 225, 0.18), transparent 60%), radial-gradient(50rem 22rem at -10% 110%, rgba(0, 146, 184, 0.22), transparent 60%);
  color: #b9c6d6;
}
.mtc-section-dark h1, .mtc-section-dark h2, .mtc-section-dark h3, .mtc-section-dark h4 { color: #fff; }
.mtc-section-dark .mtc-kicker { color: var(--mtc-amber); }

.mtc-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mtc-blue); margin-bottom: 0.7rem;
}
.mtc-kicker::before { content: ""; width: 1.6rem; height: 2px; background: var(--mtc-amber); border-radius: 2px; }
.mtc-kicker-center { justify-content: center; }
.mtc-h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-bottom: 0.6rem; }
.mtc-sec-lead { max-width: 42rem; margin: 0 0 2.4rem; }
.mtc-sec-lead-center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.mtc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.5rem; border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; font-size: 0.98rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  background: transparent;
}
.mtc-btn:active { transform: translateY(1px); }
.mtc-btn-accent { background: var(--mtc-blue-600); color: #fff; }
.mtc-btn-accent:hover { background: var(--mtc-blue-700); color: #fff; box-shadow: 0 8px 24px -8px rgba(0, 146, 184, 0.55); }
.mtc-btn-dark { background: var(--mtc-navy); color: #fff; }
.mtc-btn-dark:hover { background: var(--mtc-navy-2); color: #fff; box-shadow: var(--mtc-shadow); }
.mtc-btn-blue { background: var(--mtc-blue); color: #fff; }
.mtc-btn-blue:hover { background: #1246d6; color: #fff; }
.mtc-btn-ghost-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: rgba(255, 255, 255, 0.04); }
.mtc-btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.mtc-btn-outline { border-color: #ccd6e0; color: var(--mtc-navy); }
.mtc-btn-outline:hover { border-color: var(--mtc-navy); color: var(--mtc-navy); background: #fff; }
.mtc-btn-sm { padding: 0.55rem 1.05rem; font-size: 0.88rem; border-radius: 10px; }
.mtc-btn-lg { padding: 1rem 1.9rem; font-size: 1.06rem; }

/* Cards */
.mtc-card {
  background: var(--mtc-white); border: 1px solid var(--mtc-line);
  border-radius: var(--mtc-radius); box-shadow: var(--mtc-shadow);
}

/* Topbar */
.mtc-topbar { background: var(--mtc-navy); color: #b9c6d6; font-size: 0.84rem; }
.mtc-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.42rem; padding-bottom: 0.42rem; min-height: 2.3rem; }
.mtc-topbar-links { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.mtc-topbar-links a, .mtc-topbar-loc { display: inline-flex; align-items: center; gap: 0.45rem; color: #e8eef5; text-decoration: none; }
.mtc-topbar-links a:hover { color: #fff; }
.mtc-topbar-links .mtc-ic, .mtc-topbar-wa .mtc-ic { color: var(--mtc-amber); }
.mtc-topbar-wa { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: #fff; text-decoration: none; }
.mtc-topbar-wa:hover { color: var(--mtc-amber); }
.mtc-topbar-mail { display: inline-flex; }
@media (max-width: 900px) {
  .mtc-topbar-loc, .mtc-topbar-mail { display: none !important; }
  .mtc-topbar { font-size: 0.8rem; }
  .mtc-topbar-inner { padding-right: 60px; }
}

/* Header / Navigation */
#header { background: var(--mtc-navy); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
#header .container { min-height: 76px; }
.navbar { gap: 1.25rem; }
.navbar-brand img { height: 40px; width: auto; display: block; }
@media (max-width: 600px) { .navbar-brand img { height: 34px; } }
body.header-fixed #page-wrapper { padding-top: 0; }
.mtc-nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--mtc-blue-600); color: #fff !important; text-decoration: none;
  padding: 0.55rem 1.05rem; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
  white-space: nowrap;
}
.mtc-nav-cta svg { color: #fff; }
.mtc-nav-cta:hover { background: var(--mtc-blue-700); }
@media (max-width: 1200px) { .mtc-nav-cta span { display: none; } .mtc-nav-cta { padding: 0.6rem 0.7rem; } }

/* Navigation links */
.dropmenu > ul > li > a { font-weight: 650; font-size: 0.96rem; color: #dbe4ee; }
.dropmenu > ul > li > a:hover { color: var(--mtc-blue-500); }
.dropmenu > ul > li.active > a { color: var(--mtc-blue-500); }

/* Mobile Overlay. Das Theme rendert die Menü-Links als .overlay-menu a und
   färbt sie mit --q2-text-strong – das ist im HELLEN Modus schwarz (#111),
   auf dem dunkelblauen Overlay-Hintergrund (navy) dadurch unlesbar. Die alte
   Regel .tree .navigation griff nie, weil das Markup anders aufgebaut ist.
   => Links im Overlay IMMER hell, egal welcher Modus. */
.mobile-container .overlay { background: var(--mtc-navy); color: #dbe4ee; }
.mobile-container .overlay .navbar-brand img { height: 40px; width: auto; }
.mobile-container .overlay .overlay-menu a { color: #dbe4ee; }
.mobile-container .overlay .overlay-menu a:hover { color: var(--mtc-amber); }
.mobile-container .overlay .overlay-menu > ul > li > a { color: #fff; font-weight: 700; }
.mobile-container .overlay .overlay-menu ul ul a { color: #b9c6d6; }

/* Hero */
.mtc-hero { padding: 5rem 0 4.5rem; }
.mtc-hero-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 3.5rem; align-items: center; }
.mtc-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.08; margin: 0 0 1.3rem; }
.mtc-hero h1 .accent { color: var(--mtc-amber); }
.mtc-hero p.lead { font-size: 1.13rem; line-height: 1.65; max-width: 36rem; margin: 0 0 1.9rem; color: #c6d2e0; }
.mtc-hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.mtc-hero-points { display: flex; flex-wrap: wrap; gap: 0.6rem 1.7rem; list-style: none; padding: 0; margin: 0; font-weight: 600; color: #e8eef5; font-size: 0.95rem; }
.mtc-hero-points .mtc-ic { color: var(--mtc-amber); }
.mtc-hero-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 1.7rem 1.8rem; backdrop-filter: blur(6px); }
.mtc-hero-card .price { font-size: 2.6rem; font-weight: 800; color: var(--mtc-amber); line-height: 1.05; }
.mtc-hero-card .price small { display: block; font-size: 0.95rem; font-weight: 600; color: #c6d2e0; margin-top: 0.3rem; }
.mtc-hero-card ul { list-style: none; margin: 1.2rem 0 1.5rem; padding: 1.1rem 0 0; border-top: 1px dashed rgba(255, 255, 255, 0.18); display: grid; gap: 0.55rem; }
.mtc-hero-card li { display: flex; justify-content: space-between; gap: 0.8rem; font-size: 0.92rem; color: #dbe4ee; }
.mtc-hero-card li b { color: #fff; font-weight: 700; white-space: nowrap; }
@media (max-width: 980px) {
  .mtc-hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .mtc-hero-card { max-width: 34rem; }
}

/* Service-Kacheln */
.mtc-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mtc-svc-card { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.7rem; text-decoration: none; color: inherit; transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.mtc-svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(11, 21, 35, 0.28); border-color: #cdd9e6; }
.mtc-svc-ic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: var(--mtc-amber-soft); color: #007391; font-size: 1.5rem; }
.mtc-svc-card:hover .mtc-svc-ic { background: var(--mtc-navy); color: var(--mtc-amber); }
.mtc-svc-card h3 { font-size: 1.12rem; margin: 0; }
.mtc-svc-card p { margin: 0; font-size: 0.94rem; line-height: 1.6; flex: 1; }
.mtc-svc-meta { display: flex; gap: 0.7rem; flex-wrap: wrap; font-size: 0.8rem; }
.mtc-svc-meta span { display: inline-flex; align-items: center; gap: 0.35rem; background: #f0f4f9; color: var(--mtc-ink); border-radius: 999px; padding: 0.3rem 0.7rem; font-weight: 650; }
.mtc-svc-meta .mtc-ic { color: var(--mtc-blue); }
.mtc-svc-more { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 750; color: var(--mtc-blue); font-size: 0.92rem; }
.mtc-svc-card:hover .mtc-svc-more { color: var(--mtc-amber); text-decoration: none; }
.mtc-svc-more .mtc-ic { width: 0.95em; height: 0.95em; transition: transform 0.16s ease; }
.mtc-svc-card:hover .mtc-svc-more .mtc-ic { transform: translateX(4px); }
@media (max-width: 1050px) { .mtc-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .mtc-svc-grid { grid-template-columns: 1fr; } }

/* 4-Schritte */
.mtc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.mtc-step { position: relative; padding-top: 3.4rem; }
.mtc-step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--mtc-amber); color: var(--mtc-navy); font-weight: 800; font-size: 1.05rem; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(0, 146, 184, 0.18); }
.mtc-step h3 { font-size: 1.06rem; margin: 0 0 0.45rem; }
.mtc-step p { margin: 0; font-size: 0.93rem; line-height: 1.6; }
@media (max-width: 1050px) { .mtc-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mtc-steps { grid-template-columns: 1fr; } }

/* Preistabelle */
.mtc-table-wrap { overflow-x: auto; }
.mtc-table-wrap table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--mtc-line); border-radius: var(--mtc-radius); overflow: hidden; }
.mtc-table-wrap th { background: var(--mtc-navy); color: #fff; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; padding: 0.9rem 1.2rem; }
.mtc-table-wrap td { padding: 0.85rem 1.2rem; border-top: 1px solid var(--mtc-line); font-size: 0.98rem; color: var(--mtc-ink); }
.mtc-table-wrap tbody tr:nth-child(even) { background: #f8fafc; }
.mtc-table-wrap tbody tr:hover { background: var(--mtc-amber-soft); }
.mtc-table-wrap .num { text-align: right; font-weight: 800; color: var(--mtc-navy); white-space: nowrap; }
.mtc-table-note { font-size: 0.86rem; color: var(--mtc-body); margin-top: 0.9rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.mtc-table-note .mtc-ic { color: var(--mtc-blue); margin-top: 0.15em; }

/* FAQ */
.mtc-faq { display: grid; gap: 0.8rem; max-width: 52rem; }
.mtc-faq details { background: #fff; border: 1px solid var(--mtc-line); border-radius: 13px; overflow: hidden; transition: border-color 0.2s ease; }
.mtc-faq details[open] { border-color: var(--mtc-blue); }
.mtc-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.3rem; font-weight: 700; color: var(--mtc-navy); }
.mtc-faq summary::-webkit-details-marker { display: none; }
.mtc-faq summary::after { content: ""; width: 0.5rem; height: 0.5rem; border-right: 2px solid var(--mtc-blue); border-bottom: 2px solid var(--mtc-blue); transform: rotate(45deg); transition: transform 0.18s ease; flex-shrink: 0; }
.mtc-faq details[open] summary::after { transform: rotate(-135deg); }
.mtc-faq details[open] summary { border-bottom: 1px solid var(--mtc-line); }
.mtc-faq .faq-body { padding: 1rem 1.3rem 1.25rem; font-size: 0.97rem; line-height: 1.65; }
.mtc-faq .faq-body p { margin: 0; }

/* CTA-Band */
.mtc-cta { border-radius: 22px; padding: 3.2rem 2.6rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.mtc-cta h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 0.5rem; }
.mtc-cta p { margin: 0; color: #c6d2e0; max-width: 34rem; }
.mtc-cta .mtc-cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
@media (max-width: 900px) { .mtc-cta { flex-direction: column; align-items: flex-start; } }

/* Footer */
.mtc-footer { background: var(--mtc-navy); color: #94a3b8; padding: 2.4rem 0 0; margin-top: 0; hyphens: none; }
.mtc-footer .navbar-brand img { height: 40px; width: auto; }
/* Die eigentlichen Layout-Regeln stehen unten im #footer-Block (Theme setzt
   per ID-Selektor Schriftgröße/Ausrichtung, ID schlägt Klasse). */
.mtc-footer-col a { color: #94a3b8; text-decoration: none; font-size: 0.93rem; }
.mtc-footer-col a:hover { color: var(--mtc-amber); }
.mtc-footer-contact .mtc-ic { color: var(--mtc-amber); margin-top: 0.22em; }
.mtc-footer-contact a { color: #fff; font-weight: 600; }
.mtc-footer-contact a:hover { color: var(--mtc-amber); }
.mtc-footer-bottom { font-size: 0.85rem; }
.mtc-footer-bottom nav { display: flex; gap: 1.4rem; }
.mtc-footer-bottom nav a { color: #94a3b8; text-decoration: none; }
.mtc-footer-bottom nav a:hover { color: var(--mtc-amber); }

/* Inhaltsseiten (Default-Template) */
.content-item { max-width: 58rem; margin: 0 auto; }
#body-wrapper .content-item > * + * { margin-top: 1.15rem; }
#body-wrapper .content-item h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; margin: 0 0 0.4rem; }
#body-wrapper .content-item h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin: 2.2rem 0 0.7rem; }
#body-wrapper .content-item h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
.content-item .lead { font-size: 1.13rem; line-height: 1.65; color: var(--mtc-ink); margin-bottom: 1.4rem; }
.content-item ul, .content-item ol { padding-left: 1.35rem; }
.content-item li { line-height: 1.7; margin: 0.3rem 0; }
.content-item p, .content-item li { font-size: 1.0rem; }
.content-item strong { color: var(--mtc-ink); }
#body-wrapper { padding-top: 0.5rem; padding-bottom: 4.5rem; }
.mtc-page-cta { background: #fff; border: 1px solid var(--mtc-line); border-radius: var(--mtc-radius); padding: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; box-shadow: var(--mtc-shadow); margin-top: 2.6rem; }
.mtc-page-cta p { margin: 0; font-weight: 700; color: var(--mtc-navy); }
.mtc-page-cta .mtc-btn { flex: 0 0 auto; }

/* Info-/Faktenbox (Leistungsseiten) */
.mtc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.mtc-facts .item { background: #fff; border: 1px solid var(--mtc-line); border-radius: 13px; padding: 1.1rem 1.2rem; display: flex; gap: 0.8rem; align-items: flex-start; }
.mtc-facts .mtc-ic { font-size: 1.25rem; color: var(--mtc-blue); margin-top: 0.1em; }
.mtc-facts b { display: block; color: var(--mtc-navy); font-size: 0.9rem; margin-bottom: 0.15rem; }
.mtc-facts span { font-size: 0.88rem; color: var(--mtc-body); line-height: 1.45; display: block; }
@media (max-width: 900px) { .mtc-facts { grid-template-columns: 1fr; } }

/* Kontakt */
.mtc-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 2rem 0; }
.mtc-contact-card { padding: 1.7rem 1.6rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.mtc-contact-card .mtc-svc-ic { width: 60px; height: 60px; font-size: 1.7rem; }
.mtc-contact-card h3 { margin: 0.2rem 0 0; font-size: 1.05rem; }
.mtc-contact-card a, .mtc-contact-card .value { font-size: 1.02rem; color: var(--mtc-navy); font-weight: 650; text-decoration: none; }
.mtc-contact-card a:hover { color: var(--mtc-blue); }
.mtc-contact-card p { margin: 0; font-size: 0.88rem; }
@media (max-width: 900px) { .mtc-contact-grid { grid-template-columns: 1fr; } }
.mtc-map-note { display: flex; gap: 0.6rem; align-items: flex-start; background: var(--mtc-amber-soft); border-radius: 12px; padding: 1rem 1.2rem; font-size: 0.92rem; color: #00546a; }
.mtc-map-note .mtc-ic { color: #007391; margin-top: 0.2em; }
/* Standort-/Anschriftszeile ("MT Tuning | Manuel Tasci · Marburger Str. 204"):
   Pico erbt --mtc-body, das im Hellen Modus zu dunkel wirkt. Kräftig dunkelblau
   (gut lesbar auf hellgrauem Grund), Strong heller; Dark-Mode regelt der
   Variablen-Stand am Ende automatisch auf Weiß. */
.mtc-address strong { display: block; color: var(--mtc-navy); font-size: 1.06rem; margin-bottom: 0.1rem; }
.mtc-address { color: var(--mtc-ink); font-size: 1rem; }

/* Externe Anfahrt-CTA ("Anfrage stellen") */
.mtc-whatsapp-bar { background: #fff; border: 1px solid var(--mtc-line); border-left: 5px solid var(--mtc-amber); border-radius: 12px; padding: 1.2rem 1.4rem; margin: 2rem 0; display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--mtc-shadow); }
.mtc-whatsapp-bar .mtc-wa-text b { color: var(--mtc-navy); display: block; margin-bottom: 0.2rem; }
.mtc-whatsapp-bar .mtc-wa-text { font-size: 0.93rem; }

/* ============================================================
   Korrekturen: Lesbarkeit auf dunklem Grund, Footer-Gliederung,
   einzeilige Navigation, Tabellen ohne Wrapper-Div
   (überschreibt ID-Regeln des Themes, die Klassen-Regeln schlagen)
   ============================================================ */

/* 1) Schriftfarbe auf dunklen Flächen (Theme färbt p/li/td dunkel) */
.mtc-section-dark p,
.mtc-section-dark li,
.mtc-section-dark td,
.mtc-section-dark strong,
.mtc-section-dark small,
.mtc-section-dark blockquote,
.mtc-section-dark .mtc-sec-lead { color: #b9c6d6; }
.mtc-section-dark .mtc-cta p { color: #c6d2e0; }
.mtc-hero-points li { color: #e8eef5; }
.mtc-hero-card li { color: #dbe4ee; }
.mtc-step p { color: #b9c6d6; }

/* 2) Footer. Zwei Ursachen fuer das zerbrochene Bild:
      a) Silbentrennung: blades/Pico setzt im Root `hyphens: auto`, dadurch
         brechen die Ueberschriften ("LEIS-TUN-GEN", "INFORMATIO-NEN") und die
         Links mitten im Wort um -> im Footer abgeschaltet.
      b) Abstaende: Pico gibt jedem `nav li` 1rem vertikalen Innenrand und
         `nav ul:first-of-type` einen negativen Aussenrand; die Spalten waren
         ueberdies Flex-Zeilen. Alles mit ID-Selektor zurueckgeschlagen. */
#footer.mtc-footer {
  background: var(--mtc-navy);
  color: #94a3b8;
  text-align: left;
  border-top: 0;
  padding: 2.4rem 0 0;
  font-size: 0.95rem;
  hyphens: none;
}
#footer.mtc-footer p { color: inherit; margin: 0; }
#footer.mtc-footer a { color: #94a3b8; text-decoration: none; }
#footer.mtc-footer a:hover { color: var(--mtc-amber); text-decoration: none; }
#footer.mtc-footer a.mtc-btn, #footer.mtc-footer a.mtc-btn:hover { color: #fff; }
#footer.mtc-footer .mtc-footer-contact a { color: #fff; }
#footer.mtc-footer .mtc-footer-contact a:hover { color: var(--mtc-amber); }
#footer.mtc-footer .mtc-footer-contact span { color: #cbd5e1; }

/* Pico-Reset: gilt fuer alle Listen und Links im Footer */
#footer.mtc-footer nav { display: block; margin: 0; justify-content: flex-start; }
#footer.mtc-footer ul { display: block; list-style: none; margin: 0; padding: 0; }
#footer.mtc-footer nav ul:first-of-type,
#footer.mtc-footer nav ul:last-of-type { margin-left: 0; margin-right: 0; }
#footer.mtc-footer li { display: block; width: auto; margin: 0; padding: 0.14rem 0; }
#footer.mtc-footer li a { display: inline; margin: 0; padding: 0; }

/* Spalten: Grid mit festen Anteilen; die Navigationspalten bekommen genug
   Breite, dass "Autoschluessel & Ersatzschluessel" et cetera nicht mehr
   unkoedlich zweizeilig bricht */
#footer.mtc-footer .mtc-footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 0.9fr 1fr 1fr; gap: 1.5rem; padding-bottom: 2rem; }
#footer.mtc-footer .mtc-footer-grid > * { min-width: 0; }
#footer.mtc-footer .mtc-footer-brand p { font-size: 0.92rem; line-height: 1.6; margin: 0.85rem 0 1.1rem; }
#footer.mtc-footer h3 { max-width: 100%; }
#footer.mtc-footer .mtc-footer-col h3 { color: #fff; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; margin: 0 0 0.6rem; hyphens: none; }
#footer.mtc-footer .mtc-footer-col li a { font-size: 0.93rem; line-height: 1.45; }
#footer.mtc-footer .mtc-footer-sub { display: block; font-size: 0.78rem; color: #6b7c8f; font-weight: 400; }
#footer.mtc-footer .mtc-footer-col a:has(.mtc-footer-sub) { display: inline-flex; flex-direction: column; }

.mtc-ext-link { background: var(--mtc-amber-soft); border-radius: 12px; padding: 1rem 1.2rem; margin: 2rem 0 0; font-size: 0.92rem; color: #00546a; }
.mtc-ext-link a { color: var(--mtc-blue-700); font-weight: 700; text-decoration: none; }
.mtc-ext-link a:hover { text-decoration: underline; }
:root[data-theme="dark"] .mtc-ext-link { background: #0f2a3c; color: #a9e5f7; }
:root[data-theme="dark"] .mtc-ext-link a { color: var(--mtc-blue-500); }
#footer.mtc-footer .mtc-footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; line-height: 1.45; padding: 0.14rem 0; }

#footer.mtc-footer .mtc-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.1rem 0 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }
#footer.mtc-footer .mtc-footer-bottom nav { display: flex; gap: 1.4rem; }
#footer.mtc-footer .mtc-footer-bottom li { padding: 0; }

@media (max-width: 1000px) { #footer.mtc-footer .mtc-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { #footer.mtc-footer .mtc-footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* 3) Hauptnavigation: einzeilig, kein Umbruch der Menüpunkte */
#header .navbar { flex-wrap: nowrap; }
#header .dropmenu > ul { flex-wrap: nowrap; }
#header .dropmenu a { white-space: nowrap; }
#header .dropmenu > ul { gap: 0.35rem; }

/* 4) Markdown-Tabellen (ohne Wrapper-Div, damit Grav sie rendert) */
.content-item table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--mtc-line);
  border-radius: var(--mtc-radius);
  overflow: hidden;
  margin: 1.5rem 0;
}
.content-item table th {
  background: var(--mtc-navy);
  color: #fff;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.9rem 1.2rem;
}
.content-item table td {
  padding: 0.85rem 1.2rem;
  border-top: 1px solid var(--mtc-line);
  font-size: 0.98rem;
  color: var(--mtc-ink);
}
.content-item table tbody tr:nth-child(even) { background: #f8fafc; }

/* 5) Schwebende Buttons (Nach oben / Telefon / WhatsApp), unten rechts.
      Erscheinen erst nach dem Scrollen: js/site.js setzt .visible auf #mtc-fabs. */
.mtc-fabs {
  position: fixed;
  right: 1.1rem;
  bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  z-index: 65;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.mtc-fabs.visible { opacity: 1; visibility: visible; transform: none; }
.mtc-fab-row { display: flex; align-items: center; gap: 0.55rem; }
.mtc-fab {
  width: 52px;
  height: 52px;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: inherit;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 8px 22px -8px rgba(11, 21, 35, 0.45);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
button.mtc-fab:not([disabled]) { cursor: pointer; }
.mtc-fab .mtc-ic { width: 23px; height: 23px; }
.mtc-fab-top { background: var(--mtc-navy); }
.mtc-fab-phone { background: var(--mtc-blue-500); }
.mtc-fab-phone:hover { background: var(--mtc-blue-700); }
.mtc-fab-whatsapp { background: #25d366; }
.mtc-fab-whatsapp:hover { background: #1eb855; }
.mtc-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 26px -8px rgba(11, 21, 35, 0.5); }
.mtc-fab, .mtc-fab-label { pointer-events: auto; }
/* 6) Dark-Mode: MT-CarKeys-Farbtoken für data-theme="dark".
      --mtc-navy bleibt die Markenfarbe (Header/Footer/Buttons), nur Flächen,
      Linien und Texte tauschen. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --mtc-ink: #e8eef5;
  --mtc-body: #aebccc;
  --mtc-line: #28394f;
  --mtc-bg: #0c1524;
  --mtc-white: #131f31;
  --mtc-amber-soft: #0f2a3c;
  --mtc-blue-soft: #0f2a3c;
  --mtc-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.65);
  --pico-color: var(--mtc-body);
}
:root[data-theme="dark"] body { background: var(--mtc-bg); }
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2,
:root[data-theme="dark"] h3, :root[data-theme="dark"] h4 { color: #eef4fa; }
/* Weiße Kartenflächen -> dunkle Fläche (diese Selektoren hatten #fff hart) */
:root[data-theme="dark"] .mtc-table-wrap table,
:root[data-theme="dark"] .content-item table,
:root[data-theme="dark"] .mtc-faq details,
:root[data-theme="dark"] .mtc-page-cta,
:root[data-theme="dark"] .mtc-whatsapp-bar,
:root[data-theme="dark"] .mtc-facts .item,
:root[data-theme="dark"] .mtc-card { background: var(--mtc-white); border-color: var(--mtc-line); }
:root[data-theme="dark"] .mtc-table-wrap tbody tr:nth-child(even),
:root[data-theme="dark"] .content-item table tbody tr:nth-child(even) { background: #1a2740; }
:root[data-theme="dark"] .mtc-table-wrap tbody tr:hover,
:root[data-theme="dark"] .content-item table tbody tr:hover { background: var(--mtc-amber-soft); }
:root[data-theme="dark"] .mtc-faq details[open] summary { border-bottom-color: var(--mtc-line); }
:root[data-theme="dark"] .mtc-faq summary::after { border-color: var(--mtc-blue-500); }
:root[data-theme="dark"] .mtc-btn-outline { border-color: #44586f; color: #eef4fa; }
:root[data-theme="dark"] .mtc-btn-outline:hover { border-color: #eef4fa; color: #eef4fa; background: #1a2740; }
:root[data-theme="dark"] .mtc-svc-ic { color: #7fdcf2; }
:root[data-theme="dark"] .mtc-svc-meta .mtc-ic,
:root[data-theme="dark"] .mtc-table-note .mtc-ic,
:root[data-theme="dark"] .mtc-svc-more,
:root[data-theme="dark"] .mtc-kicker { color: var(--mtc-blue-500); }
:root[data-theme="dark"] .mtc-svc-meta span { background: #0f2a3c; color: var(--mtc-ink); }
:root[data-theme="dark"] .mtc-map-note { color: #a9e5f7; }
:root[data-theme="dark"] .mtc-map-note .mtc-ic { color: #7fdcf2; }
:root[data-theme="dark"] .mtc-contact-card a:hover,
:root[data-theme="dark"] .mtc-footer-col a:hover { color: var(--mtc-blue-500); }
/* Eingabefelder (Form-Plugin hart #fff) */
:root[data-theme="dark"] input[type="text"], :root[data-theme="dark"] input[type="email"],
:root[data-theme="dark"] input[type="url"], :root[data-theme="dark"] input[type="tel"],
:root[data-theme="dark"] input[type="number"], :root[data-theme="dark"] input[type="search"],
:root[data-theme="dark"] textarea, :root[data-theme="dark"] select,
:root[data-theme="dark"] fieldset { background-color: #1a2740; color: var(--mtc-ink); border-color: var(--mtc-line); }
/* Toggle-Button im immer dunklen Header */
#header .theme-toggle { color: #dbe4ee; }
#header .theme-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
#header .theme-toggle:focus-visible { outline: 2px solid var(--mtc-amber); outline-offset: 2px; }
/* Mobil: Theme.css blendet .actions unter 860px komplett aus (display:none) -
   ein ausgeblendetes Element kann auch per position:fixed nicht erscheinen.
   Deshalb .actions wieder anzeigen, nur die Anruf-CTA ausblenden und den
   Toggle fest links neben den Hamburger (right:14px) setzen. */
@media (max-width: 860px) {
  #header .navbar-section.actions { display: inline-flex; }
  #header .navbar-section.actions .mtc-nav-cta { display: none; }
  #header .navbar-section.actions .theme-toggle {
    position: static;
    top: auto;
    right: auto;
  }
  .mobile-menu { position: static; top: auto; right: auto; }
}

.mtc-fab:focus-visible, .mtc-fab-label:focus-visible {
  outline: 3px solid rgba(0, 179, 225, 0.55);
  outline-offset: 2px;
}
.mtc-fab-label {
  background: var(--mtc-navy);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  box-shadow: 0 8px 22px -10px rgba(11, 21, 35, 0.45);
}
.mtc-fab-label:hover { color: #fff; text-decoration: none; background: #16283f; }
@media (max-width: 640px) {
  .mtc-fabs { right: 0.8rem; bottom: 0.9rem; gap: 0.55rem; }
  .mtc-fab { width: 48px; height: 48px; }
  .mtc-fab-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mtc-fabs, .mtc-fab { transition: none; }
}
.content-item table tbody tr:hover { background: var(--mtc-amber-soft); }

/* ===== Consent-Banner (Einwilligung für Tracking-Tags) ===== */
#mtc-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
}
.mtc-consent-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--mtc-navy);
  color: #dbe4ee;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
}
.mtc-consent-text {
  flex: 1 1 300px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.mtc-consent-text p { margin: 0; color: #dbe4ee; }
.mtc-consent-text a { color: var(--mtc-amber); }
.mtc-consent-text a:hover { text-decoration: underline; }
.mtc-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mtc-btn {
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mtc-btn-accept {
  background: var(--mtc-amber);
  color: var(--mtc-navy);
}
.mtc-btn-accept:hover { background: #26c2ec; }
.mtc-btn-necessary {
  background: transparent;
  color: #dbe4ee;
  border-color: rgba(255,255,255,0.3);
}
.mtc-btn-necessary:hover { background: rgba(255,255,255,0.08); }
@media (max-width: 520px) {
  .mtc-consent-box { flex-direction: column; align-items: stretch; text-align: center; }
  .mtc-consent-buttons { justify-content: center; }
}
