:root {
  --primary:      #146544;
  --primary-dark: #0D4530;
  --primary-mid:  #1E8A5C;
  --accent:       #E8973A;
  --accent-dark:  #C97D28;
  --light:        #F4F9F6;
  --border:       #E5E7EB;
  --ink:          #1A2E25;   /* dunkler Textton auf Hell (ersetzt Bootstrap-Grau, wo Kontrast zählt) */
  --muted:        #566B60;   /* gedämpfter Text – erfüllt AA auf Weiß und auf --light */
  --radius:       10px;

  /* Schrift: Bitter (Slab-Serif-Headlines) + Public Sans (humanistischer Sans-Body) */
  --ff-display:   'Bitter', Georgia, 'Times New Roman', serif;
  --ff-body:      'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--ff-body); color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* Slab-Serif trägt die Hierarchie; Fließtext bleibt Public Sans */
h1, h2, h3, .navbar-brand, .hero-stat-num, .stat-num { font-family: var(--ff-display); }

/* Inline-SVG Icons (erben Farbe via currentColor) */
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 17px; height: 17px; }
.ic-md { width: 22px; height: 22px; }
.ic-lg { width: 26px; height: 26px; }
/* Icon in den getönten Platzhalter-/Bildflächen: hell auf dunklem Grün */
.media-ph .ic, .card-img-top .ic, .img-placeholder .ic, .product-img .ic,
.gallery-item > .ic, .hero-img-main .ic, .team-avatar .ic {
  width: 30%; height: 30%; max-width: 72px; max-height: 72px;
  stroke-width: 1.5; color: rgba(255,255,255,.92);
}

/* Bootstrap .text-muted erfüllt den Kontrast nicht zuverlässig – auf den lesbaren Muted-Ton heben */
.text-muted { color: var(--muted) !important; }

/* Bootstrap primary überschreiben */
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); color: #fff; }

/* Topbar */
.topbar { background: var(--primary-dark); font-size: .78rem; padding: .45rem 0; }
.topbar a { color: rgba(255,255,255,.8); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-sep { color: rgba(255,255,255,.25); }

/* Navbar */
.navbar { min-height: 70px; box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.navbar-brand { font-size: 1.45rem; font-weight: 800; color: var(--primary-dark) !important; }
.navbar-brand span { color: var(--accent); }
.nav-link { font-size: .88rem; font-weight: 600; }
.nav-link.active { color: var(--primary) !important; border-bottom: 2px solid var(--primary); }

/* Hero */
.hero {
  min-height: 90vh;
  background: linear-gradient(140deg, #0A3825 0%, #0D4530 40%, #165C42 75%, #1A6B50 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: rgba(255,255,255,.03);
  top: -250px; right: -150px; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-accent { color: var(--accent); }
.hero-stat-num { display: block; font-size: 1.55rem; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: .72rem; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .07em; }
.hero-stats { border-top: 1px solid rgba(255,255,255,.12); }
.pill {
  display: inline-block; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: .32rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
}
.hero-img-main {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; backdrop-filter: blur(6px);
}
.hero-badge-float {
  position: absolute; background: #fff; border-radius: 12px;
  padding: .7rem 1.1rem; display: flex; align-items: center; gap: .6rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.2); font-size: .82rem; font-weight: 600;
  white-space: nowrap;
  animation: popIn .65s cubic-bezier(.34,1.56,.64,1) .7s both;
}
.hero-badge-1 { bottom: -1.2rem; left: -1.8rem; }
.hero-badge-2 { top: 1.5rem; right: -1.5rem; }

/* Page Hero (Unterseiten) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 3.5rem 0 3rem; color: #fff;
}
.page-hero .section-tag { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.2); }
.page-hero h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; margin: .6rem 0 .75rem; }
.page-hero p { color: rgba(255,255,255,.72); max-width: 550px; font-size: .95rem; }

/* Section tag */
.section-tag {
  display: inline-block; background: rgba(20,101,68,.08); color: var(--primary);
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  padding: .28rem .9rem; border-radius: 999px; border: 1px solid rgba(20,101,68,.15);
  margin-bottom: .65rem;
}

/* Section dark */
.section-dark {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}
.section-light { background: var(--light); }

/* Cards */
.card { border-color: var(--border); border-radius: var(--radius); transition: all .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); border-color: rgba(20,101,68,.2); }
.card-img-top {
  height: 155px; background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
}
.card-tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }

/* Img placeholder */
.img-placeholder {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
  border-radius: 16px; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
}

/* Check list */
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .9rem; margin-bottom: .55rem; }
.check-list li::before {
  content: '✓'; background: var(--primary); color: #fff;
  width: 20px; height: 20px; min-width: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 700; margin-top: .15rem; flex-shrink: 0;
}

