/* ==========================================================================
   webconcierge.ch – Stylesheet
   Gleiche Gestaltungssprache wie heimo-paffhausen.ch: Farbwelt von xindaya.ch,
   Teal ausschliesslich für Highlights, Dunkelblau für Text.
   Flächen: Weiss und Sand im Wechsel, dazu zweimal ein sehr helles
   Teal-Grün als Ausnahme. Keine Verläufe.
   Abschnitte 1–7 und 12–14 sind mit heimo-paffhausen.ch identisch,
   8–11 sind die Bausteine, die diese Seite zusätzlich braucht.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Schrift (Mont, selbst gehostet)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Mont';
  src: url('../fonts/mont-font.woff2') format('woff2'),
       url('../fonts/mont-font.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mont';
  src: url('../fonts/mont-italic.woff2') format('woff2'),
       url('../fonts/mont-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Mont';
  src: url('../fonts/mont-bold.woff2') format('woff2'),
       url('../fonts/mont-bold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marke */
  --c-navy:            #0D2957;  /* Überschriften, Text            */
  --c-body:            #33465E;  /* Fliesstext, leicht aufgehellt  */
  --c-muted:           #5C6B80;  /* Meta, Jahreszahlen             */
  --c-teal:            #33838E;  /* Highlight, dekorativ           */
  --c-teal-strong:     #2A6C75;  /* Textlinks (WCAG AA auf Sand)   */

  /* Flächen – mehr als diese drei gibt es nicht */
  --c-white:           #FFFFFF;
  --c-sand:            #FAF2ED;  /* entspricht --nv-light-bg auf xindaya.ch */
  --c-mint:            #E9F4F1;  /* sehr helles Teal-Grün, sparsam eingesetzt */

  /* Linien – warm, passend zu Sand und Weiss.
     Auf Mint werden beide weiter unten kühl überschrieben. */
  --c-rule:            #E4DAD2;
  --c-rule-soft:       #ECE3DC;

  /* Typografie */
  --ff:      'Mont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --fs-step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --fs-step-0:  clamp(1.00rem, 0.96rem + 0.22vw, 1.13rem);
  --fs-step-1:  clamp(1.18rem, 1.10rem + 0.40vw, 1.42rem);
  --fs-step-2:  clamp(1.45rem, 1.30rem + 0.75vw, 1.95rem);
  --fs-step-3:  clamp(1.85rem, 1.55rem + 1.50vw, 2.90rem);

  /* Raster */
  --measure:  66ch;
  --gutter:   clamp(1.25rem, 5vw, 3rem);
  --wrap:     68rem;
  --section-y: clamp(3.5rem, 9vw, 7rem);
}

/* --------------------------------------------------------------------------
   3. Reset / Grundlagen
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background-color: var(--c-sand);
  color: var(--c-body);
  font-family: var(--ff);
  font-size: var(--fs-step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  color: var(--c-navy);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-step-3); }
h2 { font-size: var(--fs-step-2); }
h3 { font-size: var(--fs-step-1); }

p { margin: 0 0 1.15em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-teal-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--c-navy); text-decoration-color: var(--c-teal); }

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

/* --------------------------------------------------------------------------
   4. Layout-Bausteine
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--white { background-color: var(--c-white); }
.section--sand  { background-color: var(--c-sand); }

/* Mint ist die Ausnahme, nicht die Regel: zwei Abschnitte auf der ganzen
   Seite. Die beiden Linienfarben werden hier lokal auf kühle Töne gesetzt –
   alle Kindelemente (Karten, Trennlinien, FAQ, Schlagwörter) greifen die
   Variablen ab und ziehen automatisch mit. Abgestimmt auf dieselbe
   Zurückhaltung wie die Sandlinien: 1.25:1 bzw. 1.15:1 zur Fläche. */
.section--mint {
  background-color: var(--c-mint);
  --c-rule:      #C9DED8;
  --c-rule-soft: #D4E6E1;
}

/* Kleine Rubrik über der Überschrift.
   Bewusst --c-teal-strong statt --c-teal: die Zeile ist klein und fett
   gesetzt und gilt damit nicht als «grosser Text». Das Markenteal käme auf
   allen drei Flächen nur auf rund 4:1 und verfehlte AA. Die dunklere
   Variante schafft 5.3:1 auf Mint, 5.4:1 auf Sand, 6.0:1 auf Weiss. */
.eyebrow {
  display: block;
  margin: 0 0 0.9rem;
  color: var(--c-teal-strong);
  font-size: var(--fs-step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Einleitungstext unter einer Abschnittsüberschrift */
.lede {
  font-size: var(--fs-step-1);
  line-height: 1.55;
  color: var(--c-navy);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background-color: var(--c-navy);
  color: var(--c-white);
  text-decoration: none;
}
.skip-link:focus {
  left: var(--gutter);
  top: 0.5rem;
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   5. Kopfzeile
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--c-white);
  border-bottom: 1px solid var(--c-rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.wordmark {
  color: var(--c-navy);
  font-weight: 600;
  font-size: var(--fs-step-0);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--c-teal-strong); }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.9rem);
}
.site-nav a {
  color: var(--c-navy);
  font-size: var(--fs-step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--c-teal-strong); border-bottom-color: var(--c-teal); }

