:root{--ink:#163e37;--muted:#697b71;--paper:#f4f3ed;--line:#dbe1d7;--gold:#dfb86e;--white:#fffef9;color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button{border:0}button:disabled{opacity:.55;cursor:wait}a{color:var(--ink)}[hidden]{display:none!important}.top{height:92px;border-bottom:1px solid var(--line);padding:0 max(24px,calc((100vw - 1280px)/2));display:flex;align-items:center;justify-content:space-between;background:var(--white)}.brand{display:flex;gap:13px;align-items:center;text-decoration:none;font-size:24px;font-weight:760;letter-spacing:-.7px}.brand small{display:block;font-size:9px;letter-spacing:1.5px;margin-top:5px;font-weight:650;color:var(--muted)}.version{font-size:12px;color:var(--muted)}main{max-width:1280px;margin:auto;padding:30px 24px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:var(--muted);margin-bottom:8px}h1,h2,p{margin:0}h1{font-size:28px;letter-spacing:-1px}h2{font-size:24px;letter-spacing:-.8px}.tripbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.tripbar select{border:0;background:transparent;padding:0 25px 0 0;font-size:31px;font-weight:750;letter-spacing:-1px;max-width:100%}.tripbar p{font-size:14px;color:var(--muted);margin-top:6px}.actions{display:flex;gap:6px;flex-wrap:wrap}.quiet{background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:10px 13px;font-size:13px;font-weight:600}.quiet:hover{background:#e6eae0}.workspace{display:grid;grid-template-columns:minmax(300px,400px) minmax(0,1fr);gap:24px;align-items:start}.panel{background:var(--white);border:1px solid var(--line);border-radius:17px;padding:25px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.badge{font-size:9px;letter-spacing:.6px;border:1px solid #b2c7b7;background:#e9f0e7;padding:7px;border-radius:5px;white-space:nowrap}.capture form{display:flex;flex-direction:column;gap:17px}label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:650}input,select,textarea{border:1px solid #ced8ce;border-radius:9px;padding:12px;background:#fffefb;color:var(--ink);min-width:0;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #5c8b75;outline-offset:2px}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.photo-picker{position:relative;min-height:205px;border:1px dashed #98b3a1;border-radius:12px;background:#edf1e7;overflow:hidden;cursor:pointer;text-align:center;justify-content:center;align-items:center}.photo-picker input{position:absolute;inset:0;opacity:0;cursor:pointer}.photo-picker:focus-within{outline:3px solid #5c8b75}.photo-picker img{width:100%;max-height:310px;object-fit:cover}.photo-picker strong{font-size:16px;display:block;margin-top:8px}.photo-picker small{display:block;margin:7px 12px;color:var(--muted);font-size:11px;font-weight:400}.camera{display:inline-grid;place-content:center;width:48px;height:48px;font-size:36px;color:#527f64}.muted{color:var(--muted);font-size:11px;line-height:1.6;font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.location-box{display:flex;gap:8px;align-items:center;background:#f2f4ed;padding:12px;border-radius:10px}.location-box div{flex:1}.location-box strong{font-size:12px}.location-box small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.location-box button{padding:8px;font-size:11px}.primary{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:10px;padding:15px 18px;font-weight:650;background:var(--ink);color:#fffef9;width:100%}.primary:hover{background:#22574a}.primary span{color:var(--gold);font-size:20px}.results{display:flex;flex-direction:column;gap:22px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stat{border:1px solid var(--line);padding:22px 18px;border-radius:13px;background:#e9ede3}.stat:first-child{background:var(--ink);color:var(--white);border-color:var(--ink)}.stat small{font-size:10px;letter-spacing:1px;font-weight:650}.stat strong{display:block;font-size:32px;margin-top:8px;letter-spacing:-1px}.stat strong span{font-size:12px;letter-spacing:0}.segmented{display:flex;gap:5px;background:#edf0e8;padding:5px;border-radius:9px;margin-bottom:17px}.segmented button{flex:1;background:transparent;border-radius:6px;font-size:12px;padding:9px 5px;color:var(--muted);font-weight:600}.segmented .active{background:var(--white);color:var(--ink);box-shadow:0 1px 4px #163e3715}.ranking{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid var(--line)}.ranking:last-child{border:0;margin-bottom:13px}.rank-number{font-size:13px;width:27px;height:27px;display:grid;place-items:center;background:#eef0e8;border-radius:50%}.ranking:first-child .rank-number{background:var(--gold)}.rank-details{flex:1;font-size:14px}.rank-details small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.rank-value{font-size:22px;letter-spacing:-.5px}.rank-value small{font-size:11px;margin-left:3px}.empty{text-align:center;padding:30px 10px;color:var(--muted);font-size:14px;line-height:1.7}.catch-card{display:flex;gap:14px;padding:17px 0;border-bottom:1px solid var(--line)}.catch-card:last-child{border:0}.catch-photo{width:86px;height:86px;border-radius:10px;object-fit:cover;background:#edf0e8;flex-shrink:0}.no-photo{display:grid;place-items:center;font-size:28px;color:#809884}.catch-details{flex:1;min-width:0}.catch-head{display:flex;gap:10px;justify-content:space-between;align-items:baseline}.catch-head strong{font-size:17px}.catch-head b{font-size:21px;white-space:nowrap}.catch-details p{font-size:12px;color:var(--muted);line-height:1.6;margin-top:5px;overflow-wrap:anywhere}.catch-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.catch-actions button,.catch-actions a{font-size:11px;padding:6px 9px;text-decoration:none}.section-title select{font-size:12px;max-width:190px;padding:10px}footer{display:flex;justify-content:space-between;gap:15px;margin-top:26px;font-size:11px;color:var(--muted)}.login{max-width:460px;margin:50px auto;padding:35px}.login p{font-size:14px;color:var(--muted);margin:18px 0;line-height:1.7}.login form{display:flex;flex-direction:column;gap:20px}#login-error,#settings-error,#share-error{color:#ab3c2f;font-size:13px;line-height:1.6}dialog{border:1px solid var(--line);border-radius:18px;max-width:520px;width:calc(100% - 30px);padding:26px;background:var(--white);color:var(--ink);max-height:90dvh;overflow:auto}dialog::backdrop{background:#123e3888;backdrop-filter:blur(4px)}dialog form{display:flex;flex-direction:column;gap:16px}dialog .section-title{margin-bottom:5px}dialog p{font-size:12px;margin:10px 0}.check{flex-direction:row;align-items:start;font-weight:400;line-height:1.5;margin:20px 0}.check input{width:auto;margin-top:3px}#share-preview{width:100%;border-radius:10px}.share-actions{display:flex;gap:8px;flex-wrap:wrap;margin:17px 0}.share-actions .primary{width:auto;flex:1;justify-content:center}#notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);background:var(--ink);color:white;box-shadow:0 6px 25px #0003;padding:14px 22px;border-radius:12px;font-size:14px;z-index:5}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:900px){.workspace{grid-template-columns:minmax(280px,340px) minmax(0,1fr)}.panel{padding:19px}.stat{padding:16px 10px}.stat strong{font-size:26px}.stat small{font-size:8px}.section-title{flex-wrap:wrap}.tripbar{align-items:start}.actions{justify-content:end}.catch-card{gap:10px}.catch-photo{width:65px;height:70px}}
@media(max-width:700px){.top{height:74px;padding:0 19px}.brand{font-size:21px}.brand small{font-size:8px}.version{font-size:10px}main{padding:23px 16px}.tripbar{flex-direction:column;gap:15px}.tripbar select{font-size:28px}.actions{justify-content:start;width:100%}.actions button{font-size:11px;padding:8px 10px}.workspace{grid-template-columns:1fr;gap:22px}.panel{padding:22px}.photo-picker{min-height:180px}.stat{padding:19px 13px}.stat strong{font-size:29px}.stat small{font-size:9px}.catch-photo{width:75px;height:80px}.section-title select{max-width:160px}footer{flex-direction:column;gap:7px}.login{margin-top:25px;padding:26px}.location-box{flex-wrap:wrap}dialog{padding:22px}}

/* 0.1.1: gleich hohe Fangfelder und begrenzte native iOS-Datumseingabe. */
.capture,.capture form,.capture label{min-width:0}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.field-caption{display:flex;align-items:baseline;gap:6px;min-height:20px;line-height:20px}
.field-caption .muted{line-height:20px;white-space:nowrap}
.capture input:not([type="file"]),.capture select{display:block;width:100%;max-width:100%;min-width:0;height:48px;font-size:16px;line-height:22px}
#caught-at{appearance:none;-webkit-appearance:none;min-inline-size:0;max-inline-size:100%;inline-size:100%;text-align:left}
#caught-at::-webkit-date-and-time-value{min-width:0;text-align:left}
#caught-at::-webkit-datetime-edit{padding:0;min-width:0}

/* 0.1.4: Fangbuch-Galerie. */
.photo-open{display:block;padding:0;background:transparent;border-radius:10px;flex-shrink:0;align-self:flex-start;cursor:zoom-in;line-height:0}
.photo-open .catch-photo{display:block}
.gallery-hint{margin:-8px 0 12px}
#photo-gallery{max-width:960px;width:calc(100% - 28px);padding:22px}
#photo-gallery .section-title{margin-bottom:16px;flex-wrap:nowrap;align-items:flex-start}
#photo-gallery .section-title>div{min-width:0;overflow-wrap:anywhere}
#gallery-details{color:var(--muted);font-size:13px;line-height:1.5;margin-top:7px}
#gallery-close{flex-shrink:0;min-width:44px;min-height:44px}
#gallery-stage{display:flex;align-items:center;justify-content:center;min-height:160px;border-radius:12px;background:#e9ede3;overflow:hidden;touch-action:pan-y pinch-zoom}
#gallery-image{display:block;width:100%;height:auto;max-height:60dvh;object-fit:contain}
#gallery-status{color:var(--muted);font-size:13px;line-height:1.5;margin:10px 0}
.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}
.gallery-controls button{min-height:44px}
.gallery-controls button:disabled{cursor:default}
#gallery-counter{font-size:13px;color:var(--muted);white-space:nowrap}
@media(max-width:700px){#photo-gallery{padding:16px}#photo-gallery h2{font-size:22px}#gallery-image{max-height:55dvh}}

/* Vier Ranglisten bleiben auf schmalen Bildschirmen gut bedienbar. */
@media(max-width:700px){.segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.segmented button{min-height:40px}}

.offline-panel{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-bottom:22px;padding:16px 18px;border:1px solid var(--line);background:var(--white);border-radius:12px}.offline-panel>div:first-child{flex:1;min-width:180px}.offline-panel strong{font-size:13px}.offline-panel small{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:var(--muted)}#pending-list{width:100%}#pending-list:empty{display:none}.pending-row{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:12px 0}.pending-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.pending-row strong{font-size:13px}.pending-row img{width:50px;height:50px;border-radius:8px;object-fit:cover}.pending-row button{font-size:11px}.pending-error{color:#ab3c2f!important}