/* Stats */
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--primary); letter-spacing: -1px; line-height: 1; }
.section-dark .stat-num { color: var(--accent); }
.stat-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.section-dark .stat-label { color: rgba(255,255,255,.72); }

/* Steps */
.step {
  display: flex; align-items: flex-start; gap: 1.1rem;
  background: #fff; border-radius: var(--radius);
  padding: 1.1rem 1.3rem; border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.step-num {
  width: 38px; height: 38px; min-width: 38px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .88rem; flex-shrink: 0;
}

/* CTA block */
.cta-block {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  text-align: center; padding: 5rem 0;
}

/* Contact */
.contact-icon {
  width: 40px; height: 40px; min-width: 40px; background: rgba(20,101,68,.09);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.contact-icon .ic { width: 20px; height: 20px; }

/* Icon-Kontexte: gedämpft/hell je nach Fläche */
.topbar .ic { width: 15px; height: 15px; vertical-align: -.15em; margin-right: .25rem; }
.benefit-icon { display: inline-flex; margin-bottom: .75rem; color: var(--primary); }
.benefit-icon .ic { width: 34px; height: 34px; }
.hero-badge-float .ic { width: 20px; height: 20px; color: var(--accent-dark); }
.job-tag .ic { width: 13px; height: 13px; vertical-align: -.12em; margin-right: .2rem; }
.emergency-badge .ic, .emergency-number .ic { width: 16px; height: 16px; vertical-align: -.15em; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0; cursor: pointer; font-weight: 600; font-size: .92rem;
}
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--primary); }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { font-size: .88rem; color: var(--muted); line-height: 1.7; padding-bottom: 1rem; display: none; }
.faq-item.open .faq-a { display: block; }

/* Team */
.team-avatar {
  width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem;
}

