/* =========================================================
   MC Dienstleistungen — Design System
   ========================================================= */

:root {
  /* Brand colors */
  --blue-950: oklch(0.22 0.06 245);
  --blue-900: oklch(0.28 0.07 243);
  --blue-800: oklch(0.34 0.08 240);
  --blue-700: oklch(0.42 0.10 238);
  --blue-600: oklch(0.52 0.12 236);
  --blue-500: oklch(0.62 0.12 234);
  --blue-100: oklch(0.94 0.02 240);
  --blue-50:  oklch(0.975 0.01 240);

  --green-700: oklch(0.48 0.11 158);
  --green-600: oklch(0.58 0.13 155);
  --green-500: oklch(0.68 0.14 152);
  --green-100: oklch(0.94 0.04 155);

  --ink-950: oklch(0.18 0.01 240);
  --ink-900: oklch(0.24 0.01 240);
  --ink-700: oklch(0.38 0.01 240);
  --ink-500: oklch(0.55 0.01 240);
  --ink-400: oklch(0.68 0.01 240);
  --ink-300: oklch(0.82 0.01 240);
  --ink-200: oklch(0.9 0.005 240);
  --ink-100: oklch(0.955 0.005 240);
  --ink-50:  oklch(0.985 0.003 240);

  --bg: oklch(0.995 0.002 80);
  --bg-warm: oklch(0.975 0.008 75);
  --white: #ffffff;

  --accent: var(--blue-800);
  --accent-strong: var(--blue-900);
  --accent-soft: var(--blue-50);
  --success: var(--green-600);

  /* Type */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 4px 8px rgba(17, 24, 39, 0.05), 0 12px 24px -8px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 10px 20px rgba(17, 24, 39, 0.06), 0 30px 60px -16px rgba(17, 24, 39, 0.14);
  --shadow-blue: 0 12px 30px -12px oklch(0.34 0.1 240 / 0.45);

  /* Layout */
  --max-w: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-950);
  margin: 0;
  line-height: 1.05;
}

h1 { font-size: clamp(44px, 6.5vw, 88px); }
h2 { font-size: clamp(34px, 4.5vw, 58px); }
h3 { font-size: clamp(24px, 2.6vw, 34px); }
h4 { font-size: clamp(18px, 1.4vw, 22px); font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

button { font-family: inherit; cursor: pointer; }

/* Layout primitives */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--blue-700);
}

.lede {
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-700);
  line-height: 1.6;
  max-width: 62ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--blue-900);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover { background: var(--blue-950); }

.btn--ghost {
  background: transparent;
  color: var(--ink-950);
  border-color: var(--ink-300);
}
.btn--ghost:hover { border-color: var(--ink-900); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.btn--green {
  background: var(--green-600);
  color: #fff;
}
.btn--green:hover { background: var(--green-700); }

.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }

/* Utility */
.stack-2 > * + * { margin-top: 8px; }
.stack-3 > * + * { margin-top: 12px; }
.stack-4 > * + * { margin-top: 16px; }
.stack-6 > * + * { margin-top: 24px; }
.stack-8 > * + * { margin-top: 32px; }

.grid { display: grid; gap: 24px; }
.flex { display: flex; }

.divider {
  height: 1px;
  background: var(--ink-200);
  border: 0;
  margin: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--blue-50);
  color: var(--blue-800);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.tag--green {
  background: var(--green-100);
  color: var(--green-700);
  border-color: color-mix(in oklab, var(--green-600) 20%, transparent);
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-300);
}

/* Form primitives */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.field .hint { font-size: 12px; color: var(--ink-500); }

.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-950);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px oklch(0.42 0.1 238 / 0.12);
}
.textarea { resize: vertical; min-height: 120px; }

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.radio-card:hover { border-color: var(--ink-400); }
.radio-card--selected {
  border-color: var(--blue-800);
  background: var(--blue-50);
  box-shadow: 0 0 0 1px var(--blue-800) inset;
}

