/* ==========================================================
   Klaus Zimmermann Spültechnik – Stylesheet
   ========================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue-900: #062b57;
  --blue-800: #0a3d7a;
  --blue-700: #0b4f9f;
  --blue-600: #1062c4;
  --blue-500: #1f7ae0;
  --blue-300: #7cc0f5;
  --blue-100: #e3f1fd;
  --blue-50:  #f3f9ff;
  --green-600: #3f9a2c;
  --green-500: #5cb83c;
  --green-300: #a3e486;
  --green-100: #e7f6df;

  --ink: #0f2137;
  --ink-soft: #4a5b70;
  --line: #dbe6f2;
  --white: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(6, 43, 87, .06);
  --shadow: 0 12px 32px -12px rgba(6, 43, 87, .22);
  --shadow-lg: 0 30px 60px -20px rgba(6, 43, 87, .35);

  --container: 1180px;
  --header-h: 76px;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }
a:hover { color: var(--blue-800); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--blue-900);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--blue-800); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px -10px rgba(16, 98, 196, .7); }
.btn-primary:hover { background: var(--blue-700); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--blue-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-800); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--blue-800); }
.btn-light:hover { background: var(--blue-50); color: var(--blue-900); transform: translateY(-2px); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { color: #fff; border-color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-head); }
.brand-text small { font-size: .78rem; font-weight: 700; color: var(--blue-600); letter-spacing: .01em; }
.brand-text strong { font-size: 1.35rem; font-weight: 800; color: var(--blue-700); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block; padding: .5em .9em; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .97rem;
  color: var(--ink); text-decoration: none; transition: background-color .2s, color .2s;
}
.main-nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.main-nav .btn { margin-left: 8px; padding: .65em 1.2em; font-size: .95rem; color: var(--green-300); }
.main-nav .btn:hover { background: var(--blue-700); color: var(--green-300); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; border-radius: 10px;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--blue-800); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(124, 192, 245, .35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(92, 184, 60, .12), transparent 60%),
    linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
  padding: clamp(48px, 8vw, 96px) 0 clamp(120px, 14vw, 170px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-600); background: var(--green-100);
  padding: .45em 1em; border-radius: 999px; margin-bottom: 1.2em;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }

.hero h1 { font-size: clamp(1.75rem, 4vw, 3.3rem); }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500) 60%, #2aa0e6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 36em; margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-points { list-style: none; padding: 0; margin: 2.2em 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-800); font-size: .97rem; }
.hero-points svg { width: 20px; height: 20px; color: var(--green-500); flex: none; }

.hero-visual { position: relative; }
.hero-card {
  position: relative; background: #fff; border-radius: 28px; padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(219, 230, 242, .8);
}
.hero-card img { width: 100%; }
.bubble { position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, #fff 0 12%, rgba(124, 192, 245, .9) 35%, var(--blue-500) 100%);
  box-shadow: inset -4px -6px 12px rgba(6, 43, 87, .25);
  animation: float 7s ease-in-out infinite;
}
.bubble.b1 { width: 54px; height: 54px; top: -22px; right: 12%; }
.bubble.b2 { width: 26px; height: 26px; bottom: 18%; left: -14px; animation-delay: -2s; }
.bubble.b3 { width: 16px; height: 16px; top: 22%; right: -8px; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: clamp(70px, 9vw, 130px); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--blue-50); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue-500); margin-bottom: .7em;
}

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c4d9ef; }
.service-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff;
  box-shadow: 0 10px 20px -8px rgba(16, 98, 196, .6);
}
.service-icon.green { background: linear-gradient(135deg, var(--green-500), var(--green-600)); box-shadow: 0 10px 20px -8px rgba(63, 154, 44, .6); }
.service-icon.sky { background: linear-gradient(135deg, #39b0f0, var(--blue-500)); box-shadow: 0 10px 20px -8px rgba(31, 122, 224, .55); }
.service-icon svg { width: 30px; height: 30px; }
.service { min-width: 0; }
.service h3 { hyphens: auto; }
.service p { color: var(--ink-soft); }
.service ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.service li { position: relative; padding-left: 26px; margin: 6px 0; font-size: .97rem; font-weight: 500; }
.service li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231062c4' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* ---------- Produkte ---------- */
.products { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: stretch; }
.product {
  background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media { background: #23272d; display: grid; place-items: center; }
.product-media img { width: 100%; }
.product-media.tall { background: #0b3862; }
.product-media.tall img { max-height: 440px; width: auto; object-fit: contain; }
.product-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.product-body p { color: var(--ink-soft); }
.tag {
  align-self: flex-start; font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .35em .85em; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); margin-bottom: 12px;
}
.tag.red { background: #fde7ea; color: #c8102e; }
.product-body .feature-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.product-body .feature-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .97rem; }
.product-body .feature-list svg { width: 20px; height: 20px; color: var(--green-500); flex: none; margin-top: 2px; }
.product-body .btn { margin-top: auto; align-self: flex-start; }

.products-side { display: grid; gap: 28px; }
.brand-note {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); color: #dbe9fa; border-radius: 22px;
  padding: 30px; position: relative; overflow: hidden;
}
.brand-note h3 { color: #fff; }
.brand-note p { margin: 0; }
.brand-note::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 192, 245, .35), transparent 70%);
}