/* Der Abschluss-Punkt der Navigation ist die Handlungsaufforderung.
   Achtung: .site-nav a (0,1,1) ist spezifischer als .btn--primary (0,1,0).
   Ohne die Überschreibungen unten stünde navyfarbener Text auf
   navyfarbenem Grund – die Schaltfläche wäre leer. */
.site-nav .btn {
  border-bottom: none;
  padding-block: 0.55rem;
  letter-spacing: 0.07em;
}
.site-nav .btn:hover { border-bottom: none; }

.site-nav .btn--primary,
.site-nav .btn--primary:hover { color: var(--c-white); }
.site-nav .btn--primary:hover {
  background-color: var(--c-teal-strong);
  border-color: var(--c-teal-strong);
}

@media (max-width: 52rem) {
  .site-header { position: static; }
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding-block: 1rem;
  }
  .site-nav { margin-left: 0; }
  .site-nav ul { gap: 0.9rem; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
/* Die Fläche kommt aus dem Markup (section--mint / --sand / --white),
   genau wie bei allen anderen Abschnitten. Hier steht nur der Abstand,
   der beim Hero grosszügiger ausfällt als bei .section. */
.hero { padding-block: clamp(3rem, 8vw, 6rem); }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}

.hero__lead {
  font-size: var(--fs-step-1);
  line-height: 1.5;
  color: var(--c-navy);
}

.hero__portrait {
  position: relative;
  width: clamp(11rem, 26vw, 16.5rem);
  flex-shrink: 0;
  margin: 0;
}
.hero__portrait img {
  width: 100%;
  border-radius: 50%;
  background-color: var(--c-white);
}
/* dezenter Ring hinter dem Porträt */
.hero__portrait::after {
  content: '';
  position: absolute;
  inset: -0.6rem;
  border-radius: 50%;
  border: 1px solid var(--c-teal);
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 48rem) {
  .hero__inner { grid-template-columns: 1fr; justify-items: start; }
  .hero__portrait { order: -1; }
}

/* --------------------------------------------------------------------------
   7. Aktionen / Schaltflächen
   -------------------------------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--c-navy);
  font-size: var(--fs-step--1);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background-color: var(--c-navy); color: var(--c-white); }
.btn--primary:hover { background-color: var(--c-teal-strong); border-color: var(--c-teal-strong); color: var(--c-white); }
.btn--ghost { background-color: transparent; color: var(--c-navy); }
.btn--ghost:hover { background-color: var(--c-navy); color: var(--c-white); }
.btn svg { width: 1.05em; height: 1.05em; fill: currentColor; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   8. Nummerierte Karten (Probleme) und Schritte (Ansatz)
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.5rem, 4vw, 2.75rem);
  margin-top: 2.75rem;
}

.card__num {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--c-teal);
  font-size: var(--fs-step-1);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { max-width: none; }
.card { border-top: 2px solid var(--c-rule); padding-top: 1.4rem; }

/* Ansatz: dieselbe Nummerierung, aber als Liste über die volle Breite */
.steps { margin-top: 2.5rem; }
.steps__item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: clamp(0.75rem, 3vw, 2rem);
  padding-block: 1.6rem;
  border-top: 1px solid var(--c-rule-soft);
}
.steps__item:last-child { border-bottom: 1px solid var(--c-rule-soft); }
.steps__num {
  color: var(--c-teal);
  font-size: var(--fs-step-1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  padding-top: 0.1em;
}
.steps__item h3 { margin-bottom: 0.35rem; }

@media (max-width: 40rem) {
  .steps__item { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* --------------------------------------------------------------------------
   9. Leistungen
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: 2.75rem;
}
.service h3 { margin-bottom: 0.5rem; }
.service > p { max-width: none; margin-bottom: 1.2rem; }

/* Aufzählung mit Teal-Marker */
.ticks li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  max-width: var(--measure);
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--c-teal);
}

/* --------------------------------------------------------------------------
   10. Zahlen, Fakten, Expertise
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2.75rem;
}
.stat { border-top: 2px solid var(--c-rule); padding-top: 1.2rem; }
.stat__value {
  display: block;
  color: var(--c-navy);
  font-size: var(--fs-step-3);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 0.5rem;
  color: var(--c-muted);
  font-size: var(--fs-step--1);
  line-height: 1.45;
}

/* Zwei-Spalten-Block */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}
@media (max-width: 48rem) { .split { grid-template-columns: 1fr; } }

