
/* Profil am Rechner: Unterreiter hatten einen Raster-Kopf mit leerer erster Zeile (Zurueck/Schliessen dort ausgeblendet),
   deren Zeilenabstand alles 14 px tiefer setzte als im Reiter "Bewertungen" - beim Wechsel sprang der Inhalt. */
@media (min-width: 901px) {
  html.hgv4.hgv4.hgv4:not(#v4x):not(#e15a):not(#e15b):not(#e15c) body #ownerProfileModal .hg-profile-modal-head { row-gap: 0 !important; }
}
/* Handy: Ueberschrift im Reiter "Bewertungen" hatte line-height normal, die anderen 1.15 -> 2,7 px Sprung */
@media (max-width: 900px) { html.hgv4.hgv4.hgv4:not(#v4x):not(#e15a):not(#e15b):not(#e15c) body #ownerProfileModal .hg-profile-modal-head :is(h1, h2, h3) { line-height: 1.15 !important; } }
/* Verifizierungscode im Profil: kein Kasten im Kasten, kein eigener Scrollbereich */
html.hgv4.hgv4.hgv4:not(#v4x):not(#e15a):not(#e15b):not(#e15c) body #ownerProfileModal #ownerProfilePanelCode {
  background: transparent !important; box-shadow: none !important; padding: 0 !important; border: 0 !important;
}
html.hgv4.hgv4.hgv4:not(#v4x):not(#e15a):not(#e15b):not(#e15c) body #ownerProfileCodeList {
  max-height: none !important; overflow: visible !important; padding: 0 !important; display: grid; gap: 14px; max-width: 760px;
}
html.hgv4.hgv4.hgv4:not(#v4x):not(#e15a):not(#e15b):not(#e15c) body :is(#ownerProfileCodeList, #ownerValOverviewList, .hg-frei-box__liste) .hg-val-ov-item {
  background: #fff !important; border: 1px solid rgba(15, 23, 42, .08) !important; border-radius: 18px !important;
  padding: 18px 44px 18px 18px !important; box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important; margin: 0 !important;
}
/* Code-Eingabefeld: vorher hellgrau auf hellgrau, ohne Rand - kaum zu sehen */
html.hgv4.hgv4.hgv4:not(#v4x):not(#e15a):not(#e15b):not(#e15c) body .hg-val-ov-code {
  background: #fff !important; border: 1.5px solid #c9ced6 !important; border-radius: 12px !important; height: 50px !important;
  font-size: 16px !important; font-weight: 600 !important; letter-spacing: .06em !important; color: #0f172a !important;
  padding: 0 16px !important; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05) !important; transition: border-color .15s ease, box-shadow .15s ease;
}
html.hgv4.hgv4.hgv4:not(#v4x):not(#e15a):not(#e15b):not(#e15c) body .hg-val-ov-code::placeholder { color: #8a919c !important; font-weight: 500 !important; letter-spacing: 0 !important; }
html.hgv4.hgv4.hgv4:not(#v4x):not(#e15a):not(#e15b):not(#e15c) body .hg-val-ov-code:focus {
  outline: none !important; border-color: #16a34a !important; box-shadow: 0 0 0 4px rgba(22, 163, 74, .16) !important;
}

/* 15.11.2026: Schritt-Trichter am Handy (z. B. Erbschaft Frage 3): der Hinweis "Bitte alle drei Fragen beantworten" stand zwischen
   den Knoepfen und ragte in "Zurueck" - jetzt eigene Zeile darueber, Knopftexte ohne Umbruch */
@media (max-width: 600px) {
  html.hgv4.hgv4.hgv4:not(#v4x):not(#e15a):not(#e15b):not(#e15c) body .v4-sf__nav:has(.v4-sf__tipp) { flex-wrap: wrap !important; row-gap: 10px !important; align-items: center !important; }
  html.hgv4.hgv4.hgv4:not(#v4x):not(#e15a):not(#e15b):not(#e15c) body .v4-sf__nav .v4-sf__tipp { order: -1 !important; flex: 1 1 100% !important; max-width: none !important; width: 100% !important; text-align: center !important; margin: 0 !important; position: static !important; transform: none !important; }
  html.hgv4.hgv4.hgv4:not(#v4x):not(#e15a):not(#e15b):not(#e15c) body .v4-sf__nav :is(.v4-los, .v4-weiter, .v4-zurueck) { white-space: nowrap !important; }
  html.hgv4.hgv4.hgv4:not(#v4x):not(#e15a):not(#e15b):not(#e15c) body .v4-sf__nav .v4-los { margin-left: auto !important; }
}
/* Knopf "Dashboard freischalten": gruen, leichtes Rauschen, ruhig wandernder Verlauf */
.hg-frei-knopf {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  color: #fff; font: 650 14px/1 "Plus Jakarta Sans", "Geist", -apple-system, sans-serif; letter-spacing: -.005em;
  background: linear-gradient(115deg, #0b6b3f 0%, #14924f 30%, #22b35e 50%, #14924f 70%, #0b6b3f 100%);
  background-size: 260% 100%; animation: hgFreiFluss 7s ease-in-out infinite;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px -6px rgba(16, 122, 66, .6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hg-frei-knopf::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hg-frei-knopf svg { width: 16px; height: 16px; flex: none; }
.hg-frei-knopf:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 22px -8px rgba(16, 122, 66, .7); }
.hg-frei-knopf:focus-visible { outline: 3px solid rgba(22, 163, 74, .35); outline-offset: 2px; }
.hg-frei-knopf--breit { display: flex; width: 100%; justify-content: center; height: 48px; font-size: 15.5px; margin: 0 0 18px; }
@keyframes hgFreiFluss { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Freischalt-Box oben in den Modulen (solange keine Bewertung freigeschaltet ist) */
#ownerPageContent > .hg-frei-box.hg-frei-box, .hg-frei-box {
  position: relative; margin: 0 0 22px; padding: 24px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, #f1fbf4 0%, #ffffff 60%); border: 1px solid rgba(22, 163, 74, .22);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -18px rgba(16, 122, 66, .35);
}
.hg-frei-box__kopf { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 18px; }
.hg-frei-box__ic {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #14924f, #22b35e); box-shadow: 0 6px 14px -6px rgba(16, 122, 66, .6);
}
.hg-frei-box__ic svg { width: 22px; height: 22px; }
.hg-frei-box h3 { margin: 2px 0 6px; font: 700 19px/1.25 "Plus Jakarta Sans", "Geist", -apple-system, sans-serif; letter-spacing: -.015em; color: #0f172a; }
.hg-frei-box p.hg-frei-box__t { margin: 0; font-size: 15px; line-height: 1.55; color: #3d4654; max-width: 640px; }
.hg-frei-box__liste { display: grid; gap: 12px; }
.hg-frei-box .hg-val-ov-del { display: none !important; }
.hg-frei-box .hg-val-ov-item { padding-right: 18px !important; }
html[data-hg-mod="ratgeber"] .hg-frei-box { display: none !important; }
@media (max-width: 900px) {
  .hg-frei-box { padding: 18px; border-radius: 20px; }
  .hg-frei-box__kopf { display: block; }
  .hg-frei-box__ic { width: 40px; height: 40px; border-radius: 12px; margin: 0 0 12px; }
  .hg-frei-box h3 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .hg-frei-knopf { animation: none; background-position: 50% 50%; } }
