*{box-sizing:border-box}
:root{--ink:#16243a;--muted:#64738a;--line:#dfe6ef;--blue:#1f5b8f;--blue2:#17324d;--bg:#f4f7fb;--white:#fff;--green:#177b57;--shadow:0 18px 55px rgba(23,50,77,.10)}
html{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 10% 0%,#e8f2fb 0,transparent 38%),var(--bg)}
a{color:inherit}
button,input{font:inherit}
.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px clamp(18px,4vw,56px);background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,var(--blue),var(--blue2));color:white;font-weight:900;font-size:22px}
.brand strong,.brand small{display:block}.brand small{color:var(--muted);margin-top:2px}
.topnav{display:flex;align-items:center;gap:18px}.topnav a{text-decoration:none;font-weight:700;color:var(--muted)}
.topnav form{margin:0}.topnav button{border:0;background:#eef3f8;color:var(--ink);padding:10px 14px;border-radius:11px;font-weight:800;cursor:pointer}
.page{width:min(1240px,calc(100% - 32px));margin:0 auto;padding:36px 0 54px}
.hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:34px;border-radius:26px;color:white;background:linear-gradient(135deg,var(--blue2),var(--blue));box-shadow:var(--shadow)}
.hero.compact{padding:28px}.hero h1{font-size:clamp(30px,5vw,48px);margin:8px 0}.hero p{margin:0;color:#dbe9f5}
.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:12px;font-weight:900;opacity:.85}
.full-admin-badge{white-space:nowrap;padding:10px 14px;border-radius:999px;background:#dff7ec;color:#116647;font-weight:900}
.section-heading{display:flex;justify-content:space-between;margin:34px 4px 18px}.section-heading h2{margin:0 0 5px}.section-heading p{margin:0;color:var(--muted)}
.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.module-card{display:flex;gap:16px;min-height:205px;padding:23px;border:1px solid var(--line);border-radius:22px;background:white;box-shadow:0 10px 30px rgba(23,50,77,.06)}
.module-card.planned{background:#fbfcfe}.module-icon{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:15px;background:#edf4fa;font-size:25px}
.module-copy{display:flex;flex-direction:column;min-width:0}.module-copy h3{font-size:20px;margin:12px 0 8px}.module-copy p{margin:0;color:var(--muted);line-height:1.55}
.module-state{height:25px}.state{display:inline-block;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.state.ready{background:#e2f6ed;color:var(--green)}.state.planned{background:#eef1f5;color:#66748a}
.card-link{margin-top:auto;padding-top:14px;color:var(--blue);font-weight:900;text-decoration:none}
.status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}.status-card{padding:24px;border-radius:20px;background:white;border:1px solid var(--line);box-shadow:0 8px 24px rgba(23,50,77,.05)}
.status-card span{display:block;color:var(--muted);margin-bottom:9px}.status-card strong{font-size:22px}.status-card.wide{grid-column:span 2}.small-value{font-size:14px!important;line-height:1.5}
.login-shell{display:grid;place-items:center;min-height:calc(100vh - 210px)}.login-card{display:grid;grid-template-columns:1.1fr .9fr;width:min(900px,100%);overflow:hidden;border-radius:28px;background:white;border:1px solid var(--line);box-shadow:var(--shadow)}
.login-intro{padding:52px;color:white;background:linear-gradient(145deg,var(--blue2),var(--blue))}.login-intro h1{font-size:38px;line-height:1.08;margin:12px 0}.login-intro p{color:#dbe9f5;line-height:1.6}
.login-form{display:flex;flex-direction:column;padding:48px}.login-form label{font-weight:850;margin:15px 0 7px}.login-form input{width:100%;padding:13px 14px;border:1px solid #ccd7e5;border-radius:12px}.login-form input:focus{outline:3px solid rgba(31,91,143,.15);border-color:var(--blue)}
.primary-button{margin-top:22px;border:0;border-radius:13px;padding:14px 18px;background:var(--blue);color:white;font-weight:900;cursor:pointer}.form-error{padding:12px;border-radius:10px;background:#fff0ef;color:#9e3434}
.messages{margin-bottom:18px}.message{padding:13px 15px;border-radius:12px;background:#e3f6ed;color:#126746}
.footer{display:flex;justify-content:space-between;gap:20px;padding:22px clamp(18px,4vw,56px);border-top:1px solid var(--line);color:var(--muted);font-size:13px;background:white}
@media(max-width:900px){.module-grid,.status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.login-card{grid-template-columns:1fr}.login-intro{padding:34px}.login-form{padding:34px}}
@media(max-width:650px){.topbar{align-items:flex-start}.topnav{flex-wrap:wrap;justify-content:flex-end}.page{width:min(100% - 20px,1240px);padding-top:18px}.hero{flex-direction:column;padding:24px}.module-grid,.status-grid{grid-template-columns:1fr}.status-card.wide{grid-column:auto}.module-card{min-height:auto}.footer{flex-direction:column}}

/* ===== V0.3.6H Dashboard- und Kopfzeilen-Optimierung ===== */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar.topbar-slim{gap:14px;padding:10px clamp(16px,3vw,42px)}
.topbar-slim .brand{min-width:0}
.topbar-slim .brand-mark{width:36px;height:36px;border-radius:11px;font-size:19px}
.topbar-slim .brand strong{font-size:18px;line-height:1.05}
.topbar-slim .brand small{font-size:12px;line-height:1.1}
.header-module-search{flex:1;display:flex;justify-content:center;min-width:0}
.header-module-search input{width:min(720px,100%);padding:11px 16px;border:1px solid #ccd7e5;border-radius:999px;background:#f8fbff;box-shadow:inset 0 1px 0 rgba(255,255,255,.85)}
.header-module-search input:focus{outline:3px solid rgba(31,91,143,.12);border-color:var(--blue);background:#fff}
.topbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.topbar-link{text-decoration:none;font-weight:800;color:var(--ink);padding:8px 12px;border-radius:10px}
.topbar-link:hover{background:#eef4f9}
.topbar-link-muted{color:var(--muted)}
.topbar-user{padding:8px 10px;border-radius:999px;background:#f3f7fb;color:var(--muted);font-weight:700;font-size:13px}
.topbar-button{border:0;background:#eef3f8;color:var(--ink);padding:10px 14px;border-radius:11px;font-weight:800;cursor:pointer}
.hero.hero-compact{padding:26px 30px}
.section-heading.section-heading-compact{align-items:end;gap:20px;margin:28px 4px 16px}
.module-result-pill{white-space:nowrap;padding:8px 12px;border-radius:999px;background:#edf4fa;color:var(--blue2);font-weight:850}
.module-explorer{display:grid;gap:14px;margin:0 0 18px;padding:18px 20px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(23,50,77,.05)}
.module-explorer-title{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.module-explorer-title strong{font-size:16px}
.module-explorer-title span{color:var(--muted);font-size:14px}
.module-chip-nav{display:flex;flex-wrap:wrap;gap:10px}
.module-chip{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:10px 14px;border:1px solid #dbe4ee;border-radius:999px;background:#f8fbff;color:var(--blue2);text-decoration:none;font-weight:800}
.module-chip:hover{background:#edf4fa}
.module-chip.planned{background:#f6f7f9;color:#6c7a8f}
.module-chip[hidden]{display:none!important}
.module-card[hidden]{display:none!important}
.module-empty-state{margin-top:14px;padding:18px 20px;border:1px dashed #c7d5e5;border-radius:18px;background:#fff;color:var(--muted);font-weight:700}
@media(max-width:950px){
  .topbar.topbar-slim{flex-wrap:wrap}
  .header-module-search{order:3;width:100%}
  .header-module-search input{width:100%}
}
@media(max-width:650px){
  .topbar-slim .brand strong{font-size:17px}
  .topbar-actions{width:100%;justify-content:flex-start}
  .section-heading.section-heading-compact{flex-direction:column;align-items:flex-start}
  .module-explorer-title{flex-direction:column;align-items:flex-start}
}
/* ===== Ende V0.3.6H ===== */

/* ===== V0.3.6K Einstellungen, Kopfzeile, Suche und Deutsch ===== */
.topbar.topbar-slim{gap:18px;padding:12px clamp(16px,3vw,42px)}
.topbar-slim .brand-mark{width:38px;height:38px;border-radius:12px;font-size:20px}
.topbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}
.action-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border-radius:12px;text-decoration:none;font-weight:850;border:1px solid transparent}
.action-button-primary{background:var(--blue);color:#fff}
.action-button-primary:hover{background:#173f67}
.action-button-secondary{background:#eef4fa;color:var(--blue2);border-color:#cddbea}
.action-button-secondary:hover{background:#e3edf7}
.action-button-logout{background:#ff6aa8;color:#fff;cursor:pointer}
.action-button-logout:hover{background:#ea4f92}
.topbar-user{padding:9px 12px;border-radius:999px;background:#f3f7fb;color:var(--muted);font-weight:800;font-size:13px}
.hero.hero-compact{padding:26px 30px}
.module-search-panel{margin:26px 0 18px;padding:22px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 8px 24px rgba(23,50,77,.05)}
.module-search-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap}
.module-search-panel-head h2{margin:0 0 6px}
.module-search-panel-head p{margin:0;color:var(--muted)}
.module-search-input-wrap{margin-top:16px}
.module-search-input-wrap input{width:100%;padding:14px 18px;border:1px solid #ccd7e5;border-radius:16px;background:#f8fbff;font-size:18px}
.module-search-input-wrap input:focus{outline:3px solid rgba(31,91,143,.12);border-color:var(--blue);background:#fff}
.section-heading.section-heading-compact{align-items:end;gap:20px;margin:18px 4px 16px}
.module-result-pill{white-space:nowrap;padding:8px 12px;border-radius:999px;background:#edf4fa;color:var(--blue2);font-weight:850}
.module-explorer{display:grid;gap:14px;margin:0 0 18px;padding:18px 20px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(23,50,77,.05)}
.module-explorer-title{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.module-explorer-title strong{font-size:16px}
.module-explorer-title span{color:var(--muted);font-size:14px}
.module-chip-nav{display:flex;flex-wrap:wrap;gap:10px}
.module-chip{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:10px 14px;border:1px solid #dbe4ee;border-radius:999px;background:#f8fbff;color:var(--blue2);text-decoration:none;font-weight:800}
.module-chip:hover{background:#edf4fa}
.module-chip.planned{background:#f6f7f9;color:#6c7a8f}
.module-empty-state{margin-top:14px;padding:18px 20px;border:1px dashed #c7d5e5;border-radius:18px;background:#fff;color:var(--muted);font-weight:700}
.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:22px;margin-top:24px}
.settings-card{padding:24px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 8px 24px rgba(23,50,77,.05)}
.settings-card h2{margin-top:0}
.settings-list{margin:0;padding-left:18px;display:grid;gap:10px}
.settings-note{margin-top:14px;color:var(--muted)}
@media(max-width:900px){
  .topbar.topbar-slim{flex-wrap:wrap}
  .topbar-actions{width:100%;justify-content:flex-start}
}
@media(max-width:650px){
  .module-search-panel-head,.module-explorer-title{flex-direction:column;align-items:flex-start}
}
/* ===== Ende V0.3.6K ===== */

/* ===== V0.3.6M Persönliche Modulanordnung ===== */
.module-heading-with-actions{align-items:center}
.module-order-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.module-order-button,.module-order-reset{min-height:42px;padding:10px 15px;border-radius:12px;font-weight:850;cursor:pointer}
.module-order-button{border:1px solid var(--blue);background:var(--blue);color:#fff}
.module-order-button:hover,.module-order-button.active{background:var(--blue2);border-color:var(--blue2)}
.module-order-reset{border:1px solid #cad7e5;background:#fff;color:var(--blue2)}
.module-order-reset:hover{background:#eef4fa}
.module-order-help{margin:-4px 0 18px;padding:13px 16px;border:1px solid #cadbea;border-radius:14px;background:#edf5fc;color:var(--blue2);font-weight:750}
.module-card{position:relative}
.module-drag-handle{display:none;position:absolute;z-index:3;top:13px;right:13px;width:42px;height:42px;border:1px solid #c8d8e8;border-radius:13px;background:#fff;color:var(--blue2);font-size:24px;line-height:1;cursor:grab;touch-action:none;box-shadow:0 5px 16px rgba(23,50,77,.12)}
.module-drag-handle:active{cursor:grabbing}
.module-reorder-mode .module-card{cursor:grab;user-select:none;border:2px dashed #8bb2d2;box-shadow:0 14px 35px rgba(23,50,77,.12)}
.module-reorder-mode .module-card:hover{transform:translateY(-2px)}
.module-reorder-mode .module-drag-handle{display:grid;place-items:center}
.module-reorder-mode .card-link{pointer-events:none;opacity:.45}
.module-card-dragging{opacity:.72;transform:scale(.985)!important;box-shadow:0 22px 48px rgba(23,50,77,.22)!important}
.module-pointer-dragging{user-select:none;cursor:grabbing}
@media(max-width:650px){
  .module-heading-with-actions{align-items:flex-start}
  .module-order-actions{width:100%;justify-content:flex-start}
  .module-order-button,.module-order-reset{flex:1}
}
/* ===== Ende V0.3.6M ===== */


/* BFZ_V0312Y_HEADER_LOGO */
.brand-mark.brand-mark-logo{width:76px;min-width:76px;height:44px;padding:0;background:transparent;border-radius:9px;overflow:hidden}
.brand-logo-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
@media(max-width:700px){.brand-mark.brand-mark-logo{width:58px;min-width:58px;height:40px}}

/* BFZ_V0312Y4_HEADER_LOGO_SCALE */
.brand-mark.brand-mark-logo{
  width:var(--brand-logo-w,99px);
  min-width:var(--brand-logo-w,99px);
  height:var(--brand-logo-h,57px);
  transition:width .16s ease,min-width .16s ease,height .16s ease;
}
@media(max-width:700px){
  .brand-mark.brand-mark-logo{
    width:var(--brand-logo-mobile-w,75px);
    min-width:var(--brand-logo-mobile-w,75px);
    height:var(--brand-logo-mobile-h,52px);
  }
}
