:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#1c293b;background:#f5f7fb;--red:#125a91;--red-dark:#0b426d;--border:#dbe3ec;--muted:#5c6b7f;--surface:#fff;--shadow:0 12px 34px rgba(30,43,70,.055)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;display:flex;flex-direction:column}a{color:var(--red);text-underline-offset:3px}a:hover{color:var(--red-dark)}button,input,select{font:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #73b9e8;outline-offset:2px}header{background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:14px;padding:12px clamp(16px,3vw,46px);box-shadow:0 2px 12px rgba(24,37,60,.025)}.brand{display:flex;align-items:center;gap:12px;min-width:0;flex:0 1 270px}.brand img{width:48px;height:48px;object-fit:contain;flex:none}.brand>div{min-width:0}.brand strong{display:block;font-size:1rem;line-height:1.3;overflow-wrap:anywhere}.brand small,.personrow small{display:block;color:var(--muted)}nav{display:flex;align-items:center;gap:3px;flex:1;flex-wrap:wrap}nav a{font-size:.92rem;font-weight:600;padding:9px 10px;border-radius:9px;color:#334357;text-decoration:none;white-space:nowrap}nav a:hover,nav a[aria-current=page]{background:#e8f3fb;color:var(--red)}.logout{margin-left:auto;flex:none}.logout button{background:#e8f3fb;color:var(--red);border:1px solid #c7e3f5;box-shadow:none}.logout button:hover{background:#d5eafa;color:#0b426d}main{width:100%;max-width:1140px;margin:32px auto 70px;padding:0 20px;flex:1}h1{font-size:clamp(1.7rem,3vw,2.25rem);letter-spacing:-.035em;margin:0 0 10px}h2{font-size:1.2rem;margin:0 0 16px;letter-spacing:-.015em}p{line-height:1.55;color:var(--muted)}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:22px}.pagehead p{margin:0}.panel{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:24px;margin:16px 0;box-shadow:var(--shadow)}.narrow{max-width:500px;margin:35px auto}.toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:#fff;border:1px solid var(--border);border-radius:14px;padding:10px;margin:20px 0;box-shadow:var(--shadow)}.toolbar a{color:#334357;text-decoration:none;border-radius:8px;padding:9px 12px;font-weight:600}.toolbar a:hover{background:#e8f3fb;color:var(--red)}button,.button{appearance:none;border:1px solid var(--red);background:var(--red);color:#fff;border-radius:9px;padding:10px 16px;min-height:42px;font-weight:650;cursor:pointer;box-shadow:0 3px 8px rgba(18,90,145,.12);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;transition:background .15s,border-color .15s,transform .15s}.button:hover,button:hover{background:var(--red-dark);border-color:var(--red-dark);color:#fff;transform:translateY(-1px)}button:disabled{opacity:.55;cursor:not-allowed;transform:none}.danger button{background:#fff;color:var(--red);border-color:#bdddf2;box-shadow:none}.danger button:hover{background:#e8f3fb;color:var(--red-dark);border-color:#a8d2ed}.inline{display:inline-flex}label{display:block;font-weight:600;margin:13px 0;color:#27374a}input:not([type=checkbox]):not([type=file]),select{display:block;width:100%;max-width:540px;border:1px solid #aebfd0;border-radius:9px;padding:11px 12px;margin-top:7px;background:#fff;color:#172435}input:focus,select:focus{border-color:var(--red)}input[type=file]{font-size:.9rem;max-width:100%;color:#536176}input[type=file]::file-selector-button{font:inherit;font-weight:650;border:1px solid #bdddf2;background:#f0f8fd;color:var(--red);border-radius:8px;padding:9px 12px;margin-right:12px;cursor:pointer}.check{display:flex;align-items:center;gap:10px;font-weight:500;margin:10px 0}.check input{accent-color:var(--red);width:20px;height:20px}fieldset{border:1px solid var(--border);border-radius:11px;margin:18px 0;padding:12px 16px}legend{font-weight:700}.area{margin:30px 0 11px;border-left:5px solid var(--red);padding-left:13px}.personrow{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;padding:17px 19px;border:1px solid var(--border);border-radius:12px;margin:7px 0;color:inherit;text-decoration:none;box-shadow:var(--shadow)}.personrow:hover{border-color:#71acd0;color:inherit;box-shadow:0 9px 24px rgba(18,90,145,.09)}.badge{border-radius:50px;padding:7px 11px;white-space:nowrap;font-size:.85rem;font-weight:650}.warn{background:#fff0da;color:#76500b}.success{background:#e6f5e9;color:#166636}.completion{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.completion label{margin:0}.completion label:first-of-type{flex:2;min-width:210px}.completion label:nth-of-type(2){flex:1;min-width:180px}.items{display:grid;gap:2px}.item{display:flex;gap:13px;align-items:center;padding:13px 0;border-bottom:1px solid #e9edf2;flex-wrap:wrap}.item:last-child{border-bottom:0}.item span{flex:1;min-width:180px}.item>a{border:1px solid #cbdbe8;padding:8px 12px;border-radius:8px;text-decoration:none;color:#34455b;font-weight:650}.item>a:hover{border-color:var(--red);color:var(--red);background:#f0f8fd}.inline button{padding:8px 12px;min-height:39px}.branding-card>div:first-child p{margin:-6px 0 16px}.branding-layout{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.image-preview{width:170px;min-height:170px;border-radius:14px;background:#f7f8fb;border:1px dashed #c9d2df;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;gap:10px}.preview{width:110px;height:105px;object-fit:contain}.preview-caption{font-size:.8rem;text-align:center;color:var(--muted);overflow-wrap:anywhere}.branding-controls{flex:1;min-width:260px}.branding-upload{display:grid;justify-items:start;gap:10px}.branding-upload label{margin:0}.file-status{font-size:.88rem;margin:0;overflow-wrap:anywhere}.branding-remove{margin-top:13px}footer{text-align:center;padding:26px;color:#6a788b;border-top:1px solid var(--border)}@media(max-width:1100px){header{flex-wrap:wrap}.brand{flex:1 1 250px}nav{order:3;width:100%;flex:1 1 100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.logout{margin-left:auto}}@media(max-width:650px){header{padding:12px 16px}.brand{flex:1;max-width:calc(100% - 110px)}.brand strong{font-size:.92rem}.brand img{width:42px;height:42px}.logout button{min-height:39px;padding:8px 10px}main{padding:0 14px;margin:22px auto 45px}.panel{padding:18px}.completion{display:block}.completion label+label{margin-top:15px}.completion button{margin-top:14px}.personrow{align-items:flex-start;flex-direction:column}.branding-layout{align-items:flex-start}.image-preview{width:100%;min-height:150px}.toolbar{gap:1px}.toolbar a{padding:8px}}

