/* ==========================================================
   Emona Hausmeisterservice Heidelberg – Stylesheet
   Farben zentral hier anpassen:
   ========================================================== */
:root {
  --navy: #14304D;
  --navy-2: #1D4470;
  --navy-3: #0F2338;
  --amber: #F2A33A;
  --amber-2: #E08B1E;
  --amber-soft: #FDF1DF;
  --ink: #1B2430;
  --muted: #5A6577;
  --bg: #F7F5F0;
  --card: #FFFFFF;
  --line: #E5E1D8;
  --tint: #EDF1F6;
  --radius: 16px;
  --shadow: 0 12px 32px -14px rgba(20, 48, 77, .28);
  /* Systemschriften: keine externen Schriftarten = DSGVO-freundlich */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-2); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-amber { background: var(--amber); color: var(--navy-3); box-shadow: 0 10px 22px -12px rgba(224, 139, 30, .9); }
.btn-amber:hover { background: #F5B256; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(20, 48, 77, .45); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--navy); text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text span { font-size: .8rem; font-weight: 600; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { padding: 8px 13px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .97rem; text-decoration: none; }
.main-nav a:hover { background: var(--tint); color: var(--navy); }
.main-nav a[aria-current="page"] { color: var(--navy); }

.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 76px 0 132px;
  color: #fff;
  background: linear-gradient(140deg, var(--navy-3) 0%, var(--navy) 48%, var(--navy-2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom left, #000 0%, transparent 70%);
  mask-image: linear-gradient(to bottom left, #000 0%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--amber-2);
}
.hero .eyebrow { color: var(--amber); background: rgba(242, 163, 58, .12); border: 1px solid rgba(242, 163, 58, .38); padding: 6px 14px; border-radius: 999px; }
.hero h1 { margin: 20px 0 18px; font-size: clamp(2.15rem, 4.8vw, 3.6rem); line-height: 1.07; letter-spacing: -.025em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { max-width: 34em; margin: 0 0 30px; font-size: 1.15rem; color: rgba(255, 255, 255, .84); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 30px 0 0; padding: 0; list-style: none; font-size: .95rem; font-weight: 600; color: rgba(255, 255, 255, .88); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ico { color: var(--amber); stroke-width: 3; }

.hero-art { justify-self: end; width: 100%; max-width: 470px; }

/* ---------- Trust bar ---------- */
.trust { position: relative; z-index: 2; margin-top: -68px; }
.trust ul {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0; padding: 8px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.trust li { display: flex; align-items: flex-start; gap: 14px; padding: 20px 18px; }
.trust li + li { border-left: 1px solid var(--line); }
.t-ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-2); }
.t-ico .ico { width: 24px; height: 24px; }
.trust strong { display: block; margin-bottom: 2px; color: var(--navy); font-size: 1.03rem; }
.trust .t-txt { display: block; font-size: .9rem; line-height: 1.45; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--tint { background: var(--tint); }
.section--tight-top { padding-top: 88px; }

.sec-head { max-width: 720px; margin: 0 0 46px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin: 10px 0 14px; color: var(--navy); font-size: clamp(1.75rem, 3.3vw, 2.45rem); line-height: 1.15; letter-spacing: -.018em; }
.sec-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.service {
  height: 100%; padding: 28px 24px 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-3px); border-color: #D8D1C2; box-shadow: var(--shadow); }
.s-ico { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 14px; background: var(--navy); color: var(--amber); }
.s-ico .ico { width: 27px; height: 27px; }
.service h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.12rem; line-height: 1.3; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

.services-note {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px;
  margin-top: 28px; padding: 22px 26px;
  background: var(--amber-soft); border: 1px solid #F4D6A8; border-radius: var(--radius);
}
.services-note p { margin: 0; font-weight: 600; color: #6B4510; }

/* ---------- Für wen ---------- */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.aud { height: 100%; padding: 28px 24px; background: var(--card); border: 1px solid #DCE3EC; border-radius: var(--radius); }
.a-ico { width: 38px; height: 38px; margin-bottom: 16px; color: var(--navy-2); stroke-width: 1.8; }
.aud h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.1rem; line-height: 1.3; }
.aud p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* ---------- Ablauf ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; top: 29px; left: 17%; right: 17%; border-top: 2px dashed #CFC7B6; }
.step { position: relative; padding: 0 10px; text-align: center; }
.step-num {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--amber); color: var(--navy-3);
  font-size: 1.35rem; font-weight: 800;
  box-shadow: 0 0 0 8px var(--bg);
}
.step h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.15rem; }
.step p { max-width: 26em; margin: 0 auto; color: var(--muted); font-size: .97rem; }

/* ---------- Einsatzgebiet ---------- */
.area {
  display: grid; grid-template-columns: auto 1fr; gap: 30px;
  padding: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.area-ico { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 18px; background: var(--navy); color: var(--amber); }
.area-ico .ico { width: 32px; height: 32px; }
.area h2 { margin: 6px 0 12px; color: var(--navy); font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.2; letter-spacing: -.015em; }
.area > div > p { margin: 0 0 22px; color: var(--muted); max-width: 52em; }
.chips-label { margin: 18px 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 6px 13px; border-radius: 999px; background: var(--tint); color: var(--navy); font-size: .88rem; font-weight: 600; }
.chips--alt li { background: var(--amber-soft); color: #7A4C0F; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.contact-card { display: flex; flex-direction: column; padding: 44px 40px; border-radius: 22px; color: #fff; background: linear-gradient(155deg, var(--navy) 0%, var(--navy-3) 100%); }
.contact-card .eyebrow { color: var(--amber); }
.contact-card h2 { margin: 10px 0 12px; font-size: clamp(1.75rem, 3.3vw, 2.4rem); line-height: 1.15; letter-spacing: -.018em; }
.contact-card > p { margin: 0; color: rgba(255, 255, 255, .78); }
.c-list { display: grid; gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
.c-list li { display: flex; align-items: center; gap: 14px; }
.c-ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--amber); }
.c-ico .ico { width: 22px; height: 22px; }
.c-list small { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .58); }
.c-list a, .c-list .c-val { color: #fff; font-size: 1.08rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.c-list a:hover { color: var(--amber); }
.contact-card .c-list { margin-bottom: 32px; }
.c-promise { display: grid; gap: 10px; margin: auto 0 0; padding: 26px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); }
.c-promise li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .88); font-weight: 600; font-size: .95rem; }
.c-promise .ico { color: var(--amber); stroke-width: 3; }

.form-card { padding: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.form-card h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.4rem; }
.form-card > p { margin: 0 0 24px; color: var(--muted); font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: .9rem; font-weight: 700; }
.field label .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #FBFAF7; border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(29, 68, 112, .14); }
.field textarea { min-height: 130px; resize: vertical; }
.form-actions { margin-top: 20px; }
.form-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-size: .92rem; font-weight: 600; }
.form-status.is-ok { background: #E8F4EA; color: #1F5A2A; }
.form-status.is-error { background: #FBE9E7; color: #8A2216; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 0; background: var(--navy-3); color: rgba(255, 255, 255, .74); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.f-brand { display: flex; align-items: flex-start; gap: 14px; }
.f-brand img { width: 48px; height: 48px; }
.f-brand p { margin: 0; max-width: 24em; }
.f-brand strong { color: #fff; }
.site-footer h2 { margin: 0 0 14px; color: #fff; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; }
.f-links a, .f-links span { display: block; padding: 3px 0; color: rgba(255, 255, 255, .8); text-decoration: none; }
.f-links a:hover { color: var(--amber); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.footer-bottom nav { display: flex; gap: 20px; }
.site-footer--slim { padding-top: 0; }
.site-footer--slim .footer-bottom { margin-top: 0; border-top: 0; padding: 26px 0; }
.footer-bottom a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-bottom a:hover { color: var(--amber); }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: 64px 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h1 { margin: 0 0 28px; color: var(--navy); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; }
.legal h2 { margin: 38px 0 10px; color: var(--navy); font-size: 1.25rem; }
.legal h3 { margin: 24px 0 6px; color: var(--navy); font-size: 1.05rem; }
.legal p, .legal li { color: #333D4B; }
.legal mark { padding: 0 4px; border-radius: 4px; background: #FFE9B8; color: inherit; }
.todo-note { margin: 0 0 32px; padding: 16px 18px; background: #FFF6DD; border: 1px solid #F2CD7E; border-left: 5px solid var(--amber); border-radius: 12px; font-size: .95rem; }
.todo-note strong { color: #7A4C0F; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1060px) {
  .services, .audience { grid-template-columns: repeat(2, 1fr); }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .trust li + li { border-left: 0; }
  .trust li:nth-child(even) { border-left: 1px solid var(--line); }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .menu-btn {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .menu-btn .ico { width: 24px; height: 24px; }
  .menu-btn .ico-close { display: none; }
  .menu-btn[aria-expanded="true"] .ico-open { display: none; }
  .menu-btn[aria-expanded="true"] .ico-close { display: block; }

  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 18px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(20, 48, 77, .45);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 15px 10px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a:last-child { border-bottom: 0; }

  .hero { padding: 56px 0 116px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }

  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}

/* Handy: Anruf-Button als runder Icon-Button im (mitlaufenden) Header.
   Unten rechts blendet Netlify im Gratis-Tarif ein eigenes Badge ein. */
@media (max-width: 700px) {
  .header-inner { gap: 12px; }
  .header-phone { width: 46px; height: 46px; padding: 0; border-radius: 12px; flex: none; }
  .header-phone .ico { width: 22px; height: 22px; }
  .header-phone .hp-num { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 68px; }
  .brand img { width: 40px; height: 40px; }
  html { scroll-padding-top: 76px; }

  .hero { padding: 44px 0 104px; }
  .hero .lead { font-size: 1.05rem; }
  .cta-row .btn { flex: 1 1 100%; }

  .trust ul { grid-template-columns: 1fr; padding: 4px; }
  .trust li { padding: 16px; }
  .trust li:nth-child(even) { border-left: 0; }
  .trust li + li { border-top: 1px solid var(--line); }

  .section { padding: 68px 0; }
  .section--tight-top { padding-top: 64px; }
  .sec-head { margin-bottom: 32px; }
  .services, .audience { grid-template-columns: 1fr; gap: 14px; }

  .area { grid-template-columns: 1fr; gap: 18px; padding: 28px 22px; }
  .contact-card, .form-card { padding: 30px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
