/* =====================================================================
   Nasenherz Design System
   Warmes, ehrliches Tierversicherungs-Design (AXA / Martin Maack)
   Palette: Creme #FBF5EC · Tinte #2A2A2E · Petrol #1E8A7B · Koralle #F2685C · Gelb #FFC94D
   Fonts: Poppins (Headlines) · Source Sans 3 (Text)
   ===================================================================== */

:root {
  --nh-bg: #FBF5EC;
  --nh-surface: #FFFFFF;
  --nh-ink: #2A2A2E;
  --nh-ink-2: #3D3A35;
  --nh-muted: #55514B;
  --nh-muted-2: #6B6660;
  --nh-muted-3: #9B968D;
  --nh-teal: #1E8A7B;
  --nh-coral: #F2685C;
  --nh-coral-dark: #E4574B;
  --nh-coral-deep: #D94A3E;
  --nh-yellow: #FFC94D;
  --nh-border: #EDE6DA;
  --nh-border-2: #E5DFD2;
  --nh-border-3: #DED6C6;
  --nh-maxw: 1160px;
  --nh-pad: 28px;
  --nh-font-scale: 1;           /* wird vom Barrierefreiheits-Widget verändert */
  --nh-head: 'Poppins', system-ui, sans-serif;
  --nh-body: 'Source Sans 3', system-ui, -apple-system, Segoe UI, sans-serif;
}

