/* =========================================================
   hc-service.tech — Design System
   Concept: a dark "circuit board under warm light" hero gives
   way to a bright, welcoming paper-toned site. Copper traces
   and via-dots (drawn from the HC logo) are the one recurring
   signature motif — used sparingly as dividers and corner marks.
   ========================================================= */

:root {
  /* Color */
  --ink: #0c1b2f;
  --ink-2: #16294a;
  --ink-soft: #2c4066;
  --paper: #faf8f4;
  --paper-2: #f2ede3;
  --copper: #b06a34;
  --copper-deep: #8a5226;
  --copper-soft: #e9c9a3;
  --line: #e3ddd0;
  --line-dark: rgba(250, 248, 244, 0.14);
  --text: #16212f;
  --muted: #5c6472;
  --muted-on-dark: #aab6cc;
  --white: #ffffff;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --max: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

img { max-width: 100%; display: block; }
.container { width: min(var(--max), 92%); margin-inline: auto; }
.narrow { width: min(760px, 92%); margin-inline: auto; }
.section { padding: 7rem 0; }
.section-head { margin-bottom: 3rem; max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  color: var(--copper);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-soft);
}
.kicker.on-dark { color: var(--copper-soft); }
.kicker.on-dark::before { box-shadow: 0 0 0 3px rgba(233,201,163,.25); }

h1, h2, h3, h4 {
  margin: 0 0 .9rem;
  line-height: 1.15;
  letter-spacing: -.015em;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.2rem; margin-bottom: .6rem; }
p { margin: 0 0 1rem; }
.lead { max-width: 54ch; color: var(--muted); font-size: 1.08rem; }
.muted { color: var(--muted); }
.hidden { position: absolute; left: -9999px; }
a { color: var(--copper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 248, 244, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
}
.brand { text-decoration: none; display: flex; align-items: center; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-family: var(--font-mono);
  font-size: .82rem; text-transform: uppercase; letter-spacing: .06em;
  position: relative; padding-bottom: 4px;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--copper); transition: right .25s ease;
}
.site-nav a:hover::after { right: 0; }
.site-nav a.nav-cta {
  background: var(--ink); color: var(--paper); padding: .55rem 1rem; border-radius: 999px;
  letter-spacing: .04em;
}
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover { background: var(--copper); }

/* ---------- Burger button (mobile) ---------- */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  flex: none;
}
.burger-btn span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile slide-down menu ---------- */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: .2rem;
  max-height: 0;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: max-height .3s ease;
}
.mobile-menu.open { max-height: 420px; }
.mobile-link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 1rem 5%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.mobile-link:hover { color: var(--copper); background: var(--paper-2); }
.mobile-cta {
  margin: 1rem 5% 1.2rem;
  width: auto;
  text-align: center;
  border-top: none;
}
body.menu-open { overflow: hidden; }

@media (max-width: 640px) {
  .site-nav { display: none; }
  .burger-btn { display: flex; }
  .mobile-menu { display: flex; }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--copper); color: #fff; text-decoration: none; border: 0;
  border-radius: 999px; padding: .9rem 1.5rem; cursor: pointer; font-weight: 600;
  font-family: var(--font-body); font-size: .95rem;
  transition: background .2s ease, transform .2s ease;
}
.btn-primary:hover { background: var(--copper-deep); transform: translateY(-1px); }
.btn-primary:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--copper); outline-offset: 2px;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--paper); text-decoration: none;
  border: 1px solid var(--line-dark); border-radius: 999px; padding: .85rem 1.4rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 500;
  transition: border-color .2s ease, background .2s ease;
}
.btn-ghost:hover { border-color: var(--copper-soft); background: rgba(233,201,163,.08); }

