/* Ausstellungskatalog Online – Bildschirm-Styles
   Keine externen Schriftarten (DSGVO): System-Schriften. */
:root {
  --c-bg: #f6f5f1;
  --c-surface: #ffffff;
  --c-text: #1d2521;
  --c-muted: #5d6862;
  --c-line: #dcdcd3;
  --c-primary: #23613f;
  --c-primary-dark: #194a30;
  --c-primary-soft: #e5f0e8;
  --c-accent: #b7791f;
  --c-danger: #b3261e;
  --c-danger-soft: #fbe9e7;
  --c-warn-soft: #fdf3dc;
  --c-info-soft: #e6f0fa;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; }
body { margin: 0; font-family: var(--font); color: var(--c-text); background: var(--c-bg); line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-underline-offset: 2px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.75rem; }
h2, .h2 { font-size: 1.3rem; }
h3, .h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code, kbd { background: #eeeee8; padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.main { padding-top: 1.75rem; padding-bottom: 3rem; min-height: 70vh; }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.req { color: var(--c-danger); }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* Kopf & Fuß */
.site-header { background: var(--c-primary); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand:hover { color: #fff; }
.brand img { background: #fff; border-radius: 8px; padding: 3px; }
.main-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.main-nav a, .main-nav .link-button { color: #fff; text-decoration: none; padding: .5rem .7rem; border-radius: 6px; font-size: .95rem; }
.main-nav a:hover, .main-nav a.active, .main-nav .link-button:hover { background: rgba(255,255,255,.16); color: #fff; }
.main-nav .btn { background: #fff; color: var(--c-primary); }
.main-nav .btn:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.nav-toggle { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: .45rem .8rem; font: inherit; cursor: pointer; }
.site-footer { border-top: 1px solid var(--c-line); background: #fff; padding: 1.25rem 0; font-size: .9rem; color: var(--c-muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner nav a { margin-left: 1rem; color: var(--c-muted); }

/* Karten & Raster */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.card.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.card.narrow-wide { max-width: 820px; }
.card.empty { text-align: center; padding: 2.5rem 1.5rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.card-head h2 { margin: 0; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 > .card, .grid-3 > .card, .grid-4 > .card { margin-bottom: 0; }
.grid-2 > div > .card:last-child { margin-bottom: 0; }
.stat .big { font-size: 2rem; font-weight: 700; margin: .1rem 0 .2rem; color: var(--c-primary-dark); }
.stat .big small { font-size: 1rem; color: var(--c-muted); font-weight: 400; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.page-head h1, .page-head p { margin: 0; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--c-accent); font-weight: 700; margin-bottom: .3rem; }
.lead { font-size: 1.15rem; color: var(--c-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--c-primary); color: #fff; border: 1px solid var(--c-primary); border-radius: 8px; padding: .65rem 1.15rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--c-primary-dark); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--c-primary); }
.btn-secondary:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--c-muted); }
.btn-ghost:hover { background: #eeeee8; color: var(--c-text); }
.btn-danger { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #8c1d17; color: #fff; }
.btn-small { padding: .4rem .75rem; font-size: .9rem; }
.btn-large { padding: .85rem 1.5rem; font-size: 1.05rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-button.danger, a.danger { color: var(--c-danger); }
.inline-form { display: inline; margin: 0; }

/* Formulare */
.form label { display: block; font-weight: 600; margin-bottom: 1rem; }
.form label small { font-weight: 400; color: var(--c-muted); display: block; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=search], input[type=file], select, textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .6rem .7rem; font: inherit; font-weight: 400; color: var(--c-text);
  background: #fff; border: 1px solid #b9bcb2; border-radius: 7px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--c-primary); outline: 2px solid var(--c-primary-soft); }
input[readonly] { background: #f1f1ec; }
.form .check, label.check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; }
.check input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--c-primary); }
fieldset { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1rem 1.2rem .3rem; margin: 0 0 1.25rem; }
legend { font-weight: 700; padding: 0 .4rem; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.row > .w-25 { flex-basis: 140px; }
.row > .w-30 { flex: 1 1 150px; }
.row > .w-50 { flex: 2 1 240px; }
.row > .w-70 { flex: 3 1 300px; }
.field-link { display: flex; align-items: center; padding-top: 1rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .6rem; margin-bottom: .9rem; }
.choice { border: 1px solid var(--c-line); border-radius: 8px; padding: .7rem .8rem; display: flex !important; gap: .55rem; align-items: center; cursor: pointer; margin: 0 !important; }
.choice:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); }
.choice input { accent-color: var(--c-primary); width: 1.1rem; height: 1.1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.search-bar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.search-bar input, .search-bar select { width: auto; flex: 1 1 220px; margin: 0; }
.search-bar .btn { flex: none; }
.input-xs { width: 5.5rem !important; }
.input-sm { min-width: 7rem; margin: 0 !important; padding: .35rem .5rem !important; }
.inline-row { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.inline-row label { flex: 1 1 260px; margin: 0; }
.logo-preview { max-height: 90px; border: 1px solid var(--c-line); border-radius: 6px; padding: 4px; background: #fff; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, #fff 30%); padding: 1rem 0 .5rem; margin: 0; }

/* Meldungen */
.alert { border-radius: 8px; padding: .85rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; }
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert-success { background: var(--c-primary-soft); border-color: #b9d6c3; }
.alert-error { background: var(--c-danger-soft); border-color: #f0bcb6; }
.alert-warning { background: var(--c-warn-soft); border-color: #f0d9a0; }
.alert-info { background: var(--c-info-soft); border-color: #bcd3ea; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: #eeeee8; color: var(--c-muted); vertical-align: middle; }
.badge-open { background: var(--c-warn-soft); color: #7a5208; }
.badge-paid { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.badge-cancelled { background: var(--c-danger-soft); color: var(--c-danger); }

/* Tabellen */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { text-align: left; padding: .6rem .6rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.table th { font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--c-muted); background: #fafaf7; }
.table.compact th, .table.compact td { padding: .4rem .5rem; }
.table tfoot td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfbf8; }
.num { text-align: right !important; white-space: nowrap; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions > * + * { margin-left: .8rem; }
th.w-30 { width: 30%; }
.dl { display: grid; grid-template-columns: 11rem 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.dl dt { color: var(--c-muted); }
.dl dd { margin: 0; }

/* Reiter */
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 2px solid var(--c-line); margin: 0 0 1.25rem; }
.tabs a { padding: .6rem 1rem; text-decoration: none; color: var(--c-muted); border-radius: 8px 8px 0 0; margin-bottom: -2px; border-bottom: 3px solid transparent; font-weight: 600; }
.tabs a:hover { color: var(--c-text); background: #eeeee8; }
.tabs a.active { color: var(--c-primary-dark); border-bottom-color: var(--c-primary); }
.tabs .count { font-weight: 400; color: var(--c-muted); font-size: .85em; }
.tabs-small a { padding: .4rem .8rem; font-size: .9rem; }
.show-head { margin-bottom: 1rem; }
.show-head h1 { margin-bottom: .2rem; }

/* Listen */
.steps, .todo { padding-left: 1.4rem; }
.steps li, .todo li { margin-bottom: .55rem; }
.todo li.done { color: var(--c-muted); }
.todo li.done::marker { content: "✓  "; color: var(--c-primary); font-weight: 700; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.checklist li { padding: .3rem 0 .3rem 1.6rem; position: relative; border-bottom: 1px dashed var(--c-line); }
.checklist li::before { content: "•"; position: absolute; left: .4rem; color: var(--c-muted); }
.checklist li.yes::before { content: "✓"; color: var(--c-primary); font-weight: 700; left: .2rem; }
.checklist li.no { color: #9aa29d; text-decoration: line-through; }
.checklist li.no::before { content: "–"; }
details.judge { border: 1px solid var(--c-line); border-radius: 8px; padding: .6rem .9rem; margin-bottom: .6rem; }
details.judge summary { cursor: pointer; }
details.judge[open] summary { margin-bottom: .8rem; }

/* Preise */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.pricing .card { margin-bottom: 0; display: flex; flex-direction: column; }
.pricing .card > .btn, .pricing .card > .badge { margin-top: auto; align-self: flex-start; }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--c-primary-dark); margin: 0 0 .4rem; }
.plan .price small { font-size: .95rem; color: var(--c-muted); font-weight: 400; }
.plan-highlight { border: 2px solid var(--c-primary); }
.plan-current { border: 2px solid var(--c-accent); }

/* Startseite */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; padding: 1.5rem 0 2.5rem; }
.hero h1 { font-size: 2.4rem; }
.hero-card { background: #fff; border-radius: 14px; border: 1px solid var(--c-line); box-shadow: var(--shadow); padding: 1.5rem; transform: rotate(-1.5deg); }
.mini-catalog { font-family: Georgia, "Times New Roman", serif; display: grid; gap: .25rem; }
.mini-catalog strong { font-size: 1.2rem; border-bottom: 2px solid var(--c-text); }
.mini-catalog span { font-style: italic; color: var(--c-muted); margin-top: .4rem; }
.mini-catalog div { display: grid; grid-template-columns: 3rem 3rem 1fr 2rem; border-bottom: 1px dotted var(--c-line); padding: .15rem 0; }
.mini-catalog i { color: var(--c-accent); }
.mini-catalog em { text-align: right; font-style: normal; color: var(--c-muted); }
.features .card { border-top: 4px solid var(--c-primary); }
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.5rem; }

/* Druckbereich-Übersicht */
.print-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.print-item { border: 1px solid var(--c-line); border-radius: 8px; padding: 1rem; }
.print-item h3 { margin-bottom: .3rem; }
.print-item.locked { background: #fafaf7; opacity: .8; }
.danger-zone { border-color: #f0bcb6; }

/* Mobil */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
}
@media (max-width: 720px) {
  html { font-size: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: .8rem; }
  .main-nav.open { display: flex; }
  .main-nav .inline-form { display: block; }
  .main-nav .link-button { display: block; width: 100%; text-align: left; text-decoration: none; }
  .card { padding: 1.1rem; }
  .dl { grid-template-columns: 1fr; }
  .row-actions { white-space: normal; }
  .footer-inner nav a { margin: 0 1rem 0 0; }
}

/* Meldungsraster */
.count-grid { border-collapse: collapse; margin-bottom: 1rem; }
.count-grid th, .count-grid td { padding: .3rem .5rem; text-align: left; }
.count-grid thead th { font-size: 1rem; }
.count-grid tbody th { font-weight: 600; padding-right: 1rem; }
.count-grid input { width: 6.5rem; margin: 0; }

/* Protokollausgabe */
pre.log { background: #1d2521; color: #e5f0e8; padding: 1rem; border-radius: 8px; overflow-x: auto; font-size: .85rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