/* Decorative placeholder (striped) — used when real photography not available */
.placeholder-img {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      oklch(0.94 0.02 240) 0 12px,
      oklch(0.98 0.01 240) 12px 24px
    );
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.placeholder-img--dark {
  background:
    repeating-linear-gradient(
      135deg,
      var(--blue-900) 0 12px,
      var(--blue-800) 12px 24px
    );
  color: oklch(0.85 0.04 240);
}

/* Hero background ornament */
.ornament-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  pointer-events: none;
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Page transition */
.page-enter {
  animation: pageIn 0.4s ease both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Responsive grid helpers */
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* Link styling within prose */
.prose a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.prose h2 { margin-top: 2.4em; margin-bottom: 0.6em; }
.prose h3 { margin-top: 1.8em; margin-bottom: 0.4em; }
.prose p, .prose li { color: var(--ink-700); line-height: 1.75; }
.prose ul { padding-left: 1.2em; }
.prose ul li { margin-bottom: 0.4em; }

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   Mobile Responsive
   ========================================================= */

/* Slider responsive height */
.slider-inner {
  height: 800px;
}
@media (max-width: 900px) {
  .slider-inner { height: 500px !important; }
}
@media (max-width: 560px) {
  .slider-inner { height: 320px !important; }
  .slider-inner h2 { font-size: 28px !important; }
}

/* Hero card hidden on small mobile */
@media (max-width: 640px) {
  .hero-card-stack { display: none !important; }
}

/* Footer */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr !important; }
}

/* Process steps */
@media (max-width: 640px) {
  .process-step-grid { grid-template-columns: 80px 1fr !important; gap: 20px !important; }
  .process-step-num { font-size: 48px !important; }
}

/* About numbers grid */
@media (max-width: 480px) {
  .about-numbers-grid { grid-template-columns: 1fr 1fr !important; }
}

/* Contact page */
@media (max-width: 480px) {
  .photos-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 340px) {
  .photos-grid { grid-template-columns: 1fr !important; }
}

/* About page grid */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr !important; }
  .about-grid .placeholder-img { display: none !important; }
}

/* Service detail */
@media (max-width: 900px) {
  .sd-grid, .sd-body { grid-template-columns: 1fr !important; }
  .sd-body aside { position: static !important; }
}

/* CTA section */
@media (max-width: 640px) {
  .cta-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* Buttons on mobile */
@media (max-width: 480px) {
  .btn--lg { padding: 14px 18px !important; font-size: 15px !important; }
  .hero-btns { flex-direction: column !important; }
  .hero-btns .btn { width: 100% !important; justify-content: center !important; }
}

/* General padding tweaks */
@media (max-width: 560px) {
  .section { padding-block: 48px !important; }
  .section--tight { padding-block: 32px !important; }
  .card { padding: 20px !important; }
}

/* Contact wizard form card padding on mobile */
@media (max-width: 480px) {
  .contact-form-card { padding: 20px !important; }
}

/* Radio cards contact form */
@media (max-width: 480px) {
  .radio-cards-grid { grid-template-columns: 1fr !important; }
}

/* =========================================================
   Header — Mobile Padding
   ========================================================= */
@media (max-width: 900px) {
  .nav-header-inner { align-items: center !important; padding-block: 14px !important; }
}

/* =========================================================
   Typografie — Mobile overflow fix
   ========================================================= */
h1, h2, h3 {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 480px) {
  h1 { font-size: clamp(30px, 8.5vw, 44px) !important; }
  h2 { font-size: clamp(26px, 7vw, 34px) !important; }
  h3 { font-size: clamp(20px, 5.5vw, 28px) !important; }
}

/* Service-Detail Seitentitel — kleinerer max damit lange Wörter (z.B. "Gartenarbeiten") nicht umbrechen */
.sd-hero-title {
  font-size: clamp(36px, 4.8vw, 64px) !important;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Breadcrumb / Leistungen-Pfad nicht abschneiden */
.container { overflow-wrap: break-word; }
