/* Heimzugang – eigenständiges Stylesheet (unabhängig vom Theme). Farben wie ecorpus.de: Lila/Weiß. */
@font-face{font-family:"Inter Tight";src:url(fonts/inter-tight-var.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url(fonts/instrument-serif-italic.woff2) format("woff2");font-style:italic;font-weight:400;font-display:swap}
:root{--p:#6236F5;--p-hi:#7A4DFF;--p-deep:#4B23C8;--dark:#1C1748;--ink:#383673;--lilac:#B9A6FF;--lilac2:#D9CEFF;--tint:#F4F1FF;--tint2:#FAF9FD;--text:#0F0C24;--muted:#5E5A7A;--line:rgba(15,12,36,.12);--ok:#127a4b;--err:#b3261e;--r:22px;--rs:14px;--shadow:0 30px 80px -30px rgba(28,23,72,.35),0 10px 30px -12px rgba(28,23,72,.18);--wrap:1200px;--g:clamp(1.1rem,4vw,2.25rem)}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.hp{margin:0;font-family:"Inter Tight",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:1.0625rem;line-height:1.6;color:var(--text);background:#fff;-webkit-font-smoothing:antialiased}
.hp h1,.hp h2,.hp h3{color:var(--dark);line-height:1.15;letter-spacing:-.02em;margin:0 0 .6em}
.hp h1{font-size:clamp(1.9rem,4.2vw,3.1rem);font-weight:750}
.hp h2{font-size:clamp(1.5rem,2.8vw,2.2rem);font-weight:720}
.hp h3,.hp .hp-h3{font-size:1.2rem;font-weight:700}
.hp h1 em{font-family:"Instrument Serif",Georgia,serif;font-style:italic;font-weight:400;color:var(--p);letter-spacing:0}
.hp a{color:var(--p-deep)}
.hp a:hover{color:var(--dark)}
.hp :focus-visible{outline:3px solid var(--p);outline-offset:3px;border-radius:6px}
.hp p{margin:0 0 1em}
.hp-wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--g)}
.hp-narrow{max-width:760px}
.hp-skip{position:absolute;left:-9999px;top:0;background:var(--dark);color:#fff;padding:.6rem 1rem;z-index:99}
.hp-skip:focus{left:1rem;top:1rem;color:#fff}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.hp-muted{color:var(--muted)}
.hp-small{font-size:.92rem;color:var(--muted)}
.hp-nowrap{white-space:nowrap}
.hp-pruefen{display:inline-block;margin-left:.4rem;padding:.05rem .45rem;border-radius:6px;background:#FFE08A;color:#5a4200;font-size:.72rem;font-weight:800;letter-spacing:.05em;vertical-align:middle;cursor:help}

/* Header */
.hp-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.hp-header__in{display:flex;align-items:center;gap:1rem;min-height:74px}
.hp-brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--ink);margin-right:auto}
.hp-brand img{width:54px;height:48px;flex:none}
.hp-brand b{display:block;font-size:1.12rem;font-weight:760;color:var(--ink);letter-spacing:-.01em;line-height:1.2}
.hp-brand small{display:block;font-size:.8rem;color:var(--muted);font-weight:500}
.hp-header__actions{display:flex;align-items:center;gap:.6rem}
.hp-phone{display:flex;flex-direction:column;text-decoration:none;color:var(--dark);line-height:1.2;margin-right:.4rem}
.hp-phone__l{font-size:.74rem;color:var(--muted)}
.hp-phone__n{font-weight:700;white-space:nowrap}
.hp-who{font-weight:650;color:var(--ink);max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hp-inline{display:inline;margin:0}
.hp-nav{border-top:1px solid var(--line);background:#fff}
.hp-nav__in{display:flex;gap:.25rem;overflow-x:auto;scrollbar-width:none}
.hp-nav__in::-webkit-scrollbar{display:none}
.hp-nav a{padding:.8rem .9rem;text-decoration:none;color:var(--ink);font-weight:600;white-space:nowrap;border-bottom:3px solid transparent}
.hp-nav a:hover{color:var(--p)}
.hp-nav a[aria-current=page]{color:var(--p);border-bottom-color:var(--p)}
.hp-nav__cta{margin-left:auto;color:var(--p)!important}

/* Buttons */
.hp-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border-radius:999px;padding:.65rem 1.2rem;font:inherit;font-weight:650;font-size:.98rem;line-height:1.2;text-decoration:none;white-space:nowrap;cursor:pointer;border:2px solid var(--p);transition:background .2s,color .2s,border-color .2s}
.hp-btn--primary{background:var(--p);color:#fff!important}
.hp-btn--primary:hover{background:var(--dark);border-color:var(--dark)}
.hp-btn--outline{background:#fff;color:var(--p)!important}
.hp-btn--outline:hover{background:var(--tint);color:var(--dark)!important}
.hp-btn--ghost{background:transparent;border-color:transparent;color:var(--ink)!important}
.hp-btn--ghost:hover{background:var(--tint)}
.hp-btn--danger{background:#fff;border-color:var(--err);color:var(--err)!important}
.hp-btn--danger:hover{background:#fdecea}
.hp-btn--lg{padding:.85rem 1.5rem;font-size:1.04rem}
.hp-btn--block{width:100%}
.hp-actions{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;margin:1.2rem 0}

/* Abschnitte */
.hp-section{padding:clamp(2.5rem,6vw,5rem) 0}
.hp-section--tint{background:var(--tint2)}
.hp-section--lila{background:var(--tint)}
.hp-eyebrow{display:inline-block;font-size:.82rem;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:var(--p);margin-bottom:.5rem!important}
.hp-lead{font-size:clamp(1.08rem,1.6vw,1.25rem);color:var(--ink);max-width:40em}
.hp-lead-s{color:var(--ink)}
.hp-hero{background:radial-gradient(1200px 500px at 85% -10%,var(--lilac2) 0,transparent 60%),linear-gradient(180deg,var(--tint) 0,#fff 100%);padding:clamp(2.5rem,7vw,5.5rem) 0}
.hp-hero__in{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:center}
.hp-mock{background:#fff;border-radius:var(--r);box-shadow:var(--shadow);padding:1.2rem 1.2rem 1.4rem;border:1px solid var(--line)}
.hp-mock__head{display:flex;gap:.35rem;margin-bottom:.9rem}
.hp-mock__head span{width:10px;height:10px;border-radius:50%;background:var(--lilac2)}
.hp-mock__title{font-weight:750;color:var(--dark);margin-bottom:.6rem!important}
.hp-mock__row{display:grid;grid-template-columns:1fr auto;gap:.1rem .8rem;align-items:center;padding:.7rem .2rem;border-top:1px solid var(--line)}
.hp-mock__row b{color:var(--ink)}
.hp-mock__row i{font-style:normal;font-size:.85rem;color:var(--muted);grid-row:2}
.hp-mock__row .hp-badge{grid-row:1/span 2;grid-column:2}
.hp-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:1.1rem;margin-top:1.5rem}
.hp-card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1.5rem}
.hp-card p{color:var(--muted);margin:0}
.hp-card--flat{padding:clamp(1.1rem,2.5vw,1.8rem);margin-bottom:1.4rem}
.hp-card__head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap}
.hp-ico{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--tint);color:var(--p);font-weight:800;margin-bottom:.8rem}
.hp-steps{list-style:none;counter-reset:s;padding:0;margin:1.5rem 0;display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem}
.hp-steps li{counter-increment:s;background:#fff;border-radius:var(--r);padding:1.5rem;border:1px solid var(--line);position:relative}
.hp-steps li::before{content:counter(s);display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--p);color:#fff;font-weight:800;margin-bottom:.8rem}
.hp-steps p{color:var(--muted);margin:0}
.hp-split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3rem);align-items:start}
.hp-panel{background:var(--tint);border-radius:var(--r);padding:clamp(1.3rem,3vw,2rem)}
.hp-statuslist{list-style:none;padding:0;margin:0}
.hp-statuslist li{display:grid;grid-template-columns:12.5rem 1fr;gap:.8rem;align-items:center;padding:.6rem 0;border-bottom:1px solid var(--line)}
.hp-statuslist .hp-badge{justify-self:start}
@media (max-width:640px){.hp-statuslist li{grid-template-columns:1fr;gap:.3rem}}
.hp-check{list-style:none;padding:0;margin:0 0 1rem}
.hp-check li{position:relative;padding-left:1.8rem;margin-bottom:.5rem}
.hp-check li::before{content:"";position:absolute;left:0;top:.3em;width:1.1rem;height:1.1rem;border-radius:50%;background:var(--p) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/80% no-repeat}
.hp-contact{display:flex;justify-content:space-between;gap:2rem;align-items:center;flex-wrap:wrap}
.hp-contact__items{display:flex;gap:1rem;flex-wrap:wrap}
.hp-contact__item{background:#fff;border-radius:var(--rs);padding:.9rem 1.2rem;text-decoration:none;color:var(--dark);min-width:200px}
.hp-contact__item small{display:block;color:var(--muted);font-size:.8rem}

/* Badges */
.hp-badge{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;padding:.22rem .7rem;font-size:.82rem;font-weight:700;white-space:nowrap;background:var(--tint);color:var(--p-deep)}
.hp-badge::before{content:"";width:.5rem;height:.5rem;border-radius:50%;background:currentColor}
.hp-badge--eingegangen{background:#EEE9FF;color:#4B23C8}
.hp-badge--arzt_angefragt{background:#FFF1D6;color:#8a5300}
.hp-badge--vo_liegt_vor{background:#E0F0FF;color:#0b5394}
.hp-badge--erledigt{background:#E3F5EC;color:#127a4b}
.hp-badge--abgelehnt{background:#FDECEA;color:#b3261e}

/* Formulare */
.hp-auth__in{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,3rem);align-items:start}
.hp-auth__box{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:clamp(1.3rem,3.5vw,2.4rem);box-shadow:var(--shadow);max-width:760px}
.hp-auth__aside{background:var(--tint);border-radius:var(--r);padding:1.6rem}
.hp-auth .hp-auth__in:not(:has(aside)){grid-template-columns:minmax(0,560px);justify-content:center}
.hp-form fieldset{border:0;padding:0;margin:0 0 1.2rem}
.hp-form legend{font-weight:750;color:var(--dark);font-size:1.08rem;margin-bottom:.6rem;padding:0}
.hp-field{margin:0 0 1rem}
.hp-field label{display:block;font-weight:650;color:var(--dark);margin-bottom:.3rem}
.hp-req{color:var(--p)}
.hp-opt{font-weight:400;color:var(--muted);font-size:.9rem}
.hp-help{display:block;color:var(--muted);font-size:.88rem;margin-top:.3rem}
.hp input[type=text],.hp input[type=email],.hp input[type=tel],.hp input[type=password],.hp input[type=date],.hp input[type=number],.hp select,.hp textarea{width:100%;font:inherit;font-size:1rem;padding:.72rem .9rem;border:1.5px solid #cfc8e8;border-radius:12px;background:#fff;color:var(--text);min-height:48px}
.hp textarea{min-height:110px;resize:vertical}
.hp input:focus,.hp select:focus,.hp textarea:focus{border-color:var(--p);outline:3px solid rgba(98,54,245,.18);outline-offset:0}
.hp input[type=file]{font:inherit;width:100%;padding:.9rem;border:2px dashed var(--lilac);border-radius:12px;background:var(--tint2)}
.hp-row{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
.hp-row--plz{grid-template-columns:9rem 1fr}
.hp-check-field label{display:flex;gap:.7rem;align-items:flex-start;font-weight:500}
.hp-check-field input{width:1.25rem;height:1.25rem;margin-top:.2rem;accent-color:var(--p);flex:none}
.hp-tiles{display:flex;flex-wrap:wrap;gap:.6rem}
.hp-tile{position:relative;cursor:pointer}
.hp-tile input{position:absolute;opacity:0;width:1px;height:1px}
.hp-tile span{display:inline-block;padding:.7rem 1.2rem;border:1.5px solid #cfc8e8;border-radius:12px;font-weight:650;color:var(--ink);background:#fff}
.hp-tile input:checked+span{border-color:var(--p);background:var(--tint);color:var(--p-deep);box-shadow:inset 0 0 0 1px var(--p)}
.hp-tile input:focus-visible+span{outline:3px solid var(--p);outline-offset:2px}
.hp-choice{margin-bottom:1.1rem!important}
.hp-strength{font-size:.88rem;margin-top:-.4rem;min-height:1.2em}
.hp-strength.is-ok{color:var(--ok)}.hp-strength.is-weak{color:#8a5300}
.hp-between{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.95rem}
.hp-hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.hp-mini-steps{padding-left:1.2rem;margin:0 0 1rem}
.hp-notice{border-radius:var(--rs);padding:1rem 1.2rem;margin:0 0 1.2rem;border:1px solid}
.hp-notice ul{margin:.4rem 0 0;padding-left:1.2rem}
.hp-notice--ok{background:#E3F5EC;border-color:#b6e2cb;color:#0d5535}
.hp-notice--err{background:#FDECEA;border-color:#f3c1bd;color:#8c1d16}
.hp-notice--info{background:var(--tint);border-color:var(--lilac2);color:var(--ink)}
.hp-danger{border:1px solid #f3c1bd;border-radius:var(--r);padding:1.3rem;margin-top:1.5rem;background:#fffafa}

/* Portal */
.hp-portal{padding-top:2rem}
.hp-pagehead{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;flex-wrap:wrap;margin-bottom:1.4rem}
.hp-pagehead h1{font-size:clamp(1.6rem,3vw,2.3rem);margin-bottom:.2em}
.hp-pagehead .hp-actions{margin:0}
.hp-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:.9rem;margin-bottom:1.4rem}
.hp-stat{background:var(--tint);border-radius:var(--rs);padding:1rem 1.1rem;text-decoration:none;color:var(--ink);display:flex;flex-direction:column}
.hp-stat:first-child{background:var(--p);color:#fff}
.hp-stat b{font-size:2rem;line-height:1.1;font-weight:780}
.hp-stat span{font-size:.9rem}
.hp-stat:hover{outline:2px solid var(--p)}
.hp-table-wrap{overflow-x:auto}
.hp-table{width:100%;border-collapse:collapse;font-size:.97rem}
.hp-table th{text-align:left;font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:700;padding:.6rem .7rem;border-bottom:2px solid var(--line)}
.hp-table td{padding:.8rem .7rem;border-bottom:1px solid var(--line);vertical-align:top}
.hp-table tr:hover td{background:var(--tint2)}
.hp-link{font-weight:650}
.hp-empty{padding:1.5rem;text-align:center;color:var(--muted);background:var(--tint2);border-radius:var(--rs)}
.hp-tabs{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:1rem}
.hp-tabs a{padding:.45rem .9rem;border-radius:999px;background:var(--tint2);border:1px solid var(--line);text-decoration:none;color:var(--ink);font-weight:600;font-size:.92rem}
.hp-tabs a span{color:var(--muted);font-weight:500}
.hp-tabs a[aria-current=page]{background:var(--p);color:#fff;border-color:var(--p)}
.hp-tabs a[aria-current=page] span{color:#e9e3ff}
.hp-grid2{display:grid;grid-template-columns:1.3fr 1fr;gap:1.4rem;align-items:start}
.hp-dl{display:grid;grid-template-columns:minmax(9rem,auto) 1fr;gap:.55rem 1rem;margin:0}
.hp-dl dt{color:var(--muted);font-weight:600}
.hp-dl dd{margin:0}
.hp-timeline{list-style:none;padding:0;margin:0 0 1rem;border-left:2px solid var(--lilac2)}
.hp-timeline li{padding:0 0 1rem 1rem;position:relative}
.hp-timeline li::before{content:"";position:absolute;left:-7px;top:.45rem;width:12px;height:12px;border-radius:50%;background:var(--p)}
.hp-timeline__head{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap}
.hp-timeline time{font-size:.88rem;color:var(--muted)}
.hp-note{background:var(--tint);border-radius:12px;padding:.7rem .9rem;margin:.5rem 0 0;font-size:.95rem}

/* Footer */
.hp-footer{background:var(--dark);color:#d9d3f5;padding:2.2rem 0;font-size:.95rem;margin-top:2rem}
.hp-footer a{color:#fff}
.hp-footer strong{color:#fff}
.hp-footer__in{display:grid;grid-template-columns:1.2fr 1.2fr 1fr;gap:1.5rem}
.hp-footer__links{display:flex;flex-direction:column;gap:.3rem}

/* Responsiv */
@media (max-width:1000px){.hp-cards{grid-template-columns:repeat(2,1fr)}.hp-stats{grid-template-columns:repeat(3,1fr)}.hp-phone{display:none}}
@media (max-width:860px){.hp-hero__in,.hp-split,.hp-auth__in,.hp-grid2{grid-template-columns:1fr}.hp-steps{grid-template-columns:1fr}.hp-footer__in{grid-template-columns:1fr}.hp-hero__card{order:2}}
@media (max-width:640px){
	body.hp{font-size:1rem}
	.hp-cards{grid-template-columns:1fr}
	.hp-row,.hp-row--plz{grid-template-columns:1fr}
	.hp-stats{grid-template-columns:repeat(2,1fr)}
	.hp-hide-s,.hp-who{display:none}
	.hp-brand small{display:none}
	.hp-header__in{min-height:64px}
	.hp-brand img{width:44px;height:39px}
	.hp-table thead{display:none}
	.hp-table,.hp-table tbody,.hp-table tr,.hp-table td{display:block;width:100%}
	.hp-table tr{border:1px solid var(--line);border-radius:var(--rs);margin-bottom:.8rem;padding:.4rem .2rem}
	.hp-table td{border:0;padding:.3rem .8rem;display:flex;gap:.8rem}
	.hp-table td[data-l]::before{content:attr(data-l);min-width:7.5rem;color:var(--muted);font-size:.85rem;font-weight:600}
	.hp-dl{grid-template-columns:1fr}.hp-dl dd{margin-bottom:.5rem}
	.hp-actions .hp-btn--lg{width:100%}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* --- v1.1: 2FA, Team, Bewohner-Status --- */
.hp-who small{display:block;font-size:.78em;font-weight:400;opacity:.75}
.hp-setup{padding-left:1.2em;display:grid;gap:1.1rem}
.hp-setup li{line-height:1.5}
.hp-qr-box{margin:.75rem 0;display:inline-block;padding:.5rem;background:#fff;border:1px solid #e3dcfb;border-radius:12px}
.hp-qr-box svg{display:block;max-width:100%;height:auto}
.hp-secret{font-size:1.05rem;letter-spacing:.06em;word-break:break-all;background:#f4f1fe;padding:.35rem .5rem;border-radius:6px}
.hp-codes{list-style:none;padding:0;margin:1rem 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;max-width:360px}
.hp-codes code{display:block;text-align:center;font-size:1.1rem;padding:.45rem;border:1px dashed #b9a8f7;border-radius:8px;background:#faf9ff}
.hp-radio{display:block;margin:.3rem 0}
.hp-link-btn{background:none;border:0;padding:0;color:#6236F5;text-decoration:underline;cursor:pointer;font:inherit;font-size:.92em}
.hp-link-btn--danger{color:#b42318}
.hp-actions-cell{display:flex;flex-wrap:wrap;gap:.35rem .8rem}
@media print{.hp-header,.hp-footer,.hp-actions{display:none}.hp-codes code{border-color:#000}}