.icon{width:19px;height:19px;flex:none;vertical-align:middle}nav a{display:inline-flex;align-items:center;gap:7px}.account{display:flex;align-items:center;gap:7px;margin-left:auto}.account .profile{display:inline-flex;align-items:center;gap:6px;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;font-weight:650;padding:9px;border-radius:9px}.account .profile:hover{background:#e8f3fb}.theme-toggle,.logout button{width:42px;height:42px;padding:9px;box-shadow:none;display:inline-flex;align-items:center;justify-content:center}.theme-toggle{background:transparent;color:var(--red);border-color:var(--border)}.theme-toggle:hover{background:#e8f3fb;color:var(--red-dark)}.logout{margin:0}
:root[data-theme=dark]{color-scheme:dark;color:#e4ecf6;background:#101b2a;--border:#334760;--muted:#bbcadb;--surface:#1a2b40;--shadow:0 12px 34px rgba(0,0,0,.16);--red:#73bdf1;--red-dark:#a4d6f6}body{background:inherit;color:inherit}:root[data-theme=dark] header,:root[data-theme=dark] .toolbar,:root[data-theme=dark] .personrow{background:var(--surface)}:root[data-theme=dark] nav a,:root[data-theme=dark] .toolbar a,:root[data-theme=dark] label,:root[data-theme=dark] .personrow,:root[data-theme=dark] .item>a{color:#e4ecf6}:root[data-theme=dark] nav a:hover,:root[data-theme=dark] nav a[aria-current=page],:root[data-theme=dark] .toolbar a:hover,:root[data-theme=dark] .account .profile:hover{background:#27445e;color:#a4d6f6}:root[data-theme=dark] input:not([type=checkbox]):not([type=file]),:root[data-theme=dark] select{background:#122236;border-color:#50647b;color:#f3f7fc}:root[data-theme=dark] button:not(.theme-toggle),:root[data-theme=dark] .button{background:#266a9d;color:white;border-color:#3986bc}:root[data-theme=dark] .theme-toggle{color:#a4d6f6;background:#213951}:root[data-theme=dark] .image-preview{background:#122236}:root[data-theme=dark] .item{border-color:var(--border)}:root[data-theme=dark] .warn{background:#5b421b;color:#ffe1a2}:root[data-theme=dark] .success{background:#1b4934;color:#b9ebcb}:root[data-theme=dark] .danger button{background:#402b38;color:#ffc7d1}:root[data-theme=dark] input[type=file]{color:#c7d6e6}@media(max-width:1100px){.account{order:2}nav{order:3}}@media(max-width:650px){.brand{max-width:none;flex:1 1 100%}.account{margin-left:0}.account .profile{max-width:calc(100vw - 170px)}nav{order:3}.theme-toggle,.logout button{min-height:40px}}

/* Einheitliche Bedienung und bessere Lesbarkeit auf schmalen Bildschirmen. */
header{min-width:0}
.brand{flex:0 1 255px;min-width:175px}
nav{min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
nav a{flex:none}
.account{flex:none}
.account .profile span{overflow:hidden;text-overflow:ellipsis}
.theme-icon-dark{display:none}
:root[data-theme=dark] .theme-icon-light{display:none}
:root[data-theme=dark] .theme-icon-dark{display:inline-flex}
.help{font-size:.92rem;line-height:1.5;margin:4px 0 12px;color:var(--muted)}
.pagehead .help{margin-top:6px}
.back-link{display:inline-flex;margin-bottom:10px}
.badge.danger-badge{background:#ffe2e4;color:#8c1830}
.badge.neutral{background:#e8edf4;color:#42546d}
.button.secondary,.item>a.button.secondary{background:var(--surface);border:1px solid var(--border);color:var(--red);box-shadow:none;min-height:42px;padding:10px 16px}
.button.secondary:hover,.item>a.button.secondary:hover{background:#e8f3fb;color:var(--red-dark);border-color:#a8d2ed}
.danger button,.inline button{min-height:42px;padding:10px 16px}
.danger button{background:var(--surface);color:#a22539;border-color:#dba8b1;box-shadow:none}
.danger button:hover{background:#ffe8eb;color:#84162d;border-color:#c97f91}
.field{margin:13px 0}
.field input,.field select{min-height:44px}
button,.button,.file-label{min-height:42px}
.file-label{position:relative;display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;margin:0;border:1px solid var(--border);border-radius:9px;padding:10px 16px;background:var(--surface);color:var(--red);font-weight:650;cursor:pointer}
.file-label:hover{background:#e8f3fb;border-color:#a8d2ed}
.file-label:focus-within{outline:3px solid #73b9e8;outline-offset:2px}
.file-label input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.file-status{display:block;max-width:100%;overflow-wrap:anywhere;color:var(--muted)}
.branding-upload,.update-upload{display:grid;justify-items:start;gap:10px}
.branding-card>div:first-child p{margin:0 0 16px}
:root[data-theme=dark] .badge.danger-badge{background:#613440;color:#ffd3dc}
:root[data-theme=dark] .badge.neutral{background:#334760;color:#d2dfed}
:root[data-theme=dark] .button.secondary,:root[data-theme=dark] .item>a.button.secondary{background:#1a2b40;color:#a4d6f6;border-color:#50647b}
:root[data-theme=dark] .button.secondary:hover,:root[data-theme=dark] .item>a.button.secondary:hover{background:#27445e}
:root[data-theme=dark] .danger button{background:#402b38;color:#ffc7d1;border-color:#76505a}
:root[data-theme=dark] .danger button:hover{background:#563440;color:#fff0f2}
:root[data-theme=dark] .file-label{background:#1a2b40;color:#a4d6f6;border-color:#50647b}
:root[data-theme=dark] .file-label:hover{background:#27445e}
@media(max-width:1100px){.brand{flex:1 1 250px}nav{order:3;width:100%;flex:1 1 100%;overflow-x:auto}.account{order:2}}
@media(max-width:650px){.brand{flex:1 1 100%;max-width:none}.account{margin-left:0}nav{order:3}.toolbar{overflow-x:auto;flex-wrap:nowrap}.toolbar a{white-space:nowrap}.completion label:first-of-type,.completion label:nth-of-type(2){min-width:0}}

/* Keep the account controls and every menu entry visible on desktop. */
.brand{flex:0 0 300px;min-width:0}
.brand strong{overflow-wrap:normal;word-break:normal;white-space:nowrap}
@media(max-width:1600px){
 header{flex-wrap:wrap}
 .brand{flex:1 1 300px}
 .account{order:2}
 nav{order:3;flex:1 1 100%;width:100%;overflow-x:auto}
}
@media(max-width:650px){
 .brand{flex:1 1 100%;max-width:none}
 .brand strong{white-space:normal}
}
