/* =========================================================
   Hausmeisterservice Robin Eckardt – Stylesheet
   Marke: kräftiges Grün + Anthrazit (nach Flyer-Vorlage)
   Keine externen Ressourcen (DSGVO-freundlich).
   ========================================================= */

:root {
  --brand:        #57a333;   /* Hauptgrün */
  --brand-bright: #8dc63f;   /* Lime-Akzent */
  --brand-dark:   #2f6b1e;   /* dunkles Grün */
  --ink:          #2b2f36;   /* Anthrazit (dunkle Flächen) */
  --ink-2:        #23272d;   /* dunkler */
  --text:         #2b2f36;
  --text-soft:    #5a626d;
  --line:         #e5e8ec;
  --bg:           #ffffff;
  --bg-alt:       #f4f7f2;   /* zartes Grün-Grau */
  --white:        #ffffff;
  --radius:       14px;
  --radius-lg:    22px;
  --shadow:       0 10px 30px rgba(24, 40, 20, .10);
  --shadow-soft:  0 4px 16px rgba(24, 40, 20, .07);
  --maxw:         1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / Basis ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.15; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: 0 0 .4em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Baustellen-Banner */
.site-banner {
  background: var(--ink); color: #fff; text-align: center;
  font-size: .9rem; font-weight: 600; line-height: 1.4;
  padding: 9px 16px; border-bottom: 3px solid var(--brand-bright);
}
@media (max-width: 480px) { .site-banner { font-size: .82rem; padding: 8px 12px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  line-height: 1;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(87,163,51,.35); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-block { width: 100%; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 800;
  color: var(--brand-dark); margin: 0 0 .6em;
}
.eyebrow-light { color: var(--brand-bright); }
.accent { color: var(--brand-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); }
.logo-img { height: 44px; width: auto; display: block; }
.logo-mark { display: inline-flex; color: var(--brand); }
.logo-text { font-size: .82rem; line-height: 1.15; color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; }
.logo-text strong { display: block; font-size: 1.02rem; color: var(--ink); letter-spacing: .02em; }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 10px 14px; border-radius: 8px; }
.primary-nav a:hover { background: var(--bg-alt); color: var(--brand-dark); }
.primary-nav .nav-cta { background: var(--brand); color: #fff; margin-left: 6px; }
.primary-nav .nav-cta:hover { background: var(--brand-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(35,39,45,.92) 0%, rgba(47,107,30,.82) 100%),
    radial-gradient(circle at 80% 20%, rgba(141,198,63,.35), transparent 55%),
    var(--ink);
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px; pointer-events: none;
}
.hero-inner { position: relative; padding: clamp(56px, 9vw, 110px) 0; }
.hero-content { max-width: 680px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--brand-bright); }
.lead { font-size: 1.18rem; color: rgba(255,255,255,.92); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.4em; }
.hero-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges li {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  padding: 12px 18px; border-radius: 12px; backdrop-filter: blur(4px);
}
.hero-badges strong { display: block; color: var(--brand-bright); font-size: .98rem; }
.hero-badges span { font-size: .85rem; color: rgba(255,255,255,.85); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-intro { color: var(--text-soft); font-size: 1.1rem; }

/* ---------- Leistungs-Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright)); color: #fff; margin-bottom: 18px;
}
.card p { color: var(--text-soft); margin: 0; }
.card-accent { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; border-color: transparent; }
.card-accent h3 { color: #fff; }
.card-accent p { color: rgba(255,255,255,.9); }
.card-accent .card-icon { background: rgba(255,255,255,.18); }

/* ---------- Zwei-Spalten (Über uns / Kontakt) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col-content h2 { margin-bottom: .5em; }
.section-dark .two-col-content p { color: rgba(255,255,255,.85); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 26px; text-align: center;
}
.stat strong { display: block; font-size: 1.9rem; color: var(--brand-bright); }
.stat span { color: rgba(255,255,255,.8); font-size: .95rem; }

/* ---------- Ablauf / Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 28px; text-align: center; box-shadow: var(--shadow-soft); position: relative;
}
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright)); color: #fff;
  border-radius: 50%; font-size: 1.3rem; font-weight: 800;
}
.step p { color: var(--text-soft); margin: 0; }

/* ---------- Karussell / Galerie ---------- */
.carousel { position: relative; max-width: 940px; margin: 0 auto; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.carousel-track { display: flex; margin: 0; padding: 0; list-style: none; transition: transform .5s ease; }
.carousel-slide { min-width: 100%; }

.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--white); }
.ba-item { margin: 0; background: var(--white); display: flex; flex-direction: column; }
.ba-img {
  width: 100%; height: clamp(200px, 34vw, 360px); object-fit: cover; display: block;
  background-size: cover; background-position: center;
}
.ba-item.ba-single .ba-img { height: clamp(200px, 34vw, 360px); }
.ba-img.ba-placeholder {
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #dfe6da, #dfe6da 14px, #e8eee3 14px, #e8eee3 28px);
  color: var(--text-soft); font-weight: 700; letter-spacing: .04em;
}
.ba-img.ba-placeholder-after {
  background: repeating-linear-gradient(45deg, #cfe6c2, #cfe6c2 14px, #dcf0d0 14px, #dcf0d0 28px);
}
.ba-img.ba-placeholder span { background: rgba(255,255,255,.7); padding: 6px 12px; border-radius: 8px; font-size: .85rem; }
.ba-item figcaption {
  padding: 14px 18px; font-weight: 700; color: var(--ink); background: var(--white);
  display: flex; align-items: center; gap: 10px; font-size: .95rem;
}
.ba-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; color: #fff; }
.ba-tag-before { background: var(--text-soft); }
.ba-tag-after { background: var(--brand); }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center;
  box-shadow: var(--shadow); transition: background .15s, transform .15s;
}
.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.carousel-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #c3ccbb; transition: background .15s, transform .15s;
}
.carousel-dots button[aria-current="true"] { background: var(--brand); transform: scale(1.25); }

/* ---------- Kontakt-Formular ---------- */
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-ico { font-size: 1.4rem; width: 44px; height: 44px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.contact-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 700; }
.contact-list a:hover { color: var(--brand-dark); }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-soft); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--text); background: #fbfcfa; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(87,163,51,.15); background: #fff;
}
.field textarea { resize: vertical; }
.field-check { display: flex; align-items: flex-start; gap: 10px; }
.field-check input { width: auto; margin-top: 5px; flex-shrink: 0; }
.field-check label { font-weight: 400; font-size: .9rem; color: var(--text-soft); margin: 0; }
.field.invalid input, .field.invalid textarea { border-color: #d9534f; }
.form-note { font-size: .82rem; color: var(--text-soft); margin: 12px 0 0; }
.form-status { margin: 10px 0 0; font-weight: 600; font-size: .95rem; }
.form-status.ok { color: var(--brand-dark); }
.form-status.err { color: #c9302c; }
/* Honeypot – für Menschen unsichtbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Erweitertes Anfrage-Formular */
.contact-form select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--text); background: #fbfcfa;
}
.contact-form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(87,163,51,.15); background: #fff; }
.service-select { border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.service-select legend { font-weight: 600; font-size: .95rem; padding: 0 6px; }
.service-select.invalid { border-color: #d9534f; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 6px; }
.service-opt { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .95rem; cursor: pointer; }
.service-opt input { width: auto; margin: 0; flex-shrink: 0; }
.detail-group { background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.detail-group[hidden] { display: none; }
.detail-title { font-weight: 700; margin: 0 0 12px; color: var(--ink); font-size: .95rem; }
.detail-hint { margin: 0; color: var(--text-soft); font-size: .9rem; }
.detail-group .field:last-child { margin-bottom: 0; }
.field-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.field-hint { font-size: .82rem; color: var(--text-soft); margin: 6px 0 0; }
.contact-form input[type="file"] { width: 100%; font: inherit; padding: 10px; border: 1.5px dashed var(--line); border-radius: 10px; background: #fbfcfa; cursor: pointer; }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.file-list li { font-size: .85rem; color: var(--text-soft); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; word-break: break-word; }
.file-list li.file-bad { color: #c9302c; border-color: #e3b6b4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,.8); padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.15rem; }
.footer-tag { margin: 6px 0 0; color: rgba(255,255,255,.7); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--brand-bright); }
.footer-copy { padding-top: 22px; font-size: .88rem; color: rgba(255,255,255,.55); }
.footer-copy p { margin: 0; }

/* ---------- Rechtstexte (Impressum/Datenschutz) ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0; max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal p, .legal li { color: #3d434c; }
.legal a { color: var(--brand-dark); }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--brand-dark); font-weight: 700; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .logo-img { height: 38px; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 18px; gap: 4px;
    box-shadow: var(--shadow); display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 14px; border-radius: 10px; }
  .primary-nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .section { padding: 54px 0; }
  .section-head { margin-bottom: 34px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .field-row-3 { grid-template-columns: 1fr 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 52px 0 60px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-badges { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-badges li { width: 100%; }
  .contact-form { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 18px; }
}
@media (max-width: 480px) {
  .logo-text { font-size: .72rem; }
  .logo-text strong { font-size: .92rem; }
  .ba-item figcaption { padding: 10px 12px; font-size: .8rem; gap: 6px; flex-wrap: wrap; }
  .ba-tag { font-size: .64rem; padding: 3px 8px; }
  .carousel-btn { width: 38px; height: 38px; }
  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }
  .carousel-dots button { width: 9px; height: 9px; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