/* ---------- Basis ---------- */
body.nh {
  margin: 0;
  background: var(--nh-bg);
  font-family: var(--nh-body);
  color: var(--nh-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: calc(1rem * var(--nh-font-scale));
}
html { scroll-behavior: smooth; }
body.nh a { color: var(--nh-teal); text-decoration: none; }
body.nh a:hover { color: var(--nh-coral); }
body.nh a:focus-visible,
body.nh button:focus-visible,
body.nh input:focus-visible,
body.nh textarea:focus-visible,
body.nh select:focus-visible { outline: 3px solid var(--nh-coral); outline-offset: 3px; border-radius: 4px; }
body.nh ::selection { background: var(--nh-yellow); color: var(--nh-ink); }
body.nh input::placeholder, body.nh textarea::placeholder { color: #B4AEA2; }
body.nh img { max-width: 100%; }
body.nh *, body.nh *::before, body.nh *::after { box-sizing: border-box; }

@keyframes heroIn { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Layout-Grundgerüst (Sticky-Footer) */
.nh-shell { min-height: 100vh; display: flex; flex-direction: column; }
.nh-main { display: flex; flex-direction: column; }

/* Skip-Link */
.nh-skip {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--nh-ink); color: #FBF5EC !important; padding: 12px 20px; border-radius: 999px;
  font-weight: 700; transition: top 0.2s ease;
}
.nh-skip:focus { top: 12px; color: #FBF5EC !important; }

/* Container-Helfer */
.nh-container { max-width: var(--nh-maxw); margin: 0 auto; width: 100%; box-sizing: border-box; padding-left: var(--nh-pad); padding-right: var(--nh-pad); }

/* ---------- Trustline ---------- */
.nh-trustline {
  background: var(--nh-ink); color: rgba(251,245,236,0.75);
  font-size: 13px; letter-spacing: 0.04em; text-align: center; padding: 8px 24px;
}

/* ---------- Header / Navigation ---------- */
.nh-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,245,236,0.85);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid rgba(42,42,46,0.08);
}
.nh-nav { max-width: var(--nh-maxw); margin: 0 auto; height: 64px; padding: 0 var(--nh-pad); display: flex; align-items: center; justify-content: space-between; }
.nh-brand { display: flex; align-items: center; gap: 11px; color: var(--nh-ink) !important; padding: 8px 0; }
.nh-brand:hover { color: var(--nh-ink) !important; }
.nh-brand-logo { display: block; flex-shrink: 0; line-height: 0; }
.nh-brand-logo img { display: block; height: 50px; width: auto; }
.nh-brand-name { font-family: var(--nh-head); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }

.nh-navlinks { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.nh-navlink { color: rgba(42,42,46,0.72); padding: 11px 14px; border-radius: 999px; transition: color 0.2s ease, background 0.2s ease; }
.nh-navlink:hover { color: var(--nh-ink); }
.nh-navlink.is-active { color: var(--nh-ink); background: rgba(42,42,46,0.06); }
.nh-navcta {
  margin-left: 10px; background: var(--nh-ink); color: #FBF5EC !important; border-radius: 999px;
  padding: 11px 24px; font-size: 14.5px; transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(42,42,46,0.2);
}
.nh-navcta:hover { background: var(--nh-coral); color: #fff !important; box-shadow: 0 10px 28px rgba(242,104,92,0.35); }

/* Hamburger + Mobile-Drawer */
.nh-burger { display: none; background: none; border: none; cursor: pointer; padding: 10px; border-radius: 12px; color: var(--nh-ink); }
.nh-burger span { display: block; width: 24px; height: 2.5px; background: var(--nh-ink); border-radius: 2px; margin: 5px 0; transition: transform 0.25s ease, opacity 0.25s ease; }
body.nh-menu-open .nh-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nh-menu-open .nh-burger span:nth-child(2) { opacity: 0; }
body.nh-menu-open .nh-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nh-burger { display: block; }
  .nh-navlinks {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px;
    background: var(--nh-bg); padding: 88px 22px 32px; font-size: 18px;
    box-shadow: -20px 0 60px rgba(42,42,46,0.18);
    transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.22,1,0.36,1); z-index: 90;
    overflow-y: auto;
  }
  body.nh-menu-open .nh-navlinks { transform: translateX(0); }
  .nh-navlink { padding: 14px 16px; }
  .nh-navcta { margin-left: 0; margin-top: 8px; text-align: center; }
  .nh-nav-backdrop { position: fixed; inset: 0; background: rgba(42,42,46,0.4); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 80; }
  body.nh-menu-open .nh-nav-backdrop { opacity: 1; pointer-events: auto; }
}

/* ---------- Buttons (Utility) ---------- */
.nh-btn-primary {
  display: inline-block; background: var(--nh-coral); color: #fff !important; font-weight: 700; font-size: 17px;
  border: none; cursor: pointer; font-family: var(--nh-body); border-radius: 999px; padding: 17px 38px;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(242,104,92,0.3), 0 10px 30px rgba(242,104,92,0.28);
}
.nh-btn-primary:hover { background: var(--nh-coral-dark); color: #fff !important; box-shadow: 0 2px 4px rgba(242,104,92,0.3), 0 18px 44px rgba(242,104,92,0.4); }
.nh-underline-link { font-weight: 700; color: var(--nh-ink) !important; border-bottom: 2px solid var(--nh-yellow); padding-bottom: 2px; }
.nh-underline-link:hover { color: var(--nh-coral) !important; }

/* ---------- Image-Slot Platzhalter ---------- */
.nh-slot {
  width: 100%; height: 100%; min-height: 100%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, #F3ECDF, #EDE4D3);
  color: #A79F90; padding: 20px;
}
.nh-slot span { font-size: 13.5px; line-height: 1.5; max-width: 30ch; font-weight: 600; }

/* ---------- Footer ---------- */
.nh-footer { background: var(--nh-ink); color: rgba(251,245,236,0.7); margin-top: auto; }
.nh-footer-inner { max-width: var(--nh-maxw); margin: 0 auto; padding: 68px var(--nh-pad) 40px; display: flex; flex-direction: column; gap: 44px; }
.nh-footer-cols { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: 44px; }
.nh-footer-brand { display: flex; flex-direction: column; gap: 14px; }
.nh-footer-brand-row { display: flex; align-items: center; gap: 11px; }
.nh-footer-brand-row .nh-brand-logo img { height: 52px; filter: brightness(0) invert(1); }
.nh-footer-brand-name { font-family: var(--nh-head); font-weight: 700; font-size: 20px; color: #FBF5EC; }
.nh-footer-claim { margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(251,245,236,0.5); max-width: 34ch; }
.nh-footer-col { display: flex; flex-direction: column; gap: 11px; font-size: 15.5px; }
.nh-footer-head { margin: 0 0 4px; font-family: var(--nh-head); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251,245,236,0.4); }
.nh-footer-col a { color: rgba(251,245,236,0.7); padding: 2px 0; }
.nh-footer-col a:hover, .nh-footer-col a.is-active { color: var(--nh-yellow); }
.nh-footer-col span { color: rgba(251,245,236,0.7); }
.nh-footer-col .nh-footer-addr { color: rgba(251,245,236,0.45); }
.nh-footer-legal-btn { background: none; border: none; padding: 2px 0; margin: 0; text-align: left; font: inherit; color: rgba(251,245,236,0.7); cursor: pointer; }
.nh-footer-legal-btn:hover { color: var(--nh-yellow); }
.nh-footer-axa { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(251,245,236,0.12); padding-top: 30px; font-size: 14px; color: rgba(251,245,236,0.4); }
.nh-footer-axa img { height: 26px; opacity: 0.38; }
.nh-footer-axa .nh-footer-axa-badge { display: inline-flex; align-items: center; gap: 14px; }

/* ---------- Responsive Grid-Kollaps ---------- */
@media (max-width: 900px) {
  .nh-grid { grid-template-columns: 1fr !important; }
  .nh-grid-3 { grid-template-columns: 1fr !important; }
  .nh-sticky { position: static !important; }
  .nh-footer-cols { grid-template-columns: 1fr 1fr; }
  .nh-hero-media { margin-left: 0 !important; }
  .nh-offset { margin-left: 0 !important; margin-top: 0 !important; }
  .nh-badge-float { position: static !important; right: auto !important; bottom: auto !important; margin-top: 16px; max-width: none !important; }
}
@media (max-width: 620px) {
  :root { --nh-pad: 20px; }
  .nh-footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .nh-num-row { grid-template-columns: 1fr !important; gap: 10px !important; }
  .nh-num-row .nh-num { display: none; }
}

/* =====================================================================
   Cookie-Consent (Nasenherz-Stil)
   ===================================================================== */
.nhc-overlay {
  position: fixed; inset: 0; z-index: 1500; display: none;
  align-items: flex-end; justify-content: flex-start; padding: 24px;
  background: rgba(42,42,46,0.28); backdrop-filter: blur(2px);
}
.nhc-overlay.is-open { display: flex; animation: nhcFade 0.3s ease; }
@keyframes nhcFade { from { opacity: 0; } to { opacity: 1; } }
.nhc-banner {
  background: var(--nh-surface); border: 1px solid var(--nh-border); border-radius: 24px;
  width: min(480px, 100%); max-height: calc(100vh - 48px); overflow-y: auto;
  padding: 34px 36px; box-shadow: 0 2px 6px rgba(42,42,46,0.08), 0 24px 70px rgba(42,42,46,0.28);
  animation: nhcUp 0.4s cubic-bezier(0.22,1,0.36,1);
}
@keyframes nhcUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.nhc-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(242,104,92,0.12); color: var(--nh-coral); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.nhc-title { font-family: var(--nh-head); font-weight: 700; font-size: 21px; letter-spacing: -0.015em; margin: 0 0 8px; }
.nhc-text { margin: 0 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--nh-muted-2); }
.nhc-cats { display: none; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.nhc-cats.is-open { display: flex; }
.nhc-cat { border: 1px solid var(--nh-border); border-radius: 16px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; background: var(--nh-bg); }
.nhc-cat-t { font-family: var(--nh-head); font-weight: 600; font-size: 15.5px; margin: 0 0 3px; }
.nhc-cat-d { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--nh-muted-2); }
/* Toggle */
.nhc-toggle { position: relative; flex-shrink: 0; width: 46px; height: 27px; }
.nhc-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.nhc-slider { position: absolute; inset: 0; background: #D8D0C2; border-radius: 999px; transition: background 0.2s ease; }
.nhc-slider::before { content: ""; position: absolute; width: 21px; height: 21px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.nhc-toggle input:checked + .nhc-slider { background: var(--nh-teal); }
.nhc-toggle input:checked + .nhc-slider::before { transform: translateX(19px); }
.nhc-toggle input:disabled + .nhc-slider { background: var(--nh-teal); opacity: 0.5; cursor: not-allowed; }
.nhc-toggle input:focus-visible + .nhc-slider { outline: 3px solid var(--nh-coral); outline-offset: 2px; }
.nhc-buttons { display: flex; flex-direction: column; gap: 10px; }
.nhc-btn { cursor: pointer; font-family: var(--nh-body); font-weight: 700; font-size: 15.5px; border-radius: 999px; padding: 14px 22px; border: 1.5px solid transparent; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.nhc-btn-accept { background: var(--nh-coral); color: #fff; box-shadow: 0 8px 24px rgba(242,104,92,0.3); }
.nhc-btn-accept:hover { background: var(--nh-coral-dark); }
.nhc-btn-save { background: var(--nh-ink); color: #FBF5EC; }
.nhc-btn-save:hover { background: #000; }
.nhc-btn-ghost { background: transparent; color: var(--nh-muted); border-color: var(--nh-border-2); }
.nhc-btn-ghost:hover { border-color: var(--nh-coral); color: var(--nh-coral); }
.nhc-row { display: flex; gap: 10px; }
.nhc-row .nhc-btn { flex: 1; }
.nhc-links { margin-top: 18px; display: flex; gap: 8px; justify-content: center; font-size: 13.5px; color: var(--nh-muted-3); }
.nhc-links a { color: var(--nh-muted-2); }
/* Floating Cookie-Button */
.nhc-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 1200;
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--nh-border);
  background: var(--nh-surface); color: var(--nh-coral); font-size: 20px; cursor: pointer;
  box-shadow: 0 6px 22px rgba(42,42,46,0.18); display: none; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.nhc-fab:hover { transform: scale(1.08); }
.nhc-fab.is-visible { display: flex; }

/* =====================================================================
   Barrierefreiheits-Widget (Nasenherz-Stil)
   ===================================================================== */
.nha-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 1200;
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--nh-teal); color: #fff; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(30,138,123,0.4); transition: transform 0.2s ease, background 0.2s ease;
}
.nha-fab:hover { transform: scale(1.08); background: #17766a; }
.nha-panel {
  position: fixed; right: 20px; bottom: 86px; z-index: 1300; width: min(340px, calc(100vw - 40px));
  background: var(--nh-surface); border: 1px solid var(--nh-border); border-radius: 22px;
  padding: 24px; box-shadow: 0 4px 10px rgba(42,42,46,0.08), 0 24px 64px rgba(42,42,46,0.24);
  display: none; flex-direction: column; gap: 16px; max-height: calc(100vh - 120px); overflow-y: auto;
}
.nha-panel.is-open { display: flex; animation: nhcUp 0.3s cubic-bezier(0.22,1,0.36,1); }
.nha-head { display: flex; justify-content: space-between; align-items: center; }
.nha-title { font-family: var(--nh-head); font-weight: 700; font-size: 18px; margin: 0; display: flex; align-items: center; gap: 9px; }
.nha-close { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--nh-muted-3); line-height: 1; padding: 4px; }
.nha-close:hover { color: var(--nh-coral); }
.nha-group-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nh-muted-3); margin: 4px 0 -4px; }
.nha-stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--nh-border); border-radius: 14px; padding: 8px 10px; }
.nha-stepper span { font-weight: 700; font-size: 14.5px; }
.nha-step-btns { display: flex; gap: 6px; }
.nha-step-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--nh-border-2); background: var(--nh-bg); cursor: pointer; font-size: 18px; font-weight: 700; color: var(--nh-ink); display: flex; align-items: center; justify-content: center; }
.nha-step-btn:hover { border-color: var(--nh-coral); color: var(--nh-coral); }
.nha-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1px solid var(--nh-border); border-radius: 14px; padding: 13px 15px; background: var(--nh-bg);
  cursor: pointer; font-family: var(--nh-body); font-size: 14.5px; font-weight: 600; color: var(--nh-ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nha-opt:hover { border-color: var(--nh-coral); }
.nha-opt .nha-ico { font-size: 17px; width: 22px; text-align: center; color: var(--nh-teal); }
.nha-opt.is-active { background: rgba(30,138,123,0.1); border-color: var(--nh-teal); }
.nha-opt.is-active .nha-check { margin-left: auto; color: var(--nh-teal); font-weight: 700; }
.nha-check { margin-left: auto; color: transparent; }
.nha-reset { background: none; border: none; cursor: pointer; font-family: var(--nh-body); font-weight: 700; font-size: 14px; color: var(--nh-coral); padding: 6px; text-align: center; }
.nha-reset:hover { color: var(--nh-coral-dark); }

/* --- Barrierefreiheits-Zustände am <html>/<body> --- */
html.a11y-contrast body.nh { background: #fff; color: #000; }
html.a11y-contrast body.nh .nh-slot { background: #eee; color: #333; }
html.a11y-contrast body.nh a { color: #005a8c; }
html.a11y-contrast body.nh .nh-header { background: #fff; }

body.a11y-underline a { text-decoration: underline !important; text-underline-offset: 2px; }

body.a11y-readable, body.a11y-readable .nh-brand-name, body.a11y-readable h1,
body.a11y-readable h2, body.a11y-readable h3 { font-family: Verdana, Tahoma, sans-serif !important; letter-spacing: normal !important; }

html.a11y-no-motion * , html.a11y-no-motion *::before, html.a11y-no-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

body.a11y-big-cursor, body.a11y-big-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 18-13 3-3 13z' fill='%23F2685C' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 4 4, auto !important; }

/* =====================================================================
   Prosa (Ratgeber-Artikel & Rechtstexte)
   ===================================================================== */
.nh-prose { font-size: 18px; line-height: 1.75; color: #3D3A35; }
.nh-prose > * { margin: 0 0 24px; }
.nh-prose > *:last-child { margin-bottom: 0; }
.nh-prose h2 { font-family: var(--nh-head); font-weight: 700; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.02em; color: var(--nh-ink); margin-top: 40px; }
.nh-prose h2:first-child { margin-top: 0; }
.nh-prose h3 { font-family: var(--nh-head); font-weight: 700; font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; color: var(--nh-ink); margin-top: 24px; }
.nh-prose h4 { font-family: var(--nh-head); font-weight: 600; font-size: 18px; color: var(--nh-ink); margin-top: 20px; }
.nh-prose a { color: var(--nh-teal); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.nh-prose a:hover { color: var(--nh-coral); }
.nh-prose ul, .nh-prose ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.nh-prose li { line-height: 1.65; }
.nh-prose strong, .nh-prose b { color: var(--nh-ink); }
.nh-prose address { font-style: normal; }
.nh-prose blockquote { margin: 0; padding: 16px 24px; border-left: 4px solid var(--nh-coral); background: var(--nh-surface); border-radius: 0 14px 14px 0; color: var(--nh-muted); }
.nh-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.nh-prose td, .nh-prose th { padding: 10px 14px; border-bottom: 1px solid var(--nh-border); text-align: left; vertical-align: top; }
.nh-prose hr { border: none; border-top: 1px solid var(--nh-border-2); }

/* Reduced Motion System-Präferenz */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.nh *, body.nh *::before, body.nh *::after { animation: none !important; transition: none !important; }
}
