/* ==========================================================================
   DLZ Dienstleistungszentrum GmbH - style.css
   Schlicht, sachlich und robust: klare Typografie, ruhige Flaechen,
   wenig Effekthascherei.
   ========================================================================== */

:root {
  --rot:        #c0392b;
  --rot-dunkel: #a5311f;
  --gruen:      #3a8d3a;
  --gruen-dunkel:#2f7530;
  --anthrazit:  #2f3133;
  --grau-hell:  #f6f7f7;
  --grau-rand:  #e7e8ea;
  --text:       #2b2d2f;
  --text-grau:  #6c7074;
  --blau:       #1f4fb0;
  --schatten:   0 10px 28px rgba(16,24,32,.08);
  --schatten-klein: 0 3px 12px rgba(16,24,32,.07);
  --radius:     4px;
  /* Marken-Tricolor aus dem Logo (Objekt-Service / Grünpflege / Winterdienst) */
  --tricolor:   linear-gradient(90deg, var(--rot) 0%, var(--rot) 33%, var(--gruen) 33%, var(--gruen) 66%, var(--blau) 66%, var(--blau) 100%);
}

/* ---------- Reset / Grundlagen ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(246,247,247,.72) 0, #fff 220px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--gruen-dunkel); }

h1, h2, h3 { font-family: "Open Sans", Arial, Helvetica, sans-serif; color: var(--anthrazit); line-height: 1.22; font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.3rem); margin: 0 0 .55em; }
h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.6rem); margin: 1.9em 0 .55em; }
h3 { font-size: 1.12rem; margin: 1.5em 0 .4em; }

p { margin: 0 0 1.1em; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 26px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--grau-rand);
  box-shadow: 0 1px 0 rgba(16,24,32,.02);
}
/* Marken-Tricolor-Kante über dem Header */
.site-header::before {
  content: ""; display: block; height: 4px; background: var(--tricolor);
}
.header-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 12px 26px;
  display: flex; align-items: center; gap: 26px;
}

/* Logo */
.logo { text-decoration: none; display: flex; align-items: center; line-height: 0; flex-shrink: 0; }
.logo img { height: 54px; width: auto; display: block; }

/* Navigation */
.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block; text-decoration: none; color: var(--text);
  font-size: .93rem; font-weight: 600;
  padding: 8px 13px; border-radius: 4px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.main-nav a:hover { color: var(--gruen-dunkel); background: var(--grau-hell); transform: translateY(-1px); }
.main-nav li.aktiv > a,
.main-nav a[aria-current="page"] { color: var(--gruen-dunkel); background: rgba(58,141,58,.10); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-1px); vertical-align: middle; }
.dropdown {
  list-style: none; margin: 0; padding: 7px;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 224px;
  background: #fff; border: 1px solid var(--grau-rand);
  border-radius: var(--radius); box-shadow: var(--schatten);
  display: none;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { display: block; }
.dropdown a { padding: 9px 13px; border-radius: 7px; font-weight: 500; }
.dropdown a:hover { background: var(--grau-hell); }

/* Aktionen rechts */
.header-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--grau-rand); border-radius: 4px; color: var(--anthrazit);
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--gruen); color: var(--gruen-dunkel); background: var(--grau-hell); }
.icon-btn svg { width: 18px; height: 18px; }

.btn-anfrage {
  background: var(--rot); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .92rem; padding: 10px 19px;
  border-radius: 3px; white-space: nowrap;
  transition: background .15s;
}
.btn-anfrage:hover { background: var(--rot-dunkel); }

/* Mobiles Menü */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--grau-rand);
  border-radius: 4px; width: 42px; height: 40px; cursor: pointer; color: var(--anthrazit);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ==========================================================================
   Anthrazit-Streifen (Leistungsseiten)
   ========================================================================== */
