:root{font-family:Georgia,'Times New Roman',serif;color:#f8ecd5;background:#0d261e}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 50% -20%,#42644b 0,transparent 58%),linear-gradient(150deg,#0b251d,#19392d 55%,#0b241e)}button,input,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.45;cursor:not-allowed}.shell{max-width:1180px;margin:auto;padding:28px 20px 70px}.top{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;border-bottom:1px solid #977b4d;padding-bottom:18px}.brand{font-size:clamp(23px,4vw,36px);color:#eac67b}.subtitle{color:#d8b979;font-size:13px;letter-spacing:3px;text-transform:uppercase}.nav{display:flex;gap:8px;flex-wrap:wrap}.btn{background:#b89555;color:#162c22;padding:11px 17px;border-radius:9px;font-weight:bold}.btn:hover:not(:disabled){filter:brightness(1.13)}.btn.secondary{background:#315447;color:#f8ecd5;border:1px solid #8e9a73}.btn.danger{background:#7c3336;color:white}.hero{text-align:center;margin:35px auto}.hero h1{font-size:clamp(30px,5vw,56px);margin:10px 0;color:#ffe4a0}.hero p{color:#e6d9bb}.calendar{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.door{min-height:130px;border:2px solid #977c4a;border-radius:12px;background:linear-gradient(140deg,#375947,#17382e);color:#fbe4ae;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;box-shadow:inset 0 0 0 5px #ffffff09,0 8px 18px #0003;transition:transform .2s}.door:not(:disabled):hover{transform:translateY(-4px);border-color:#f8d58a}.door .num{font-size:38px}.door .status{font:12px Arial,sans-serif;color:#e5d6b7}.door.locked{background:#253a32;color:#9eaa98}.door.presented{background:#78502e}.panel{background:#193a2fdd;border:1px solid #8d7950;border-radius:16px;padding:24px;margin-top:22px;box-shadow:0 12px 30px #0002}.panel h2{color:#f7d58e;margin-top:0}.muted{color:#d4c5a6}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px;margin-top:18px}.photo{border:1px solid #937b53;border-radius:12px;overflow:hidden;background:#264638}.photo img{width:100%;height:220px;object-fit:cover;display:block}.photo .info{padding:13px}.photo .name{font-weight:bold;font-size:18px}.medal{color:#f5d27b;font-weight:bold}.vote-options{display:flex;gap:5px;margin-top:10px}.vote-options button{flex:1;background:#3c584a;color:#fff0c9;border:1px solid #8c7650;border-radius:7px;padding:9px 4px}.vote-options button.active{background:#b58d45;color:#13271e}.field{display:flex;flex-direction:column;gap:7px;margin:12px 0}.field input,.field textarea{width:100%;padding:12px;background:#102b22;color:#fff1d2;border:1px solid #8e7c56;border-radius:8px}.field textarea{min-height:110px}.login{max-width:430px;margin:10vh auto}.notice{padding:12px 15px;border-radius:8px;background:#365343;color:#ffe9b2;margin:14px 0}.error{background:#702e35}.users{display:grid;gap:12px}.user{display:flex;gap:15px;align-items:center;justify-content:space-between;border-bottom:1px solid #526b55;padding:12px 0;flex-wrap:wrap}.avatar{height:42px;width:42px;object-fit:cover;border-radius:50%;border:1px solid #c9a968}.ranking{display:grid;gap:9px}.rank{display:flex;justify-content:space-between;align-items:center;padding:15px;background:#28483a;border:1px solid #796c4a;border-radius:9px}.present .calendar{grid-template-columns:repeat(8,1fr)}.present .door{min-height:105px}.present .door .num{font-size:29px}.present .photo img{height:260px}.present .photos{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}.footer{text-align:center;color:#c5b28a;margin-top:45px;font-size:13px}.center{text-align:center}.hidden{display:none!important}@media(max-width:750px){.calendar,.present .calendar{grid-template-columns:repeat(4,1fr)}.door{min-height:100px}.door .num{font-size:28px}}@media(max-width:440px){.calendar,.present .calendar{grid-template-columns:repeat(3,1fr)}.shell{padding:16px 12px}.panel{padding:16px}}

.edit-user{max-width:720px;margin:20px auto}.avatar-large{width:85px;height:85px}.avatar-placeholder{font-size:60px}.edit-user hr{border:0;border-top:1px solid #8d7950;margin:25px 0}.edit-user input[type=checkbox]{width:20px;height:20px;accent-color:#d6ad61}

/* Echte Sterne statt Medaillen in Bewertung und Siegerehrung */
.award-star{display:inline-block;font-family:Arial,sans-serif;font-size:1.55em;line-height:1;vertical-align:-.08em;-webkit-text-stroke:.6px rgba(0,0,0,.35);text-shadow:0 1px 2px #0008;}
.award-star-3{color:#ffd34e;text-shadow:0 0 9px #e6b53980,0 1px 2px #0009;}
.award-star-2{color:#d8e0e9;text-shadow:0 0 8px #cbd6e380,0 1px 2px #0009;}
.award-star-1{color:#dc9863;text-shadow:0 0 8px #a95f3480,0 1px 2px #0009;}
.vote-options button .award-star{font-size:1.5em;}
.medal .award-star,.rank .award-star{font-size:1.65em;margin-right:.15em;}

.nav-avatar{width:26px;height:26px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:6px;border:1px solid #d5b879}.profile-nav{white-space:nowrap}

/* Vollbild-Fotoansicht: Originaldatei, zoombar durch Scrollen bei großen Bildern. */
.photos .photo img{cursor:zoom-in}
.photo-viewer-open{overflow:hidden}
.photo-viewer{position:fixed;inset:0;z-index:10000;background:rgba(4,13,11,.96);display:flex;align-items:center;justify-content:center;overflow:auto;padding:74px 20px 24px}
.photo-viewer-image{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 12px 50px #0009}
.photo-viewer-close{position:fixed;top:15px;right:18px;z-index:10001;padding:12px 18px;border:1px solid #d9b979;border-radius:9px;background:#315447;color:#fff3d4;font:600 16px Arial,sans-serif;cursor:pointer}
.photo-viewer-close:focus-visible{outline:3px solid #ffe4a0;outline-offset:3px}
@media(max-width:600px){.photo-viewer{padding:65px 8px 12px}.photo-viewer-close{top:10px;right:10px}}

/* Danksagung auf der Loginseite */
.login-thanks{margin-top:24px;padding:20px 16px 8px;text-align:center;border-top:1px solid #977b4d;background:linear-gradient(180deg,#b8955512,transparent);border-radius:0 0 12px 12px}.login-thanks-heading{font-size:19px;color:#f7d58e;font-weight:bold}.login-thanks p{font-size:15px;line-height:1.6;color:#e6d9bb}.login-thanks strong{color:#ffe4a0}

/* Weihnachtliche Avatarvorlagen im Benutzerprofil */
.avatar-templates{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:12px;margin:15px 0 25px}.avatar-template{background:#24483a;color:#f6e7c7;border:2px solid #816c4d;border-radius:13px;padding:10px 6px;display:flex;flex-direction:column;align-items:center;gap:7px;min-height:145px}.avatar-template img{width:88px;height:88px;border-radius:20px}.avatar-template span{font-size:12px;text-align:center;line-height:1.2}.avatar-template:hover,.avatar-template:focus-visible{border-color:#ffdc86;background:#315a47}.avatar-template.selected{border-color:#ffd34e;box-shadow:0 0 0 2px #ffd34e66}.avatar-template.selected:after{content:"✓ Ausgewählt";font-size:11px;color:#ffe4a0}

/* Version 1.9: das Profil zeigt den gewählten Avatar statt eines festen Symbols. */
.profile-heading-avatar{width:1.15em;height:1.15em;border-radius:50%;object-fit:cover;vertical-align:-.18em;border:2px solid #d5b879;margin-right:.12em}
.avatar-templates{grid-template-columns:repeat(auto-fill,minmax(125px,1fr))}
.avatar-template[aria-pressed="true"]{border-color:#ffd34e;box-shadow:0 0 0 2px #ffd34e66}

/* Übersichtliche Aufgabenverwaltung */
.task-progress{font-weight:bold;color:#f1d394}.task-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin:20px 0 28px}.task-tile{min-height:120px;padding:14px;text-align:left;display:flex;flex-direction:column;gap:8px;cursor:pointer;background:#173b31;color:#f7e9ca;border:2px solid #8d7652;border-radius:12px;font:inherit;overflow-wrap:anywhere}.task-tile strong{font-size:15px;line-height:1.3;flex:1}.task-number{font-weight:700;color:#e8c889}.task-state{font-size:13px}.task-done{border-color:#6baf85}.task-done .task-state{color:#a7e2b9}.task-missing{border-color:#d6a25f}.task-missing .task-state{color:#ffcf91}.task-selected{outline:3px solid #f4d28c;outline-offset:2px;background:#315548}.task-tile:hover{transform:translateY(-2px);background:#305347}.task-editor{border-top:1px solid #a48b60;padding-top:20px;scroll-margin-top:24px}.task-badge{color:#f4d28c}@media(max-width:600px){.task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.user-group-label{display:inline-block;margin-top:5px;color:#f5d58b;font-size:13px;font-weight:600}.group-edit-panel{max-width:850px;margin-left:auto;margin-right:auto}
