/* Invest-O-Mat – helle Beta‑Optik (Gelb) */
:root{
  --bg:#f4f8ff;
  --card:#fafbfc;
  --text:#16181b;
  --muted:#5b6270;
  --line:#dbeafe;
  --acc:#3b82f6;
  --shadow:0 8px 26px rgba(0,0,0,.08);
  --radius:16px;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial}
a{color:#0b57d0;text-decoration:none}
.wrap{max-width:880px;margin:32px auto;padding:0 16px}
.foot{margin:20px 0 36px}

.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:10px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.logo-img{width:68px;height:auto;background:transparent;object-fit:contain;margin-right:8px;}

h1{font-size:28px;margin:0}
.sub{color:var(--muted)}

.card{
/*background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);*/
padding:20px}


.progress{height:10px;background:#f6f2dd;border-radius:999px;overflow:hidden;margin-bottom:14px;border:1px solid var(--line)}
.bar{height:100%;background:linear-gradient(90deg,#f4b400,#ff9100);width:0%;transition:width .25s ease}

.qtext{font-size:20px;margin:6px 0 14px;word-wrap:break-word}
.likert{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}
.likert button{flex:1;min-width:64px;max-width:120px;padding:12px;border-radius:12px;border:1px solid var(--line);background:#fff7cf;color:#16181b;cursor:pointer}
.likert button:hover{border-color:#f4b400}
.likert button.active{background:#ffe28a;border-color:#f4b400}
@media (max-width:560px){
  .likert{gap:8px}
  .likert button{flex:1 1 calc(20% - 8px);min-width:0}
}

.btn{padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:#fff;color:#16181b;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:16px;line-height:1.1;font-weight:600}
.btn:hover{filter:brightness(0.98)}
.btn.primary{background:#f4b400;border-color:#e3a900}
.btn.primary:hover{filter:brightness(1.02)}
.btn.secondary{background:#fff7cf}
.btn:disabled{opacity:.6;cursor:not-allowed}

.cta-row{display:flex;gap:10px;padding-top:10px;align-items:center;flex-wrap:wrap}
.spacer{flex:1}
.cta--stack{display:flex;padding-top:10px;gap:12px;flex-wrap:wrap}
.cta--stack .btn{flex:1 1 260px}

.badge{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.swatch{width:15px;height:50px;border-radius:14px;border:2px solid rgba(0,0,0,.08)}
.btitle{font-size:22px;margin:0}

.row{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.row.wrap{flex-wrap:wrap}
.pill{padding:8px 10px;border-radius:999px;border:1px solid var(--line);background:#fff7cf;color:#3e3e3e}

.note{font-size:13px;padding-top:10px;color:var(--muted)}
.noteRiskText{font-size:13px;color:var(--muted)}
.hr{height:1px;background:#ece8d5;margin:16px 0}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:720px){ .grid2{grid-template-columns:1fr} }

.colors{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 24px}
.footer-links{display:flex;gap:14px;flex-wrap:wrap}
.footer-links a{color:#666}
.footer-links a:hover{color:#f4b400;text-decoration:underline}

.card, .card p, .card a { overflow-wrap:anywhere; word-break:break-word; } /* prevent overflow in legal pages */
.k{background:#fff7cf;border:1px solid var(--line);border-radius:8px;padding:3px 6px}

/* ---------- Mobile-Optimierungen ---------- */
h1{ font-size: clamp(22px, 4.5vw, 32px); }
.sub{ font-size: clamp(13px, 2.8vw, 16px); }
.qtext{ font-size: clamp(18px, 3.8vw, 20px); }
.btn{ font-size: clamp(15px, 3.6vw, 16px); }

/* Farben-Liste: bessere Lesbarkeit + Reihenfolge */
.colors > div{
  display:flex; align-items:center; gap:8px;
  line-height:1.35;
}

@media (max-width: 720px){
  .wrap{ margin:20px auto; padding:0 12px; }
  .card{ padding:16px; }
  .topbar{ gap:12px; }

  /* Logo + Headline kompakter nebeneinander */
  .logo-img{ width:72px; }
}

@media (max-width: 560px){
  /* Farben in eine Spalte, sauberer Fluss */
  .colors{
    display:grid;
    grid-template-columns: 1fr;   /* 1 Spalte */
    gap:10px;
    margin:8px 0 20px;
  }

  /* CTA-Buttons untereinander, volle Breite, gleiche Höhe */
  .cta--stack{ gap:10px; }
  .cta--stack .btn{
    flex:1 1 100%;
    width:100%;
    min-height:44px;              /* Fingerfreundlich */
  }

  /* Header kompakter, Button nicht so breit */
  .topbar{ align-items:flex-start; }
  #startInfoBtn{ padding:10px 12px; }

  /* Quiz-Bedienelemente luftiger */
  .likert{ gap:8px; }
  .likert button{
    flex:1 1 calc(50% - 8px);     /* 2 pro Zeile, dann umbrechen */
    max-width:none;
    padding:12px;
  }

  /* Ergebnis-Badge untereinander statt nebeneinander */
  .badge{ flex-direction:column; align-items:flex-start; gap:10px; }
}

/* Sehr kleine Geräte (iPhone SE, 320–360px) */
@media (max-width: 380px){
  .logo-img{ width:60px; }
  h1{ font-size: 22px; }
  .sub{ font-size: 13px; }
  .likert button{ flex:1 1 100%; } /* ein Button pro Zeile */
}

/* ---- Likert 1–5: auf Handy immer in einer Reihe ---- */
@media (max-width: 560px){
  .likert{
    display: grid;                         /* statt flex */
    grid-template-columns: repeat(5, 1fr); /* 5 gleich breite Spalten */
    gap: 8px;
  }
  .likert button{
    min-width: 0;          /* Überschreibt alte min/max-Widths */
    max-width: none;
    padding: 10px 6px;     /* kompakter, damit 5 reinpassen */
    font-size: 16px;
    line-height: 1.1;
    border-radius: 10px;
  }
}

/* sehr kleine Geräte (≤380px) etwas kompakter */
@media (max-width: 380px){
  .likert button{
    padding: 9px 4px;
    font-size: 14px;
  }
}

/* ---------- Ergebnis-Karte ---------- */
#result .badge {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

#result .btitle { font-size: 26px; margin-bottom: 4px; }
#result .sub { font-size: 16px; }

#result .pill {
  background: #fffbea;
  border-color: #f0e4a5;
  font-size: 15px;
  padding: 6px 12px;
}

#result .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
#result .grid2 .row.wrap {
  flex-wrap: wrap;
  gap: 10px;
}
#result code.k {
  background: #fffbea;
  display: inline-block;
  padding: 5px 8px;
  border-radius: 6px;
}

/* ---------- Mobiloptimierung ---------- */
@media (max-width: 720px){
  #result .grid2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  #result .badge {
    flex-direction: column;
    align-items: flex-start;
  }
  #result .pill {
    font-size: 14px;
    padding: 6px 10px;
  }
  #result code.k {
    word-break: break-all;
    white-space: normal;
    font-size: 14px;
  }
  #result .row.wrap button {
    flex: 1 1 100%;
  }
  #result .row.wrap {
    flex-direction: column;
  }
  #badgeCanvas {
    width: 100% !important;
    height: auto !important;
    margin-top: 10px;
  }
}

/* ---------- Zusatz: etwas mehr Luft unten ---------- */
#result {
  margin-bottom: 24px;
}


/* Overlay für Kurzcode */
#shortcodeOverlay{
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); padding: 16px;
}
#shortcodeOverlay.open{ display: flex; }
#shortcodeOverlay[hidden]{ display: none !important; }
#shortcodeOverlay .overlay-card{
  background: #ffffff; color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  max-width: min(560px, 92vw); width: 100%;
  padding: 18px;
}
#shortcodeOverlay .overlay-actions .btn{ margin-right: 8px; }

/* Profil-Balken */
.bars{ display:grid; gap:12px; }
.barRow{ display:grid; grid-template-columns: 96px 1fr; gap:10px; align-items:center; }
.barLabel{ font-weight:600; color: var(--text); font-size: 14px; }
.barTrack{ height:10px; background:#f6f2dd; border:1px solid var(--line); border-radius:999px; overflow:hidden; }
.barFill{ height:100%; border-radius:999px; }

/* Learn more as link */
a.learnmore{ color:#0b57d0; text-decoration:underline; font-weight:500; }
a.learnmore:hover{ color: var(--acc); text-decoration:none; }

@media (max-width:720px){
  .barRow{ grid-template-columns: 86px 1fr; }
}

.site-footer{ display:block; }


/* --- Footer unten, perfekt zentriert (v11e) --- */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 30px 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  width: 100%;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--acc);
  text-decoration: underline;
}

/* Profil-Balken */
.bars{ display:grid; gap:12px; }
.barRow{ display:grid; grid-template-columns: 120px 1fr; gap:12px; align-items:center; }
.barLabel{ font-weight:600; color: var(--text); font-size: 14px; }
.barTrack{ height:12px; background:#f6f2dd; border:1px solid var(--line); border-radius:999px; overflow:hidden; }
.barFill{ height:100%; border-radius:999px; }

/* v12 result head */
.result-head{ display:flex; gap:16px; align-items:center; margin-bottom:12px; }
.result-head .result-title h2{ margin:0; }
.result-head .result-title .muted{ margin:2px 0 0 0; color: var(--muted); }
.colorChip{ width:14px; height:64px; border-radius:999px; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width:420px){ .colorChip{ height:56px; } }

/* v12 modal */
.modal{ position:fixed; inset:0; display:block; z-index:9999; }
.modal[hidden]{ display:none; }
.modal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.35); backdrop-filter: blur(2px); }
.modal__panel{ position:relative; margin:min(8vh,60px) auto; background:#fffdfa; border:1px solid var(--line); border-radius:16px; padding:18px; width:min(900px,92vw); box-shadow:0 10px 30px rgba(0,0,0,.2); }
.modal__head{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px; }
.modal__body{ display:grid; gap:12px; }
.badge-img{ width:100%; height:auto; border-radius:10px; border:1px solid var(--line); }
#badgeCanvas{ display:none; }

.modal__actions{ display:flex; gap:12px; flex-wrap:wrap; }
.modal__actions .btn{ padding:10px 14px; border-radius:10px; border:1px solid var(--line); background:#ffe08a; }
.modal__actions .btn.btn--ghost{ background:#fff8e1; }


/* --- Modal (Vorschau & Speichern) --- */
.modal-backdrop{
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: grid; place-items: center; z-index: 1000;
}
.modal-backdrop[hidden]{ display:none; }
.modal-dialog{
  background: #fff; color:#111; width:min(720px, 92vw); max-height: 92vh;
  border-radius: 16px; padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display:flex; flex-direction:column; gap:14px;
}
.modal-close{
  position:absolute; right:12px; top:8px; border:0; background:transparent;
  font-size: 28px; line-height: 1; cursor: pointer;
}
.modal-body{ overflow:auto; max-height: 60vh; }
.modal-body img{ width:100%; height:auto; display:block; border-radius: 10px; }
.modal-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.btn.secondary{ background:#f2f2f2; }
.hint{ color:#666; font-size: 14px; margin: 6px 0 0; }

/* Ensure hidden always hides, even if inline display is set */
[hidden]{ display:none !important; }


/* Profile overview grid */
#typeDetails{margin:1rem 0 1.25rem 0}
.profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.profile-grid h3{font-size:1rem;margin:.25rem 0 .4rem 0}
.profile-grid ul{margin:.25rem 0 .5rem 1.1rem}
.profile-grid p{margin:.25rem 0 .5rem 0}

/* === Matches UI enhancements (v1) === */
.match-nav { display:flex; gap:12px; flex-wrap:wrap; margin:8px 0 16px; }
.match-nav a {
  font-size:14px; text-decoration:none; padding:6px 10px; border-radius:999px;
  border:1px solid rgba(0,0,0,.1); background:#fff7cf; color:#3e3e3e;
}
.hr-soft { border:0; border-top:1px solid rgba(0,0,0,.08); margin:16px 0; }
.profile-intro { display:flex; align-items:center; gap:12px; margin:8px 0 16px; }
.swatch--xs { width:10px; height:28px; border-radius:999px; display:inline-block; border:1px solid var(--line); }
.pair { display:flex; gap:12px; align-items:flex-start; margin:14px 0; }
.pair h4 { margin:0 0 6px; }
.pair .pair-body { flex:1; }
.pair .meta { font-size:14px; opacity:.85; margin-top:6px; }

/* kleine Farbflächen */
.swatch-red{background:#ef4444}
.swatch-orange{background:#f97316}
.swatch-yellow{background:#facc15}
.swatch-green{background:#10b981}
.swatch-blue{background:#3b82f6}
.swatch-violet{background:#8b5cf6}

h2.with-badge { display:flex; align-items:center; gap:10px; margin-top:1.5rem; }
.swatch--h2 { width:20px; height:20px; border-radius:50%; }
.swatch-gray { background:#d1d5db; }

.pair h4 { display:flex; align-items:center; gap:8px; }
.pair h4 .swatch--xs { width:14px; height:14px; border-radius:50%; flex-shrink:0; }

/* === Matches badges in H3 (v4) === */
.stack h3 { display: flex; align-items: center; gap: 8px; color: #111; }
.stack h3 .swatch--xs { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }




.barPct{color:var(--muted); display:none;}
.btn.sm{padding:8px 10px; font-size:14px; border-radius:10px}


/* Variant C buttons for result action links */
.result-buttons .btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.1s ease;
  text-decoration: none;
}

/* Profilanalyse */
.result-buttons .btn-profilanalyse {
  background-color: #bfd8ff; /* soft light blue */
  color: #003366;
}
.result-buttons .btn-profilanalyse:hover {
  background-color: #a7c9ff;
  transform: translateY(-1px);
}

/* Matches */
.result-buttons .btn-matches {
  background-color: #cfe8d5; /* pale green */
  color: #064c2b;
}
.result-buttons .btn-matches:hover {
  background-color: #bce1c2;
  transform: translateY(-1px);
}

.result-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.result-buttons .btn:active {
  transform: translateY(0);
  opacity: .95;
}


/* === Buttons v2: equal width & subtler look === */
.result-buttons { margin-top: 12px; }
.result-buttons .btn { flex: 1 1 220px; text-align: center; font-weight: 400; }
.result-buttons .btn-profilanalyse:hover,
.result-buttons .btn-matches:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
@media (max-width: 560px){
  .result-buttons { flex-direction: column; }
  .result-buttons .btn { width: 100%; }
}


/* --- Subtype list with colored badges and right-aligned buttons --- */
.subtypes{ list-style:none; padding:0; margin-left:16px; }
.subtype-row{ display:flex; align-items:center; gap:10px; padding:6px 0; }
.subtype-dot{ width:12px; height:12px; border-radius:999px; flex:0 0 12px; border:1px solid rgba(0,0,0,.06); }
.subtype-label{ font-weight:600; }
.subtype-spacer{ flex:1; }
.result-buttons .btn-sm, .subtypes .btn-sm{ padding:10px 22px; font-size:15px; border-radius:10px; }
.subtypes .btn{ text-decoration:none; }
.subtypes .btn + .btn{ margin-left:8px; }


/* Ensure subtype buttons use same colors as main buttons */
.subtypes .btn-profilanalyse{
  background-color:#bfd8ff;
  color:#003366;
}
.subtypes .btn-profilanalyse:hover{
  background-color:#a7c9ff;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
}
.subtypes .btn-matches{
  background-color:#cfe8d5;
  color:#064c2b;
}
.subtypes .btn-matches:hover{
  background-color:#bce1c2;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

/* Align buttons right in the row and keep compact */
.subtype-row{ gap:12px; }
.subtype-label{ min-width:72px; }
.subtypes .btn-sm{ padding:10px 22px; font-size:15px; }


/* Force subtype button colors to override any base .btn backgrounds */
.subtypes a.btn.btn-profilanalyse{ background-color:#bfd8ff !important; color:#003366 !important; }
.subtypes a.btn.btn-profilanalyse:hover{ background-color:#a7c9ff !important; }
.subtypes a.btn.btn-matches{ background-color:#cfe8d5 !important; color:#064c2b !important; }
.subtypes a.btn.btn-matches:hover{ background-color:#bce1c2 !important; }


/* === Kompaktere Subtypen-Buttons === */
.subtypes .btn{
  padding:7px 16px !important;
  font-size:14px !important;
  font-weight:400 !important;
  border-radius:8px !important;
}


/* === Feinere, kleinere Subtypen-Buttons (v9) === */
.subtypes .btn{
  padding:4px 12px !important;
  font-size:13px !important;
  font-weight:400 !important;
  border-radius:6px !important;
}


/* === v10: Hard override for compact subtype buttons === */
.subtypes a.btn,
.subtypes .btn{
  padding:4px 10px !important;
  font-size:13px !important;
  font-weight:400 !important;
  border-radius:6px !important;
  line-height:1.0 !important;
}
.subtypes .btn-sm{
  padding:4px 10px !important;
  font-size:13px !important;
  font-weight:400 !important;
  border-radius:6px !important;
  line-height:1.0 !important;
}


/* === Subtype exclusive buttons (v11) === */
.btn-sub{
  display:inline-block;
  padding:4px 10px;
  font-size:13px;
  font-weight:400;
  line-height:1.0;
  border:none;
  border-radius:6px;
  cursor:pointer;
  text-decoration:none;
  transition:background-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.btn-sub-profil{ background:#bfd8ff; color:#003366; }
.btn-sub-profil:hover{ background:#a7c9ff; box-shadow:0 2px 6px rgba(0,0,0,0.08); }

.btn-sub-match{ background:#cfe8d5; color:#064c2b; }
.btn-sub-match:hover{ background:#bce1c2; box-shadow:0 2px 6px rgba(0,0,0,0.08); }

/* spacing within subtype rows */
.subtypes .btn-sub + .btn-sub{ margin-left:8px; }


/* === v12 Desktop: bring subtype buttons closer, remove big middle gap === */
.subtype-row{ justify-content:flex-start !important; gap:12px !important; }
.subtype-spacer{ flex:0 !important; }

/* === v12 Mobile: slimmer main buttons on phones === */
@media (max-width: 600px){
  .result-buttons .btn{
    padding:7px 14px !important;
    font-size:14px !important;
    border-radius:8px !important;
  }
}


/* === v13 Mobile refinements === */
/* 1) Make main result buttons slimmer on phones */
@media (max-width: 600px){
  .result-buttons .btn{
    padding:5px 12px !important;
    font-size:13px !important;
    line-height:1.1 !important;
    border-radius:6px !important;
  }
}

/* 2) Startseite: Bullet-Liste im Intro nur mobil ausblenden */
@media (max-width: 600px){
  #intro ul{ display:none !important; }
}

/* Keep equal button widths on desktop only */
@media (min-width: 601px){
  .result-buttons .btn{ flex:1 1 220px; }
}

/* iOS/mobile fix: prevent flex expansion making buttons too tall */
@media (max-width: 600px){
  .result-buttons{ align-items:center !important; justify-content:flex-start; }
  .result-buttons .btn{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:unset !important;
    height:auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    line-height:1.05 !important;
    padding:5px 12px !important;
    font-size:13px !important;
    border-radius:6px !important;
    white-space:nowrap;
  }
}

/* v16 sizing on mobile (slightly larger for tap comfort) */
@media (max-width: 600px){
  .result-buttons .btn{
    padding:7px 14px !important;
    font-size:14px !important;
    border-radius:7px !important;
    line-height:1.1 !important;
  }
}


/* === v18: cleaner cards, compact layout, subtle grouping === */
.card{
  border:none !important;
  box-shadow:none !important;
}

#resultLinks{ margin-top: 10px !important; } /* was ~12-18px; bring closer to profile block */

/* Subtypes grouping */
.subtypes-section{
  background:#fafafa;
  border-radius:10px;
  padding:16px 20px;
  margin-top:20px;
}
.subtypes-section h3{ margin-top:0; }
.subtypes-section .subtypes{ margin-left:0; }
.subtypes-section .subtype-row{ padding:8px 0; }


/* === v19 fine tune === */
/* 1) Subtypes section slightly lighter + smaller bottom padding */
.subtypes-section{
  background:#fcfcfc !important;
  padding:14px 20px 10px !important;
}

/* 2) Bring "Dein Profil im Überblick" closer to the buttons */
#profile-block h2{
  margin-top:12px !important;
}


/* === v20: stronger selectors to ensure changes apply === */

/* 1) Move "Dein Profil im Überblick" up – match multiple possible selectors */
#profile-block h2,
#profile-block .card h2,
#profile-block .section-title,
#profile-block h2.section-title{
  margin-top:8px !important;
}

/* 2) Lighter subtypes area + tighter bottom spacing and smaller gap to footer */
.subtypes-section{
  background:#fcfcfc !important;
  padding:14px 20px 6px !important;   /* smaller bottom padding */
  margin-bottom:12px !important;
}

/* Kill excessive bottom spacing on the result page containers */
#result .section:last-child,
#result .card:last-child,
#result > .card:last-child,
main .content:last-child,
main .container:last-child{
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}

/* Ensure footer sits a bit näher dran but with safe spacing */
footer{ margin-top:16px !important; }


/* === v21: move profile-block upwards to compensate .card padding === */
#profile-block{
  margin-top:-15px !important;
}

/* === v21: move profile-block upwards to compensate .card padding === */
#risk-block{
  margin-top:-15px !important;
}


/* v27c inline color links: keep look identical; subtle hover */
.profiltyp-inline{
  color: inherit;
  text-decoration: none;
}
.profiltyp-inline:hover{ color:#555; text-decoration:none; }


/* Example text under questions */
.qexample{
  color:#6b7280; /* Tailwind gray-500-ish */
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.35;
  padding-bottom: 30px;
}

/* einheitliche Kurzprofil-Note */
.short-note{
  color:#6b7280;           /* grau */
  font-style:italic;
  font-size:.95rem;
  line-height:1.5;
  margin-top:1rem;
  padding-top:.75rem;
  border-top:1px dashed #e5e7eb; /* feiner Trenner */
}
@media (max-width:640px){
  .short-note{ font-size:.9rem; }
}



/* Feedback text under scale */

.feedback-text {
  text-align: center;
  font-size: 0.95rem;
  color: #9ca3af; /* lighter gray */
  font-style: italic;
  font-weight: 400;
  min-height: 1.5em;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}



/* === Disclaimer modal styles (auto-inserted) === */
.iom-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);backdrop-filter:saturate(1.2) blur(2px);z-index:1000}
.iom-modal{border:0;border-radius:16px;max-width:860px;width:92vw;box-shadow:0 24px 80px rgba(0,0,0,.35);padding:0}
.iom-modal::backdrop{background:transparent}
.iom-modal-card{display:flex;flex-direction:column;max-height:85vh;background:#fff;color:#111}
.iom-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid #e9e9e9}
.iom-modal-header h2{font-size:1.25rem;margin:0}
.iom-close{background:transparent;border:0;font-size:1.5rem;cursor:pointer}
.iom-modal-body{padding:1rem 1.25rem;overflow:auto;line-height:1.5}
.iom-modal-body p{margin:.75rem 0}
.iom-ack{display:flex;align-items:flex-start;gap:.6rem;margin-top:1rem;border-top:1px dashed #ddd;padding-top:1rem}
.iom-ack input{margin-top:.25rem}
.iom-modal-actions{display:flex;gap:.75rem;justify-content:flex-end;padding:1rem 1.25rem;border-top:1px solid #e9e9e9}
@media (prefers-color-scheme: dark){
  .iom-modal-card{background:#121212;color:#eaeaea}
  .iom-modal-header{border-color:#2a2a2a}
  .iom-modal-actions{border-color:#2a2a2a}
  .iom-modal-body{color:#dedede}
}


/* === Dialog unify styles (auto-inserted) === */
/* Einheitliches Overlay für native <dialog>. */
.dialog::backdrop{ background: rgba(0,0,0,.35); backdrop-filter: blur(2px); }
.dialog{ border:1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); width:min(900px,92vw); max-width:900px; }
.dialog h3{ margin: 0 0 10px 0; font-size: 1.1rem; }
.dialog .dialog-actions{ display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; margin-top: 12px; }
/* Checkboxzeile */
.iom-ack{ display:flex; align-items:flex-start; gap:.6rem; margin-top: 10px; padding-top: 10px; border-top:1px dashed var(--line); }
.iom-ack input{ margin-top:.25rem; }


/* Ergebnis-CTAs (rechts) */
#resultActions.ctaCol{display:flex;flex-direction:column;gap:12px;margin-top:8px}
#resultActions .ctaPrimary,#resultActions .ctaSecondary{
  display:inline-block;text-decoration:none;border:0;padding:14px 18px;border-radius:14px;font-weight:600;
  box-shadow:0 1px 2px rgba(0,0,0,.04),0 6px 14px rgba(0,0,0,.06);transition:transform .08s ease,opacity .12s ease
}
#resultActions .ctaPrimary{background:#c7d7fe;color:#111}
#resultActions .ctaSecondary{background:#d9f0e2;color:#111}
#resultActions .ctaPrimary:hover,#resultActions .ctaSecondary:hover{transform:translateY(-1px)}


/* ===== CTA buttons tuned to good look ===== */
#resultActions.ctaCol{display:flex;flex-direction:column;gap:12px;margin-top:8px}
#resultActions .ctaPrimary,#resultActions .ctaSecondary{
  display:inline-block;text-decoration:none;
  border:none;
  padding:10px 22px;
  border-radius:10px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  transition:background-color .25s ease, transform .1s ease;
  box-shadow:0 1px 2px rgba(0,0,0,.04), 0 6px 14px rgba(0,0,0,.06);
}
#resultActions .ctaPrimary{ background:#bfd8ff; color:#003366; }
#resultActions .ctaSecondary{ background:#d9f0e2; color:#0f3d2a; }
#resultActions .ctaPrimary:hover,#resultActions .ctaSecondary:hover{ transform:translateY(-1px); }
#resultActions .ctaPrimary:active,#resultActions .ctaSecondary:active{ transform:translateY(0); opacity:.95; }


/* --- CTA secondary button styling (ensure it looks like a button) --- */
#resultActions2 a.ctaSecondary{
  display:block;
  text-decoration:none;
  border:none;
  padding:10px 22px;
  border-radius:10px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  width:100%;
  background:#E8F5E9; /* soft green to match recommendations */
  box-shadow: var(--shadow);
  color: var(--fg);
}
#resultActions2 a.ctaSecondary:hover{
  transform:translateY(-1px); 
}
#resultActions2{ margin-top: 8px; }


/* Facettenreich section */
.facetsIntro{margin-top:16px;margin-bottom:18px;font-size:18px;line-height:1.55}
.facetsList{display:flex;flex-direction:column;gap:16px;margin-top:12px}
.facetsItem{display:flex;align-items:center;gap:18px}
.facetsDot{width:16px;height:16px;border-radius:999px;display:inline-block;flex:0 0 16px}
.facetsName{font-weight:700;font-size:26px;min-width:140px}
.facetsActions a{display:inline-block;background:#bfd8ff;color:#003366;padding:10px 18px;border-radius:10px;text-decoration:none;font-weight:600}
@media (max-width:900px){
  .facetsName{font-size:20px}
}



/* Facettenreich section */
#facets { margin-top: 24px; }
.facetsWrap h3 { font-size: 1.4rem; margin-bottom: 0.6em; }
.facetsIntro { line-height: 1.6; margin-bottom: 1em; }
.facetsList { display:flex; flex-direction:column; gap:16px; }
.facetsItem { display:flex; align-items:center; gap:14px; }
.facetsDot { width:14px; height:14px; border-radius:50%; display:inline-block; }
.facetsName { font-weight:700; font-size:26px; min-width:140px; }
.facetsActions a { background:#bfd8ff; color:#003366; text-decoration:none; border-radius:10px; padding:10px 18px; font-weight:600; }
@media (max-width:900px){ .facetsName{ font-size:20px } }

/* Dezenterer Stil für Facetten-Bereich */
.facetsWrap {
  margin-top: 20px;
  font-size: 0.92rem;
  color: #333;
}

.facetsWrap h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5em;
  color: #555;
}

.facetsIntro {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.2em;
  color: #444;
}

.facetsList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.facetsItem {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.facetsDot {
  width: 10px;
  height: 10px;
}

.facetsName {
  font-weight: 600;
  font-size: 1rem;
  color: #111;
}

.facetsActions a {
  background: #dce6f8;
  color: #003366;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 6px 10px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.facetsActions a:hover {
  background: #c7d8f3;
}

@media (max-width: 700px) {
  .facetsWrap { font-size: 0.9rem; }
  .facetsName { font-size: 0.95rem; }
}



/* Risk factor badge */
.risk-badge{display:inline-block; margin-left:.35rem; font-weight:700; font-size:.9rem; padding:.08rem .4rem; border-radius:.4rem; background:#eef1f6; color:#222; vertical-align:middle}
.risk-badge.positive{background:#d9f0e2; color:#0b602f}
.risk-badge.neutral{background:#eef1f6; color:#45505e}
.risk-badge.negative{background:#e9efff; color:#294a86}





/* Wider layout for modulator questions (3 buttons) */
.likert.mod3 { gap: 12px; }
.likert.mod3 button {
  flex: 1 1 calc(33.333% - 12px);
  max-width: none;
  min-width: 0;
  padding: 14px 16px;
}
@media (max-width:560px){
  .likert.mod3 { gap: 8px; }
  .likert.mod3 button { flex: 1 1 calc(33.333% - 8px); }
}


/* Phase bar (zweifarbiger Meta-Fortschrittsbalken) */
.phase-bar {
  display: flex;
  width: 100%;
  height: 28px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  color: #555;
  border: 1px solid var(--line);
 /* box-shadow: var(--shadow);*/
}
.phase-bar .phase {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  padding: 0 8px;
  line-height: 1.1;
}
.phase-bar .phase-left {
  flex: 0 0 60%;
  background: #deeaff; /* pastellblau */
}
.phase-bar .phase-right {
  flex: 0 0 40%;
  background: #ffe0e0; /* pastellrot */
}
@media (max-width: 720px){
  .phase-bar { height: 40px; font-size: 12px; }
}
@media (max-width: 460px){
  .phase-bar { height: auto; font-size: 12px; }
  .phase-bar .phase { padding: 8px 6px; }
}

/* Align left headline divider to match right column */
#profile-block .hr { margin-top: -5px; }
#risk-block .hr { margin-top: -5px; }


#resultActions2{ margin-top: 10px; }




/* Strong mobile override: force vertical layout for Q13–20 buttons */
@media (max-width: 700px){
  .likert.mod3{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    grid-template-columns: none !important;
  }
  .likert.mod3 > *{
    flex: 0 0 auto !important;
  }
  .likert.mod3 button,
  .likert.mod3 .btn.opt{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    padding: 14px 12px !important;
  }
}



/* Profil-Overlay */
#profileOverlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  padding: 16px;
}
#profileOverlay.open{
  display: flex;
}
#profileOverlay[hidden]{
  display: none !important;
}
#profileOverlay .overlay-card{
  background: #ffffff;
  color: var(--text);
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: min(780px, 94vw);
  max-height: min(90vh, 720px);
  width: 100%;
  overflow: auto;
  position: relative;
  padding: 18px;
}
#profileOverlay .overlay-close-btn{
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
#profileOverlay .profile-card{
  box-shadow: none;
  border: none;
  margin: 0;
}
#profileOverlay .profile-card .content-justify{
  margin-top: 12px;
}
#profileOverlay .profile-card h3{
  margin-top: 18px;
}
#profileOverlay .profile-card p{
  margin-bottom: 10px;
}
#profileOverlay .profile-card p.profile-mod{
  font-weight: 500;
}
body.no-scroll{
  overflow: hidden;
}


#profileOverlay .recs-disclaimer{
  margin-top: 16px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.intro-text{
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Empfehlungen – Tabelle */
.recs-table-wrapper{
  margin-bottom: 16px;
  overflow-x: auto;
}
.recs-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.recs-table th,
.recs-table td{
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.recs-table th{
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.asset-cell{
  min-width: 160px;
}
.asset-label-btn{
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
}
.asset-note{
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
}
.asset-desc{
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  display: none;
}
.asset-desc.open{
  display: block;
}
.asset-rating{
  white-space: nowrap;
}
.rating-dot{
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 6px;
}
.rating-green{
  background: #16a34a;
}
.rating-yellow{
  background: #eab308;
}
.rating-red{
  background: #dc2626;
}
.asset-range{
  white-space: nowrap;
}
@media (max-width: 640px){
  .recs-table th:nth-child(3),
  .recs-table td:nth-child(3){
    text-align: right;
  }
}

.result-links {
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

.result-link {
  color: #0070c9;
  text-decoration: underline;
  cursor: pointer;
}
.sep {
  margin: 0 6px;
  color: #aaa;
}

