/* ==========================================================================
   Mooren & Hunt OHG — mhwerkstatt.de
   Helles, modernes Design mit Anthrazit-Akzent; dunkler Hero & Footer als
   Kontrastflächen. Mobile-first, keine externen Ressourcen.
   ========================================================================== */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef1;
  --border: #dfe3e8;
  --text: #1a1d21;
  --text-muted: #5b6572;
  --accent: #22262b;
  --accent-hover: #3a4048;
  --accent-soft: rgba(34, 38, 43, 0.07);
  --dark-bg: #15181c;
  --dark-surface: #1f2329;
  --dark-border: #32383f;
  --dark-text: #f2f4f6;
  --dark-text-muted: #aab3bd;
  --whatsapp: #1faa59;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 24, 28, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(34, 38, 43, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--accent);
}

/* Unterstreichung nur für Fließtext-Links */
nav a,
.btn,
.brand,
.card,
a.card,
.card-link,
.site-footer a,
.bottom-bar a,
.skip-link {
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }

p {
  margin: 0 0 1em;
}

.muted {
  color: var(--text-muted);
}

.container {
  width: min(100% - 2.5rem, 1140px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.kicker {
  display: inline-block;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}

/* Utilities (statt Inline-Styles – hält die CSP ohne unsafe-inline) */
.mt-sm { margin-top: 0.75rem; }
.m-0 { margin: 0; }
.container-narrow { max-width: 780px; }

.hero-facts a { color: inherit; }

.footer-bottom.no-border {
  border-top: 0;
  padding-top: 0;
}

/* Skip-Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ==========================================================================
   Header / Navigation (hell)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 800;
  min-width: 0;
}

.brand:hover { color: var(--text); }

.brand img {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-name small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.1rem;
}

.main-nav {
  display: none;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

a.header-cta {
  display: none;
}

/* Burger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile-Menü */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 90;
  display: none;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.25rem;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.mobile-nav .mobile-nav-cta {
  margin-top: 1.5rem;
  border: 0;
  color: #fff;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: #23c065;
  color: #fff;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero (hell, mit Punktraster-Hintergrundbild)
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 10vw, 7rem);
  background: url("../img/hero-bg.webp") center / cover no-repeat, #fff;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero h1 {
  color: var(--text);
}

.hero .kicker {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-inner {
  max-width: 780px;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.25rem;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   Karten / Grids
   ========================================================================== */

.grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.section-alt .card {
  background: var(--bg);
  box-shadow: none;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  flex-grow: 1;
}

.card .card-link {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  color: var(--accent);
}

.card .card-link::after {
  content: "→";
  transition: transform 0.2s;
}

.card:hover .card-link::after {
  transform: translateX(4px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
}

a.card {
  color: inherit;
}

a.card:hover {
  border-color: var(--accent);
  color: inherit;
}

/* Checkliste */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-muted);
}

.checklist li strong {
  color: var(--text);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

/* Ablauf-Schritte */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.4rem 4.4rem;
  position: relative;
  box-shadow: var(--shadow);
}

.section-alt .steps li {
  background: var(--bg);
  box-shadow: none;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.3rem;
  top: 1.35rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.steps p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Bild + Text nebeneinander */
.split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.split figure {
  margin: 0;
}

.split img {
  border-radius: var(--radius);
  width: 100%;
}

.split figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ==========================================================================
   FAQ (details/summary)
   ========================================================================== */

.faq {
  display: grid;
  gap: 0.85rem;
  max-width: 820px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.section-alt .faq details {
  background: var(--bg);
  box-shadow: none;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-weight: 700;
  position: relative;
  min-height: 48px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details > div {
  padding: 0 1.4rem 1.25rem;
  color: var(--text-muted);
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Kontakt / Anfahrt
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: 1.25rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.section-alt .contact-card {
  background: var(--bg);
  box-shadow: none;
}

.contact-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.contact-card p,
.contact-card address {
  font-style: normal;
  margin: 0;
  font-size: 1.05rem;
}

.contact-card a.big {
  font-size: 1.3rem;
  font-weight: 800;
}

/* Kontakt-Optionen: klar getrennte Zeilen mit Label */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}

.contact-list li {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--border);
}

.contact-list li:first-child {
  padding-top: 0;
}

.contact-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.hours-table tr:last-child td {
  border-bottom: 0;
}

/* Zwei Zeitfenster desselben Tages: keine Trennlinie dazwischen */
.hours-table tr:first-child td {
  border-bottom: 0;
  padding-bottom: 0;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text);
  font-weight: 600;
}

/* CTA-Banner (dunkle Kontrastfläche) */
.cta-banner {
  background: linear-gradient(160deg, #2b3037 0%, var(--dark-bg) 80%);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  color: #fff;
}

.cta-banner p {
  color: var(--dark-text-muted);
  max-width: 560px;
  margin-inline: auto;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--accent);
}

.cta-banner .btn-primary:hover {
  background: #e8eaed;
  color: var(--accent);
}

.cta-banner .btn-outline {
  border-color: var(--dark-border);
  color: #fff;
}

.cta-banner .btn-outline:hover {
  border-color: var(--dark-text-muted);
}

.cta-banner .hero-ctas {
  justify-content: center;
}

/* Breadcrumb */
.breadcrumb {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ==========================================================================
   Footer (dunkle Kontrastfläche)
   ========================================================================== */

.site-footer {
  background: var(--dark-bg);
  color: var(--dark-text-muted);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-text-muted);
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: var(--dark-text);
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer address {
  font-style: normal;
  color: var(--dark-text-muted);
}

.site-footer .muted {
  color: var(--dark-text-muted);
}

.footer-brand img {
  width: 72px;
  height: 72px;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--dark-text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Mobile Bottom-Bar (Conversion)
   ========================================================================== */

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--dark-border);
  border-top: 1px solid var(--dark-border);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  font-weight: 800;
  font-size: 1rem;
}

.bottom-bar a svg {
  width: 22px;
  height: 22px;
}

.bottom-bar .bar-call {
  background: var(--accent);
  color: #fff;
}

.bottom-bar .bar-wa {
  background: var(--whatsapp);
  color: #fff;
}

body {
  padding-bottom: calc(57px + env(safe-area-inset-bottom));
}

/* ==========================================================================
   Reveal-Animationen (progressive enhancement)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  .js .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Ab Tablet / Desktop
   ========================================================================== */

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .split.reverse figure {
    order: 2;
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  a.header-cta {
    display: inline-flex;
    min-height: 42px;
    padding: 0.5rem 1.2rem;
    font-size: 0.92rem;
  }

  .nav-toggle,
  .mobile-nav,
  .bottom-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}
