:root { --oliv: #5d7c1f; --oliv-hell: #7fa33a; --sonne: #f5a623; --blau: #1f4e79; --bg: #f7f5ef; --rand: #ddd8ca; --text: #222; --grau: #6b6b6b; --rot: #c62828; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.45; }
a { color: var(--blau); }
.klein { font-size: .85rem; color: var(--grau); }
.nowrap { white-space: nowrap; }
.versteckt { display: none !important; }
.kopf { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; background: var(--oliv); color: #fff; padding: .5rem 1rem; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.logo { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 650; font-size: 1.1rem; }
.logo img { width: 32px; height: 32px; }
.suche { flex: 1; min-width: 160px; max-width: 360px; }
.suche input { width: 100%; padding: .4rem .7rem; border-radius: 999px; border: 0; }
.kopf nav { display: flex; gap: .2rem; margin-left: auto; flex-wrap: wrap; }
.kopf nav a { color: #fff; text-decoration: none; padding: .35rem .7rem; border-radius: 6px; }
.kopf nav a:hover, .kopf nav a.aktiv { background: rgba(255,255,255,.2); }
main { max-width: 1200px; margin: 0 auto; padding: 1rem; }
footer { text-align: center; color: var(--grau); font-size: .8rem; padding: 2rem 0 1rem; }
h1 { font-size: 1.4rem; } h2 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; } h3 { font-size: 1rem; margin: 1rem 0 .4rem; color: var(--oliv); }

.buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; margin: .5rem 0 1.2rem; }
.link-button { display: flex; align-items: center; gap: .7rem; min-height: 74px; padding: .9rem 1.1rem; border-radius: 12px; background: var(--f, var(--blau)); color: #fff; text-decoration: none; font-weight: 650; font-size: 1.08rem; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: transform .1s, box-shadow .1s; }
.link-button:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.link-button .sym { font-size: 1.7rem; line-height: 1; background: rgba(255,255,255,.2); border-radius: 10px; width: 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center; flex: none; }
.werkzeug { display: flex; gap: .6rem; font-size: .85rem; padding: .3rem .2rem; }
.werkzeug form { display: inline; } .werkzeug button { background: none; border: 0; color: var(--rot); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

.karte { background: #fff; border: 1px solid var(--rand); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.karte h2:first-child { margin-top: 0; }
.raster2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.ablegen summary { cursor: pointer; font-weight: 600; color: var(--oliv); }
.formular label, .karte label { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; color: var(--grau); margin-bottom: .6rem; }
.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 1rem; margin-top: .7rem; }
.felder .breit { grid-column: 1 / -1; }
.felder .haken, .merken { flex-direction: row !important; align-items: center; gap: .4rem !important; }
input, textarea, select { font: inherit; padding: .45rem .6rem; border: 1px solid var(--rand); border-radius: 6px; background: #fff; color: var(--text); }
textarea { width: 100%; }
input[type=color] { padding: 0; height: 2.3rem; width: 4rem; }
.knopf { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem 1rem; border: 1px solid var(--rand); background: #fff; border-radius: 6px; cursor: pointer; font: inherit; color: var(--text); text-decoration: none; margin: .2rem .2rem .2rem 0; }
.knopf.haupt { background: var(--oliv); border-color: var(--oliv); color: #fff; }
.knopf.haupt:hover { background: var(--oliv-hell); }
.knopf.gefahr { color: var(--rot); border-color: #e7b9b9; }
.meldung { padding: .6rem 1rem; border-radius: 8px; margin-bottom: .8rem; background: #e6f4e7; border: 1px solid #b9dcbb; color: #1b5e20; }
.meldung.fehler { background: #fdecea; border-color: #f1b6b0; color: #8e1c1c; }

.einfuegen-feld { border: 2px dashed #c3cfa4; border-radius: 8px; padding: .9rem; text-align: center; color: var(--grau); background: #fafcf4; margin: .4rem 0; outline: none; cursor: text; }
.einfuegen-feld:focus, .einfuegen-feld.drueber { border-color: var(--oliv); background: #f1f6e4; }
.vorschau-liste { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.vorschau-liste .stueck { position: relative; font-size: .8rem; background: #fff; border: 1px solid var(--rand); border-radius: 6px; padding: .3rem; max-width: 150px; word-break: break-all; }
.vorschau-liste img { width: 100px; height: 75px; object-fit: cover; display: block; border-radius: 4px; }
.vorschau-liste .weg { position: absolute; top: -8px; right: -8px; background: var(--rot); color: #fff; border: 0; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; }

.dok-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .6rem; }
.dok { display: flex; gap: .6rem; align-items: flex-start; background: #fff; border: 1px solid var(--rand); border-radius: 8px; padding: .6rem .8rem; }
.dok .sym { font-size: 1.6rem; line-height: 1; }
.dok .info { min-width: 0; flex: 1; }
.dok .info a { font-weight: 600; word-break: break-word; }
.dok .notiz { white-space: normal; font-size: .9rem; margin: .2rem 0; background: #fffbe6; padding: .3rem .5rem; border-radius: 4px; }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.fotos figure { margin: 0; background: #fff; border: 1px solid var(--rand); border-radius: 8px; overflow: hidden; }
.fotos img { width: 100%; height: 160px; object-fit: cover; display: block; }
.fotos figcaption { padding: .35rem .5rem; font-size: .85rem; }
.leer { padding: 1rem 0; }
table.liste { width: 100%; border-collapse: collapse; } .liste td { padding: .3rem .4rem; border-bottom: 1px solid #eee; }

.anmelde-seite { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #5d7c1f, #8fb04a 55%, #f5a623); }
.anmelde-box { background: #fff; padding: 2rem; border-radius: 14px; width: min(340px, 92vw); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); display: flex; flex-direction: column; gap: .8rem; }
.anmelde-box h1 { margin: 0; color: var(--oliv); }
.anmelde-logo { width: 70px; height: 70px; margin: 0 auto; }
.pin { font-size: 2rem; letter-spacing: .8rem; text-align: center; padding: .5rem; font-family: Consolas, monospace; }
.anmelde-box .merken { font-size: .85rem; color: var(--grau); justify-content: center; display: flex; }
.anmelde-box .knopf { justify-content: center; }
@media (max-width: 700px) { .kopf nav { width: 100%; margin: 0; } .suche { order: 3; max-width: none; } }
