:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color-scheme:dark;--bg:#101118;--surface:#1d222e;--surface-hover:#252b39;--border:#374052;--text:#f4f5fb;--muted:#b5bed1;--muted2:#8d99b0;--accent:#ac72ff;--accent2:#cf8fff;--shadow:rgba(0,0,0,.15)}*{box-sizing:border-box}html{min-width:320px}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);transition:background .2s,color .2s}body[data-theme="light"]{color-scheme:light;--bg:#f6f7fb;--surface:#fff;--surface-hover:#f3f0fb;--border:#dce0ea;--text:#1a1d29;--muted:#555f73;--muted2:#69748a;--accent:#8835cf;--accent2:#a14bdf;--shadow:rgba(55,31,99,.08)}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.app-shell{max-width:1460px;padding:24px 48px 18px;margin:0 auto;position:relative}.ambient{position:fixed;z-index:-1;pointer-events:none;border-radius:50%;filter:blur(90px);opacity:.15}.ambient-one{width:360px;height:360px;background:#8126ef;top:-280px;left:5%}.ambient-two{width:280px;height:280px;background:#314ae9;right:-240px;top:35%}.site-header,.brand,.header-actions,.top-button{display:flex;align-items:center}.site-header{justify-content:space-between;gap:20px}.brand{text-decoration:none;color:var(--text);gap:14px}.brand-mark{width:114px;height:76px;background:linear-gradient(145deg,#fff 0 48%,#830d97 48%);display:flex;flex-direction:column;justify-content:space-between;padding:6px 9px 7px;border-radius:7px;overflow:hidden;box-shadow:0 5px 20px var(--shadow)}.brand-mark span{font-size:38px;line-height:1;font-weight:950;letter-spacing:-2px;color:#91068e}.brand-mark small{align-self:flex-end;font-style:italic;font-size:19px;font-weight:950;color:white;letter-spacing:1px}.brand-descriptor{display:flex;flex-direction:column;gap:4px}.brand-descriptor strong{font-size:18px;letter-spacing:.1px}.brand-descriptor small{font-size:13px;color:var(--muted)}.header-actions{gap:10px;flex-wrap:wrap;justify-content:flex-end}.top-button{gap:10px;padding:13px 15px;min-height:48px;border:1px solid var(--border);border-radius:16px;color:var(--text);background:var(--surface);transition:background .2s,border-color .2s}.top-button:hover{background:var(--surface-hover);border-color:var(--accent)}.top-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.theme-indicator{background:#9650f3;width:34px;height:20px;display:inline-flex;border-radius:18px;align-items:center;padding:3px;justify-content:flex-end}.theme-indicator span{width:14px;height:14px;background:#fff;border-radius:50%;transition:transform .2s}body[data-theme="light"] .theme-indicator{justify-content:flex-start;background:#8b90a0}.preview-badge,.small-pill{font-size:10px;letter-spacing:1.5px;font-weight:800;border:1px solid rgba(172,114,255,.3);color:var(--accent2);padding:9px 12px;border-radius:999px;background:rgba(172,114,255,.07)}.main-content{padding-top:38px}.hero{position:relative;display:flex;min-height:255px;justify-content:space-between;gap:20px}.hero-copy{z-index:1;max-width:720px}.eyebrow,.section-kicker{font-size:11px;font-weight:800;letter-spacing:2px;color:var(--accent)}.eyebrow{display:flex;align-items:center;gap:10px}.status-dot,.online-mark span{display:inline-block;width:8px;height:8px;background:#53dab4;border-radius:50%;box-shadow:0 0 0 4px rgba(83,218,180,.1)}h1,h2,h3,p{margin:0}.hero h1{margin-top:15px;font-size:clamp(38px,4.6vw,62px);font-weight:800;line-height:1.07;letter-spacing:-2.5px}.hero h1 span{color:var(--accent2)}.hero p{max-width:600px;font-size:16px;line-height:1.65;color:var(--muted);margin-top:17px}.hero-meta{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:13px;margin-top:24px;color:var(--muted)}.meta-separator{height:15px;width:1px;background:var(--border)}.online-mark{display:flex;gap:10px;align-items:center;color:#55d9ae;font-weight:650}.online-mark span{width:6px;height:6px}.hero-art{position:absolute;right:10px;top:-8px;width:325px;height:260px;opacity:.95}.art-grid{position:absolute;inset:20px;background-image:linear-gradient(rgba(169,100,255,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(169,100,255,.13) 1px,transparent 1px);background-size:24px 24px;transform:perspective(350px) rotateX(21deg) rotateZ(-10deg);mask-image:radial-gradient(ellipse,#000 25%,transparent 72%)}.art-circle{position:absolute;border:1px solid rgba(185,125,255,.23);border-radius:50%;inset:22px 52px}.art-two{inset:48px 79px;border-style:dashed}.art-core{position:absolute;top:65px;left:112px;width:104px;height:104px;display:grid;place-items:center;border-radius:30px;color:#d4aeff;background:linear-gradient(145deg,#70369e,#332044);border:1px solid #995cc8;box-shadow:0 22px 80px rgba(137,57,213,.3);transform:rotate(-7deg)}.art-core svg{width:67px;height:67px}.art-chip{position:absolute;background:#2c223e;border:1px solid #583674;color:#d1a5f6;border-radius:9px;padding:8px 12px;font-weight:800;font-size:12px;box-shadow:0 8px 25px rgba(0,0,0,.12)}.chip-one{right:25px;top:55px}.chip-two{bottom:35px;left:55px}.section{margin-top:38px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:17px}.section h2{font-size:27px;line-height:1.2;letter-spacing:-.7px;margin-top:6px}.section-subtitle{font-size:13px;color:var(--muted2)}.tile-grid{display:grid;gap:15px}.tile-grid-large{grid-template-columns:repeat(2,minmax(0,1fr))}.tile-grid-four{grid-template-columns:repeat(4,minmax(0,1fr))}.tile{position:relative;min-height:112px;display:flex;align-items:center;gap:16px;padding:21px;border-radius:23px;background:var(--surface);border:1px solid var(--border);transition:border-color .2s,transform .2s,background .2s}.tile-feature{min-height:125px}.tile:hover{border-color:rgba(172,114,255,.65);background:var(--surface-hover);transform:translateY(-2px)}.tile-icon{flex:none;width:52px;height:52px;border-radius:17px;display:grid;place-items:center}.tile-icon svg,.login-icon svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.purple{background:#3d2a57;color:#c48fff}.blue{background:#233856;color:#8cb7ff}.mint{background:#183d36;color:#6ce4bd}.amber{background:#4c3424;color:#f8bd7a}.rose{background:#492735;color:#f59ab4}.tile-text{min-width:0;padding-right:8px}.tile h3{font-size:16px;line-height:1.3;font-weight:750}.tile p{font-size:13px;line-height:1.5;margin-top:5px;color:var(--muted)}.tile-arrow{margin-left:auto;display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;background:rgba(168,104,246,.15);color:var(--accent2);font-size:20px}.tile-grid-four .tile{padding:17px 15px;gap:12px;flex-direction:column;align-items:flex-start}.tile-grid-four .tile-arrow{position:absolute;right:15px;top:23px}.tile-grid-four .tile-text{padding-right:0}.footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--border);font-size:12px;color:var(--muted2);margin-top:56px;padding:22px 0}.heart{color:var(--accent2)}.hidden{display:none!important}
.login-main{min-height:calc(100vh - 150px);display:grid;grid-template-columns:1fr .85fr;align-items:stretch;max-width:1120px;margin:55px auto 0;background:var(--surface);border:1px solid var(--border);border-radius:30px;overflow:hidden;box-shadow:0 25px 80px var(--shadow)}.login-panel{padding:clamp(28px,5vw,65px);display:flex;flex-direction:column;justify-content:center}.login-icon{width:60px;height:60px;display:grid;place-items:center;border-radius:19px;color:#d2a3ff;background:#3d2a57;margin-bottom:26px}.login-panel h1{font-size:clamp(30px,3vw,43px);letter-spacing:-1.5px;margin-top:10px}.login-panel>p{color:var(--muted);line-height:1.6;margin-top:10px;margin-bottom:28px}.login-panel form{display:flex;flex-direction:column}.login-panel label{font-size:13px;font-weight:700;margin:0 0 9px}.login-panel input{color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:13px;padding:15px 17px;margin-bottom:21px;width:100%}.login-submit{margin-top:3px;color:white;background:linear-gradient(105deg,#8b35d9,#a158eb);border:0;border-radius:14px;padding:17px 20px;display:flex;justify-content:space-between;font-weight:750}.login-notice{font-size:12px;color:var(--muted);line-height:1.6;border-left:3px solid var(--accent);padding-left:12px;margin-top:20px}.preview-link{align-self:flex-start;border:0;background:none;color:var(--accent2);padding:10px 0;margin-top:18px;font-weight:700}.login-side{background:radial-gradient(ellipse at 65% 18%,#7f34be 0,transparent 50%),linear-gradient(145deg,#37204e,#15121e);position:relative;display:flex;align-items:end;padding:52px;overflow:hidden;color:#fff}.login-side:before,.login-side:after{content:"";position:absolute;border:1px solid #ffffff1a;border-radius:50%;width:400px;height:400px;right:-130px;top:-160px}.login-side:after{width:300px;height:300px;right:-80px;top:-110px}.login-side-content{position:relative;z-index:1}.login-side h2{font-size:clamp(32px,3.8vw,52px);letter-spacing:-2px;line-height:1.1;margin:26px 0 20px}.login-side p{line-height:1.7;color:#d5c7e1}.login-side-line{height:1px;background:#ffffff42;margin:32px 0 20px}.login-side-content>span:last-child{font-size:13px;color:#ddd0ee}
@media(max-width:1050px){.app-shell{padding-left:28px;padding-right:28px}.hero-art{opacity:.32}.tile-grid-four{grid-template-columns:repeat(2,minmax(0,1fr))}.tile-grid-four .tile{flex-direction:row;padding:21px}.tile-grid-four .tile-arrow{position:static}}@media(max-width:680px){.app-shell{padding:17px 17px 0}.site-header{align-items:flex-start;flex-direction:column}.brand-mark{width:84px;height:57px;padding:5px 7px}.brand-mark span{font-size:28px}.brand-mark small{font-size:14px}.brand-descriptor strong{font-size:16px}.header-actions{justify-content:flex-start;width:100%;gap:8px}.top-button{font-size:13px;min-height:42px;padding:9px 12px;border-radius:12px}.preview-badge{font-size:9px;padding:8px 10px}.main-content{padding-top:30px}.hero{min-height:0}.hero h1{font-size:clamp(35px,9vw,47px);letter-spacing:-1.5px}.hero p{font-size:14px}.hero-art{display:none}.hero-meta{gap:10px;font-size:12px}.section{margin-top:37px}.section h2{font-size:23px}.section-subtitle{display:none}.tile-grid-large,.tile-grid-four{grid-template-columns:1fr}.tile,.tile-grid-four .tile{min-height:95px;padding:15px;border-radius:17px;gap:13px}.tile-icon{width:47px;height:47px;border-radius:14px}.tile h3{font-size:15px}.tile p{font-size:12px}.footer{flex-direction:column;gap:8px;margin-top:38px}.login-main{grid-template-columns:1fr;margin:30px auto 0;min-height:0;border-radius:22px}.login-panel{padding:27px}.login-side{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}

.logout-form{margin:0}.login-main{margin-top:55px}

/* Arbeitszeit-Kacheln: vorerst nur Darstellung, keine Buchungsaktion. */
.attendance-tile{cursor:default}
.attendance-tile:hover{transform:none}
.attendance-soon{margin-left:auto;flex:none;display:inline-flex;align-items:center;border-radius:999px;border:1px solid var(--border);padding:7px 11px;color:var(--muted);font-size:12px;font-weight:700}
@media(max-width:680px){.attendance-soon{font-size:10px;padding:6px 8px}}

/* Telefonverzeichnis: ausgeklappte Kontaktliste im bestehenden Kachel-Design */
.contact-directory{min-width:0}.contact-directory summary{cursor:pointer;list-style:none}.contact-directory summary::-webkit-details-marker{display:none}.contact-directory summary .tile-text{display:flex;flex-direction:column;gap:5px}.contact-directory summary .tile-text strong{font-size:16px}.contact-directory summary .tile-text>span{font-size:13px;color:var(--muted)}.contact-directory[open] .contact-summary{border-color:var(--accent);border-radius:23px 23px 0 0}.contact-directory[open] .tile-arrow{transform:rotate(180deg)}.contact-list{background:var(--surface);border:1px solid var(--border);border-top:0;border-radius:0 0 23px 23px;padding:12px 20px 18px}.contact-person{padding:14px 0}.contact-person+.contact-person{border-top:1px solid var(--border)}.contact-person>strong{display:block;margin-bottom:10px;font-size:15px}.contact-numbers{display:flex;flex-wrap:wrap;gap:9px}.contact-numbers a{display:inline-flex;align-items:center;gap:10px;min-height:42px;padding:9px 12px;border-radius:12px;border:1px solid var(--border);text-decoration:none;color:var(--text);background:var(--bg);font-size:13px}.contact-numbers a:hover{border-color:var(--accent);color:var(--accent2)}.contact-numbers a span:first-child{color:var(--muted)}.contact-empty{color:var(--muted);font-size:13px;line-height:1.6}.contact-empty code{color:var(--accent2)}@media(max-width:680px){.contact-list{padding:10px 15px 15px}.contact-numbers{flex-direction:column}.contact-numbers a{justify-content:space-between;width:100%}}

/* Die gesamte Wiki-Kachel ist eine klickbare Linkflaeche. */
a.wiki-tile-link, a.wiki-tile-link:visited { display:flex; width:100%; color:var(--text); text-decoration:none; cursor:pointer; }
a.wiki-tile-link .tile-text h3, a.wiki-tile-link .tile-text p { text-decoration:none; }
a.wiki-tile-link:hover, a.wiki-tile-link:focus-visible { border-color:var(--accent); background:var(--surface-hover); }


/* JOLA-Wiki-Logo direkt in der Kachel verwenden. */
.tile-icon-logo{
  background:transparent;
  width:58px;
  height:58px;
  border-radius:16px;
  overflow:hidden;
  padding:0;
}
.tile-icon-logo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:16px;
}
@media(max-width:680px){
  .tile-icon-logo{
    width:50px;
    height:50px;
    border-radius:14px;
  }
  .tile-icon-logo img{
    border-radius:14px;
  }
}

/* Geschütztes Mitarbeiter-Telefonverzeichnis */
.directory-top{margin:36px 0 30px;display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}
.directory-back{color:var(--accent2);text-decoration:none;font-size:14px;font-weight:700}
.directory-back:hover{text-decoration:underline}
.directory-heading h1{font-size:clamp(30px,4vw,45px);margin:8px 0 8px;letter-spacing:-1.4px}
.directory-heading p{color:var(--muted);line-height:1.6}
.directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:28px 0}
.directory-card{border:1px solid var(--border);background:var(--surface);border-radius:22px;padding:23px;min-width:0}
.directory-name{font-size:19px;font-weight:800;margin-bottom:18px;overflow-wrap:anywhere}
.directory-lines{display:grid;gap:10px}
.directory-call{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid var(--border);background:var(--bg);border-radius:13px;color:var(--text);text-decoration:none;min-width:0;transition:border-color .2s,background .2s}
.directory-call:hover,.directory-call:focus-visible{border-color:var(--accent);background:var(--surface-hover)}
.directory-label{display:block;color:var(--muted);font-size:11px;margin-bottom:4px}
.directory-number{display:block;font-weight:650;font-size:15px;overflow-wrap:anywhere}
.directory-dial{flex:none;color:var(--accent2);font-size:22px}
.directory-empty{color:var(--muted);font-size:14px}
.directory-error{border:1px solid var(--border);padding:20px;border-radius:16px;color:var(--muted)}
@media(max-width:700px){.directory-grid{grid-template-columns:1fr}.directory-card{padding:17px}.directory-top{margin:22px 0}}
