/* OSMA Portal – Startseite, Messen, Login (eigene Gestaltung, bewusst nicht der Standard-Look) */
:root{ --osma-pink:#d6036a; --osma-ink:#0b0b0c; }
body.portal-body{ background:#eceef0; }

/* Marke im Kopf */
header .brand{align-items:center;gap:14px;}
.brand-logo{height:34px;width:auto;display:block;}
header{border-bottom:3px solid var(--osma-pink) !important;}

/* Hero: volles OSMA-Pink, grosses silbernes O, Fred steht auf der Kante */
.pt-hero{ position:relative; background:var(--osma-pink) !important; color:#fff; border-bottom:8px solid #3b4650 !important; overflow:hidden; }
.pt-hero-in{ position:relative; max-width:1100px; margin:0 auto; padding:0 28px; min-height:300px; display:flex; align-items:center; }
.pt-hero-txt{ position:relative; z-index:3; max-width:56%; padding:40px 0 44px; }
.pt-hero h1{ margin:0; font-size:clamp(34px,5.2vw,64px); line-height:.98; font-weight:900; letter-spacing:-.015em; color:#fff; text-transform:uppercase; text-shadow:0 4px 0 rgba(0,0,0,.12); }
.pt-hero-rule{ width:80px; height:6px; background:#fff; margin-top:20px; border-radius:2px; opacity:.95; }
.pt-art{ position:absolute; right:0; bottom:0; top:0; width:52%; z-index:1; }
.pt-o{ position:absolute; right:-10%; top:50%; transform:translateY(-50%); height:130%; width:auto; opacity:.95; }
.pt-fred{ position:absolute; right:12%; bottom:0; height:92%; max-height:430px; width:auto; z-index:2; filter:drop-shadow(0 18px 22px rgba(0,0,0,.40)); pointer-events:none; }
.pt-bubble{ position:absolute; z-index:4; right:calc(12% + 190px); top:11%; background:#fff; color:#0b0b0c; font-weight:800; font-size:17px; padding:11px 18px; border-radius:20px 20px 4px 20px; box-shadow:0 10px 24px rgba(0,0,0,.22); white-space:nowrap; }
@media (max-width:760px){
  .pt-hero-in{ min-height:330px; padding:0 18px; align-items:flex-start; }
  .pt-hero-txt{ max-width:62%; padding:34px 0 40px; }
  .pt-hero h1{ font-size:clamp(30px,9vw,44px); }
  .pt-hero-rule{ width:64px; height:6px; margin-top:16px; }
  .pt-art{ width:62%; }
  .pt-o{ right:-30%; height:100%; }
  .pt-fred{ right:-2%; height:78%; max-height:300px; }
  .pt-bubble{ right:auto; left:-34%; top:auto; bottom:12%; font-size:13px; padding:8px 12px; }
}

/* Kacheln: weiss, ruhig, Emoji-Symbole im zartrosa Kreis wie in der Bereichsliste des Aussendienst-Dashboards */
.pt-main{ max-width:1100px; margin:34px auto 0; padding:0 24px 60px; position:relative; }
.pt-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:14px; }
.pt-tile{ display:flex; align-items:center; gap:16px; padding:20px 22px; min-height:96px; background:#fff; border-radius:6px; text-decoration:none; color:var(--osma-ink); border:1px solid #dde2e5; transition:border-color .15s, box-shadow .15s, transform .1s; }
a.pt-tile:hover{ border-color:var(--osma-pink); box-shadow:0 8px 22px rgba(0,0,0,.09); }
a.pt-tile:active{ transform:scale(.99); }
.pt-ic{ flex:none; width:54px; height:54px; border-radius:50%; background:rgba(214,3,106,.10); display:flex; align-items:center; justify-content:center; font-size:26px; line-height:1; }
.pt-t h3{ margin:0 0 3px; font-size:17px; font-weight:800; color:#3b4650; }
.pt-t p{ margin:0; font-size:13px; color:#64707a; line-height:1.4; }
.pt-arrow{ margin-left:auto; flex:none; font-size:22px; color:#c4cad0; transition:color .15s; }
a.pt-tile:hover .pt-arrow{ color:var(--osma-pink); }
.pt-tile.soon{ opacity:.6; background:#f6f7f8; }
.pt-soon{ display:inline-block; margin-top:6px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#6b747c; background:#e3e6e9; border-radius:3px; padding:2px 7px; }

/* Umsatz (Export): gleiche Zahlen wie im Aussendienst, eckig und flach im Portal-Look */
.pt-umsatz{ margin:0 0 38px; }
.pu-head{ display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.pu-head span{ font-size:13px; font-weight:900; letter-spacing:.18em; text-transform:uppercase; color:var(--osma-ink); }
.pu-head i{ flex:1; height:2px; background:#c9cfd4; }
.pu-grid{ display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:14px; margin-bottom:14px; }
.pu-card{ position:relative; background:#fff; border:1px solid #dde2e5; border-radius:2px; padding:24px 28px 26px 34px; }
.pu-card::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:6px; background:var(--osma-pink); }
.pu-grid .pu-card + .pu-card::before{ background:#3b4650; }
.pu-year::before{ background:#3b4650; }
.pu-lab{ font-size:11.5px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#6b747c; }
.pu-val{ margin-top:10px; font-size:clamp(30px,4.4vw,54px); line-height:1; white-space:nowrap; font-weight:900; letter-spacing:-.02em; color:var(--osma-ink); }
.pu-stand{ margin-top:8px; font-size:13px; color:#7a848d; }
.pu-warn{ font-style:normal; font-weight:700; color:var(--osma-pink); margin-left:4px; }
.pu-bar-l{ display:flex; justify-content:space-between; align-items:baseline; margin:22px 0 8px; font-size:13px; color:#3b4650; font-weight:600; }
.pu-bar-l b{ font-size:15px; font-weight:900; color:var(--osma-ink); }
.pu-bar{ height:12px; background:#e3e6e9; }
.pu-bar div{ height:100%; background:var(--osma-pink); }
.pu-delta{ display:inline-block; margin-top:18px; font-style:normal; font-size:14px; font-weight:900; padding:4px 10px; border-radius:2px; background:#e3e6e9; color:var(--osma-ink); }
.pu-delta.up{ background:#dff3e6; color:#17703a; }
.pu-delta.down{ background:#fbe3e3; color:#a52121; }
.pu-yhead{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }
.pu-ytd{ margin-top:8px; display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.pu-ytd b{ font-size:28px; font-weight:900; letter-spacing:-.01em; color:var(--osma-ink); }
.pu-ytd span{ font-size:13px; color:#7a848d; }
.pu-ytd .pu-delta{ margin-top:0; }
.pu-chart{ display:grid; grid-template-columns:repeat(12,1fr); gap:10px; align-items:end; height:170px; margin-top:22px; }
.pu-col{ display:flex; flex-direction:column; height:100%; }
.pu-bars{ flex:1; display:flex; align-items:flex-end; gap:3px; border-bottom:2px solid #3b4650; }
.pu-bars i{ flex:1; display:block; min-height:0; }
.pu-bars .pv{ background:#c4cad0; }
.pu-bars .cu{ background:var(--osma-pink); }
.pu-col.now .pu-bars .cu{ background:repeating-linear-gradient(45deg,var(--osma-pink),var(--osma-pink) 4px,#f08cb9 4px,#f08cb9 8px); }
.pu-col span{ margin-top:6px; text-align:center; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#6b747c; }
.pu-col.now span{ color:var(--osma-pink); }
@media (max-width:760px){ .pu-grid{ grid-template-columns:1fr; } .pu-card{ padding:20px 18px 22px 26px; } .pu-chart{ gap:4px; height:140px; } .pu-col span{ font-size:9px; letter-spacing:0; } }

/* Buero: Umsatz-Stand je Person */
.bu-wrap{ overflow-x:auto; margin-top:14px; }
.bu-table{ width:100%; border-collapse:collapse; font-size:13px; }
.bu-table th{ text-align:left; font-weight:700; color:#3b4650; padding:9px 8px 9px 0; white-space:nowrap; }
.bu-table thead th{ font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:#6b747c; text-align:center; padding:0 2px 8px; }
.bu-table thead th:first-child{ text-align:left; }
.bu-table td{ text-align:center; padding:9px 2px; border-top:1px solid #e6e9ec; }
.bu-table tbody th{ border-top:1px solid #e6e9ec; }
.bu-table .bu-stand{ text-align:right; white-space:nowrap; padding-left:12px; color:#3b4650; font-weight:600; }
.bu-table .bu-stand small{ display:block; font-weight:400; font-size:11px; color:#7a848d; }
.bu-dot{ display:inline-block; width:16px; height:16px; border-radius:2px; vertical-align:middle; }
.bu-dot.ok{ background:var(--osma-pink); }
.bu-dot.now{ background:repeating-linear-gradient(45deg,var(--osma-pink),var(--osma-pink) 3px,#f08cb9 3px,#f08cb9 6px); }
.bu-dot.miss{ background:#fff; border:2px solid #d92b2b; }
.bu-dot.na{ background:#e3e6e9; }
.bu-legend{ display:flex; gap:18px; flex-wrap:wrap; margin-top:14px; font-size:12px; color:#6b747c; }
.bu-legend span{ display:inline-flex; align-items:center; gap:6px; }
.bu-legend .bu-dot{ width:12px; height:12px; }
@media (max-width:760px){ .bu-dot{ width:11px; height:11px; } .bu-table{ font-size:12px; } .bu-table .bu-stand small{ display:none; } }

/* Social Media: neueste Messe-Dateien */
.so-gal{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; margin-top:14px; }
.so-item{ text-decoration:none; color:inherit; display:block; }
.so-th{ height:110px; background:#1b2024; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:2px; color:#9aa4ad; font-size:12px; font-weight:800; letter-spacing:.06em; }
.so-th img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s; }
.so-item:hover .so-th img{ transform:scale(1.05); }
.so-cap{ margin-top:6px; font-size:12.5px; font-weight:700; color:#3b4650; line-height:1.3; }
.so-cap small{ display:block; font-weight:400; font-size:11px; color:#7a848d; }

/* App-Installation */
#osmaInstall{ display:none; align-items:center; gap:16px; margin-top:22px; padding:16px 20px; background:#fff; border-left:4px solid var(--osma-pink); border-radius:4px; box-shadow:0 8px 22px rgba(0,0,0,.07); flex-wrap:wrap; }
#osmaInstall .inst-title{ font-weight:800; font-size:15px; }
#osmaInstall .inst-hint{ font-size:13px; color:#5d6670; margin-top:2px; line-height:1.5; }
#osmaInstall .inst-btn{ margin-left:auto; background:var(--osma-pink); color:#fff; border:none; border-radius:4px; padding:11px 20px; font-size:14px; font-weight:700; cursor:pointer; }
#osmaInstall .inst-btn:hover{ background:#a8024f; }

/* Messen */
body.portal-body .mz-wrap{ max-width:1040px; margin:0 auto; padding:30px 24px 70px; }
.mz-top h1{ font-size:30px; font-weight:800; letter-spacing:-.01em; }
.mz-card{ border:none !important; border-left:5px solid var(--osma-pink) !important; box-shadow:0 8px 24px rgba(0,0,0,.08); border-radius:4px !important; padding:18px 20px !important; }
.mz-card h3{ font-size:18px !important; font-weight:800; }
.mz-users label{ text-transform:none !important; letter-spacing:0 !important; font-size:14px !important; font-weight:600 !important; color:#20262b !important; cursor:pointer; }
.mz-users label span{ margin-left:auto; text-transform:none !important; letter-spacing:0 !important; font-size:12px !important; font-weight:500 !important; color:#7a848d !important; }
.mz-users label input{ width:18px; height:18px; flex:0 0 auto; }
.mz-form .field > label{ display:block; margin-bottom:6px; }
.mz-form .field > label small{ text-transform:none; letter-spacing:0; font-weight:400; display:block; margin-top:2px; }

/* Login: OSMA-Pink flaechig, Logo gross, Fred daneben */
body.login-body{ background:var(--osma-pink) !important; position:relative; overflow:hidden; }
body.login-body::before{ content:""; position:fixed; left:-160px; top:-200px; width:620px; height:620px; border-radius:50%; background:rgba(0,0,0,.10); }
body.login-body::after{ content:""; position:fixed; right:-120px; bottom:-220px; width:560px; height:560px; border-radius:50%; background:rgba(255,255,255,.10); }
.login-box{ position:relative; z-index:2; border-radius:8px !important; border-top:none !important; max-width:400px !important; padding:34px 32px !important; box-shadow:0 30px 70px rgba(0,0,0,.35) !important; border-bottom:8px solid #3b4650 !important; }
.login-logo{ display:block; width:min(300px,80%); height:auto; margin:0 auto 14px; }
.login-title{ margin:0 0 4px; text-align:center; font-size:24px !important; font-weight:900 !important; text-transform:uppercase; letter-spacing:.02em; }
.login-fred{ position:fixed; z-index:1; right:max(6vw, calc(50% - 520px)); bottom:0; height:min(86vh,640px); width:auto; filter:drop-shadow(0 16px 24px rgba(0,0,0,.35)); pointer-events:none; }
@media (max-width:900px){ .login-fred{ display:none; } }
.login-body #osmaInstall{ box-shadow:none; background:transparent; border-left:none; border-top:1px solid #e1e4e7; border-radius:0; margin-top:20px; padding:16px 0 0; }

/* Fusszeile mit silbernem O */
.pt-foot{ display:flex; align-items:center; justify-content:center; gap:10px; padding:26px 0 34px; color:#8a939b; font-size:12.5px; letter-spacing:.04em; }
.pt-foot img{ height:22px; width:auto; opacity:.9; }
/* Login: silbernes O als Wasserzeichen hinter Fred */
.login-o{ position:fixed; z-index:0; right:max(-4vw, calc(50% - 760px)); top:50%; transform:translateY(-50%); height:min(110vh,820px); width:auto; opacity:.95; pointer-events:none; }
@media (max-width:900px){ .login-o{ display:none; } }