/* ---------- Hero (dark PCB panel) ---------- */
.hero {
  background: radial-gradient(1100px 500px at 85% -10%, var(--ink-2), var(--ink) 60%);
  color: var(--paper);
  padding: 7rem 0 6rem;
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero .lead { color: var(--muted-on-dark); }
.hero-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-note { font-family: var(--font-mono); font-size: .78rem; color: var(--muted-on-dark); letter-spacing: .02em; }

.hero-graphic { display: flex; justify-content: center; align-items: center; }
.hero-graphic svg { width: 100%; max-width: 420px; height: auto; }

.trust-strip {
  margin-top: 3.2rem; padding-top: 1.8rem; border-top: 1px solid var(--line-dark);
  display: flex; gap: 2.4rem; flex-wrap: wrap;
}
.trust-item { font-size: .88rem; color: var(--muted-on-dark); display: flex; align-items: center; gap: .55rem; }
.trust-item svg { flex: none; color: var(--copper-soft); }

/* ---------- Trace divider (signature motif, used once) ---------- */
.trace-divider { display: block; width: 100%; height: 46px; }
.trace-divider svg { width: 100%; height: 100%; }

/* ---------- Services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.8rem;
  background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(12,27,47,.28);
  border-color: var(--copper-soft);
}
.card::before, .card::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border-color: var(--copper); opacity: 0; transition: opacity .2s ease;
}
.card::before { top: 10px; left: 10px; border-top: 2px solid; border-left: 2px solid; }
.card::after { bottom: 10px; right: 10px; border-bottom: 2px solid; border-right: 2px solid; }
.card:hover::before, .card:hover::after { opacity: 1; }

.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--copper); margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .96rem; }

.btn-price {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: .65rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 1rem;
  font-size: .85rem;
  font-family: var(--font-mono);
  letter-spacing: .02em;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.btn-price:hover { border-color: var(--copper); color: var(--copper-deep); background: var(--paper-2); }

/* ---------- Process ---------- */
.process-section { background: var(--paper-2); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.process-step { position: relative; padding-left: 3.4rem; }
.process-step .num {
  position: absolute; left: 0; top: -.2rem;
  font-family: var(--font-mono); font-size: 1.6rem; color: var(--copper-soft);
  -webkit-text-stroke: 1px var(--copper);
  font-weight: 600;
}
.process-step h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.process-step p { color: var(--muted); font-size: .93rem; margin-bottom: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-copy p { color: var(--text); }
.pull-quote {
  border-left: 3px solid var(--copper);
  padding: .2rem 0 .2rem 1.3rem;
  margin: 1.6rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 500;
}
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.badge {
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .03em;
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem;
  color: var(--ink-soft); background: var(--white);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.4rem; }
.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem;
}
.contact-form label { display: block; margin: .8rem 0 .35rem; font-weight: 500; font-size: .92rem; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid #d9d2c4; border-radius: var(--radius-sm); padding: .75rem .85rem; font: inherit;
  background: var(--paper); color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--copper-soft); border-color: var(--copper);
}
.company-data {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: 2rem;
  border: 1px solid var(--ink);
}
.company-data h3 { color: var(--white); }
.company-data ul { list-style: none; padding: 0; margin: 0 0 0; }
.company-data li { margin-bottom: .9rem; font-size: .95rem; color: var(--muted-on-dark); }
.company-data li strong { display: block; color: var(--copper-soft); font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; }
.small-note { color: var(--muted); font-size: .88rem; }

/* ---------- Preisliste ---------- */
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.price-list li:last-child { border-bottom: none; }
.price-list small { display: block; color: var(--muted); font-size: .85em; margin-top: 2px; }
.price-val {
  font-family: var(--font-mono); font-weight: 600; color: var(--copper-deep);
  font-size: 1.02rem; white-space: nowrap; margin-left: 15px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: 3.2rem 0 2.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: var(--white); font-size: .95rem; margin-bottom: .8rem; }
.footer-grid p { margin: 0 0 .3rem; font-size: .92rem; }
.brand-mark { color: var(--white); font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; font-size: 1.1rem; margin-bottom: .3rem; }
.text-link { background: none; border: 0; padding: 0; color: var(--muted-on-dark); cursor: pointer; font: inherit; font-size: .92rem; display: block; margin-bottom: .4rem; text-align: left; }
.text-link:hover { color: var(--copper-soft); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); margin-top: 2.4rem; padding-top: 1.4rem;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .02em; color: var(--muted-on-dark);
}

/* ---------- Modals ---------- */
.modal { border: none; padding: 0; width: min(560px, 92%); border-radius: 16px; }
.modal::backdrop { background: rgba(12,27,47,.5); backdrop-filter: blur(2px); }
.modal-content { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 1.05rem; }
.modal-body { padding: 1.3rem; max-height: 70vh; overflow-y: auto; }
.modal-body p { font-size: .93rem; }
.modal-close { border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; line-height: 1; color: var(--muted); }
.modal-close:hover { color: var(--copper); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-graphic { order: -1; max-width: 280px; margin: 0 auto 1rem; }
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 640px) {
  .section { padding: 4.6rem 0; }
  .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.6rem 0 3.2rem; }
  .trust-strip { gap: 1.2rem; }
}

/* ---------- WhatsApp Floating Button & Bubble ---------- */
.wa-widget-container {
  position: fixed; bottom: 25px; right: 25px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 15px; z-index: 9999;
}
.wa-floating-btn {
  background-color: #25d366; width: 58px; height: 58px; border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 8px 22px rgba(12,27,47,.25); transition: transform .3s ease;
}
.wa-floating-btn:hover { transform: scale(1.08); }
.wa-chat-bubble {
  background: white; color: var(--text); padding: 14px 18px; border-radius: 12px;
  border-bottom-right-radius: 2px; box-shadow: 0 10px 30px rgba(12,27,47,.18);
  font-size: .88rem; line-height: 1.45; max-width: 240px; position: relative;
  border-left: 3px solid #25d366;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.wa-chat-bubble.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.wa-close-btn { position: absolute; top: 5px; right: 8px; background: none; border: none; font-size: 1.1rem; color: #999; cursor: pointer; line-height: 1; }
.wa-close-btn:hover { color: #333; }