/* Location card */
.location-card { border: 1px solid var(--border); border-radius: var(--radius); transition: all .3s; }
.location-card:hover { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.location-card a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* Emergency */
.emergency-number { font-size: 1.05rem; font-weight: 800; color: #fff; text-decoration: none; }
.emergency-badge { background: var(--accent); color: #fff; font-size: .65rem; font-weight: 800; text-transform: uppercase; padding: .2rem .55rem; border-radius: 4px; display: inline-block; margin-bottom: .35rem; }

/* Footer */
footer { background: #111; }
footer h4 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; }
footer ul { list-style: none; padding: 0; }
footer ul li a { color: rgba(255,255,255,.68); text-decoration: none; font-size: .83rem; transition: color .2s; }
footer ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .78rem; color: rgba(255,255,255,.62); }
.footer-bottom a { color: rgba(255,255,255,.72); text-decoration: none; }

/* Animations */
@keyframes slideLeft  { from { opacity:0; transform:translateX(-36px); } to { opacity:1; transform:none; } }
@keyframes slideRight { from { opacity:0; transform:translateX(36px);  } to { opacity:1; transform:none; } }
@keyframes fadeUp     { from { opacity:0; transform:translateY(20px);  } to { opacity:1; transform:none; } }
@keyframes popIn { 0%{opacity:0;transform:scale(.78) translateY(10px);} 65%{transform:scale(1.06) translateY(-3px);} 100%{opacity:1;transform:none;} }

.hero-content { animation: slideLeft  .85s cubic-bezier(.22,1,.36,1) .1s both; }
.hero-visual  { animation: slideRight .85s cubic-bezier(.22,1,.36,1) .2s both; }
.page-hero .section-tag { animation: fadeUp .55s ease .05s both; }
.page-hero h1            { animation: fadeUp .55s ease .12s both; }
.page-hero p             { animation: fadeUp .55s ease .20s both; }

/* Job card */
.job-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: all .3s; text-decoration: none; color: inherit; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.job-card:hover { border-color: rgba(20,101,68,.3); box-shadow: 0 4px 20px rgba(0,0,0,.07); transform: translateX(4px); }
.job-tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: .22rem .7rem; border-radius: 4px; }
.job-tag-type { background: rgba(20,101,68,.08); color: var(--primary); }
.job-tag-loc  { background: rgba(232,151,58,.1);  color: var(--accent-dark); }

/* Filter buttons */
.filter-btn { padding: .45rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--muted); font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .3s; }
.filter-btn:hover  { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Product card */
.product-img { height: 180px; background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid)); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; position: relative; }
.product-badge { position: absolute; top: .75rem; right: .75rem; background: var(--accent); color: #fff; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .22rem .65rem; border-radius: 4px; }
.product-cat { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }
.product-price { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.product-btn { padding: .45rem 1.1rem; border-radius: 7px; background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700; text-decoration: none; transition: all .3s; }
.product-btn:hover { background: var(--primary-dark); color: #fff; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gallery-item { border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 3rem; transition: all .3s; }
.gallery-item:hover { transform: scale(.98); box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.gallery-item.wide  { grid-column: span 2; }
.gallery-item.tall  { grid-row:    span 2; }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 55%); opacity: 0; transition: opacity .3s; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.25rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-cat-badge { position: absolute; top: .75rem; left: .75rem; background: rgba(255,255,255,.15); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .22rem .65rem; border-radius: 4px; }

/* Benefit card */
.benefit-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); text-align: center; }
.benefit-icon { font-size: 2rem; display: block; margin-bottom: .75rem; }

/* Apply form */
.apply-form { background: var(--light); border-radius: 16px; padding: 2.5rem; border: 1px solid var(--border); max-width: 640px; }

/* Gallery color tones */
.gallery-item:nth-child(1) { background: linear-gradient(135deg,#0A3825,#1E8A5C); }
.gallery-item:nth-child(2) { background: linear-gradient(135deg,#0D4530,#146544); }
.gallery-item:nth-child(3) { background: linear-gradient(135deg,#165C42,#1E8A5C); }
.gallery-item:nth-child(4) { background: linear-gradient(135deg,#1A6B50,#2AA070); }
.gallery-item:nth-child(5) { background: linear-gradient(135deg,#0A3825,#165C42); }
.gallery-item:nth-child(6) { background: linear-gradient(135deg,#0D4530,#1A6B50); }
.gallery-item:nth-child(7) { background: linear-gradient(135deg,#146544,#2AA070); }
.gallery-item:nth-child(8) { background: linear-gradient(135deg,#0A3825,#0D4530); }
.gallery-item:nth-child(9) { background: linear-gradient(135deg,#1E8A5C,#2AA070); }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item.wide { grid-column: span 1; }
  .gallery-item.tall { grid-row: span 1; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 180px; }
}

/* Sichtbare Fokus-Indikatoren (Tastaturbedienung) – auch für Elemente ohne Bootstrap-Ring */
.btn:focus-visible, .nav-link:focus-visible, .filter-btn:focus-visible,
.product-btn:focus-visible, .job-card:focus-visible, .faq-q:focus-visible,
.cat-btn:focus-visible, .service-link:focus-visible, .topbar a:focus-visible,
footer a:focus-visible, .location-card a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced Motion respektieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
