:root{--green:#1f4426;--sage:#869e78;--orange:#ea5b1b;--ink:#18211a;--muted:#667268;--bg:#f3f6f2;--line:#dce4da;--white:#fff;--shadow:0 18px 50px rgba(21,54,29,.12)}*{box-sizing:border-box}html{font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--bg);font-size:16px}body{margin:0}a{color:var(--green)}button,input{font:inherit}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.brand{font-size:1.55rem;font-weight:800;letter-spacing:-.04em;color:var(--green)}.brand span{color:var(--orange)}.brand.light{color:#fff}.brand.light span{color:#ff8b55}.top{min-height:72px;background:var(--green);padding:0 max(24px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:24px}.top nav{display:flex;gap:22px;align-items:center}.top nav a{color:#fff;text-decoration:none;font-weight:700}.setup{min-height:100vh;display:grid;place-items:center;padding:28px}.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:32px;box-shadow:var(--shadow)}.narrow{width:min(100%,520px)}.left{margin:0}.panel h1,.panel h2{color:var(--green);margin:.65rem 0}.panel p{color:var(--muted);line-height:1.55}.form{display:flex;flex-direction:column;gap:18px;margin-top:24px}.form label{font-weight:700;color:#304234;display:flex;flex-direction:column;gap:7px}.form small{font-weight:400;color:var(--muted)}input{width:100%;border:1px solid #bfcbbd;border-radius:9px;padding:12px 13px;background:#fff;color:var(--ink)}input:focus{outline:3px solid rgba(234,91,27,.22);border-color:var(--orange)}input:disabled{background:#eef1ed}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:43px;border:1px solid #bdc8ba;background:#fff;color:var(--green);border-radius:9px;padding:9px 15px;font-weight:800;text-decoration:none;cursor:pointer}.btn:hover{background:#f1f5f0}.btn.primary{background:var(--orange);border-color:var(--orange);color:#fff}.btn.primary:hover{background:#ce4810}.btn.small{min-height:36px;padding:7px 11px;font-size:.9rem}.notice{padding:13px 15px;border-radius:9px;margin:18px 0}.notice.error{background:#fff0ed;color:#8f2d12;border:1px solid #f5c4b6}.notice.success{background:#e8f5e8;color:#245b2c;border:1px solid #b9daba}.admin{width:min(1180px,calc(100% - 40px));margin:34px auto 70px}.page-title,.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.page-title h1{color:var(--green);font-size:2rem;margin:0}.page-title p{color:var(--muted);margin:.35rem 0 0}.search{display:flex;gap:10px;margin:28px 0 16px}.search input{max-width:440px}.table-wrap{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:auto}table{width:100%;border-collapse:collapse;min-width:850px}th,td{text-align:left;padding:15px 16px;border-bottom:1px solid var(--line);vertical-align:middle}th{background:#f7f9f6;color:#536256;font-size:.83rem;text-transform:uppercase;letter-spacing:.04em}tr:last-child td{border-bottom:0}td small,.person small{display:block;color:var(--muted);margin-top:4px}.person{display:flex;align-items:center;gap:11px}.avatar{background:var(--sage);color:#fff;display:grid;place-items:center;border-radius:50%;font-weight:800;overflow:hidden;flex:0 0 auto}.avatar.sm{width:42px;height:42px}.avatar img,.portrait img,.current-image img{width:100%;height:100%;object-fit:cover}.status{display:inline-block;border-radius:999px;padding:5px 9px;font-size:.82rem;font-weight:800}.status.on{background:#e3f2e4;color:#25612d}.status.off{background:#ecefec;color:#657066}.link{border:0;background:none;padding:0;color:var(--green);text-decoration:underline;cursor:pointer;font:inherit}.danger{color:#a8321a}.empty{text-align:center;padding:30px;color:var(--muted)}.editor{margin-top:26px}.grid{display:grid;grid-template-columns:1fr 1fr}.full{grid-column:1/-1}.check{flex-direction:row!important;align-items:center}.check input{width:auto}.actions{display:flex;gap:10px}.current-image{display:flex;align-items:center;gap:16px;margin-top:8px;font-weight:400}.current-image img{width:76px;height:76px;border-radius:50%}.current-image span{display:flex;align-items:center;gap:8px}.current-image input{width:auto}.delete-form{margin:24px 0}dialog{width:min(92vw,440px);border:0;border-radius:16px;padding:28px;box-shadow:0 25px 80px rgba(0,0,0,.28);text-align:center}dialog::backdrop{background:rgba(12,25,14,.6)}dialog .close{position:absolute;right:14px;top:9px;border:0;background:none;font-size:2rem;color:#687269;cursor:pointer}#qrBox{display:grid;place-items:center;margin:22px 0}#qrBox svg{max-width:260px;width:100%;height:auto}.qr-url{font-size:.8rem;word-break:break-all;color:var(--muted)}
.card-page{min-height:100vh;background:linear-gradient(145deg,#e8eee6,#f8faf7);padding:28px 16px;display:grid;place-items:center}.business-card{width:min(100%,460px);background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 24px 80px rgba(18,50,25,.18)}.card-top{height:148px;background:var(--green);padding:28px}.portrait{width:124px;height:124px;border-radius:50%;border:6px solid #fff;background:var(--sage);color:#fff;display:grid;place-items:center;font-weight:800;font-size:2.3rem;margin:-65px auto 15px;position:relative;overflow:hidden}.identity{text-align:center;padding:0 28px}.identity h1{font-size:1.85rem;color:var(--green);margin:0 0 7px}.identity p{margin:4px 0;color:var(--muted)}.identity .role{color:var(--ink);font-weight:700}.card-actions{padding:22px 28px 10px}.save{display:block;text-align:center;background:var(--orange);color:#fff;text-decoration:none;font-weight:800;border-radius:10px;padding:13px}.contact{padding:8px 28px;margin:0}.contact div{border-top:1px solid var(--line);padding:14px 0}.contact dt{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:800;margin-bottom:4px}.contact dd{margin:0;word-break:break-word}.contact a{text-decoration:none;font-weight:700}.external{display:flex;flex-wrap:wrap;gap:9px;padding:10px 28px 25px}.external a{border:1px solid var(--line);border-radius:999px;padding:8px 11px;text-decoration:none;font-size:.88rem;font-weight:700}.business-card footer{background:#f2f5f1;color:#667268;text-align:center;font-size:.76rem;line-height:1.5;padding:16px 24px}
@media(max-width:720px){.top{align-items:flex-start;padding:18px 20px;flex-direction:column}.top nav{gap:14px;flex-wrap:wrap}.admin{width:min(100% - 24px,1180px);margin-top:24px}.page-title{align-items:flex-start;flex-direction:column}.grid{grid-template-columns:1fr}.panel{padding:22px}.search{flex-direction:column}.search input{max-width:none}.card-page{padding:0;background:#fff}.business-card{min-height:100vh;border-radius:0;box-shadow:none}}

/* VielfaltMenü Corporate Design */
@font-face{font-family:Montserrat;src:url('montserrat-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Montserrat;src:url('montserrat-semibold.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Montserrat;src:url('montserrat-bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
:root{--green:#1f4426;--sage:#869e78;--orange:#ea5b1b;--ink:#1e1912;--muted:#525758;--bg:#e6f0d6;--line:#c8d9b5;--white:#fff}
html{font-family:Montserrat,Arial,sans-serif}
.brand{display:flex;align-items:center}
.brand img{display:block;width:190px;height:auto}
.setup .brand img{width:230px;max-width:78%;margin:0 auto 12px}
.top{background:#fff;border-bottom:5px solid var(--green);box-shadow:0 3px 18px rgba(31,68,38,.08)}
.top .brand img{width:165px}
.top nav a{color:var(--green)}
.top nav a:hover{color:var(--orange)}
.card-top{background:#fff;border-bottom:12px solid var(--green);display:grid;place-items:center;padding:18px 28px}
.card-top .brand{width:230px;height:105px;background:url('vm-logo-hoch-spinat.png') center/contain no-repeat;font-size:0;margin:auto}
.portrait{background:var(--sage)}
.business-card footer{background:#e6f0d6;color:#525758}
@media(max-width:720px){.top .brand img{width:145px}.card-top .brand{width:210px;height:96px}}

/* Public profile — digital business card */
.public-header{height:88px;background:#fff;border-bottom:1px solid #e6ebe5;display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1180px)/2));box-shadow:0 3px 18px rgba(31,68,38,.05)}
.public-header img{display:block;width:155px;height:auto}
.public-header span{color:#69746c;font-size:.78rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.profile-page{min-height:calc(100vh - 88px);background:radial-gradient(circle at 12% 12%,rgba(134,158,120,.22),transparent 31%),linear-gradient(145deg,#f7f8f4 0%,#eef3ea 100%);padding:54px max(28px,calc((100vw - 1180px)/2)) 26px}
.profile-hero{position:relative;width:100%;min-height:356px;border-radius:30px;background:linear-gradient(118deg,#16381d 0%,#1f4426 58%,#315b35 100%);padding:46px 48px 36px 316px;color:#fff;box-shadow:0 24px 70px rgba(22,56,29,.2);overflow:hidden}
.profile-hero:after{content:"";position:absolute;right:-90px;top:-160px;width:440px;height:440px;border:1px solid rgba(255,255,255,.1);border-radius:50%;box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 145px rgba(255,255,255,.02)}
.hero-brand{position:absolute;left:0;right:0;bottom:0;height:9px;background:var(--orange)}
.hero-brand span{display:none}
.profile-hero .portrait{position:absolute;z-index:2;left:54px;top:48px;width:214px;height:214px;margin:0;border:7px solid #fff;box-shadow:0 0 0 8px rgba(134,158,120,.55),0 16px 42px rgba(0,0,0,.25);font-size:3.5rem}
.profile-hero .identity{position:relative;z-index:2;text-align:left;padding:0;max-width:620px}
.profile-hero .identity .eyebrow{margin:0 0 12px;color:#b8c9ae;font-size:.78rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.profile-hero .identity h1{margin:0;color:#fff;font-size:clamp(2.25rem,4vw,3.65rem);line-height:1.02;letter-spacing:-.045em}
.profile-hero .identity .role{margin:16px 0 0;color:#fff;font-size:1.12rem;font-weight:600}
.profile-hero .identity .department{margin:5px 0 0;color:#cbd7c5}
.primary-actions{position:relative;z-index:2;display:flex;gap:11px;flex-wrap:wrap;margin-top:31px}
.primary-actions a{min-width:132px;display:flex;align-items:center;gap:9px;border:1px solid rgba(255,255,255,.22);border-radius:12px;padding:11px 15px;color:#fff;text-decoration:none;font-size:.88rem;font-weight:700;background:rgba(255,255,255,.08);transition:transform .18s ease,background .18s ease}
.primary-actions a:hover{transform:translateY(-2px);background:rgba(255,255,255,.15)}
.primary-actions .action-save{background:var(--orange);border-color:var(--orange)}
.primary-actions .icon{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.12);font-size:1rem}
.profile-hero .claim{position:absolute;z-index:2;left:54px;bottom:35px;width:214px;margin:0;text-align:center;color:#d8e3d3;font-size:.84rem;font-weight:600}
.profile-content{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.7fr);gap:24px;margin-top:24px}
.quick-links,.info-card{background:#fff;border:1px solid #e1e7df;border-radius:22px;box-shadow:0 14px 42px rgba(31,68,38,.08)}
.quick-links{display:grid;grid-template-columns:1fr 1fr;padding:12px}
.link-row{min-width:0;display:grid;grid-template-columns:46px minmax(0,1fr) 24px;gap:13px;align-items:center;padding:18px;border-radius:15px;color:var(--ink);text-decoration:none;transition:background .18s ease,transform .18s ease}
.link-row:hover{background:#f1f5ed;transform:translateY(-1px)}
.link-row.featured{background:#fff3ec}
.link-row.featured:hover{background:#ffe8dc}
.row-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#e7efe2;color:var(--green);font-size:1.35rem;font-weight:600}
.linkedin-icon{font-size:1rem;font-weight:700;background:#1f4426;color:#fff}
.link-row small,.info-card small{display:block;color:#748078;font-size:.7rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;margin-bottom:4px}
.link-row strong{display:block;overflow:hidden;text-overflow:ellipsis;color:#223027;font-size:.93rem;white-space:nowrap}
.link-row .arrow{color:var(--orange);font-size:1.15rem}
.info-card{padding:27px;display:grid;gap:18px;align-content:start}
.info-card>div:not(.qr-area){padding-bottom:17px;border-bottom:1px solid #e5eae3}
.info-card strong{display:block;color:#263329;font-size:.94rem;line-height:1.55}
.qr-area{display:grid;grid-template-columns:86px 1fr;gap:16px;align-items:center}
#profileQr svg{display:block;width:86px;height:86px}
.qr-area p{margin:0;color:#5f6a62;font-size:.8rem;line-height:1.45}
.print-button{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;border:0;border-radius:12px;padding:13px 15px;background:var(--green);color:#fff;font:inherit;font-size:.86rem;font-weight:700;cursor:pointer}
.print-button:hover{background:#15351c}
.public-footer{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;padding:24px 10px 0;color:#748078;font-size:.75rem}
.public-footer a{color:#5b685e;text-decoration:none}

@media(max-width:820px){
  .public-header{height:72px;padding:0 22px}.public-header img{width:132px}.public-header span{display:none}
  .profile-page{min-height:calc(100vh - 72px);padding:18px 14px 24px}
  .profile-hero{min-height:0;border-radius:24px;padding:174px 22px 27px;text-align:center}
  .profile-hero .portrait{left:50%;top:31px;width:132px;height:132px;transform:translateX(-50%);border-width:5px;box-shadow:0 0 0 6px rgba(134,158,120,.55),0 13px 30px rgba(0,0,0,.22);font-size:2.3rem}
  .profile-hero .identity{text-align:center}.profile-hero .identity h1{font-size:2rem}.profile-hero .identity .role{font-size:.98rem;margin-top:12px}.profile-hero .identity .department{font-size:.85rem}
  .primary-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:23px}
  .primary-actions a{min-width:0;justify-content:center;flex-direction:column;gap:6px;padding:10px 5px;font-size:.69rem}
  .profile-hero .claim{position:static;width:auto;margin:20px 0 0;font-size:.75rem}
  .profile-content{grid-template-columns:1fr;gap:14px;margin-top:14px}
  .quick-links{grid-template-columns:1fr;padding:8px;border-radius:19px}.link-row{padding:13px 12px}.link-row strong{font-size:.88rem}
  .info-card{border-radius:19px;padding:21px}.public-footer{padding-top:20px}
}

@page{size:A4 portrait;margin:12mm}
@media print{
  html,body{background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .public-header,.print-button,.public-footer{display:none!important}
  .profile-page{min-height:0;background:#fff!important;padding:0}
  .profile-hero{min-height:91mm;border-radius:7mm;padding:15mm 13mm 12mm 79mm;box-shadow:none}
  .profile-hero .portrait{left:14mm;top:14mm;width:52mm;height:52mm}
  .profile-hero .identity h1{font-size:29pt}.profile-hero .identity .role{font-size:11pt}
  .profile-hero .claim{left:14mm;bottom:12mm;width:52mm}
  .primary-actions{display:none}
  .profile-content{grid-template-columns:1.45fr .75fr;gap:6mm;margin-top:6mm}
  .quick-links,.info-card{box-shadow:none;border:1px solid #dce4da;border-radius:5mm}
  .quick-links{grid-template-columns:1fr;padding:3mm}
  .link-row{padding:3.5mm;grid-template-columns:11mm 1fr}.link-row .arrow{display:none}.row-icon{width:10mm;height:10mm}
  .info-card{padding:7mm}.qr-area{grid-template-columns:28mm 1fr}#profileQr svg{width:28mm;height:28mm}
}

/* Refined public profile */
.print-card-sheet{display:none}
.profile-page{max-width:none;background:#f4f6f1;padding-top:38px}
.profile-hero{min-height:300px;border-radius:22px;background:#fff;color:var(--ink);padding:54px 48px 38px 286px;border:1px solid #dfe7dc;box-shadow:0 18px 55px rgba(31,68,38,.10)}
.profile-hero:before{content:"";position:absolute;left:0;top:0;width:105px;height:145px;background:#bad7a6;clip-path:polygon(0 0,100% 0,0 100%)}
.profile-hero:after{right:auto;left:0;top:112px;width:62px;height:120px;border:0;border-radius:0;background:#8db9a8;clip-path:polygon(0 0,100% 50%,0 100%);box-shadow:none}
.profile-hero .portrait{left:60px;top:50px;width:174px;height:174px;border:5px solid #fff;box-shadow:0 0 0 7px #e5eee0,0 13px 30px rgba(31,68,38,.14)}
.profile-hero .identity .eyebrow{color:var(--sage)}
.profile-hero .identity h1{color:var(--green);font-size:clamp(2.2rem,4vw,3.35rem)}
.profile-hero .identity .role{color:var(--ink)}
.profile-hero .identity .department{color:var(--muted)}
.primary-actions a{color:var(--green);background:#f2f6ef;border-color:#d8e3d4}
.primary-actions a:hover{background:#e8f0e4}.primary-actions .action-save{color:#fff}
.primary-actions .icon{background:#e1eadc}
.primary-actions .action-save .icon{background:rgba(255,255,255,.16)}
.profile-hero .claim{left:60px;bottom:28px;width:174px;color:var(--green)}
.hero-brand{height:7px}
.profile-content{grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:18px;margin-top:18px}
.quick-links,.info-card{border-radius:18px;box-shadow:0 9px 30px rgba(31,68,38,.06)}
.link-row{padding:15px}.row-icon{border-radius:50%}

@media(max-width:820px){
  .profile-page{padding-top:14px}.profile-hero{padding:164px 20px 25px}
  .profile-hero:before{width:82px;height:108px}.profile-hero:after{top:83px;width:45px;height:88px}
  .profile-hero .portrait{left:50%;top:27px;width:122px;height:122px}
  .profile-hero .claim{width:auto}.primary-actions a{background:#f2f6ef}
}

/* Press-ready business card: 85 x 55 mm plus 2 mm bleed */
@page{size:89mm 59mm;margin:0}
@media print{
  html,body{width:89mm;height:auto;margin:0!important;padding:0!important;background:#fff!important}
  body>*{display:none!important}.print-card-sheet{display:block!important}
  .print-card{position:relative;display:block;width:89mm;height:59mm;overflow:hidden;background:#fff;color:#292426;padding:0;font-family:Montserrat,Arial,sans-serif;page-break-after:always}
  .print-logo{position:absolute;right:6.2mm;top:4.7mm;width:31.2mm;height:auto}
  .print-identity{position:absolute;left:11.8mm;top:20.4mm;display:flex;flex-direction:column;line-height:1.12}
  .print-identity strong{color:#1f4426;font-size:8.8pt}.print-identity span{font-size:7.9pt;margin-top:1.05mm;color:#292426}
  .print-qr{position:absolute;left:11.8mm;top:28.8mm}
  .print-qr,.print-qr svg{display:block;width:9.1mm;height:9.1mm}
  .print-contact{position:absolute;left:11.8mm;top:39.8mm;width:55mm;display:flex;flex-direction:column;gap:.95mm;font-size:6.15pt;line-height:1.14;white-space:nowrap}
  .print-line{display:grid;grid-template-columns:3.2mm 1fr;column-gap:1.25mm;align-items:center;min-height:3mm}
  .print-line svg{display:block!important;width:3mm!important;height:3mm!important;overflow:visible;fill:none;stroke:#292426;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .print-address{align-items:start}.print-address svg{margin-top:.1mm}.print-address span{line-height:1.34}
  .print-corner{position:absolute;inset:0;width:89mm;height:59mm;display:block;pointer-events:none}
  .corner-light{fill:#cbdcb8}.corner-dark{fill:#91b9aa}
  .print-shape{position:absolute;display:block}
  .print-back{padding:8mm}.print-back>strong{font-size:7.5pt;color:#4d4d51}.note-lines{margin-top:1mm;width:76mm}.note-lines i{display:block;height:5.2mm;border-top:.18mm solid #aeb2b3}
  .shape-c{right:-2mm;bottom:-2mm;width:58mm;height:48mm;background:#e4efd2;clip-path:polygon(100% 0,100% 100%,15% 100%,10% 96%,7% 90%,7% 84%,10% 78%)}
  .shape-c:before{content:"";position:absolute;left:3.8mm;bottom:2.8mm;width:10mm;height:10mm;background:#e4efd2;border-radius:50%}
  .print-back>b{position:absolute;right:12mm;bottom:7.2mm;color:#1f4426;font-size:6.5pt;z-index:2}
  .print-card:last-child{page-break-after:auto}
}
