/* ==========================================================================
   bueromoebel.ch – ein Stylesheet, keine Frameworks, keine @import
   Farben zentral als Custom Properties: Palette an EINER Stelle anpassbar.
   ========================================================================== */

:root {
  /* Corporate Design Tradingzone: Blau #348ec9, Dunkelgrau #313131, Weiss.
     Eine Leitfarbe, kantige Ecken – bewusst zurückhaltend und geschäftlich. */
  --c-brand:        #348ec9;
  --c-brand-dark:   #2a74a4;
  --c-brand-darker: #205a80;
  --c-brand-light:  #eaf4fb;

  /* Handlungsaufforderungen ebenfalls in der Leitfarbe, wie im Vorbild */
  --c-accent:       #348ec9;
  --c-accent-dark:  #2a74a4;

  /* Neutrale Töne */
  --c-ink:      #313131;
  --c-body:     #4a4a4a;
  --c-muted:    #767676;
  --c-line:     #e0e0e0;
  --c-surface:  #f4f6f8;
  --c-white:    #ffffff;

  --radius:      4px;
  --radius-lg:   6px;
  --shadow:      0 1px 2px rgb(22 25 28 / 6%), 0 4px 12px rgb(22 25 28 / 6%);
  --shadow-lift: 0 4px 8px rgb(22 25 28 / 8%), 0 12px 28px rgb(22 25 28 / 10%);

  --wrap:    1140px;
  --gap:     clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(3rem, 7vw, 5.5rem);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Inter selbst gehostet – keine Anfrage an Google, damit die Aussage in der
   Datenschutzerklaerung stimmt und nichts von Dritten geladen wird. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;              /* 16px Minimum laut Standard */
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

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

/* --------------------------------------------------------- Typografie ---- */

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.95rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.06rem, 1.9vw, 1.3rem);
  color: var(--c-body);
  max-width: 62ch;
}

a { color: var(--c-brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-brand-dark); }

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

/* ------------------------------------------------------------- Layout ---- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: var(--section); }
.section--tint { background: var(--c-surface); }
.section--brand { background: var(--c-brand); color: #dbe8ec; }
.section--brand h2, .section--brand h3 { color: var(--c-white); }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 40rem)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 40rem)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--c-ink);
  color: var(--c-white);
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------- Kopfzeile ---- */

.topbar {
  background: var(--c-ink);
  color: #c9d1d6;
  font-size: .875rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 2.5rem;
  padding-block: .35rem;
}
.topbar a { color: var(--c-white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

/* Wortmarke mit blauem Balken darüber – Anlehnung an die Tradingzone-Signatur,
   ohne deren Logo zu verwenden. */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
  padding-top: .1rem;
  color: var(--c-ink);
  text-decoration: none;
}
.logo::before {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: var(--c-brand);
}
.logo__wort {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1;
}
.logo__wort span { color: var(--c-muted); font-weight: 500; text-transform: lowercase; }
.logo:hover .logo__wort { color: var(--c-brand-dark); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  min-width: 44px;
  padding: .5rem .75rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
@media (min-width: 62rem) { .nav-toggle { display: none; } }

.nav { display: none; }
.nav[data-open="true"] { display: block; }

@media (max-width: 61.999rem) {
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding: .5rem clamp(1rem, 4vw, 2rem) 1.25rem;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow);
  }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding-block: .8rem; border-bottom: 1px solid var(--c-line); }
  .nav .btn { margin-top: .75rem; text-align: center; }
}

@media (min-width: 62rem) { .nav { display: block; } }

.nav ul {
  display: flex;
  gap: .25rem 1.4rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  min-height: 44px;
  padding: .6rem .1rem;
  color: var(--c-ink);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.8;
}
.nav a:hover { color: var(--c-brand); }
.nav a[aria-current="page"] { color: var(--c-brand); box-shadow: inset 0 -2px 0 var(--c-brand); }

/* --------------------------------------------------------- Buttons ------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--c-accent);
  color: var(--c-white);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--c-accent-dark); color: var(--c-white); transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--ghost {
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-ink);
}
.btn--ghost:hover { background: var(--c-surface); border-color: var(--c-brand); color: var(--c-brand); }

.btn--light { background: var(--c-white); color: var(--c-brand-dark); }
.btn--light:hover { background: var(--c-brand-light); color: var(--c-brand-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ------------------------------------------------------------- Hero ------ */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(120% 90% at 88% 0%, var(--c-brand-light) 0%, transparent 60%),
    var(--c-white);
}
.hero__inner { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 56rem) { .hero__inner { grid-template-columns: 1.05fr .95fr; } }

.hero h1 { margin-bottom: .5em; }

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .3rem .7rem;
  border-radius: 100px;
  background: var(--c-brand-light);
  color: var(--c-brand-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

.usp {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  font-weight: 600;
  color: var(--c-ink);
}
.usp li { display: flex; align-items: center; gap: .4rem; }
.usp li::before {
  content: "";
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--c-brand);
  /* Häkchen als Maske, kein zusätzlicher Request */
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6.2 11.4 3.3 8.5l1.1-1.1 1.8 1.8 5-5 1.1 1.1z" fill="black"/></svg>') center / 1.1rem no-repeat;
}

/* ------------------------------------------------------------ Karten ----- */

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-white);
}
.card h3 { margin-bottom: .35em; }
.card p { font-size: .95rem; }