.fachstreifen { background: var(--anthrazit); color: #d7dadd; }
.fachstreifen .container { padding-top: 12px; padding-bottom: 12px; font-size: .85rem; letter-spacing: .01em; }
.fachstreifen strong { color: #fff; }
.fachstreifen .sep { color: #6a6e72; padding: 0 7px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 13px 26px; border-radius: 3px; border: 1px solid transparent; font-size: .95rem;
  letter-spacing: .01em;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-rot   { background: var(--rot); color: #fff; }
.btn-rot:hover { background: var(--rot-dunkel); box-shadow: var(--schatten-klein); transform: translateY(-1px); }
.btn-gruen { background: var(--gruen); color: #fff; }
.btn-gruen:hover { background: var(--gruen-dunkel); box-shadow: var(--schatten-klein); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--anthrazit); border-color: var(--grau-rand); }
.btn-outline:hover { border-color: var(--gruen); color: var(--gruen-dunkel); background: var(--grau-hell); transform: translateY(-1px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ==========================================================================
   Hero (Startseite)
   ========================================================================== */
.hero {
  position: relative;
  padding: 62px 0 58px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(58,141,58,.075), transparent 44%),
    linear-gradient(180deg, #fff 0%, rgba(246,247,247,.84) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-grid > div:first-child {
  animation: heroTextIn .7s ease both;
}
.hero-grid > div:last-child {
  animation: heroImagesIn .82s ease .08s both;
}
.hero h1 { margin-bottom: .2em; }
.hero h1::before,
.section > .container > h1::before,
.section > .container > h2::before {
  content: ""; display: block; width: 52px; height: 4px;
  background: var(--tricolor); margin-bottom: 20px;
}
.section > .container > h2 { margin-top: 0; }
.section > .container > h2::before { margin-bottom: 14px; }
.hero .subline {
  font-size: 1.05rem; color: var(--gruen-dunkel); font-weight: 700;
  letter-spacing: .01em; margin: 0 0 1.2em;
}
.hero p { color: var(--text-grau); max-width: 46ch; }
.hero .btn-row { margin-top: 26px; }
.hero .oeffnung {
  margin-top: 24px; font-size: .9rem; color: var(--text-grau);
  border-top: 1px solid var(--grau-rand); padding-top: 18px;
}

/* 4 Bild-Kacheln */
.kachel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kachel {
  position: relative; display: block; text-decoration: none; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--grau-rand);
  background: #fff;
  box-shadow: var(--schatten-klein);
  transition: border-color .18s ease, transform .22s ease, box-shadow .22s ease;
}
.kachel:nth-child(2),
.kachel:nth-child(3) { transform: translateY(12px); }
.kachel img {
  width: 100%; height: 158px; object-fit: cover;
  filter: saturate(.96) contrast(1.02);
  transition: transform .55s ease, filter .22s ease;
}
.kachel span {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--anthrazit);
  color: #fff; font-family: "Open Sans", Arial, Helvetica, sans-serif; font-size: .9rem; font-weight: 700;
  padding: 12px 14px; letter-spacing: .005em;
  border-top: 3px solid; border-image: var(--tricolor) 1;
}
.kachel:hover {
  border-color: #cfd3d6;
  box-shadow: var(--schatten);
  transform: translateY(-3px);
}
.kachel:nth-child(2):hover,
.kachel:nth-child(3):hover { transform: translateY(8px); }
.kachel:hover img { transform: scale(1.035); filter: saturate(1.02) contrast(1.04); }

/* ==========================================================================
   USP-Leiste
   ========================================================================== */
.usp-leiste { background: #fff; border-top: 1px solid var(--grau-rand); border-bottom: 1px solid var(--grau-rand); }
.usp-leiste ul {
  list-style: none; margin: 0 auto; padding: 22px 26px; max-width: 1160px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 34px;
}
.usp-leiste li {
  position: relative; padding-left: 0; font-size: .9rem; font-weight: 600; color: var(--anthrazit);
  border-left: 2px solid var(--grau-rand);
  padding-top: 2px;
  padding-bottom: 2px;
  padding-right: 6px;
  padding-left: 14px;
}
.usp-leiste li::before {
  content: none;
}

/* ==========================================================================
   Inhalt / Sektionen
   ========================================================================== */
.section { padding: 60px 0; }
.section + .section { border-top: 1px solid var(--grau-rand); }
.section,
.cta-streifen,
.kennzahlen,
.site-footer {
  content-visibility: auto;
}

/* Zweispaltiger Fließtext */
.zweispalt { column-count: 2; column-gap: 52px; max-width: 1000px; }
.zweispalt p:first-child { margin-top: 0; }

/* Häkchen-Listen */
.haken { list-style: none; margin: 1.1em 0 1.5em; padding: 0; }
.haken li { position: relative; padding: 9px 0 9px 34px; border-bottom: 1px solid var(--grau-rand); }
.haken li:last-child { border-bottom: none; }
.haken li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 20px; height: 20px; border-radius: 2px; background: var(--gruen);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.haken.kompakt li { border-bottom: none; padding-top: 4px; padding-bottom: 4px; }

/* Vier-Punkte-Inline-Liste */
.leistung-vier { list-style: none; margin: 1.3em 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 640px; }
.leistung-vier li {
  background: var(--grau-hell); border: 1px solid var(--grau-rand); border-left: 3px solid var(--gruen);
  border-radius: var(--radius); padding: 12px 18px; font-weight: 600; color: var(--anthrazit);
  transition: border-color .15s, background .15s;
}
.leistung-vier li:hover { background: #fff; border-left-color: var(--gruen-dunkel); box-shadow: var(--schatten-klein); }
.leistung-vier a { display: block; }

/* Kennzahlen-Leiste */
.kennzahlen { background: var(--anthrazit); color: #fff; }
.kennzahlen .container {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-top: 38px; padding-bottom: 38px; text-align: center;
}
.kennzahlen .kz { border-right: 1px solid rgba(255,255,255,.12); padding: 4px 10px; }
.kennzahlen .kz:last-child { border-right: none; }
.kennzahlen .kz b { display: block; font-size: 2.1rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.kennzahlen .kz span { font-size: .9rem; color: #aab0b5; letter-spacing: .03em; text-transform: uppercase; }

/* CTA-Streifen */
.cta-streifen { background: var(--grau-hell); border-top: 1px solid var(--grau-rand); border-bottom: 1px solid var(--grau-rand); }
.cta-streifen .container {
  padding-top: 34px; padding-bottom: 34px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; justify-content: space-between;
}
.cta-streifen p { margin: 0; max-width: 680px; font-weight: 600; font-size: 1.05rem; color: var(--anthrazit); }

/* Layout Leistungsseiten */
.mit-box { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.info-box {
  background: var(--grau-hell); border: 1px solid var(--grau-rand);
  border-top: 3px solid var(--rot); border-radius: var(--radius);
  padding: 26px 26px 28px; position: sticky; top: 92px;
}
.info-box h2, .info-box h3 { margin-top: 0; font-size: 1.12rem; }
.info-box p { font-size: .92rem; color: var(--text-grau); }

/* ==========================================================================
   Stellen-Box / Partner-Kachel
   ========================================================================== */
.stellen-box {
  border: 1px solid var(--grau-rand); border-left: 4px solid var(--gruen);
  border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 26px 28px; max-width: 660px; margin-top: 8px;
}
.stellen-box h3 { margin-top: 0; }

.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 12px; }
.partner-platzhalter {
  border: 1px dashed var(--grau-rand); background: var(--grau-hell);
  border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--text-grau);
}

/* ==========================================================================
   Kontakt / Anfrage
   ========================================================================== */
.info-karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 36px; }
.info-karte {
  border: 1px solid var(--grau-rand); border-radius: var(--radius);
  padding: 22px 24px;
  border-top: 3px solid; border-image: var(--tricolor) 1;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16,24,32,.02);
}
.info-karte h3 { margin: 0 0 .45em; font-size: 1rem; }
.info-karte p { margin: 0; font-size: .95rem; }
.info-karte a { color: var(--anthrazit); }

form.anfrage-form { max-width: 740px; }
.feld { margin-bottom: 18px; }
.feld label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.feld input, .feld textarea, .feld select {
  width: 100%; font: inherit; padding: 12px 14px;
  border: 1px solid var(--grau-rand); border-radius: 4px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.feld input:focus, .feld textarea:focus, .feld select:focus {
  outline: none; border-color: var(--gruen); box-shadow: 0 0 0 3px rgba(58,141,58,.14);
}
.feld textarea { min-height: 150px; resize: vertical; }
.feld-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dsgvo-zeile { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; }
.dsgvo-zeile input { width: auto; margin-top: 4px; }

/* Honeypot – für Menschen unsichtbar, aber von Bots ausgefüllt */
.hp-feld { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Status-Meldung nach dem Absenden */
.form-status { margin-top: 16px; padding: 13px 16px; border-radius: 4px; font-weight: 600; font-size: .95rem; }
.form-status.ok { background: rgba(58,141,58,.10); border: 1px solid rgba(58,141,58,.35); color: var(--gruen-dunkel); }
.form-status.fehler { background: rgba(192,57,43,.08); border: 1px solid rgba(192,57,43,.35); color: var(--rot-dunkel); }

/* Zurueckhaltende Bewegung: wirkt lebendiger, bleibt aber sachlich. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .58s ease, transform .58s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroImagesIn {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

.karte-iframe { border: 1px solid var(--grau-rand); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); margin-top: 10px; }
.karte-iframe iframe { display: block; width: 100%; border: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--grau-hell); border-top: 1px solid var(--grau-rand);
  margin-top: 64px; font-size: .9rem; color: var(--text-grau);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; padding: 46px 0 36px; }
.footer-grid h4 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--anthrazit); margin: 0 0 .85em;
}
.footer-grid p { margin: 0 0 .4em; }
.footer-grid a { color: var(--text-grau); text-decoration: none; }
.footer-grid a:hover { color: var(--gruen-dunkel); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .4em; }
.footer-unten { border-top: 1px solid var(--grau-rand); padding: 14px 0; font-size: .8rem; }
.footer-unten-inner { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; }
.footer-unten .credit a { color: var(--gruen-dunkel); font-weight: 600; text-decoration: none; }
.footer-unten .credit a:hover { text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid, .mit-box { grid-template-columns: 1fr; gap: 34px; }
  .info-box { position: static; }
  .zweispalt { column-count: 1; }
  .usp-leiste ul { grid-template-columns: repeat(2, 1fr); }
  .info-karten { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 46px 0; }

  /* Navigation einklappen */
  .nav-toggle { display: flex; order: 3; margin-left: auto; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .header-actions { order: 2; margin-left: auto; }
  .main-nav { order: 4; flex-basis: 100%; margin-left: 0; display: none; }
  .main-nav.offen { display: block; padding-bottom: 8px; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav > ul > li { border-top: 1px solid var(--grau-rand); }
  .main-nav a { padding: 13px 6px; border-radius: 0; }
  .main-nav li.aktiv > a { background: none; border-left: 3px solid var(--gruen); padding-left: 10px; }
  .has-dropdown > a::after { float: right; margin-top: .5em; }
  .dropdown { position: static; border: none; box-shadow: none; padding: 0 0 6px 14px; display: none; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .header-inner { padding: 10px 20px; gap: 10px; align-items: center; }
  .logo img { height: 34px; }
  .header-actions { gap: 0; margin-left: auto; }
  .header-actions .icon-btn { display: none; }
  .btn-anfrage { padding: 9px 13px; font-size: .86rem; }
  .nav-toggle { width: 40px; height: 38px; margin-left: 0; }
  .main-nav { margin-top: 2px; }
  .main-nav.offen { padding-bottom: 2px; }
  .section { padding: 34px 0; }
  .hero { padding: 34px 0 32px; }
  .feld-zeile { grid-template-columns: 1fr; }
  .kachel-grid { grid-template-columns: 1fr; }
  .kachel:nth-child(2),
  .kachel:nth-child(3) { transform: none; }
  .usp-leiste ul, .leistung-vier, .footer-grid { grid-template-columns: 1fr; }
  .usp-leiste li { padding-left: 12px; }
  .kennzahlen .container { grid-template-columns: 1fr; gap: 18px; }
  .kennzahlen .kz { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 16px; }
  .kennzahlen .kz:last-child { border-bottom: none; }
}

@media (max-width: 340px) {
  html, body { overflow-x: hidden; }
  .container { padding-left: 16px; padding-right: 16px; }
  .header-inner { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .logo img { height: 31px; }
  .btn-anfrage { padding-left: 10px; padding-right: 10px; }
}
