/*
  Bleuler Software – gemeinsame Basis für alle Produktseiten.
  Enthält Layout, Schrift und Bausteine, aber KEINE Markenfarben.
  Die Farben kommen aus der Theme-Datei der jeweiligen Marke (z. B. theme-obf.css).

  Gemeinsames Prinzip aller Seiten:
  - dunkler Kopfbereich (Header + Hero) in der Nachtblau-Basis der Marke
  - heller bzw. dunkler Inhalt nach Geräteeinstellung
  - eine Leitfarbe pro Produkt (--accent), ein kleiner Akzent (--accent-2)
  - Fuss mit Hinweis «Ein Produkt von Bleuler Software»

  Reines CSS, keine Schriften und keine Skripte von Dritten.
*/

:root {
  --radius: 14px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 112px; } /* Header bleibt beim Scrollen stehen: Sprungziele nicht darunter verstecken */

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column; /* Fuss bleibt auch bei wenig Inhalt unten */
}
main { flex: 1 0 auto; }
.site-footer { margin-top: auto; flex-shrink: 0; }


a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--accent-2); color: var(--accent-2-text);
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Kopf: grosser, zentrierter Titel in Weiss und zwei Grautönen (gemeinsames Merkmal aller Bleuler-Seiten) */
.site-header { position: sticky; top: 0; z-index: 100; background: linear-gradient(135deg, var(--head-to) 0%, var(--head-from) 100%); color: var(--head-text); text-align: center; }
.site-header .wrap { display: flex; align-items: center; justify-content: center; min-height: 104px; padding-top: 24px; padding-bottom: 24px; }
.wordmark { font-size: clamp(2.2rem, 7vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; text-decoration: none; }
.wordmark .w1 { color: var(--mark-1); }
.wordmark .w2 { color: var(--mark-2); }
.wordmark .w3 { color: var(--mark-3); }

@media (max-width: 560px) {
  .site-header .wrap { padding-left: 56px; padding-right: 56px; min-height: 80px; padding-top: 16px; padding-bottom: 16px; }
  .wordmark { font-size: 2rem; }
  .hamburger { right: .5rem; }
}

/* Hersteller-Zeichen: hängt unten links hinter dem Titel (bei allen Bleuler-Seiten gleich) */
.title { position: relative; display: inline-block; }
.wordmark { position: relative; z-index: 1; display: inline-block; }
.maker-logo { position: absolute; z-index: 0; left: -22px; bottom: -12px; display: block; line-height: 0; }
.maker-logo img { width: 32px; height: 32px; }
@media (max-width: 560px) { .maker-logo { left: -14px; bottom: -8px; } .maker-logo img { width: 24px; height: 24px; } }

/* Hamburger-Menü: drei Balken rechts im Kopf, öffnet ein rechtsbündiges Dropdown (wie bei AccessProfi) */
.hamburger {
  position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 9px 7px; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hamburger span { display: block; height: 4px; border-radius: 2px; background: var(--mark-1); }
.hamburger:focus-visible { outline-color: var(--mark-1); }
.nav-menu {
  display: none; flex-direction: column; position: absolute; top: 100%; right: 0; z-index: 1000;
  width: 220px; text-align: right; background: var(--menu-bg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
}
.nav-menu.active { display: flex; }
.nav-menu a { color: var(--head-text); text-decoration: none; padding: 1rem; border-top: 1px solid var(--head-line); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--menu-hover); }

/* Einstieg */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 80px;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 20%, var(--accent-soft) 0, transparent 50%),
    var(--bg);
}
.hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { margin: 0 0 14px; color: var(--accent-2-ink); font-weight: 650; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0 0 18px; font-size: clamp(34px, 6vw, 54px); line-height: 1.1; letter-spacing: -.02em; max-width: 16ch; }
.lead { margin: 0 0 30px; max-width: 54ch; color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent-2); color: var(--accent-2-text); border-color: var(--accent-2); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--accent); border-color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }

/* Produktlogo im Hero: frei stehend, mit weichem Schatten */
.hero h1 { max-width: 34ch; font-size: clamp(32px, 6vw, 54px); line-height: 1.18; text-wrap: balance; margin-bottom: 40px; }
.hero .lead { max-width: 82ch; margin-left: auto; margin-right: auto; text-wrap: balance; }
.hero .actions { justify-content: center; }
.logo-hero { width: min(80%, 380px); margin: 0 auto 36px; }
.logo-hero img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(20, 26, 51, .25)); }

/* Unterseiten: Seitenkopf mit Titel */
.pagehead { padding: 48px 0 40px; background: radial-gradient(circle at 85% 20%, var(--accent-soft) 0, transparent 50%), var(--bg); border-bottom: 1px solid var(--line); }
.pagehead h1 { max-width: none; font-size: clamp(30px, 5vw, 44px); margin-bottom: 14px; }
.pagehead .lead { margin: 0; max-width: 62ch; }
.crumb { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); }
.nav-menu a[aria-current="page"] { background: var(--menu-hover); }
.card a.more, a.more { display: inline-block; margin-top: 1rem; padding: .5rem 1rem; background: var(--accent); color: #fff; border-radius: 5px; text-decoration: none; font-weight: 600; }
a.more:hover { filter: brightness(1.15); }
a.more.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); padding: calc(.5rem - 1px) 1rem; margin-left: 8px; }
section.back { padding: 8px 0 56px; border-top: 0; }
section.back .more { margin-top: 0; }
.card { display: flex; flex-direction: column; }
.card a.more { align-self: flex-start; margin-top: auto; }
.card p { margin-bottom: 0; }
.card p:has(+ a.more) { margin-bottom: 1.25rem; }
.card p + a.more { margin-top: auto; }

