* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4efe8; color: #2f2721; line-height: 1.6; }
a { color: #8a5a2b; text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #efe5d4; border-radius: 4px; padding: .1rem .35rem; font-size: .88em; }
header.site { background: linear-gradient(160deg, #6b4a26, #8a5a2b);
  color: #fdf9f2; padding: 2.2rem 1rem 1.6rem; text-align: center; }
header.site h1 { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; letter-spacing: .5px; }
header.site p { opacity: .85; font-size: .95rem; margin-top: .3rem; }
nav.main { background: #3f2f1e; padding: .4rem .5rem; text-align: center; }
nav.main a { display: inline-block; color: #ead9c2; padding: .5rem .7rem; font-size: .92rem; border-radius: 6px; }
nav.main a:hover { background: #5a4429; text-decoration: none; }
nav.main a.active { background: #b98a4b; color: #fff8ee; font-weight: 600; }
main { max-width: 1000px; margin: 0 auto; padding: 2rem 1.2rem 3rem; }
.hero { text-align: center; margin-bottom: 2.2rem; }
.hero h2 { font-family: Georgia, serif; font-size: 1.6rem; color: #6b4a26; margin-bottom: .4rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.card { background: #fffaf3; border: 1px solid #e2d3bd; border-radius: 10px; padding: 1.2rem;
  box-shadow: 0 1px 3px rgba(63,47,30,.08); transition: transform .12s ease; display: block; color: inherit; }
.card:hover { transform: translateY(-3px); text-decoration: none; }
.card h3 { font-family: Georgia, serif; color: #6b4a26; font-size: 1.15rem; margin-bottom: .4rem; }
.card p { font-size: .92rem; color: #5f5346; }
.card .more { display: inline-block; margin-top: .6rem; font-weight: 600; font-size: .88rem; color: #8a5a2b; }
main.content { max-width: 820px; }
main.content h2 { font-family: Georgia, serif; color: #6b4a26; font-size: 1.5rem; margin-bottom: .8rem; }
.placeholder { background: #fffaf3; border: 1px dashed #c9ae87; border-radius: 10px; padding: 1.4rem; color: #6a5c4c; }
footer { text-align: center; color: #8a7c6a; font-size: .82rem; padding: 1.2rem; }

/* PDF-Liste auf Bereichsseiten */
.pdf-section { margin-top: 2rem; }
.pdf-section h2 { font-family: Georgia, serif; color: #6b4a26; font-size: 1.35rem; margin-bottom: .7rem; }
.pdf-count { font-size: .92rem; color: #7a6c5c; margin-bottom: .7rem; }
.pdf-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.pdf-item { } 
.pdf-link { display: flex; flex-direction: column; background: #fffaf3; border: 1px solid #e2d3bd;
  border-radius: 8px; padding: .75rem .95rem; transition: border-color .12s, transform .12s; }
.pdf-link:hover { border-color: #b98a4b; text-decoration: none; transform: translateY(-2px); }
.pdf-title { font-weight: 600; color: #3f2f1e; font-size: 1rem; }
.pdf-meta { font-size: .82rem; color: #8a7c6a; margin-top: .15rem; }
.muted { color: #8a7c6a; font-size: .88rem; }
.small { font-size: .82rem; }

/* Upload-/Verwaltungsbereich */
.admin-card { background: #fffaf3; border: 1px solid #e2d3bd; border-radius: 10px;
  padding: 1.3rem; margin-bottom: 1.2rem; box-shadow: 0 1px 3px rgba(63,47,30,.06); }
.admin-card h2 { font-family: Georgia, serif; color: #6b4a26; font-size: 1.25rem; margin-bottom: .6rem; }
.card-login { max-width: 420px; }
label { display: block; font-weight: 600; font-size: .9rem; margin: .8rem 0 .3rem; color: #5f5346; }
.input { font: inherit; padding: .5rem .6rem; border: 1px solid #d3bd9c; border-radius: 8px;
  background: #fffdf8; color: #2f2721; max-width: 100%; }
.input:focus { outline: none; border-color: #b98a4b; }
select.input { min-width: 260px; }
.btn { display: inline-block; background: #8a5a2b; color: #fff8ee; border: 0; border-radius: 8px;
  padding: .55rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: #6b4a26; text-decoration: none; }
.btn-light { background: #f1e6d6; color: #6b4a26; border: 1px solid #d9c4a4; }
.btn-light:hover { background: #e8d9c2; }
.btn-danger { background: #a8493c; }
.btn-danger:hover { background: #8c3a2f; }
.flash-ok { background: #e9f2e6; border: 1px solid #b9d3b0; color: #38602f;
  border-radius: 8px; padding: .7rem 1rem; margin-bottom: 1rem; }
.flash-err { background: #f8e7e3; border: 1px solid #dcada3; color: #7a2f26;
  border-radius: 8px; padding: .7rem 1rem; margin-bottom: 1rem; }
.file-row { display: flex; justify-content: space-between; gap: .8rem; align-items: center;
  background: #fffaf3; border: 1px solid #e2d3bd; border-radius: 8px; padding: .7rem .95rem; flex-wrap: wrap; }
.file-info { flex: 1 1 260px; }
.file-name { font-weight: 600; color: #3f2f1e; }
.file-meta { font-size: .82rem; color: #8a7c6a; }
.file-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* Ansehen im Browser + Download-Button in den PDF-Listen */
.pdf-item .pdf-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.pdf-item .pdf-row .pdf-link { flex: 1 1 240px; }
.pdf-dl { display: inline-block; background: #f1e6d6; color: #6b4a26; border: 1px solid #d9c4a4;
  border-radius: 8px; padding: .45rem .8rem; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.pdf-dl:hover { background: #e8d9c2; text-decoration: none; color: #6b4a26; }

/* Bereichs-Verwaltung (Bearbeiten/Löschen) */
.file-row form.file-info { display: block; }
.file-row form.file-info .input { width: 100%; }

/* Darstellungs-Verwaltung */
.input-color { width: 4.2rem; height: 2.4rem; padding: .15rem; cursor: pointer; }
.design-preview { max-width: 100%; max-height: 160px; display: block; border: 1px solid #e2d3bd; border-radius: 8px; }
