/* ==========================================================================
   KS Haus & Objektservice – Stylesheet
   Farben aus dem Logo: Orange, Navy, Blau
   ========================================================================== */

:root {
  --orange: #f47a1f;
  --orange-dark: #d9660c;
  --navy: #333a48;
  --navy-light: #4a5266;
  --blue: #4a7bc0;
  --blue-dark: #3a63a0;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-card: #ffffff;
  --text: #333a48;
  --text-soft: #5c6373;
  --border: #e5e8ee;
  --shadow: 0 6px 24px rgba(51, 58, 72, 0.08);
  --shadow-lg: 0 14px 40px rgba(51, 58, 72, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Barrierefreiheit ---------- */
/* Sichtbarer Tastatur-Fokus */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Sprunglink "Zum Inhalt springen" (nur bei Tastatur-Fokus sichtbar) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 12px;
  text-decoration: none;
}
/* Nutzer mit Bewegungsempfindlichkeit: Animationen reduzieren */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(244,122,31,.32); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand img { height: 46px; width: auto; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px; border-radius: 3px;
  background: var(--navy); transition: .25s;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  color: var(--navy);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-links a.active { color: var(--orange); }
.nav-links .btn { color: #fff; padding: 11px 22px; margin-left: 8px; }
.nav-links .btn:hover { background: var(--orange-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background-color: #1e2637;
  background-image: linear-gradient(180deg, rgba(30,38,55,.72), rgba(30,38,55,.55)), url("../img/bg.jpg");
  background-image: linear-gradient(180deg, rgba(30,38,55,.72), rgba(30,38,55,.55)),
    image-set(url("../img/bg.webp") type("image/webp"), url("../img/bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  padding: 96px 0 104px;
}
.hero-content { max-width: 680px; }
.hero .eyebrow {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: rgba(255,255,255,.94);
  margin-bottom: 32px;
  text-shadow: 0 1px 10px rgba(0,0,0,.3);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head .eyebrow {
  color: var(--orange-dark);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin: 10px 0 14px;
  line-height: 1.18;
}
.section-head p { color: var(--text-soft); font-size: 1.08rem; }

/* ---------- Service Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card .icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fff2e6, #ffe0c4);
  margin-bottom: 20px;
}
.card .icon svg { width: 30px; height: 30px; stroke: var(--orange); }
.card h3 { font-size: 1.22rem; color: var(--navy); margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--text-soft); font-size: .98rem; }

/* ---------- Why / Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature { text-align: center; padding: 10px; }
.feature .num {
  font-size: 2.6rem; font-weight: 800; color: var(--orange);
  line-height: 1;
}
.feature .fico {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #eef3fb;
}
.feature .fico svg { width: 30px; height: 30px; stroke: var(--blue); }
.feature h3 { color: var(--navy); font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--text-soft); font-size: .98rem; }

/* ---------- Areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.area-chip {
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow);
  display: inline-flex; align-items: center; gap: 8px;
}
.area-chip svg { width: 18px; height: 18px; stroke: var(--orange); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-light));
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 12px; font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.08rem; margin-bottom: 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  color: var(--text);
}
a.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); text-decoration: none; }
.contact-card .cico {
  width: 66px; height: 66px; margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-card .cico svg { width: 30px; height: 30px; }
.cico.phone { background: #fff2e6; } .cico.phone svg { stroke: var(--orange); }
.cico.mail  { background: #eef3fb; } .cico.mail svg  { stroke: var(--blue); }
.cico.wa    { background: #e7f6ec; } .cico.wa svg    { stroke: #25a556; }
.contact-card .label { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); font-weight: 700; }
.contact-card .value { font-size: 1.24rem; font-weight: 800; color: var(--navy); margin-top: 6px; word-break: break-word; }
.contact-card .sub { color: var(--text-soft); font-size: .92rem; margin-top: 6px; }

/* ---------- Service detail list (Leistungen) ---------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.service-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-block h3 {
  display: flex; align-items: center; gap: 12px;
  color: var(--navy); font-size: 1.2rem; font-weight: 700;
  margin-bottom: 16px;
}
.service-block .icon {
  width: 46px; height: 46px; border-radius: 11px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fff2e6, #ffe0c4);
  margin: 0;
}
.service-block .icon svg { width: 24px; height: 24px; stroke: var(--orange); }
.check-list { list-style: none; }
.check-list li {
  position: relative; padding-left: 28px; margin-bottom: 10px;
  color: var(--text-soft); font-size: .98rem;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--orange); font-weight: 800;
}
.hinweis {
  margin-top: 40px; text-align: center;
  color: var(--text-soft); font-size: .95rem;
}
.check-list.two-col { columns: 2; column-gap: 44px; }
.check-list.two-col li { break-inside: avoid; }
@media (max-width: 640px) { .check-list.two-col { columns: 1; } }

/* ---------- Location / text pages ---------- */
.prose .lead { font-size: 1.14rem; color: var(--text); margin-bottom: 16px; }
.prose .subsection { margin-top: 34px; }
.text-cta {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  text-align: center;
  margin-top: 40px;
}
.text-cta h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 10px; }
.text-cta p { color: var(--text-soft); margin-bottom: 22px; }
.text-cta .hero-actions { justify-content: center; }

/* ---------- Info / legal pages ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy), var(--navy-light));
  color: #fff;
  padding: 68px 0 60px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.85); margin-top: 10px; }

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { color: var(--navy); font-size: 1.4rem; margin: 34px 0 12px; }
.prose h3 { color: var(--navy); font-size: 1.12rem; margin: 24px 0 8px; }
.prose p { color: var(--text-soft); margin-bottom: 14px; }
.prose ul { color: var(--text-soft); margin: 0 0 14px 22px; }
.prose strong { color: var(--navy); }

.info-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
  margin: 8px 0 26px;
}
.info-box p { margin-bottom: 4px; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer .brand-f img { height: 84px; width: auto; margin-bottom: 16px; background:#fff; padding:8px 12px; border-radius:10px; }
.site-footer .brand-f a { display: inline-block; }
.site-footer p { font-size: .95rem; }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 1.02rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--orange); text-decoration: none; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid, .features, .contact-grid, .service-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 16px 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 12px; }
  .nav-links .btn { margin: 8px 0 0; justify-content: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .section { padding: 60px 0; }
  .hero { padding: 72px 0 78px; }
  .grid, .features, .contact-grid, .service-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 44px 24px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- FAQ (Akkordeon, native <details>) ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--orange);
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--orange-dark); }
.faq .faq-answer { padding: 0 24px 22px; color: var(--text-soft); }

/* ---------- Öffnungszeiten ---------- */
.hours {
  max-width: 460px;
  margin: 0 auto;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}
.hours li:last-child { border-bottom: 0; }
.hours .day { font-weight: 700; color: var(--navy); }
.hours .time { color: var(--text-soft); }
