:root{--brand:#176b60;--ink:#213a39;--muted:#617471;--paper:#f7f8f3;--line:#dce5dd;--soft:#e6f0e7;--gold:#e8bf5a;--radius:20px;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--paper);font-size:16px;line-height:1.55}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,.button{cursor:pointer;border:0;border-radius:11px;background:var(--brand);color:white;padding:12px 19px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;gap:8px;min-height:46px}button:hover,.button:hover{filter:brightness(.94)}button:disabled{opacity:.55;cursor:wait}.secondary{background:white;color:var(--ink);border:1px solid var(--line)}.quiet{color:var(--ink);background:transparent;padding:8px 10px}.danger{background:#8b4035}a{color:var(--brand);text-underline-offset:3px}input,select,textarea{width:100%;border:1px solid #b8cac1;border-radius:9px;background:#fff;padding:11px 12px;color:var(--ink);min-width:0}input[type=checkbox],input[type=radio]{width:20px;height:20px;accent-color:var(--brand)}input[type=range]{padding:0;accent-color:var(--brand)}textarea{resize:vertical;min-height:100px}label{display:grid;gap:7px;font-size:.9rem;font-weight:600}label small{font-weight:400;color:var(--muted)}:focus-visible{outline:3px solid #d69328;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,4.5vw,3.5rem);line-height:1.1;letter-spacing:-.045em;font-weight:650;margin-bottom:20px}h2{font-size:1.35rem;letter-spacing:-.025em;line-height:1.25}h3{font-size:1.05rem}p{margin-bottom:16px}small,.small{font-size:.82rem}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.72rem;font-weight:750;color:var(--brand);margin-bottom:14px}.header{padding:20px 4vw;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px;justify-content:space-between}.brand{display:flex;gap:12px;align-items:center;min-width:0}.brand img{width:auto;max-width:190px;height:45px;object-fit:contain}.brand span{font-size:1.2rem;font-weight:750;letter-spacing:-.035em}.brand small{display:block;font-size:.65rem;color:var(--muted);font-weight:550;letter-spacing:.14em;text-transform:uppercase}.header-actions{display:flex;gap:10px;align-items:center}.avatar{background:var(--soft);width:40px;height:40px;display:grid;place-items:center;border-radius:50%;font-weight:700}.layout{max-width:1480px;margin:auto;display:grid;grid-template-columns:235px 1fr;min-height:80vh}.sidebar{padding:32px 18px;border-right:1px solid var(--line)}.sidebar nav{display:grid;gap:8px;margin:25px 0}.navlink{display:flex;align-items:center;gap:13px;padding:11px 14px;color:var(--muted);font-size:.92rem;text-decoration:none;border-radius:10px;font-weight:600}.navlink.active{background:var(--soft);color:var(--brand)}.navlink span:first-child{font-size:1.15rem}.sidebar .contact{margin-top:40px;background:#eef1e8;border-radius:14px;padding:17px;font-size:.83rem;overflow-wrap:anywhere}.contact p{margin-bottom:8px}.content{padding:36px 42px 70px;min-width:0}.intro-row{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}.intro-row h1{font-size:2.2rem;margin-bottom:8px}.intro-row p{margin-bottom:0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{padding:26px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);min-width:0}.card p:last-child{margin-bottom:0}.card.soft{background:var(--soft)}.card-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.card-head h2{margin-bottom:8px}.badge{display:inline-block;padding:4px 10px;border-radius:30px;background:var(--soft);font-size:.73rem;font-weight:650;color:var(--brand);white-space:nowrap}.badge.warn{background:#fff1d2;color:#755013}.hero{border-radius:24px;background:#e6eee3;display:grid;grid-template-columns:1.2fr 1fr;overflow:hidden;min-height:270px;margin-bottom:26px}.hero-copy{padding:34px 38px}.hero h1{font-size:2.7rem;max-width:520px}.hero p{max-width:470px;color:#49635b}.house{display:grid;place-items:center;background:radial-gradient(ellipse,#f9faed,transparent 65%);padding:18px}.house svg{width:100%;max-height:290px}.journey{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 28px;padding:0;list-style:none}.journey li{border-top:3px solid var(--line);padding:12px 4px;font-size:.78rem;color:var(--muted)}.journey li.current,.journey li.done{border-color:var(--brand);color:var(--brand)}.journey li strong{display:block;font-size:.9rem}.journey li.current strong:after{content:' · aktuell';font-size:.68rem}.action-card{display:flex;gap:16px;align-items:start}.icon-box{height:45px;width:45px;flex:0 0 45px;display:grid;place-items:center;background:var(--soft);border-radius:12px;font-size:1.3rem}.action-card a{font-weight:650;font-size:.85rem}.action-card h3{margin-bottom:6px}.action-card p{font-size:.85rem;color:var(--muted);margin-bottom:9px}.section-title{display:flex;justify-content:space-between;align-items:center;margin:30px 0 14px}.section-title h2{margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.wide{grid-column:1/-1}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;align-items:center}.stack{display:grid;gap:18px}.spaced{margin-top:24px}.empty{padding:25px;border:1px dashed #b9cbc0;border-radius:14px;color:var(--muted);background:#fafcf8;font-size:.93rem}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.photo-grid figure{margin:0}.photo-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px}.photo-grid figcaption{font-size:.75rem;overflow-wrap:anywhere;margin-top:4px}.upload{display:block;border:1px dashed #8fae9d;padding:25px;border-radius:14px;background:#f7faf5}.upload input{margin-top:14px}.check{display:flex;align-items:center;gap:10px;font-weight:500}.checklist{display:flex;gap:12px;flex-wrap:wrap}.checklist label{display:flex;gap:7px;align-items:center;background:#f0f4ee;padding:9px 13px;border-radius:10px}.auth-shell{max-width:1120px;margin:50px auto 70px;display:grid;grid-template-columns:1fr 1fr;gap:55px;padding:0 24px;align-items:start}.auth-copy h1{font-size:clamp(2.8rem,5vw,4.2rem)}.auth-copy .house{max-height:240px}.auth-card{background:white;border:1px solid var(--line);padding:34px;border-radius:24px;box-shadow:0 15px 50px #173f3510}.auth-card form{display:grid;gap:18px}.auth-tabs{display:flex;gap:7px;margin-bottom:24px}.auth-tabs button{font-size:.85rem;flex:1}.auth-card h2{font-size:1.6rem}.auth-card .actions{margin-top:0}.footer{border-top:1px solid var(--line);padding:22px 4vw;display:flex;gap:22px;justify-content:space-between;color:var(--muted);font-size:.75rem}.footer nav{display:flex;gap:20px}.error{color:#9b3529;padding:12px;background:#fff1ed;border-radius:9px}.success{background:var(--soft);padding:16px;border-radius:12px;color:var(--brand)}[hidden]{display:none!important}#notice{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:90vw;padding:13px 22px;background:#173c35;color:white;border-radius:12px;box-shadow:0 8px 35px #0003;z-index:100}#notice:empty{display:none}.skip{position:fixed;left:15px;top:-100px;z-index:200;background:white;padding:15px}.skip:focus{top:10px}.loading{padding:80px;text-align:center}.stat{font-size:2rem;font-weight:700;line-height:1.25;letter-spacing:-.035em}.stat small{font-size:.85rem;font-weight:500;letter-spacing:0}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.metric{padding:16px;background:#f4f7ef;border-radius:12px}.metric .muted{font-size:.78rem}.energybar{display:flex;height:18px;border-radius:10px;overflow:hidden;background:#edf1e8;margin:18px 0}.energybar .own{background:var(--brand)}.energybar .gridpart{background:var(--gold)}.legend{display:flex;gap:20px;font-size:.8rem;margin-bottom:16px}.legend span:before{content:'';display:inline-block;width:10px;height:10px;background:var(--brand);border-radius:3px;margin-right:6px}.legend span+span:before{background:var(--gold)}.range-title{display:flex;justify-content:space-between;gap:12px}.offer{position:relative;display:flex;flex-direction:column}.offer .price{font-size:1.8rem;font-weight:700;margin:10px 0}.offer ul{padding-left:19px;font-size:.86rem}.offer details{font-size:.8rem;margin:15px 0}.offer .actions{margin-top:auto}.offer.selected{outline:2px solid var(--brand)}.compare-filter{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.compare-filter label{display:flex;align-items:center;gap:8px}.appointment{display:flex;gap:18px;margin-top:18px;border-top:1px solid var(--line);padding-top:18px}.datebox{width:56px;flex:0 0 56px;border-radius:10px;background:var(--soft);padding:8px;text-align:center;align-self:start}.datebox b{font-size:1.35rem;display:block;line-height:1.1}.datebox small{font-size:.65rem}.appointment h3{margin-bottom:4px}.appointment p{font-size:.85rem;margin-bottom:4px}.message{padding:18px;border-radius:14px;background:var(--soft);max-width:90%;white-space:pre-wrap;overflow-wrap:anywhere}.message.customer{background:#f2f2ed;margin-left:auto}.message small{display:block;color:var(--muted);margin-bottom:7px;white-space:normal}.timeline{display:grid;gap:12px;margin:22px 0}.case{margin-bottom:18px}.case p{white-space:pre-wrap}.case details{margin-top:14px}.case summary{font-weight:650;color:var(--brand);cursor:pointer}.case-files{display:flex;flex-wrap:wrap;gap:8px}.case-files img{width:100px;height:75px;object-fit:cover;border-radius:8px}.rating{display:flex;gap:8px}.rating label{flex:1;display:flex;align-items:center;justify-content:center;background:#f4f6ef;border:1px solid var(--line);padding:12px;border-radius:10px;font-size:1.1rem}.rating label:has(input:checked){background:#e7efe2;border-color:var(--brand)}.rating input{width:16px}.viewer{height:520px;background:#e4e9e0;border-radius:16px;overflow:hidden;position:relative;touch-action:none}.viewer canvas{display:block;width:100%;height:100%}.viewer-label{position:absolute;left:15px;bottom:15px;background:#ffffffe6;border-radius:8px;padding:8px 13px;font-size:.8rem;pointer-events:none}.viewer-status{padding:40px;position:absolute;inset:0;display:grid;place-content:center;text-align:center}.resource-row{display:flex;gap:16px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.resource-row:last-child{border:0}.resource-row div{flex:1;min-width:0}.resource-row h3{margin-bottom:5px}.resource-row p{margin:0;font-size:.82rem}.knowledge{white-space:pre-wrap}.honeypot{position:absolute;left:-9999px;width:1px;height:1px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.85rem}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:top}th{font-weight:700;color:var(--muted)}.admin-layout{max-width:1450px;margin:auto;padding:30px}.admin-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:26px}.admin-nav button[aria-current=page]{background:var(--brand);color:white}.admin-split{display:grid;grid-template-columns:260px 1fr;gap:24px}.admin-list{display:grid;gap:8px;align-content:start}.admin-list button{text-align:left;justify-content:start}.admin-heading{font-size:2rem}.pill-number{background:var(--brand);color:white;border-radius:50%;font-size:.7rem;padding:3px 7px}.admin-card{margin-bottom:22px}.long{overflow-wrap:anywhere}.subtle{background:#eef2e9;border-radius:10px;padding:15px;font-size:.85rem}
@media(max-width:1050px){.layout{grid-template-columns:190px 1fr}.content{padding:28px 24px}.hero-copy{padding:25px}.hero h1{font-size:2.2rem}.grid.three{grid-template-columns:1fr 1fr}.hero{grid-template-columns:1.2fr .8fr}.metrics{grid-template-columns:1fr 1fr}.auth-shell{gap:28px}.sidebar{padding:22px 10px}}
@media(max-width:720px){.header{padding:16px}.header-actions .customer-name{display:none}.brand img{max-width:125px;height:36px}.brand span{font-size:1rem}.layout{display:block}.sidebar{border-right:0;padding:15px 16px 0}.sidebar .contact{display:none}.sidebar>label{margin-bottom:12px}.header{flex-wrap:wrap}.header-actions{margin-left:auto}.sidebar nav{display:flex;overflow:auto;gap:5px;margin:0;padding-bottom:12px}.navlink{white-space:nowrap;padding:8px 11px;font-size:.8rem;gap:7px}.content{padding:22px 16px 45px}.hero{grid-template-columns:1fr}.hero-copy{padding:25px}.hero .house{display:none}.hero h1{font-size:2.4rem}.grid,.grid.three,.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.card{padding:22px}.journey{gap:5px}.journey li{font-size:.65rem}.journey li strong{font-size:.75rem}.journey li.current strong:after{display:block}.intro-row{display:block}.intro-row h1{font-size:1.9rem}.intro-row>button{margin-top:15px}.auth-shell{display:block;margin:28px auto}.auth-copy h1{font-size:2.5rem}.auth-copy .house{display:none}.auth-card{padding:24px}.auth-copy p{font-size:.9rem}.footer{flex-wrap:wrap;padding:20px 16px}.viewer{height:360px}.metrics{grid-template-columns:1fr 1fr}.stat{font-size:1.6rem}.admin-layout{padding:20px 14px}.admin-split{display:block}.admin-list{display:flex;overflow:auto;margin-bottom:18px}.admin-list button{white-space:nowrap}.rating{gap:4px}.rating label{padding:10px 3px}.message{max-width:97%}.resource-row{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Keep the complete sign-in page compact, with stable tab positions. */
#app:has(>.auth-shell){min-height:100svh;display:grid;grid-template-rows:auto 1fr auto;--auth-space:clamp(12px,2.6svh,28px);--auth-card-space:clamp(16px,3.2svh,28px)}
#app:has(>.auth-shell)>.header{padding:12px 4vw}
#app:has(>.auth-shell) .brand img{height:36px}
#app:has(>.auth-shell)>.footer{padding:10px 4vw;gap:12px}
.auth-shell{width:min(1120px,100%);margin:0 auto;padding:var(--auth-space) clamp(16px,3vw,28px);grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,4vw,48px);align-content:start;align-items:start}
.auth-copy h1{font-size:clamp(1.75rem,3vw,2.6rem);line-height:1.14;margin-bottom:12px}
.auth-copy .eyebrow{margin-bottom:10px}
.auth-copy>p{font-size:.94rem;margin-bottom:10px}
.auth-copy .house{padding:4px;height:clamp(80px,22svh,170px)}
.auth-copy .house svg{height:100%;max-height:100%}
.auth-card{padding:var(--auth-card-space);min-width:0}
.auth-card h2{font-size:1.3rem;line-height:1.25;margin-bottom:10px}
.auth-card>p.muted{font-size:.9rem;margin-bottom:12px}
.auth-card form{gap:12px}
.auth-card label{gap:5px}
.auth-card input:not([type=checkbox]){min-height:44px;padding:8px 11px}
.auth-card button{min-height:44px;padding:9px 14px}
.auth-tabs{margin-bottom:16px}
.auth-card .quiet{min-height:36px;padding:6px 10px}
.auth-card #organisation-choice:empty{display:none}
@media(max-width:720px),(max-width:1024px) and (orientation:portrait){
 .auth-shell{display:grid;grid-template-columns:minmax(0,1fr);max-width:560px;gap:18px}
 .auth-copy h1{font-size:1.85rem;line-height:1.12;margin-bottom:8px}
 .auth-copy .eyebrow{font-size:.65rem;margin-bottom:6px}
 .auth-copy>p{font-size:.86rem;line-height:1.4;margin-bottom:0}
 .auth-copy .house{display:none}
 .auth-tabs button{padding:9px 6px;font-size:.82rem}
 #app:has(>.auth-shell)>.header{gap:8px;padding:10px 16px;flex-wrap:nowrap}
 #app:has(>.auth-shell)>.header .brand small{letter-spacing:.08em}
 #app:has(>.auth-shell)>.header .badge{font-size:.65rem;padding:3px 8px;max-width:112px;white-space:normal;text-align:center;line-height:1.25}
 #app:has(>.auth-shell)>.footer{padding:8px 16px;font-size:.7rem}
}
@media(max-height:650px){
 #app:has(>.auth-shell)>.header{padding-top:8px;padding-bottom:8px}
 .auth-card form{gap:10px}
 .auth-tabs{margin-bottom:12px}
 .auth-card h2{margin-bottom:8px}
 .auth-card>p.muted{margin-bottom:10px}
}
@media(max-width:720px) and (max-height:740px){
 .auth-shell{gap:10px;padding-top:8px;padding-bottom:8px}
 .auth-copy h1{font-size:1.5rem}
 .auth-copy .eyebrow{margin-bottom:4px}
 .auth-copy>p{font-size:.8rem;line-height:1.35}
 .auth-card{padding:12px}
 .auth-card h2{font-size:1.15rem;margin-bottom:8px}
 .auth-card>p.muted{font-size:.82rem;line-height:1.35;margin-bottom:10px}
 .auth-tabs{margin-bottom:10px}
 .auth-card form{gap:10px}
}
