/* ============================================================
   SaleinZ — global.css
   Design tokens approximated from the visual direction of
   grundriss-butler.de/3d-grundriss (white bg, near-black text,
   thin gray dividers, single accent, thin-line icons).
   NOTE: reference site renders styles via JS; exact computed
   tokens could not be extracted — values below are the closest
   restrained equivalents. See README.md.
   ============================================================ */

:root {
  --c-text: #3c3c3b;
  --c-heading: #1d1d1b;
  --c-muted: #767676;
  --c-divider: #e5e5e5;
  --c-band: #f7f7f7;
  --c-accent: #e8590c;
  --c-accent-dark: #c94e0b;
  --c-dark: #22272e;
  --c-white: #ffffff;
  --ff-base: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --fs-base: 1rem;
  --lh-base: 1.6;
  --radius: 4px;
  --maxw: 800px;
  --maxw-wide: 1000px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-white);
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--c-heading); line-height: 1.25; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.container-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 1rem; }
section { padding: 2.5rem 0; border-bottom: 1px solid var(--c-divider); }
.band { background: var(--c-band); }

/* ---------- Icons ---------- */
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.25em;
  flex-shrink: 0;
}
.icon-lg { width: 36px; height: 36px; }
.ic-ok { color: #2e7d32; }
.ic-no { color: #b71c1c; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--c-accent);
  color: var(--c-white);
  padding: .75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  min-height: 44px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--c-accent-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--c-heading); border: 1px solid var(--c-divider); }
.btn-ghost:hover { background: var(--c-band); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-divider);
}
.site-header .header-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-heading);
  letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--c-accent); }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--c-text);
  padding: .6rem .7rem;
  min-height: 44px;
  font-size: .95rem;
}
.main-nav a:hover { color: var(--c-heading); text-decoration: none; border-bottom: 2px solid var(--c-accent); }
.header-cta { white-space: nowrap; }
.nav-toggle-input, .nav-toggle-label { display: none; }

@media (max-width: 767px) {
  .header-cta { display: none; }
  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    cursor: pointer;
    color: var(--c-heading);
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-divider);
    margin: 0;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { width: 100%; padding: .8rem 1rem; border-bottom: 1px solid var(--c-divider); }
  .nav-toggle-input:checked ~ .main-nav { display: block; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 640px; }
th, td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--c-divider); font-size: .95rem; }
thead th {
  background: var(--c-white);
  color: var(--c-heading);
  position: sticky;
  top: 0;
  border-bottom: 2px solid var(--c-heading);
}
tbody tr:nth-child(even) { background: var(--c-band); }

/* ---------- Accordion (FAQ) ---------- */
details {
  border: 1px solid var(--c-divider);
  border-radius: var(--radius);
  margin-bottom: .6rem;
  background: var(--c-white);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  cursor: pointer;
  padding: .9rem 1rem;
  font-weight: 700;
  color: var(--c-heading);
  list-style: none;
  min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary .icon { transition: transform .2s ease; }
details[open] summary .icon { transform: rotate(180deg); }
details > div { padding: 0 1rem 1rem; }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--c-divider);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: var(--c-white);
}

/* ---------- Image placeholders (dev phase) ---------- */
.img-placeholder {
  border: 1px dashed var(--c-muted);
  border-radius: var(--radius);
  background: var(--c-band);
  color: var(--c-muted);
  font-size: .8rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  min-height: 200px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-dark);
  color: #c8cdd3;
  padding: 2.5rem 0 1.5rem;
  font-size: .92rem;
}
.site-footer a { color: #e8eaed; }
.site-footer .footer-cols {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.site-footer .footer-col { flex: 1 1 220px; }
.site-footer h2 { color: var(--c-white); font-size: 1rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .copyright {
  max-width: var(--maxw-wide);
  margin: 1.8rem auto 0;
  padding: 1rem 1rem 0;
  border-top: 1px solid #3a414b;
  color: #9aa1a9;
}

/* ---------- Utilities ---------- */
.muted { color: var(--c-muted); }
.small { font-size: .85rem; }
.text-center { text-align: center; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--c-muted); padding: .8rem 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--c-muted); }
.breadcrumbs a { color: var(--c-muted); }

/* ---------- Forms ---------- */
label { display: block; font-weight: 700; color: var(--c-heading); margin-bottom: .3rem; font-size: .92rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: .65rem .7rem;
  border: 1px solid var(--c-divider);
  border-radius: var(--radius);
  font: inherit;
  color: var(--c-text);
  background: var(--c-white);
  margin-bottom: 1rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; }
