/* Mein Husky-Abenteuer – Grundlayout */
:root{--gruen:#2f5d50;--gruen-hell:#eef4f1;--hg:#f4f1ec;--karte:#fff;--text:#2b2b2b;--leise:#6b6b6b;--rand:#d8d2c7;--rot:#a33;--orange:#b0855a;--leiste:250px}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:400;background:var(--hg);color:var(--text);line-height:1.45}
b,strong,h1,h2,h3,h4,th{font-weight:400}
a{color:var(--gruen)}
h1{font-size:1.5rem;margin:0 0 18px}h2{font-size:1.15rem;margin:26px 0 12px}h3{font-size:1rem;margin:16px 0 8px}

/* Seitenleiste */
.seitenleiste{position:fixed;top:0;left:0;bottom:0;width:var(--leiste);background:#fff;border-right:1px solid #e6e1d8;display:flex;flex-direction:column;z-index:40;transition:transform .2s}
.seitenleiste .logo{display:flex;align-items:center;min-height:76px;padding:16px 20px;border-bottom:1px solid #eee;text-decoration:none;color:var(--gruen)}
.seitenleiste .logo{justify-content:center}.seitenleiste .logo img{max-height:140px;max-width:100%}
.logo-text{font-size:1.1rem;color:var(--gruen)}
.seitenleiste nav{padding:12px 10px;flex:1;overflow-y:auto}
.seitenleiste nav a,.seitenleiste .unten a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:#3b3b3b;text-decoration:none;margin-bottom:2px}
.seitenleiste nav a:hover,.seitenleiste .unten a:hover{background:var(--hg)}
.seitenleiste nav a.aktiv,.seitenleiste .unten a.aktiv{background:var(--gruen);color:#fff}
.seitenleiste svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.zaehler{margin-left:auto;background:#e9a93a;color:#1a1405;font-size:.75rem;border-radius:10px;padding:1px 8px}
.menue-gruppe{font-size:.75rem;color:#999;text-transform:uppercase;letter-spacing:.06em;margin:18px 12px 6px}
.geplant{display:block;padding:7px 12px 7px 41px;color:#aaa;font-size:.92rem}
.seitenleiste .unten{padding:10px;border-top:1px solid #eee}
.seitenleiste .wer{font-size:.85rem;color:var(--leise);padding:4px 12px 8px}
.inhalt{margin-left:var(--leiste);padding:28px 32px 60px;max-width:calc(1300px + var(--leiste))}
.mobil-leiste{display:none}

/* Bausteine */
.box{background:var(--karte);border-radius:12px;padding:20px;box-shadow:0 2px 12px rgba(0,0,0,.05);margin-bottom:18px}
.box > h2:first-child{margin-top:0}
.raster{display:grid;gap:14px}
.raster.zwei{grid-template-columns:1fr 1fr}
.kacheln{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;margin-bottom:18px}
.kachel{background:#fff;border-radius:12px;padding:16px 18px;box-shadow:0 2px 12px rgba(0,0,0,.05)}
.kachel .zahl{font-size:1.8rem;color:var(--gruen)}.kachel .was{color:var(--leise);font-size:.9rem}
label{display:block;margin:14px 0 6px;color:#555}
input[type=text],input[type=email],input[type=password],select,textarea{width:100%;font:inherit;padding:9px 10px;border:1px solid #ccc;border-radius:8px;background:#fff}
textarea{min-height:68px}
.knopf,button.knopf{display:inline-block;font:inherit;padding:10px 20px;border-radius:8px;border:0;background:var(--gruen);color:#fff;cursor:pointer;text-decoration:none}
.knopf.leise{background:#fff;color:var(--gruen);border:1px solid var(--gruen)}
.knopf:disabled{opacity:.6}
.link-knopf{font:inherit;background:none;border:0;padding:0;color:var(--gruen);text-decoration:underline;cursor:pointer}
.link-knopf.rot{color:var(--rot)}
.hinweis{font-size:.9rem;color:var(--leise)}
.meldung{padding:10px 14px;border-radius:8px;margin-bottom:14px;background:var(--gruen-hell);color:var(--gruen)}
.meldung.fehler{background:#f8e9e9;color:var(--rot);white-space:pre-wrap}
.ja{color:var(--gruen)}.nein{color:var(--orange)}
table.liste{width:100%;border-collapse:collapse;font-size:.92rem}
table.liste th,table.liste td{text-align:left;padding:8px 10px;border-bottom:1px solid #eee}
table.liste th{color:var(--leise)}

/* Foto-Ablage (Drag & Drop) */
.drop{border:2px dashed #b9b2a6;border-radius:10px;padding:12px;text-align:center;color:#777;cursor:pointer;min-height:130px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:.9rem;transition:.15s}
.drop.aktiv{border-color:var(--gruen);background:var(--gruen-hell);color:var(--gruen)}
.drop input{display:none}
.drop img.gross{width:100%;max-height:160px;object-fit:cover;border-radius:6px}
.vorschau{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.vorschau img{height:64px;width:64px;object-fit:cover;border-radius:6px}

/* Husky-Übersicht */
.husky-liste{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}
.husky-karte{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.05);text-decoration:none;color:inherit;display:block}
.husky-karte .bild{aspect-ratio:1;background:#e7e2d9;display:flex;align-items:center;justify-content:center;color:#999;font-size:.9rem}
.husky-karte .bild img{width:100%;height:100%;object-fit:cover}
.husky-karte .t{padding:10px 12px}
.status{font-size:.78rem;color:var(--leise);margin-top:4px;display:flex;flex-wrap:wrap;gap:2px 10px}
.foto-felder{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.foto-weitere{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:6px}
.foto-weitere div{text-align:center}.foto-weitere img{width:84px;height:84px;object-fit:cover;border-radius:6px;display:block}

/* Bild-Galerie */
.ordner{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.ordner a{padding:6px 14px;border-radius:20px;background:#fff;border:1px solid var(--rand);color:#444;text-decoration:none;font-size:.9rem}
.ordner a.aktiv{background:var(--gruen);border-color:var(--gruen);color:#fff}
.ordner form{display:flex;gap:6px}.ordner input{width:170px;padding:6px 10px;font-size:.9rem}.ordner .knopf{padding:6px 12px;font-size:.9rem}
.galerie{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.galerie .karte{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.galerie img{width:100%;aspect-ratio:1;object-fit:cover;display:block;cursor:zoom-in}
.galerie .t{padding:7px 9px;font-size:.75rem;color:#666;line-height:1.35}
.galerie .t a,.galerie .t .link-knopf{font-size:.75rem;margin-right:10px}
.galerie select{font-size:.75rem;padding:3px;margin-top:5px}
#lb{position:fixed;inset:0;background:rgba(0,0,0,.86);display:none;align-items:center;justify-content:center;z-index:60;cursor:zoom-out}
#lb.offen{display:flex}#lb img{max-width:94vw;max-height:88vh;border-radius:8px}
#lb .unter{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#ddd;font-size:.9rem}
#lb .pf{position:absolute;top:50%;transform:translateY(-50%);font-size:2.4rem;color:#fff;padding:20px;cursor:pointer;user-select:none}

/* Login / Installation */
body.einfach{display:flex;min-height:100vh;align-items:center;justify-content:center;padding:20px}
.einfach-box{background:#fff;border-radius:14px;padding:30px;box-shadow:0 4px 20px rgba(0,0,0,.08);width:100%;max-width:440px}
.einfach-box .logo{margin-bottom:18px}.einfach-box .logo img{max-height:60px}
.einfach-box .knopf{margin-top:18px;width:100%}

/* Handy */
@media (max-width:860px){
  .mobil-leiste{display:flex;align-items:center;gap:12px;position:sticky;top:0;background:#fff;padding:10px 14px;border-bottom:1px solid #e6e1d8;z-index:30}
  .menue-knopf{font-size:1.4rem;background:none;border:0;cursor:pointer;color:var(--gruen)}
  .seitenleiste{transform:translateX(-100%)}
  body.menue-offen .seitenleiste{transform:none;box-shadow:4px 0 20px rgba(0,0,0,.15)}
  .husky-liste{grid-template-columns:1fr 1fr}
  .inhalt{margin-left:0;padding:18px 14px 50px}
  .raster.zwei{grid-template-columns:1fr}
  .foto-felder{grid-template-columns:1fr 1fr}
}