.card--link { text-decoration: none; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.card--link:hover { border-color: var(--c-brand); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card--link .more { margin-top: auto; padding-top: 1rem; color: var(--c-brand); font-weight: 700; font-size: .95rem; }

/* Produktkarte */
.prod {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  overflow: hidden;
}
.prod__media {
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: var(--c-surface);
}
.prod__media img { display: block; width: 100%; max-width: 260px; height: auto; }
.prod__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.prod__marke {
  margin-bottom: .3rem;
  color: var(--c-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.prod h3 { font-size: 1.05rem; }
.prod p { margin-bottom: 0; font-size: .92rem; }
.prod__cta { margin-top: auto; padding-top: 1.1rem; }

/* ------------------------------------------------- Sortiment-Kacheln ----- */

.pikto-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}
@media (min-width: 30rem) { .pikto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52rem) { .pikto-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 72rem) { .pikto-grid { grid-template-columns: repeat(4, 1fr); } }

.pikto-karte {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pikto-karte:hover { border-color: var(--c-brand); box-shadow: var(--shadow); }

.pikto-karte__haupt {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
  padding: 1.25rem 1.25rem .5rem;
  color: inherit;
  text-decoration: none;
}

.pikto-karte__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: .35rem;
  border-radius: var(--radius);
  background: var(--c-brand-light);
  color: var(--c-brand);
}
.pikto-karte:hover .pikto-karte__icon { background: var(--c-brand); color: var(--c-white); }

.pikto-karte__titel {
  color: var(--c-ink);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}
.pikto-karte__text { color: var(--c-body); font-size: .89rem; line-height: 1.5; }
.pikto-karte__cta {
  margin-top: auto;
  padding-top: .6rem;
  color: var(--c-brand);
  font-size: .89rem;
  font-weight: 700;
}

.pikto-karte__fuss {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin: 0;
  padding: .25rem 1.25rem 1rem;
  font-size: .84rem;
}
.pikto-karte__fuss a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--c-muted);
}
.pikto-karte__fuss a:hover { color: var(--c-brand); }
.pikto-karte__fuss span[aria-hidden] { color: var(--c-line); }

/* Kompakte Variante für die Startseite */
.pikto-reihe {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 40rem) { .pikto-reihe { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 62rem) { .pikto-reihe { grid-template-columns: repeat(6, 1fr); } }

.pikto-reihe a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 1rem .5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-ink);
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
}
.pikto-reihe a:hover { border-color: var(--c-brand); color: var(--c-brand); }
.pikto-reihe .pikto { color: var(--c-brand); }

/* Details / Volltext */
.details { margin-top: .8rem; font-size: .92rem; }
.details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--c-brand);
  font-weight: 700;
  cursor: pointer;
}
.details[open] summary { margin-bottom: .5rem; }

/* ------------------------------------------------------------- Zahlen ---- */

.facts { display: grid; gap: var(--gap); }
@media (min-width: 34rem) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 56rem) { .facts { grid-template-columns: repeat(4, 1fr); } }

.fact strong {
  display: block;
  color: var(--c-white);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.fact span { font-size: .95rem; }

/* ---------------------------------------------------------------- FAQ ---- */

.faq { max-width: 76ch; }
.faq details {
  border-bottom: 1px solid var(--c-line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding-block: 1rem;
  color: var(--c-ink);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--c-brand);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding-bottom: 1.25rem; max-width: 70ch; }

/* ------------------------------------------------------------ Schritte --- */

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: .9rem;
  border-radius: 50%;
  background: var(--c-brand);
  color: var(--c-white);
  font-weight: 800;
}
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: .95rem; margin-bottom: 0; }

/* -------------------------------------------------------------- Formular - */

.form-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  margin-bottom: .35rem;
  color: var(--c-ink);
  font-size: .93rem;
  font-weight: 700;
}
.field .hint { display: block; margin-top: .3rem; color: var(--c-muted); font-size: .85rem; font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-ink);
  font: inherit;
  font-size: 1rem;              /* verhindert Zoom auf iOS */
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-brand); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }

.field--check { display: flex; gap: .65rem; align-items: flex-start; }
.field--check input { width: 1.15rem; min-height: 1.15rem; height: 1.15rem; margin-top: .28rem; flex: 0 0 auto; }
.field--check label { font-weight: 400; font-size: .9rem; }

/* Honeypot – für Menschen unsichtbar, für Bots ausfüllbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hinweis-partner {
  padding: .7rem .9rem;
  border-left: 3px solid var(--c-brand);
  background: var(--c-brand-light);
  color: var(--c-ink);
  font-size: .88rem;
}

.notice {
  margin-bottom: 1.25rem;
  padding: .9rem 1.1rem;
  border-left: 4px solid;
  border-radius: var(--radius);
  font-size: .95rem;
}
.notice--err { border-color: #b3261e; background: #fdecea; color: #7a1a13; }
.notice--ok  { border-color: #1a7f37; background: #e8f5ec; color: #14672c; }
.notice ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* -------------------------------------------------------------- Fusszeile */

.site-footer {
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  background: var(--c-ink);
  color: #a7b0b7;
  font-size: .93rem;
}
.site-footer h3 { color: var(--c-white); font-size: 1rem; margin-bottom: .8em; }
.site-footer a { color: #dbe3e8; text-decoration: none; }
.site-footer a:hover { color: var(--c-white); text-decoration: underline; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.site-footer li a { display: inline-block; min-height: 32px; line-height: 32px; }

.footer-grid { display: grid; gap: var(--gap); }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid #2c3237;
  font-size: .87rem;
}

/* ------------------------------------------------------------ Kleinteile - */

.crumbs { padding-block: .9rem; font-size: .87rem; color: var(--c-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--c-line); }
.crumbs a { color: var(--c-muted); }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tag {
  display: inline-block;
  padding: .35rem .8rem;
  border: 1px solid var(--c-line);
  border-radius: 100px;
  background: var(--c-white);
  font-size: .87rem;
  font-weight: 600;
  color: var(--c-body);
}

.center { text-align: center; }
.mt-l { margin-top: clamp(2rem, 4vw, 3rem); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
