body.admin { background: #f4f6f1; background-image: none; font-size: 16px; }
.admin-header { background: #fff; border-bottom: 3px solid var(--green); padding: 10px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; position: sticky; top: 0; z-index: 10; }
.admin-brand { font-weight: 800; color: var(--green-dark); text-decoration: none; font-size: 1.15rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.admin-nav a { text-decoration: none; padding: 7px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; }
.admin-nav a:hover { background: var(--green-light); }
.admin-nav a.active { background: var(--green); color: #fff; }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 7px 10px; }
.inline { display: inline; }
.admin-main { max-width: 980px; margin: 0 auto; padding: 24px 16px 60px; }
.admin h1 { font-size: 1.7rem; }
.admin h2 { font-size: 1.15rem; margin: 0 0 .7em; }
.hint { color: var(--muted); margin-top: -8px; }
.flash { background: #dff3c8; color: #2f5f14; border-radius: 10px; padding: 10px 16px; margin-bottom: 18px; font-weight: 700; }
.flash.error { background: #fde2e1; color: #8f2320; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; margin-bottom: 20px; }
.card-list .card { margin-bottom: 24px; }
.row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.row.compact { gap: 8px; align-items: center; }
.row label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .9em; }
.grow { flex: 1 1 240px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.compact { gap: 6px; }
.stack > label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .9em; }
.check { flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 600 !important; }
input[type=text], input:not([type]), input[type=password], input[type=number], select, textarea {
  font: inherit; padding: 8px 10px; border: 1px solid #c9d3bc; border-radius: 8px; background: #fff; width: 100%; }
input.short { width: 110px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, .editor-area:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.table { width: 100%; border-collapse: collapse; }
.table td { padding: 8px 6px; border-bottom: 1px solid #e6ebdf; vertical-align: middle; }
.table td:last-child { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.lw-edit { border-bottom: 1px solid #e6ebdf; padding: 10px 0 12px; }
.lw-edit .row.compact { align-items: flex-start; }
.lw-edit textarea { min-height: 4.5em; line-height: 1.4; }
.lw-edit select { width: auto; }

/* editor */
.editor { border: 1px solid #c9d3bc; border-radius: 10px; overflow: hidden; background: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #f1f4ec; border-bottom: 1px solid #dfe6d6; }
.toolbar button { font: inherit; font-size: .85em; padding: 4px 9px; border: 1px solid #c9d3bc; background: #fff; border-radius: 6px; cursor: pointer; }
.toolbar button:hover { background: var(--green-light); }
.editor-area { padding: 12px 14px; line-height: 1.5; }
.editor-area:empty::before { content: 'Hier tippen …'; color: #aaa; }
.editor-area h2, .editor-area h3 { margin: .4em 0 .2em; color: var(--green-dark); }
.editor-area p { margin: .3em 0; }

/* photos */
.admin-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.admin-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.progress { margin-top: 12px; background: #e6ebdf; border-radius: 8px; height: 26px; position: relative; overflow: hidden; }
.progress .bar { background: var(--green); height: 100%; width: 0; transition: width .2s; }
.progress .label { position: absolute; inset: 0; display: grid; place-items: center; font-size: .85em; font-weight: 700; }
input[type=file] { font: inherit; }

/* login */
.login-body { display: grid; place-items: center; min-height: 100vh; margin: 0; }
.login-card { background: #fff; padding: 30px 34px; border-radius: var(--radius); box-shadow: var(--shadow); width: min(380px, 92vw); display: flex; flex-direction: column; gap: 14px; }
.login-card h1 { margin: 0 0 6px; font-size: 1.5rem; }
.login-card label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .9em; }
