/* HELPKEY Ratgeber – Gestaltung nach Entwurf 1 (HELPKEY-Farben, Schrift Nunito) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/ratgeber/fonts/nunito-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Ukrainisch/Russisch */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/ratgeber/fonts/nunito-cyrillic-variable.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Arabisch/Persisch */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/ratgeber/fonts/vazirmatn-arabic-variable.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --brand: #137C74;        /* Petrol (abgedunkeltes Logo-Türkis, kontraststark) */
  --brand-light: #1EA49B;  /* Logo-Türkis */
  --brand-tint: #DDF3F1;
  --cta: #BFE8E3;          /* Pastell-Mint für Hauptknöpfe (ersetzt das Orange der Website) */
  --cta-hover: #A8DDD6;
  --cta-text: #0B4F4A;
  --rose: #F7B6C8;         /* Pastell-Rosa für kleine Akzente */
  --sos: #C62828;          /* Notruf – Signalfarbe, nicht Marke */
  --bg: #F6F5F3;
  --card: #FFFFFF;
  --text: #1D1D22;
  --text-2: #3C3C44;
  --muted: #55555D;
  --line: #E6E4E0;
  --warn-bg: #FFF4E5;
  --warn-text: #5C3300;
  --radius: 16px;
  --head: 'Nunito', 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sans: 'Nunito', 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; }
.hk-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; }

