/* =========================================================================
   schimmelpilzberatung.de – Designsystem (blaue Eigenmarke, §6 Master-Prompt)
   Farbwelt bewusst blau/anthrazit, klar von immobix.de (schwarz/orange) getrennt.
   Kontraste auf WCAG-AA ausgelegt (Fließtext >= 4,5:1).
   Fonts: Libre Franklin (Headlines) + Inter (Fließtext) – in WordPress lokal hosten.
   ========================================================================= */

:root {
  /* Farbpalette – verbindlich (§6) */
  --c-primary-dark:   #0F2233; /* Header/Footer, Headlines */
  --c-secondary-dark: #14293B; /* dunkle Flächen */
  --c-accent:         #1E6FB0; /* Buttons, Links, Akzentlinien */
  --c-accent-2:       #3FA9D6; /* Hover, Highlights, Icons */
  --c-trust:          #0E7C86; /* Petrol/Teal – sparsam: Siegel, Erfolg */
  --c-text:           #1B2A36; /* Fließtext */
  --c-bg:             #FFFFFF; /* Hintergrund hell */
  --c-surface:        #EEF3F8; /* Flächen-Hellgrau, bläulich */
  --c-border:         #D3DEE8; /* Rahmen/Trennlinien */

  /* abgeleitet */
  --c-accent-dark:    #175a90; /* dunkleres Blau für AA-Kontrast auf Weiß bei Links */
  --c-trust-dark:     #0b636b; /* dunkleres Teal für Titel auf Weiß */

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 10px rgba(15, 34, 51, .08);
  --shadow-lg: 0 8px 30px rgba(15, 34, 51, .12);
  --maxw-text: 760px;
  --maxw-wide: 1160px;

  --font-head: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* ---------- Reset / Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--c-accent-2); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--c-primary-dark); line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 2.2em 0 .6em; font-weight: 700;
     padding-bottom: .25em; border-bottom: 3px solid var(--c-accent);
     display: block; width: fit-content; max-width: 100%; }