/* ---------- Warum wir ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { text-align: center; padding: 28px 20px; }
.why-item .num {
  font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1;
  background: linear-gradient(135deg, var(--blue-500), var(--green-500)); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.why-item .why-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--blue-600); box-shadow: var(--shadow);
}
.why-item .why-icon svg { width: 30px; height: 30px; }
.why-item p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-visual {
  position: relative; aspect-ratio: 1 / 1; border-radius: 32px; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.9), transparent 45%),
    linear-gradient(160deg, var(--blue-100), #d5ecfc 55%, var(--green-100));
  box-shadow: var(--shadow);
}
.about-visual img { width: 58%; filter: drop-shadow(0 20px 30px rgba(6, 43, 87, .25)); }
.about-badge {
  position: absolute; right: -14px; bottom: 28px; background: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-family: var(--font-head);
}
.about-badge strong { display: block; color: var(--blue-800); font-size: 1rem; }
.about-badge span { font-size: .82rem; color: var(--ink-soft); font-family: var(--font-body); }
.about-badge .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--green-100); color: var(--green-600); }
.about-badge .dot svg { width: 22px; height: 22px; }
.about-text p { color: var(--ink-soft); }
.about-text .signature { font-family: var(--font-head); font-weight: 700; color: var(--blue-800); margin-top: 1.4em; }
.about-text .signature span { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Kontakt ---------- */
.contact {
  position: relative; overflow: hidden; color: #dbe9fa;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(31, 122, 224, .55), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(92, 184, 60, .22), transparent 60%),
    var(--blue-900);
}
.contact h2 { color: #fff; }
.contact .kicker { color: var(--blue-300); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.contact-intro p { font-size: 1.12rem; }
.contact-intro .hero-actions { margin-top: 1.6em; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  color: #fff; text-decoration: none; transition: background-color .2s, transform .2s;
}
a.contact-card:hover { background: rgba(255, 255, 255, .13); color: #fff; transform: translateX(4px); }
.contact-card .ci {
  width: 50px; height: 50px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: rgba(124, 192, 245, .18); color: var(--blue-300);
}
.contact-card .ci svg { width: 24px; height: 24px; }
.contact-card small { display: block; color: var(--blue-300); font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.contact-card span { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: #041d3b; color: #9fb4cc; padding: 48px 0 32px; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand strong { color: #fff; font-family: var(--font-head); display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #c9d8ea; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 22px; font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: #c4d9ef; box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative; padding: 20px 56px 20px 24px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--blue-800);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231062c4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(48px, 7vw, 88px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); hyphens: auto; overflow-wrap: break-word; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; hyphens: auto; overflow-wrap: break-word; }
.legal p, .legal li { color: var(--ink-soft); }
.placeholder {
  background: #fff7d6; border: 1px dashed #e0b400; color: #6b5400; border-radius: 6px; padding: 0 .35em;
}
.notice {
  background: #fff7d6; border: 1px solid #f0d26b; color: #5c4800; border-radius: var(--radius-sm);
  padding: 16px 20px; margin: 0 0 2em;
}

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .services { grid-template-columns: 1fr 1fr; }
  .services .service:last-child { grid-column: 1 / -1; }
  .why { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr; }
  .products-side { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
  .main-nav a { padding: .85em 1em; border-radius: 12px; }
  .main-nav .btn { margin: 10px 0 0; justify-content: center; }

  .hero-grid, .about, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(1.75rem, 8.5vw, 3.3rem); }
  .hero-visual { max-width: 560px; }
  .about-visual { max-width: 440px; margin: 0 auto; width: 100%; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .brand img { height: 42px; }
  .brand-text strong { font-size: 1.15rem; }
  .services, .why, .products-side { grid-template-columns: 1fr; }
  .services .service:last-child { grid-column: auto; }
  .about-badge { right: 8px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

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

.back-link { white-space: nowrap; padding: .6em 1.1em; font-size: .92rem; }