#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; background: var(--bg) url('/ratgeber/img/pattern.svg?v=2') -40px 120px / 600px 600px repeat; }
.hk-splash { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.hk-noscript { padding: 24px; }

/* Kopfbereich */
/* Kopfbereich: weich und verspielt (Konfetti-Formen wie auf der HELPKEY-Verpackung) */
.hk-hero, .hk-auth-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 92% 18%, rgba(255,255,255,.12) 0 54px, transparent 55px),
    radial-gradient(circle at 78% 92%, rgba(255,255,255,.08) 0 70px, transparent 71px),
    radial-gradient(circle at 6% 104%, rgba(245,197,138,.30) 0 46px, transparent 47px),
    linear-gradient(160deg, #1A8C83 0%, var(--brand) 55%, #106E67 100%);
}
.hk-hero { color: #fff; padding: calc(18px + var(--safe-top)) 20px 44px; display: flex; flex-direction: column; gap: 16px; }
/* Welle als Unterkante */
.hk-hero::after, .hk-auth-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; z-index: -1;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14 C 60 0 110 0 170 12 S 290 26 350 12 S 400 6 400 6 V26 H0Z' fill='%23000'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14 C 60 0 110 0 170 12 S 290 26 350 12 S 400 6 400 6 V26 H0Z' fill='%23000'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.hk-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hk-deco svg { position: absolute; }
.hk-hero > *:not(.hk-deco), .hk-auth-hero > *:not(.hk-deco) { position: relative; }
.hk-hero h1::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--rose); vertical-align: 6px; }
.hk-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hk-hero small { display: block; font-size: 16px; font-weight: 600; opacity: .95; margin-bottom: 2px; }
.hk-hero h1 { margin: 0; font: 800 27px/1.2 var(--head); letter-spacing: -0.01em; }
.hk-iconbtn { width: 44px; height: 44px; border-radius: 22px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: inherit; text-decoration: none; flex-shrink: 0; }
.hk-hero .hk-iconbtn { border: 1px solid rgba(255,255,255,.45); }
.hk-searchbox { position: relative; display: block; }
.hk-searchbox svg { position: absolute; left: 14px; top: 14px; color: var(--muted); pointer-events: none; }
.hk-searchbox input { width: 100%; height: 50px; border: 0; border-radius: 25px; padding: 0 18px 0 46px; font-size: 16px; font-weight: 600; background: #fff; color: var(--text); box-shadow: 0 6px 18px rgba(8, 60, 56, .18); }
.hk-searchbox svg { left: 17px; top: 15px; }
.hk-searchbox input::placeholder { color: #6B6B73; }

.hk-topbar { background: var(--card); border-bottom: 1px solid var(--line); padding: calc(8px + var(--safe-top)) 12px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; z-index: 5; }
.hk-topbar-actions { display: flex; gap: 2px; align-items: center; }

.hk-sos-pill { height: 40px; padding: 0 14px; border-radius: 20px; background: var(--sos); color: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; text-decoration: none; }

/* Inhalt */
.hk-main { flex: 1; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 18px; }
.hk-section-title { margin: 4px 0 0; font-size: 19px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.hk-stack { display: flex; flex-direction: column; gap: 10px; }

.hk-sos-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 2px solid var(--sos); border-radius: 18px; padding: 14px 16px; min-height: 64px; text-decoration: none; color: var(--text); }
.hk-sos-card .hk-sos-dot { width: 48px; height: 48px; border-radius: 24px; background: var(--sos); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hk-sos-card strong { display: block; font-size: 18px; font-weight: 800; color: var(--sos); }
.hk-sos-card span { font-size: 14px; color: var(--muted); }

.hk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hk-tile { background: var(--card); border-radius: 22px; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 112px; text-decoration: none; color: var(--text); box-shadow: 0 2px 10px rgba(29, 29, 34, .05); }
.hk-tile b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.hk-tile small { font-size: 12px; color: #6B6B73; margin-top: auto; }
.hk-cat-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hk-cat-icon.lg { width: 60px; height: 60px; }

.hk-row { background: var(--card); border-radius: 20px; padding: 8px 14px 8px 12px; min-height: 60px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); box-shadow: 0 2px 10px rgba(29, 29, 34, .05); }
.hk-row .hk-row-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hk-row b { font-size: 16px; font-weight: 700; }
.hk-row small { font-size: 13px; color: #6B6B73; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hk-dot { width: 10px; height: 10px; border-radius: 5px; flex-shrink: 0; }
.hk-chev { color: #8A8A92; flex-shrink: 0; }
.hk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.hk-cat-head { display: flex; align-items: center; gap: 14px; padding: 4px 4px 0; }
.hk-cat-head h1, .hk-article-head h1, .hk-page-title { margin: 0; font: 800 30px/1.15 var(--head); letter-spacing: -0.01em; }
.hk-cat-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* Artikel */
.hk-article-head { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.hk-kicker { font-size: 15px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 32px; }
.hk-kicker .hk-cat-icon { width: 28px; height: 28px; }
.hk-kicker .hk-cat-icon svg { width: 16px; height: 16px; }
.hk-sos-banner { display: flex; align-items: center; gap: 12px; background: var(--sos); color: #fff; border-radius: var(--radius); padding: 14px 16px; min-height: 60px; text-decoration: none; }
.hk-sos-banner strong { display: block; font-size: 17px; font-weight: 800; }
.hk-sos-banner span { font-size: 13px; opacity: .92; }

.hk-article { background: var(--card); border-radius: 18px; padding: 18px 16px; font-size: 16.5px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.hk-article > *:first-child { margin-top: 0; }
.hk-article p { margin: 0 0 12px; }
.hk-article ul, .hk-article ol { margin: 0 0 14px; padding-left: 22px; }
.hk-article li { margin: 0 0 8px; padding-left: 2px; }
.hk-article li::marker { color: var(--brand); font-weight: 700; }
.hk-article strong, .hk-article b { font-weight: 700; }
.hk-article h2, .hk-article h3, .hk-article h4 { font-size: 18px; font-weight: 800; margin: 18px 0 8px; }
.hk-article blockquote { margin: 0 0 14px; padding: 12px 14px; background: var(--warn-bg); color: var(--warn-text); border-radius: 12px; }
.hk-article table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 15px; display: block; overflow-x: auto; }
.hk-article td, .hk-article th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
/* Abschnittsüberschriften im Artikel */
.hk-article .hk-box { margin: 22px 0 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--brand-tint); color: #0B4F4A; font-size: 18px; font-weight: 800; line-height: 1.3; display: flex; align-items: center; gap: 10px; }
.hk-article .hk-box:first-child { margin-top: 0; }
.hk-article .hk-box[data-kind=act] { background: #FDEBD7; color: #6B3A0C; }
.hk-article .hk-box-danger { background: #FDE7E7; color: #7A1515; }
.hk-box-icon { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
/* Hinweis am Ende („Wenn keine Besserung …“) */
.hk-article .hk-note { margin: 18px 0 8px; padding: 12px 14px; border-radius: 14px; background: var(--warn-bg); color: var(--warn-text); font-size: 15.5px; line-height: 1.5; font-weight: 500; }
/* Quelle / Link */
.hk-article .hk-source { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.hk-article .hk-source a { color: var(--muted); }
/* Maßnahmen als nummerierte Schritte */
.hk-article ul.hk-steps, .hk-article ol.hk-steps { list-style: none; padding-left: 0; counter-reset: hkstep; }
.hk-article .hk-steps > li { position: relative; padding-left: 40px; margin-bottom: 12px; min-height: 28px; counter-increment: hkstep; }
.hk-article .hk-steps > li::before { content: counter(hkstep); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
/* Rufnummern als Anruf-Liste */
.hk-article .hk-phones { list-style: none; margin: 4px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hk-article .hk-phones li { margin: 0; padding: 0; }
.hk-article .hk-phone { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--bg); color: var(--text); text-decoration: none; }
.hk-article .hk-phone:active { background: var(--brand-tint); }
.hk-phone-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hk-phone-text b { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.hk-phone-text span { font-size: 15px; font-weight: 600; color: var(--brand); letter-spacing: .02em; }
.hk-phone-call { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hk-article .hk-phone-urgent { background: #FDECEC; }
.hk-phone-urgent .hk-phone-text span { color: var(--sos); font-size: 18px; font-weight: 800; }
.hk-phone-urgent .hk-phone-call { background: var(--sos); }
.hk-article a.hk-tel { color: var(--sos); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.hk-article a { color: #0B5E91; }

.hk-meta { margin: 0; padding: 0 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.hk-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hk-chip { min-height: 44px; padding: 0 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); color: var(--text); display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; text-decoration: none; }

/* Formulare */
.hk-auth-hero { color: #fff; padding: calc(48px + var(--safe-top)) 28px 72px; display: flex; flex-direction: column; gap: 14px; }
.hk-auth-hero h1 { margin: 0; font: 800 32px/1.15 var(--head); letter-spacing: -0.01em; }
.hk-auth-hero p { margin: 0; font-size: 16px; opacity: .95; }
.hk-auth-logo { width: 56px; height: 56px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; }
.hk-auth-logo img { width: 44px; height: 44px; }
.hk-form { position: relative; z-index: 1; margin: -40px 16px 0; background: var(--card); border-radius: 22px; padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 8px 24px rgba(29,29,34,.08); }
.hk-field { display: flex; flex-direction: column; gap: 6px; }
.hk-field label { font-size: 14px; font-weight: 700; }
.hk-field input[type=text], .hk-field input[type=email] { height: 52px; border: 1.5px solid #CFCCC6; border-radius: 14px; padding: 0 16px; font-size: 18px; font-weight: 600; background: #fff; }
.hk-field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-tint); }
.hk-field input[type=password] { height: 52px; border: 1.5px solid #CFCCC6; border-radius: 14px; padding: 0 52px 0 16px; font-size: 18px; font-weight: 600; background: #fff; width: 100%; letter-spacing: .15em; }
.hk-pass { position: relative; }
.hk-pass input[type=text] { width: 100%; padding-right: 52px; }
.hk-pass .hk-reveal { position: absolute; right: 4px; top: 4px; color: var(--muted); }
.hk-pass .hk-reveal[aria-pressed=true] { color: var(--brand); }
.hk-field .hk-code-input { height: 56px; font: 700 22px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .25em; text-transform: uppercase; }
.hk-field small { font-size: 13px; color: var(--muted); }
.hk-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hk-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.hk-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.hk-btn { height: 56px; border: 0; border-radius: 28px; background: var(--cta); color: var(--cta-text); font-size: 17px; font-weight: 800; cursor: pointer; }
.hk-btn:hover { background: var(--cta-hover); }
.hk-btn[disabled] { opacity: .6; cursor: wait; }
.hk-btn-secondary { background: transparent; border: 1.5px solid var(--line); color: var(--text); }
.hk-btn-secondary:hover { background: var(--bg); }
.hk-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hk-links a, .hk-linkbtn { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; color: #0F6A63; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.hk-alert { border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.hk-alert-error { background: #FDE7E7; color: #7A1515; }
.hk-alert-ok { background: var(--brand-tint); color: #0B4F4A; }
.hk-tip { margin: 18px 16px 0; background: var(--card); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--text-2); }
.hk-disclaimer { margin: auto 24px calc(24px + var(--safe-bottom)); padding-top: 24px; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }

.hk-banner { margin: 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-text); font-size: 14px; }
.hk-empty { padding: 24px 8px; text-align: center; color: var(--muted); }
mark { background: #FFE9B8; color: inherit; border-radius: 3px; padding: 0 1px; }

/* Menü */
.hk-profile { background: var(--card); border-radius: 22px; padding: 16px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 10px rgba(29, 29, 34, .05); }
.hk-profile-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hk-profile b { font-size: 18px; }
.hk-code-chip { font: 700 14px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; color: var(--text); }
.hk-row-btn { width: 100%; border: 0; text-align: left; cursor: pointer; font: inherit; }
.hk-row-btn[disabled] { opacity: .7; cursor: wait; }
.hk-ok { color: var(--brand); flex-shrink: 0; }
.hk-btn-logout { background: var(--card); color: var(--sos); border: 1.5px solid #F2C9C9; box-shadow: 0 2px 10px rgba(29, 29, 34, .05); }
.hk-btn-logout:hover { background: #FDF1F1; }
.hk-center { text-align: center; }
.hk-btn-secondary { background: var(--card); }

/* Navigation unten */
.hk-nav { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 8px calc(8px + var(--safe-bottom)); z-index: 5; }
.hk-nav a { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.hk-nav a[aria-current=page] { color: var(--brand); font-weight: 700; }

@media (min-width: 641px) {
  #app { box-shadow: 0 0 0 1px var(--line); }
}
@media (prefers-reduced-motion: no-preference) {
  .hk-tile, .hk-row, .hk-chip { transition: transform .12s ease; }
  .hk-tile:active, .hk-row:active, .hk-chip:active { transform: scale(.98); }
}

/* ---------- Sprachen / Rechts-nach-links (Arabisch, Persisch) ---------- */
.hk-lang-field { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.hk-lang-field label { font-weight: 700; font-size: 14px; color: var(--muted); }
.hk-lang-select { flex: 1; height: 44px; border: 1.5px solid #CFCCC6; border-radius: 12px; padding: 0 12px; background: #fff; font: inherit; font-weight: 600; color: var(--text); }
.hk-lang-list .hk-row[aria-current="true"] { background: var(--brand-tint); }
[dir="rtl"] .hk-chev svg, [dir="rtl"] .hk-topbar > .hk-iconbtn svg { transform: scaleX(-1); }
[dir="rtl"] .hk-searchbox svg { left: auto; right: 17px; }
[dir="rtl"] .hk-searchbox input { padding: 0 46px 0 18px; }
[dir="rtl"] .hk-hero h1::after { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .hk-article ul, [dir="rtl"] .hk-article ol { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .hk-article li { padding-left: 0; padding-right: 2px; }
[dir="rtl"] .hk-article td, [dir="rtl"] .hk-article th { text-align: right; }
[dir="rtl"] .hk-article ul.hk-steps, [dir="rtl"] .hk-article ol.hk-steps { padding-right: 0; }
[dir="rtl"] .hk-article .hk-steps > li { padding-left: 0; padding-right: 40px; }
[dir="rtl"] .hk-article .hk-steps > li::before { left: auto; right: 0; }
[dir="rtl"] .hk-pass input[type=text], [dir="rtl"] .hk-pass input[type=password] { padding-right: 14px; padding-left: 52px; }
[dir="rtl"] .hk-pass .hk-reveal { right: auto; left: 4px; }
[dir="rtl"] .hk-row-btn { text-align: right; }
/* Codes, Postleitzahlen und Rufnummern bleiben links-nach-rechts */
[dir="rtl"] .hk-code-input, [dir="rtl"] #zip, [dir="rtl"] #a-zip, [dir="rtl"] .hk-code-chip, [dir="rtl"] .hk-phone-text span, [dir="rtl"] input[type=email] { direction: ltr; text-align: right; }

/* Elternratgeber: noch leere Unterpunkte */
.hk-row-soon { cursor: default; }
.hk-row-soon .hk-cat-icon, .hk-row-soon .hk-row-text { opacity: .55; }
.hk-soon { flex: none; font-size: 12px; font-weight: 700; color: var(--muted); background: #EEEDEA; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.hk-cat-head .hk-kicker { display: inline-block; margin-bottom: 2px; font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; }

/* Produktempfehlungen */
.hk-ad-note { margin: 18px 0 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.hk-ad-note b { display: inline-block; margin-inline-end: 4px; padding: 1px 8px; border-radius: 999px; background: #EEEDEA; color: var(--text); font-size: 12px; }
.hk-products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hk-product { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.hk-product img, .hk-product-noimg { flex: none; width: 96px; height: 96px; border-radius: 12px; object-fit: contain; background: #F6F5F2; }
.hk-product-noimg { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.hk-product-body { flex: 1; min-width: 0; }
.hk-product-body b { display: block; font-size: 16px; line-height: 1.3; }
.hk-product-body p { margin: 4px 0 10px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.hk-btn.hk-btn-shop { display: inline-flex; align-items: center; width: auto; height: auto; min-height: 40px; border-radius: 20px; padding: 8px 16px; font-size: 14px; text-decoration: none; }

/* lange Überschriften (z. B. „Produktempfehlungen“) umbrechen statt abschneiden */
.hk-cat-head > div { min-width: 0; }
.hk-cat-head h1, .hk-page-title, .hk-article-head h1 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.hk-cat-head h1.hk-h1-long { font-size: 24px; }

/* Produktkarte: Knopf mit Pfeil (Text immer vollständig, max. 400 Zeichen) */
.hk-btn.hk-btn-shop { gap: 6px; }
.hk-btn.hk-btn-shop svg { flex: none; }
[dir="rtl"] .hk-btn.hk-btn-shop svg { transform: scaleX(-1); }

/* Produktseiten: Kopf als Karte im HELPLUS-Mint, Werbehinweis als weiße Karte */
.hk-cat-head.hk-cat-head-card { background: linear-gradient(135deg, #DDF1EC 0%, #EAF6F2 100%); border-radius: 22px; padding: 18px; align-items: center; }
.hk-cat-head.hk-cat-head-card .hk-cat-icon.lg { background: #fff !important; box-shadow: 0 4px 12px rgba(19, 124, 116, .12); }
.hk-cat-head.hk-cat-head-card .hk-kicker { color: var(--brand); }
.hk-ad-note { margin: 14px 0 12px; padding: 12px 14px; background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05); display: flex; gap: 10px; align-items: flex-start; }
.hk-ad-note p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.hk-ad-badge { flex: none; margin-top: 1px; padding: 2px 9px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }

/* Produkte als Raster: 2 Spalten, ein einzelnes Produkt volle Breite */
.hk-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hk-products > li:only-child { grid-column: 1 / -1; }
.hk-product { flex-direction: column; gap: 10px; padding: 12px; align-items: stretch; }
.hk-product-open { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; text-align: start; font: inherit; color: inherit; cursor: pointer; }
.hk-product-open b { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hk-product-text { font-size: 13.5px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hk-more { font-size: 13px; font-weight: 800; color: var(--brand); margin-top: 2px; }
.hk-product .hk-btn.hk-btn-shop { justify-content: center; width: 100%; padding: 8px 10px; font-size: 13.5px; }
.hk-products > li:only-child .hk-btn.hk-btn-shop { width: auto; align-self: flex-start; padding: 8px 16px; }
/* Große Produktansicht */
.hk-noscroll, .hk-noscroll body { overflow: hidden; }
.hk-sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(20, 30, 30, .45); display: flex; align-items: flex-end; justify-content: center; animation: hk-fade .18s ease-out; }
.hk-sheet { position: relative; width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.18); animation: hk-up .24s cubic-bezier(.2,.8,.2,1); }
.hk-sheet h2 { margin: 10px 40px 8px 0; font-size: 21px; line-height: 1.25; }
[dir="rtl"] .hk-sheet h2 { margin: 10px 0 8px 40px; }
.hk-sheet p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.55; color: var(--text); }
.hk-sheet img { display: block; width: 100%; max-height: 260px; object-fit: contain; margin: 12px 0 4px; border-radius: 14px; background: #F6F5F2; }
.hk-sheet .hk-btn.hk-btn-shop { width: 100%; justify-content: center; min-height: 48px; font-size: 15px; }
.hk-sheet small { display: block; margin-top: 14px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.hk-sheet-close { position: absolute; top: 12px; inset-inline-end: 12px; }
@keyframes hk-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes hk-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hk-sheet, .hk-sheet-backdrop { animation: none; } }
.hk-products > li:only-child .hk-product-text { -webkit-line-clamp: 6; }
.hk-product .hk-btn.hk-btn-shop { white-space: nowrap; }

/* Themen A–Z */
.hk-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 10px; }
.hk-filter { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1.5px solid #E2E0DB; color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }
.hk-filter.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.hk-az-jump { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.hk-az-letter { min-width: 32px; height: 32px; border: 0; border-radius: 10px; background: var(--brand-tint); color: var(--brand); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.hk-az-head { position: sticky; top: calc(61px + var(--safe-top, 0px)); z-index: 2; margin: 16px 0 8px; padding: 2px 0; font-size: 20px; font-weight: 800; color: var(--brand); background: linear-gradient(var(--bg, #F5F4F1) 70%, transparent); }

/* Zwischenüberschriften (H3) in Artikeln: Band in HELPLUS-Mint mit Petrol-Balken links */
.hk-article h3 { color: #0B5E57; background: var(--brand-tint); border-inline-start: 6px solid var(--brand); border-radius: 4px 16px 16px 4px;
  padding: 9px 14px; margin: 24px 0 12px; font-size: 19px; line-height: 1.3; }
[dir="rtl"] .hk-article h3 { border-radius: 16px 4px 4px 16px; }

/* Menü: Profilkasten – Gruß und Hinweis untereinander, mehr Luft */
.hk-profile { padding: 18px; margin-top: 4px; }
.hk-profile .hk-row-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hk-profile .hk-row-text small { font-size: 13.5px; color: var(--muted); }
.hk-profile .hk-code-chip { flex: none; }

/* Anmelden/Aktivieren: Sprachauswahl oben rechts im Kopfbereich (bei Arabisch/Persisch oben links) */
.hk-auth-hero { position: relative; }
.hk-auth-hero .hk-lang-field { position: absolute; top: calc(14px + var(--safe-top)); inset-inline-end: 16px; z-index: 3; margin: 0; gap: 0;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 0 4px 0 10px; color: #fff; backdrop-filter: blur(4px); }
.hk-auth-hero .hk-lang-field svg { color: #fff !important; flex: none; }
.hk-auth-hero .hk-lang-select { flex: none; height: 36px; border: 0; background: transparent; color: #fff; font-size: 14px; font-weight: 700; padding: 0 8px 0 6px; cursor: pointer; }
.hk-auth-hero .hk-lang-select option { color: #1D1D22; }
.hk-auth-hero .hk-lang-select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 999px; }
