/* HoMir Gebäudeservice – gemeinsame Gestaltung der beiden Loginseiten.
   Kein Intro, keine Ladeanimation, keine Abhängigkeit von der Homepage-JS. */
:root{
  --navy:#07254b;--navydeep:#041930;--sea:#0c4e82;--sky:#16adf2;
  --blue:#0876d8;--gold:#e9b95e;--ink:#113653;--muted:#526f86;
  --cream:#fff8e8;--stroke:#c8dce7;--shadow:0 25px 66px rgba(8,44,78,.15);
  color-scheme:light;
}
*{box-sizing:border-box}
html{min-height:100%;scroll-behavior:smooth}
body{margin:0;min-height:100vh;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:linear-gradient(180deg,#e7f5ff 0%,#f6fbff 46%,#eff8fd 100%);overflow-x:hidden}
button,input,a{font:inherit}
a{text-decoration:none;color:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffcc65;outline-offset:3px}
/* Gleiches freundlich-helles Navigationsgefühl wie auf der Hauptseite. */
.site-head{position:relative;z-index:3;background:linear-gradient(180deg,#f4fbff 0%,#e0f1fc 100%);border-bottom:4px solid #a9d6ef;box-shadow:0 5px 20px rgba(16,61,98,.09)}
.head-inner{max-width:1200px;min-height:94px;padding:12px clamp(16px,3vw,30px);margin:auto;display:flex;gap:14px;align-items:center;justify-content:space-between}
.identity{display:flex;align-items:center;gap:11px;min-width:0}
.identity .anchor{flex:none;font-size:39px;line-height:1;color:#558dab;filter:drop-shadow(0 2px 1px #ffffff)}
.identity .identity-copy{min-width:0;display:block}
.identity strong{display:block;color:#072c5d;font-size:clamp(19px,2.4vw,29px);line-height:1.06;letter-spacing:-.035em;font-weight:950}
.identity strong small{font-size:.51em;letter-spacing:.012em;text-transform:uppercase;color:#41617d;font-weight:900}
.identity em{display:block;margin-top:5px;color:#54718c;font-size:clamp(10px,1.4vw,13px);font-weight:750;font-style:normal}
.head-links{display:flex;align-items:center;gap:10px;flex:none}
.head-links a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 15px;border:1px solid #b8d6eb;border-radius:12px;background:rgba(255,255,255,.70);font-size:13px;font-weight:850;color:#0b4672;box-shadow:0 3px 10px rgba(10,70,110,.04)}
.head-links a:hover{background:#fff}
.head-links .back-site{background:linear-gradient(135deg,#158ee1,#0872c5);border-color:#0c7bc8;color:#fff}
/* Oberer Bereich mit unaufdringlichen Sternen und maritimer Anmutung */
.page{position:relative;padding:clamp(18px,3vw,34px) 16px 38px}
.page:before{content:"";position:absolute;pointer-events:none;inset:0;opacity:.65;background:radial-gradient(circle at 7% 20%,#ccecfb 0 7%,transparent 25%),radial-gradient(circle at 100% 100%,#c9e9fb,transparent 37%)}
.page-inner{max-width:1190px;margin:0 auto;position:relative}
.page-crumb{display:flex;align-items:center;gap:10px;margin:0 0 15px 5px;font-size:12px;font-weight:850;color:#376b8e;letter-spacing:.035em}
.page-crumb .accent{color:#c08331}
.portal-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);align-items:stretch;gap:20px}
/* Hafenplakat mit echtem HoMir-Holzlogo und originalem Käpt'n */
.story-panel{position:relative;isolation:isolate;overflow:hidden;min-height:615px;border-radius:27px;border:1px solid rgba(255,255,255,.5);background:radial-gradient(circle at 82% 16%,rgba(31,146,215,.58),transparent 38%),radial-gradient(circle at 12% 74%,rgba(15,97,160,.55),transparent 38%),linear-gradient(125deg,#08284e 0%,#0b487a 57%,#07274b 100%);box-shadow:var(--shadow)}
.story-panel:before{content:"";position:absolute;width:400px;height:400px;top:-212px;right:-140px;border:4px solid rgba(90,196,235,.28);border-radius:50%;pointer-events:none}
.story-panel:after{content:"";position:absolute;bottom:-95px;left:-8%;width:120%;height:165px;border-radius:50% 50% 0 0;background:linear-gradient(180deg,rgba(46,152,203,.22),rgba(3,23,53,.65));transform:rotate(-2deg);pointer-events:none;z-index:-1}
.story-stars{position:absolute;inset:0;background-image:radial-gradient(#ffdf92 1.2px,transparent 2px),radial-gradient(#ffffff 1px,transparent 2px);background-size:195px 170px,260px 240px;background-position:20px 20px,100px 110px;opacity:.26;z-index:-1;pointer-events:none}
.story-kicker{position:relative;z-index:2;margin:24px 25px 0;display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border:1px solid rgba(255,225,167,.46);background:rgba(6,40,72,.65);border-radius:100px;color:#ffdfa6;font-weight:850;letter-spacing:.095em;font-size:11px}
.wood-logo{position:relative;z-index:1;display:block;width:min(92%,565px);margin:1px auto 0;max-height:342px;object-fit:contain;mix-blend-mode:screen;filter:drop-shadow(0 14px 17px rgba(0,0,0,.13));user-select:none;pointer-events:none}
.story-copy{position:absolute;z-index:2;left:30px;bottom:41px;width:62%;max-width:350px;color:#fff}
.story-overline{color:#ffdb91;font-size:11px;letter-spacing:.11em;font-weight:900}
.story-copy h2{font-size:clamp(27px,3.5vw,42px);line-height:1.03;letter-spacing:-.045em;margin:11px 0 11px;text-shadow:0 3px 12px #001a39b3}
.story-copy h2 em{display:block;color:#80e4ff;font-style:normal}
.story-copy p{margin:0;font-size:14px;line-height:1.55;color:#d8f1ff;font-weight:650;max-width:305px}
.captain{position:absolute;z-index:2;height:min(68%,440px);width:auto;right:-10px;bottom:-7px;filter:drop-shadow(-14px 12px 19px rgba(0,10,35,.44));pointer-events:none;user-select:none}
.story-stamp{position:absolute;z-index:3;right:22px;bottom:15px;padding:6px 12px;background:#fff9e8;color:#153c55;border:1px solid #e9c185;border-radius:10px;font-size:11px;font-weight:950;transform:rotate(-5deg);box-shadow:0 5px 14px #031c3e55}
/* Direkte Anmeldemaske */
.login-panel{position:relative;min-width:0;border-radius:27px;background:#fff;border:1px solid #c5ddec;box-shadow:var(--shadow);padding:clamp(22px,3vw,37px);display:flex;flex-direction:column;justify-content:center;overflow:hidden}
.login-panel:before{content:"";position:absolute;top:0;left:0;right:0;height:6px;background:linear-gradient(90deg,#d49b46 0 19%,#3ebdea 19% 100%)}
.card-label{display:flex;align-items:center;gap:7px;color:#1a75a4;font-size:11px;font-weight:950;letter-spacing:.13em;text-transform:uppercase;margin:0 0 13px}
.card-label .dot{width:7px;height:7px;background:#e5b35a;border-radius:50%;box-shadow:0 0 0 4px #fff6de}
.login-panel h1{color:#092d52;font-size:clamp(28px,3.2vw,41px);line-height:1.09;letter-spacing:-.045em;margin:0;font-weight:950;text-wrap:balance}
.login-panel h1 span{color:#0785ca}
.login-intro{font-size:14px;line-height:1.6;color:#5c7388;margin:12px 0 20px}
.portal-tagline{display:inline-flex;width:max-content;max-width:100%;align-items:center;gap:8px;font-size:12px;font-weight:800;color:#66461c;background:#fff5dc;border:1px dashed #cfad72;border-radius:12px;padding:9px 11px;margin-bottom:19px;transform:rotate(-1deg)}
.login-form{display:flex;flex-direction:column;gap:14px;margin:0}
.field{display:flex;flex-direction:column;gap:7px}
.field label{color:#133953;font-size:13px;font-weight:850}
.input-wrap{position:relative;display:flex;align-items:center}
.input-wrap .leading{position:absolute;z-index:1;left:15px;color:#5c91b2;font-size:17px;pointer-events:none}
.field input{display:block;width:100%;min-height:54px;max-width:100%;padding:12px 14px 12px 45px;border:1px solid #c5dce8;border-radius:13px;background:#f8fcff;color:#0b2d4b;box-shadow:inset 0 1px 1px rgba(14,54,81,.03);outline:none;font-size:15px;transition:background .15s,border-color .15s,box-shadow .15s}
.field input::placeholder{color:#879bae}
.field input:focus{border-color:#1694d6;background:#fff;box-shadow:0 0 0 4px rgba(17,147,214,.13)}
.field input.is-password{padding-right:59px}
.show-pass{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:42px;height:40px;border:0;border-radius:9px;color:#0b517b;background:#e9f5fb;display:grid;place-items:center;font-size:18px}
.show-pass:hover{background:#d7edfb}
.submit-btn{display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #39c3f5;border-bottom:4px solid #0060ab;border-radius:13px;background:linear-gradient(180deg,#27b9ff,#0078df 68%,#006bd0);color:#fff;font-weight:950;font-size:15px;min-height:58px;padding:13px;margin-top:3px;box-shadow:0 11px 20px rgba(0,121,207,.19);text-shadow:0 1px 1px #0058a6}
.submit-btn:hover:not(:disabled){filter:brightness(1.05)}.submit-btn:disabled{opacity:.55;cursor:not-allowed}
.status{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;border-radius:13px;font-size:13px;font-weight:760;line-height:1.45;margin:0 0 15px}
.status.error{background:#fff0f0;color:#992f36;border:1px solid #f6c7c7}
.status.locked{background:#fff4e1;color:#825112;border:1px solid #f1d9a4}
.login-benefits{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:19px 0 0}
.benefit{background:#edf8ff;border:1px solid #d5eaf6;border-radius:13px;padding:12px;min-width:0}
.benefit strong{display:block;color:#164b6e;font-size:12px;line-height:1.25;margin:0 0 4px}
.benefit span{display:block;color:#617c92;font-size:11px;line-height:1.5}
.login-help{margin:17px 0 0;padding:13px 15px;border:1px solid #e1e9ef;background:#f8fbfe;border-radius:12px;color:#546d84;font-size:12px;line-height:1.6}
.login-help strong{color:#1e4c6c}
.login-help a{color:#0878c4;font-weight:800;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.portal-foot{max-width:1190px;margin:17px auto 0;display:flex;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;color:#4f7086;font-size:12px;font-weight:750;padding:0 6px}
.portal-foot a{color:#0e6199;text-decoration:underline;text-underline-offset:3px}
.footer-line{display:flex;gap:9px;align-items:center}.footer-line .anchor{color:#447e9e}
/* Responsive: Formular ohne Umwege sofort unter der Marke erreichbar */
@media (max-width:900px){
 .head-inner{min-height:80px}
 .portal-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:13px}
 .story-panel{min-height:620px}
 .captain{height:52%;right:-33px}
 .story-copy{width:78%;bottom:30px;left:21px}
 .story-copy h2{font-size:31px}
 .story-copy p{max-width:190px}
 .login-panel{padding:24px 20px}
 .login-benefits{grid-template-columns:1fr}
 .story-stamp{right:12px}
}
@media (max-width:690px){
 .head-inner{min-height:73px;padding:10px 16px;gap:8px}
 .identity{gap:8px}
 .identity .anchor{font-size:30px}
 .identity strong{font-size:21px}.identity strong small{font-size:10px}.identity em{font-size:10px}
 .head-links a{min-height:38px;padding:9px 10px;font-size:11px}
 .head-links .second-link{display:none}
 .page{padding:14px 11px 28px}
 .page-crumb{font-size:10px;margin-left:8px;margin-bottom:10px}
 .portal-layout{display:flex;flex-direction:column;gap:12px}
 .story-panel{min-height:0;height:275px;border-radius:19px}
 .story-kicker{font-size:9px;letter-spacing:.06em;padding:6px 10px;margin:10px 12px 0}
 .wood-logo{position:absolute;left:8px;top:24px;width:62%;max-height:170px;margin:0}
 .captain{height:100%;max-height:286px;width:auto;right:-9px;bottom:-3px}
 .story-copy{left:17px;bottom:22px;width:65%;max-width:255px}
 .story-overline{font-size:9px}
 .story-copy h2{font-size:clamp(19px,6.6vw,28px);margin:5px 0 0;line-height:1.08}
 .story-copy p{display:none}
 .story-stamp{bottom:8px;right:8px;transform:rotate(-5deg);font-size:9px;padding:5px 7px}
 .login-panel{border-radius:20px;padding:24px 20px 21px}
 .login-panel h1{font-size:clamp(27px,8vw,35px)}
 .login-intro{font-size:13px;margin:10px 0 15px}
 .portal-tagline{font-size:11px;margin-bottom:15px}
 .login-benefits{grid-template-columns:1fr 1fr}
 .portal-foot{font-size:11px;margin-top:12px;padding:0 7px}
}
@media(max-width:370px){
 .identity strong{font-size:18px}.identity strong small{font-size:9px}
 .identity em{font-size:9px}
 .head-links a{font-size:10px}
 .story-panel{height:240px}
 .wood-logo{width:61%;max-height:155px}
 .story-copy h2{font-size:19px}
 .login-benefits{grid-template-columns:1fr}
 .captain{right:-22px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Korrekturen für das Original-Logo mit transparenter Schwarzkante und enge Handys */
.wood-logo{mix-blend-mode:normal}
@media(max-width:690px){
 .page-crumb{display:none}
 .story-copy{z-index:4;width:53%;max-width:205px;bottom:18px}
 .story-copy h2{font-size:clamp(19px,5.7vw,24px);text-shadow:0 2px 8px #062b54,0 0 18px #062b54}
}
@media(max-width:370px){.story-copy{width:55%;bottom:14px}.story-copy h2{font-size:18px}}