.facts { margin-top: 1.75rem; }
.facts > div {
  padding-block: 0.9rem;
  border-top: 1px solid var(--c-rule);
}
.facts > div:last-child { border-bottom: 1px solid var(--c-rule); }
.facts dt {
  color: var(--c-muted);
  font-size: var(--fs-step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.facts dd { margin: 0.2rem 0 0; color: var(--c-navy); }

/* Zitat */
.pull {
  margin: 2.5rem 0 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--c-teal);
  color: var(--c-navy);
  font-size: var(--fs-step-1);
  font-style: italic;
  line-height: 1.5;
}
.pull p { max-width: var(--measure); }

/* Expertise als Schlagwortliste */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.tags li {
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--c-rule);
  border-radius: 999px;
  background-color: var(--c-white);
  color: var(--c-navy);
  font-size: var(--fs-step--1);
  font-weight: 600;
}
.section--white .tags li { background-color: var(--c-sand); }

/* --------------------------------------------------------------------------
   11. Häufige Fragen
   -------------------------------------------------------------------------- */
.faq { margin-top: 2.5rem; }

.faq__item {
  border-top: 1px solid var(--c-rule-soft);
}
.faq__item:last-child { border-bottom: 1px solid var(--c-rule-soft); }

.faq__item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.15rem;
  color: var(--c-navy);
  font-size: var(--fs-step-1);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--c-teal-strong); }

/* Plus, das sich beim Öffnen zum Minus dreht */
.faq__item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  align-self: center;
  background-color: var(--c-teal);
  transition: clip-path 0.15s ease, transform 0.2s ease;
  clip-path: polygon(
    43% 0, 57% 0, 57% 43%, 100% 43%,
    100% 57%, 57% 57%, 57% 100%, 43% 100%, 43% 57%, 0 57%, 0 43%, 43% 43%
  );
}
.faq__item[open] summary::after {
  clip-path: polygon(0 43%, 100% 43%, 100% 57%, 0 57%);
  transform: rotate(180deg);
}

.faq__answer { padding: 0 0 1.4rem; }
.faq__answer p { max-width: var(--measure); }

/* --------------------------------------------------------------------------
   12. Abschluss-Aufforderung
   -------------------------------------------------------------------------- */
.cta__lead {
  font-size: var(--fs-step-1);
  line-height: 1.5;
  color: var(--c-navy);
}

.note {
  margin-top: 1.75rem;
  color: var(--c-muted);
  font-size: var(--fs-step--1);
}

.contact__mail {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: var(--fs-step-2);
  font-weight: 600;
  color: var(--c-navy);
  text-decoration: none;
  border-bottom: 2px solid var(--c-teal);
  line-height: 1.3;
}
.contact__mail:hover { color: var(--c-teal-strong); border-bottom-color: var(--c-teal-strong); }

/* --------------------------------------------------------------------------
   12b. Rechtsseiten (Impressum, Datenschutz)
   Fliesstext über die volle Länge – hier zählt Lesbarkeit, nicht Wirkung.
   -------------------------------------------------------------------------- */
.legal h2 {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-rule-soft);
  font-size: var(--fs-step-1);
}
.legal h2:first-of-type { margin-top: 2rem; }
.legal h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
  font-size: var(--fs-step-0);
}

/* Aufzählungen mit Teal-Marker, wie .ticks, aber enger gesetzt */
.legal ul {
  margin: 0 0 1.15em;
  max-width: var(--measure);
}
.legal li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.45rem;
}
.legal li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background-color: var(--c-teal);
}

/* Anschrift, Server-Angaben und Ähnliches */
.legal address {
  margin: 0 0 1.15em;
  font-style: normal;
  line-height: 1.6;
}

.legal__updated {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-rule-soft);
  color: var(--c-muted);
  font-size: var(--fs-step--1);
}

/* Widerspruchs-Schaltfläche auf der Datenschutzseite.
   Als <button>, weil sie etwas tut statt irgendwohin zu führen. */
.optout {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--c-rule);
  border-radius: 0.4rem;
  background-color: var(--c-white);
}
.section--white .optout { background-color: var(--c-sand); }
.optout p { margin-bottom: 0.9rem; }
.optout__status {
  display: block;
  margin-top: 0.9rem;
  color: var(--c-muted);
  font-size: var(--fs-step--1);
}
.optout button {
  font-family: inherit;
  cursor: pointer;
}
/* Ohne JavaScript kann die Schaltfläche nichts ausrichten – dann wird sie
   ausgeblendet und nur der Hinweis auf Googles Add-on bleibt stehen. */
.optout__control { display: none; }
.js .optout__control { display: block; }

/* --------------------------------------------------------------------------
   13. Fusszeile
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--c-white);
  border-top: 1px solid var(--c-rule);
  padding-block: 2.5rem;
  font-size: var(--fs-step--1);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer p { margin: 0; color: var(--c-muted); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { color: var(--c-navy); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--c-teal-strong); text-decoration: underline; }

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

/* --------------------------------------------------------------------------
   15. Druck
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .actions, .skip-link { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1.5rem; }
  .faq__item summary::after { display: none; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}
