/* ============================================================
   MKS-Dienstleistungsservice – main.css
   Farbpalette: Frisch voller Energie
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ── VARIABLEN ── */
:root {
  --crevice:      #34675C;   /* Pine – dunkelster Ton, ersetzt crevice */
  --cloud-shadow: #2a524a;   /* Pine dunkel */
  --desert:       #4CB5F5;   /* Blue Sky – Hauptakzent */
  --red-clay:     #34675C;   /* Pine – sekundärer Akzent */
  --sand:         #B7B8B6;   /* Granite */
  --parchment:    #F2F4F3;   /* Helles Grau-Weiß */
  --white:        #FFFFFF;
  --text-dark:    #1A2E2A;   /* Sehr dunkles Pine */
  --text-mid:     #3D5550;   /* Mittleres Pine-Grau */
  --text-light:   #7A8A88;   /* Helles Grau-Grün */

  /* Neue Akzentfarben direkt nutzbar */
  --blue-sky:     #4CB5F5;
  --granite:      #B7B8B6;
  --pine:         #34675C;
  --fields:       #B3C100;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;

  --shadow-sm:  0 2px 8px rgba(52,103,92,0.08);
  --shadow-md:  0 4px 20px rgba(52,103,92,0.14);
  --shadow-lg:  0 8px 40px rgba(52,103,92,0.20);

  --transition: 0.22s ease;
  --max-width:  1100px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--text-dark);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--desert); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-clay); }

/* ── TYPOGRAFIE ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--crevice);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT HELPERS ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-lg { padding: 6rem 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--desert);
  margin-bottom: 0.5rem;
  display: block;
}
.section-header { margin-bottom: 2.5rem; }
.section-header p {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 580px;
  margin-top: 0.5rem;
}
.section-header.center { text-align: center; }
.section-header.center p { margin-left: auto; margin-right: auto; }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--desert);
  color: var(--white);
  border-color: var(--desert);
}
.btn-primary:hover {
  background: var(--red-clay);
  border-color: var(--red-clay);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(186,85,54,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--desert);
  border-color: var(--desert);
}
.btn-outline:hover {
  background: var(--desert);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--sand);
  border-color: rgba(232,201,160,0.4);
}
.btn-ghost:hover {
  background: rgba(232,201,160,0.1);
  color: var(--white);
  border-color: var(--sand);
}
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-accent { border-top: 4px solid var(--desert); }

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(76,181,245,0.14);
  color: var(--pine);
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--granite), transparent);
  margin: 2rem 0;
}

/* ── HERO BAND (Seitenköpfe) ── */
.page-hero {
  background: linear-gradient(135deg, var(--pine) 0%, #2a7a6e 45%, var(--blue-sky) 100%);
  padding: 3.5rem 0 2.8rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 540px; margin: 0; }
.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.8rem;
}
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--white); }

/* ── HIGHLIGHT BOXES ── */
.highlight-box {
  background: linear-gradient(135deg, var(--pine), var(--cloud-shadow));
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.highlight-box h3 { color: var(--white); }
.highlight-box p  { color: rgba(255,255,255,0.8); }

/* ── ICON BOX ── */
.icon-box {
  width: 52px; height: 52px;
  background: rgba(76,181,245,0.14);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* ── LISTS ── */
.check-list { list-style: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--text-mid);
}
.check-list li::before {
  content: '✓';
  color: var(--blue-sky);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── STEP LIST ── */
.step-list { list-style: none; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.step-list li::before {
  content: counter(steps);
  width: 28px; height: 28px;
  background: var(--blue-sky);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-light); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .section-lg { padding: 4rem 0; }
}

/* ── FIELDS AKZENT (für Referenzen, Tags etc.) ── */
.badge-fields {
  background: rgba(179,193,0,0.15);
  color: #6b7300;
}
.accent-fields { color: var(--fields); }