/* Abschnitte */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { margin: 0 0 14px; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; letter-spacing: -.01em; }
h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 12px; border-radius: 2px; background: var(--accent-2); }
#was h2::after { display: none; } /* die drei Spalten darunter haben schon eine orange Linie */
.prose { margin: 0 0 32px; }
.prose p { margin: 0 0 14px; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .prose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .prose p { margin: 0; padding-top: 14px; border-top: 3px solid var(--accent-2); }
}
.intro { max-width: 62ch; color: var(--muted); margin: 0 0 36px; }

.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.four { grid-template-columns: repeat(4, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); padding: 2rem; border-radius: 15px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .75rem; font-size: 1.17rem; color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.facts li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 16px 20px; }
.facts li + li { border-top: 1px solid var(--line); }
.facts strong { font-weight: 650; }
.facts span { color: var(--muted); font-size: 16px; }
@media (min-width: 640px) { .facts li { grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; } }

.contact { background: var(--surface); padding: 2rem; border-radius: 10px; box-shadow: var(--shadow); text-align: center; }
.contact h2 { text-align: center; }
.contact h2::after { margin-left: auto; margin-right: auto; }
.contact p { margin: 0 0 1rem; }
.contact a { font-weight: 600; text-decoration: none; }
.contact a:hover { text-decoration: underline; }

.subhead { margin: 44px 0 16px; font-size: 22px; color: var(--accent); }
.note-line { margin: 28px 0 0; max-width: 70ch; color: var(--muted); border-left: 3px solid var(--accent-2); padding-left: 14px; }
.facts.spaced { margin-top: 28px; }
.subhead.first { margin-top: 0; }
.facts.spaced-after { margin-bottom: 44px; }
.card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 16px; }
.card li + li { margin-top: 6px; }
.card .points { margin-top: 14px; margin-bottom: 1.25rem; }
.card .points li { margin-top: 8px; }
.card .points strong { color: var(--text); }

/* Aufbau-Skizze */
.arch { display: grid; gap: 20px; }
@media (min-width: 860px) { .arch { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.arch-main, .arch-side { display: grid; gap: 10px; }
.arch-box { border: 2px dashed var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); }
.arch-label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 650; letter-spacing: .04em; color: var(--muted); }
.arch-row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.arch-node { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.arch-node strong { display: block; }
.arch-node span { display: block; color: var(--muted); font-size: 15px; }
.arch-node.strong { background: var(--accent); border-color: var(--accent); }
.arch-node.strong strong { color: #fff; }
.arch-node.strong span { color: #d5d9f2; }
.arch-node.dashed { border-style: dashed; box-shadow: none; background: transparent; }
.arch-link { text-align: center; color: var(--muted); font-size: 13px; line-height: 1; }
.arch-link::before { content: "↕"; display: block; font-size: 18px; margin-bottom: 2px; }

/* Fuss */
.site-footer { background: var(--head-from); color: var(--head-muted); padding: 32px 0 40px; font-size: 15px; }
.site-footer .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-footer a { color: var(--head-muted); }
.site-footer a:hover { color: var(--head-text); }
.site-footer .maker { order: 2; }
.site-footer .wrap > span:nth-child(2) { order: 3; }

/* Rechtstexte */
.page { padding-top: 48px; padding-bottom: 64px; max-width: 760px; }
.page h1 { font-size: clamp(30px, 5vw, 42px); max-width: none; }
.page h2 { font-size: 22px; margin-top: 36px; }
.page h2::after { display: none; }
.page p, .page li { color: var(--text); }
.page .note { color: var(--muted); font-size: 15px; border-left: 3px solid var(--accent-2); padding-left: 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Fliesstext-Seiten (Leistungen, FAQ) */
.article { max-width: none; }
.article h2 { margin-top: 44px; }
.article > h2:first-child { margin-top: 0; }
.article h3 { margin: 30px 0 10px; font-size: 1.2rem; color: var(--accent); }
.article p { margin: 0 0 16px; }
.article ul { margin: 0 0 18px; padding-left: 1.2rem; }
.article li { margin-bottom: 12px; }
details { background: var(--surface); margin-bottom: 12px; padding: 16px 20px; border-radius: 12px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 650; color: var(--accent); }
details[open] summary { margin-bottom: 8px; }
details p { margin: 0; color: var(--muted); }

/* Schritt-Zahl an Kacheln (z. B. «3 Schritte») und zweispaltige Listen */
.card { position: relative; }
.step-badge { position: absolute; top: -12px; left: -12px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; border: 2px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
.card p + ul { margin-top: 12px; }
@media (min-width: 720px) { .card.wide ul { columns: 2; column-gap: 48px; } .card.wide li { break-inside: avoid; } }
.actions-line { margin: 28px 0 0; }
.obf-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 20px 48px; margin-bottom: 36px; }
.obf-intro .intro { flex: 1 1 360px; margin: 0; }
.obf-logo { order: -1; flex: 0 0 auto; width: min(100%, 170px); }
.obf-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(20, 26, 51, .22)); }

/* Abstand zwischen Abschnittstitel und Kacheln (Schritt-Zahlen ragen nach oben) */
h2 + .grid, h2 + .card { margin-top: 36px; }
.page h3 { font-size: 18px; margin: 24px 0 6px; }
.page ul { margin: 0 0 16px; padding-left: 1.2rem; }
.subhead::after { display: none; }

/* Links im Inhalt: dunkel, unterstrichen und leicht fett, damit man sie vom Text unterscheidet */
main p a, main li a, .contact a, .note-line a, .intro a, .article a { font-weight: 600; }
.crumb a { font-weight: 400; }

/* Hinweisblock unter den Kacheln (z. B. «Wer ist Accessprofi?») */
.card.who { margin-top: 18px; }
.card.who p { max-width: 80ch; margin-bottom: 1.25rem; }
