/* Visitenkarte asbest-fachportal.de – Design-System der Asbest-Portale (übernommen aus sites/asbest-fachportal-hannover/src/styles/global.css) */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }

:root {
  --c-white: #ffffff;
  --c-light: #eef3f4;
  --c-accent: #1e5a63;
  --c-accent-hover: #174a52;
  --c-text: #1e2933;
  --c-dark: #152028;
  --c-muted: #4a5763;
  --c-line: #d5e0e2;
  --c-accent-soft: #dbe8ea;
  --c-warn-bg: #fff4d6;
  --c-warn-line: #e0b84a;

  --f-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 32, 40, 0.06), 0 6px 24px rgba(21, 32, 40, 0.06);
  --wrap: 1140px;
  --gutter: 16px;
  --section: 56px;
}
@media (min-width: 768px) {
  :root { --gutter: 24px; --section: 88px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-underline-offset: 3px; }
a:hover { color: var(--c-accent-hover); }
strong, b { font-weight: 600; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-dark);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.section { padding: var(--section) 0; }
.section--light { background: var(--c-light); }
.section--dark { background: var(--c-dark); color: #dfe8ea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--c-muted); font-size: 1.05rem; }
.section--dark .section-head p { color: #b9c8cc; }
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 10px;
}
.section--dark .eyebrow { color: #8fc3cb; }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-accent); border-color: var(--c-accent); }
.btn--ghost:hover { background: var(--c-accent); color: #fff; }
.btn--light { background: #fff; color: var(--c-dark); }
.btn--light:hover { background: var(--c-light); color: var(--c-dark); }
.btn--block { width: 100%; }
.btn-note { display: block; margin-top: 10px; font-size: 0.875rem; color: var(--c-muted); }
.section--dark .btn-note { color: #b9c8cc; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--c-line); backdrop-filter: saturate(1.2) blur(6px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-dark); }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { font-family: var(--f-head); font-weight: 700; font-size: 1.02rem; line-height: 1.1; }
.logo__text small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 0.75rem; color: var(--c-muted); letter-spacing: .02em; }
.nav { display: none; }
.nav a { color: var(--c-text); text-decoration: none; font-weight: 600; font-size: 0.94rem; padding: 8px 2px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--c-accent); }
.header-cta { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--c-line); border-radius: 999px; font-weight: 600; color: var(--c-dark); }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(88vw, 340px); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: grid; gap: 2px; }
.menu__panel a { display: block; padding: 12px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--c-dark); font-weight: 600; }
.menu__panel a:hover { background: var(--c-light); }
.menu__panel .btn { margin-top: 8px; color: #fff; }
@media (min-width: 1024px) {
  .nav { display: flex; gap: 22px; }
  .header-cta { display: inline-flex; min-height: 44px; padding: 10px 18px; font-size: 0.94rem; }
  .menu { display: none; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--c-light) 0%, #fff 100%); padding: 36px 0 var(--section); }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__lead { font-size: 1.1rem; color: var(--c-muted); max-width: 620px; }
.hero__actions { margin: 22px 0 6px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.hero__art { border-radius: 20px; overflow: hidden; background: var(--c-accent); box-shadow: var(--shadow); }
.hero--compact .hero__grid { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .hero { padding-top: 64px; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero--compact .hero__grid { grid-template-columns: 1.4fr 0.6fr; }
}

/* Breadcrumbs */
.crumbs { font-size: 0.85rem; color: var(--c-muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: #8a979f; }
.crumbs a { color: var(--c-muted); }

/* Cards & grids */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; }
.section--light .card { border-color: transparent; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent); display: grid; place-items: center; margin-bottom: 14px; }
.card__icon svg { width: 24px; height: 24px; }
.link-card { display: flex; flex-direction: column; text-decoration: none; color: var(--c-text); transition: border-color .15s, transform .15s; height: 100%; }
.link-card:hover { border-color: var(--c-accent); color: var(--c-text); transform: translateY(-2px); }
.link-card h3 { color: var(--c-dark); }
.link-card p { color: var(--c-muted); font-size: 0.95rem; flex: 1; }
.link-card__more { margin-top: 12px; color: var(--c-accent); font-weight: 600; font-size: 0.94rem; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--c-accent); background: var(--c-accent-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; align-self: flex-start; }

/* Facts strip */
.facts { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--c-line); }
.fact__value { font-family: var(--f-head); font-weight: 700; font-size: 1.45rem; color: var(--c-accent); line-height: 1.15; }
.fact__label { font-size: 0.88rem; color: var(--c-muted); margin-top: 4px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-accent); color: #fff; font-family: var(--f-head); font-weight: 700; margin-bottom: 14px; }

/* Prose (Markdown-Inhalte) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2em; padding-top: 0.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.prose th { background: var(--c-light); font-weight: 600; color: var(--c-dark); }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--c-accent); background: var(--c-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p:last-child { margin: 0; }
.callout { margin: 1.4em 0; padding: 18px 20px; border-radius: var(--radius); background: var(--c-accent-soft); border: 1px solid #c3d8db; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--warn { background: var(--c-warn-bg); border-color: var(--c-warn-line); }
.callout strong:first-child { color: var(--c-dark); }
.inline-cta { margin: 2em 0; padding: 22px; border-radius: var(--radius); background: var(--c-dark); color: #dfe8ea; }
.inline-cta strong { color: #fff; display: block; font-family: var(--f-head); font-size: 1.15rem; margin-bottom: 6px; }
.inline-cta a.btn { margin-top: 12px; color: #fff; }

/* Kennzeichnung ungeprüfter Angaben */
mark.pruefen, .pruefen {
  background: var(--c-warn-bg); color: #6b4e00; border: 1px dashed var(--c-warn-line);
  border-radius: 4px; padding: 0 5px; font-weight: 600; font-size: 0.92em;
}
.sources { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--c-line); font-size: 0.88rem; color: var(--c-muted); }
.sources h2 { font-size: 1rem; font-family: var(--f-body); font-weight: 600; margin: 0 0 8px; color: var(--c-text); }
.sources ol { padding-left: 1.2em; margin: 0; }
.sources a { word-break: break-word; }
.updated { font-size: 0.85rem; color: var(--c-muted); }

/* Page with aside */
.page-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .page-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; } }
.aside { display: grid; gap: 18px; align-content: start; }
@media (min-width: 1024px) { .aside { position: sticky; top: 92px; } }
.aside-box { background: var(--c-light); border-radius: var(--radius); padding: 22px; }
.aside-box h2 { font-size: 1.1rem; margin-bottom: 10px; }
.aside-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aside-box a { text-decoration: none; font-weight: 600; }
.aside-box--cta { background: var(--c-accent); color: #e6f0f1; }
.aside-box--cta h2 { color: #fff; }
.aside-box--cta .btn { margin-top: 6px; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.section--light .faq details { border-color: transparent; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative; font-weight: 600; color: var(--c-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__body { padding: 0 20px 18px; color: var(--c-text); }
.faq__body p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band p { max-width: 640px; margin-left: auto; margin-right: auto; }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 0.9rem; color: #b9c8cc; }
.trust li::before { content: '✓ '; color: #8fc3cb; font-weight: 700; }

/* Footer */
.site-footer { background: var(--c-dark); color: #b9c8cc; padding: 56px 0 28px; font-size: 0.94rem; }
.site-footer a:not(.btn) { color: #dfe8ea; text-decoration: none; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.footer-grid h2 { font-family: var(--f-body); font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: #8fc3cb; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a.logo, .site-footer a.logo:hover { color: #fff; text-decoration: none; }
.site-footer .logo__text small { color: #9fb2b7; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2a3a45; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.85rem; }
.footer-bottom ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }

/* Utility */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.more-link { display: inline-block; margin-top: 22px; font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.preview-bar { background: #f2b705; color: #2a2100; text-align: center; font-size: 0.82rem; font-weight: 600; padding: 6px var(--gutter); }


/* Bilder (Bild-Pipeline) */
.hero-photo { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--c-light); }
.hero-photo img { width: 100%; height: auto; display: block; }
.ai-label { position: absolute; right: 10px; bottom: 10px; font-size: 0.72rem; line-height: 1.2; color: #fff; background: rgba(21, 32, 40, 0.55); padding: 4px 8px; border-radius: 6px; letter-spacing: .01em; }
.content-figure { margin: 24px 0 0; }
.content-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); background: var(--c-light); }
.content-figure figcaption { margin-top: 6px; font-size: 0.8rem; color: #6b7780; }
.prose .content-figure { margin: 1.6em 0; }
.figure-center { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Startseite: Hero-Foto randlos rechts, nach links in den Hintergrund auslaufend */
.hero--photo { position: relative; overflow: hidden; }
.hero--photo .hero__grid > div:first-child { position: relative; z-index: 1; }
.hero--photo .hero-bleed {
  margin: 8px calc(-1 * var(--gutter)) calc(-1 * var(--section));
  border-radius: 0; box-shadow: none; background: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
}
@media (min-width: 900px) {
  .hero--photo .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); min-height: 620px; align-items: center; }
  .hero--photo .hero__grid > div:first-child { max-width: 540px; }
  .hero--photo .hero-bleed {
    /* startet an der Textspalte und läuft dort im freien Streifen aus */
    position: absolute; top: 0; right: 0; bottom: 0; width: calc(50vw + 40px); margin: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.6) 16%, #000 34%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.6) 16%, #000 34%);
  }
  .hero--photo .hero-bleed img { width: 100%; height: 100%; object-fit: cover; object-position: 88% center; }
  .hero--photo .ai-label { right: 16px; bottom: 16px; }
}

/* Visitenkarte: Karten mit Bild, Text-Bild-Spalte */
.card--img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--c-light); }
.card--img .card__body { padding: 20px 24px 24px; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split figure { margin: 0; position: relative; }
.split figure img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); display: block; }