h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; font-weight: 600; }
p, ul, ol { margin: 0 0 1.05em; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--maxw-text); margin-left: auto; margin-right: auto; }
.section { padding: 56px 0; }
.section--surface { background: var(--c-surface); }
.section--dark { background: var(--c-primary-dark); color: #E7EEF5; }
.section--dark h2, .section--dark h3 { color: #FFFFFF; border-color: var(--c-accent-2); }
.section--dark a { color: var(--c-accent-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-primary-dark);
  color: #fff;
  box-shadow: var(--shadow);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; max-width: var(--maxw-wide); margin: 0 auto; }
.brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #fff; text-decoration: none; }
.brand .dot { color: var(--c-accent-2); }
.brand small { font-weight: 400; font-size: .72rem; letter-spacing: .04em; color: #9db6cc; font-family: var(--font-body); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-tel { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.header-tel:hover { color: var(--c-accent-2); }

/* Navigation – Kategorien als Kästchen */
.site-nav { background: var(--c-secondary-dark); border-top: 1px solid rgba(255,255,255,.06); }
.site-nav ul { list-style: none; display: flex; gap: 8px; margin: 0 auto; padding: 10px 20px; max-width: var(--maxw-wide); flex-wrap: wrap; }
.site-nav li { display: flex; }
.site-nav a {
  display: inline-block;
  color: #dceaf6; text-decoration: none;
  font-family: var(--font-head);
  font-size: .92rem; font-weight: 600; line-height: 1;
  padding: 9px 15px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: #fff;
  background: var(--c-accent);
  border-color: var(--c-accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  padding: 13px 22px; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s; line-height: 1.2;
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-2); color: var(--c-primary-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: var(--c-accent-2); }
.btn--ghost:hover { background: var(--c-accent-2); color: var(--c-primary-dark); }
.btn--onlight { background: var(--c-accent); color:#fff; }
.btn--onlight:hover { background: var(--c-accent-dark); color:#fff; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, #0F2233 0%, #14293B 55%, #1b3a54 100%); color: #EAF1F8; padding: 72px 0; }
.hero-kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; font-weight: 600; color: var(--c-accent-2); margin: 0 0 12px; font-family: var(--font-head); }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.2rem; color: #cfe0ef; max-width: 640px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Komponenten: Boxen ---------- */
.box { border-radius: var(--radius); padding: 20px 22px; margin: 1.6em 0; border: 1px solid var(--c-border); }

.box--info { background: var(--c-surface); border-left: 5px solid var(--c-accent); }
.box--info .box-title { color: var(--c-accent-dark); }

/* Fakten-Kasten mit Quelle */
.box--fact { background: #fff; border: 1px solid var(--c-border); border-left: 5px solid var(--c-trust); box-shadow: var(--shadow); }
.box--fact .box-title { color: var(--c-trust-dark); }
.box--fact .source { font-size: .82rem; color: #5a6b78; margin-top: .6em; border-top: 1px dashed var(--c-border); padding-top: .6em; }

/* Hinweis / Warnung – dezent Teal */
.box--note { background: #f0f7f8; border-left: 5px solid var(--c-trust); }
.box--note .box-title { color: var(--c-trust-dark); }

/* Lead-Baustein „Warum Ferndiagnose nicht reicht" */
.box--lead { background: var(--c-primary-dark); color: #EAF1F8; border: none; }
.box--lead .box-title { color: #fff; }
.box--lead a { color: var(--c-accent-2); }

.box-title { font-family: var(--font-head); font-weight: 700; margin: 0 0 .4em; font-size: 1.08rem; display: flex; align-items: center; gap: 8px; }
.box p:last-child { margin-bottom: 0; }

/* Quellen-Marker (temporär, bis verifiziert) */
.quelle-pruefen { background: #fff3cd; border: 1px dashed #b8860b; color: #6b5200; padding: 2px 6px; border-radius: 4px; font-size: .85em; }

/* Bilder (Gutenberg wp:image) */
figure.wp-block-image { margin: 1.8em 0; text-align: center; }
figure.wp-block-image img { max-width: 100%; width: auto; height: auto; max-height: 640px; display: block; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); }
figcaption.wp-element-caption { font-size: .85rem; color: #5a6b78; margin-top: .6em; text-align: center; line-height: 1.5; }

/* Bild-Platzhalter */
.img-placeholder {
  background: repeating-linear-gradient(45deg, #EEF3F8, #EEF3F8 12px, #e4edf5 12px, #e4edf5 24px);
  border: 2px dashed var(--c-border); border-radius: var(--radius);
  padding: 34px 22px; text-align: center; color: #5a6b78; margin: 1.6em 0; font-size: .92rem;
}
.img-placeholder strong { color: var(--c-accent-dark); display: block; margin-bottom: 4px; font-family: var(--font-head); }

/* ---------- CTA-Block ---------- */
.cta-block { background: linear-gradient(160deg, #14293B, #1E6FB0); color: #fff; border-radius: var(--radius); padding: 36px 30px; text-align: center; margin: 2.4em 0; box-shadow: var(--shadow-lg); }
.cta-block h2 { color: #fff; border: none; display: block; margin-top: 0; }
.cta-block p { color: #dCE8F3; max-width: 560px; margin: 0 auto 22px; }

/* ---------- Vertrauens-/Feature-Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--c-surface); color: var(--c-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.3rem; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--maxw-text); margin: 0 auto; }
.faq details { border: 1px solid var(--c-border); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-head); font-weight: 600; color: var(--c-primary-dark); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; color: var(--c-accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { background: var(--c-surface); }
.faq .faq-body { padding: 4px 20px 18px; }

/* ---------- Quellenabschnitt ---------- */
.sources { max-width: var(--maxw-text); margin: 0 auto; font-size: .92rem; }
.sources ol { padding-left: 1.3em; }
.sources li { margin-bottom: .5em; color: #46586a; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: #5a6b78; padding: 14px 0 0; }
.breadcrumb a { color: var(--c-accent-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-primary-dark); color: #b8cad9; padding: 46px 0 28px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer a { color: #cfe0ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8ba3b8; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid--3, .grid--2, .footer-grid { grid-template-columns: 1fr; }
  .site-nav ul { gap: 12px; }
  body { font-size: 17px; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.region-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.region-badges span { background: rgba(63,169,214,.15); color: #cfe0ef; border: 1px solid rgba(63,169,214,.35); padding: 4px 12px; border-radius: 999px; font-size: .82rem; }

/* ---------- Bild-Kopierschutz (Deterrent) ---------- */
figure.wp-block-image img, .spb-widget img {
  -webkit-user-drag: none; user-drag: none; user-select: none;
  -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: auto;
}
