:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6b6b70;
  --line: #e4e2dd;
  --accent: #128c6e;
  --accent-dark: #0d6d55;
  --accent-soft: #e3f3ee;
  --danger: #c0392b;
  --danger-soft: #fbeceb;
  --warn: #b7791f;
  --warn-soft: #fdf4e3;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; }

/* Buttons & Formulare */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .6em 1.1em; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { border-color: #c9c6bf; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-lg { padding: .8em 1.6em; font-size: 1.05rem; }
.btn-sm { padding: .35em .7em; font-size: .875rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
label { display: block; font-weight: 500; margin-bottom: .3em; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number],
input[type=search], select, textarea {
  width: 100%; padding: .6em .75em; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font: inherit; color: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { min-height: 7em; resize: vertical; }
.field { margin-bottom: 1rem; }
.field .error { color: var(--danger); font-size: .875rem; margin-top: .25em; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.check { display: flex; gap: .55em; align-items: flex-start; font-weight: 400; }
.check input { margin-top: .3em; width: 1.05em; height: 1.05em; accent-color: var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.card + .card { margin-top: 1.25rem; }
.flash { padding: .8em 1em; border-radius: 8px; margin-bottom: 1rem; background: var(--accent-soft); color: var(--accent-dark); }
.flash.error { background: var(--danger-soft); color: var(--danger); }
.notice { padding: .8em 1em; border-radius: 8px; background: var(--warn-soft); color: #7a5212; }

/* ---------------- Gastseite ---------------- */
.shop-header {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.shop-header .inner {
  max-width: 1400px; margin: 0 auto; padding: .8rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.shop-title { font-weight: 600; font-size: 1.05rem; }
.shop-title small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.cart-btn .count {
  background: #fff; color: var(--accent); border-radius: 999px; padding: 0 .5em;
  font-size: .85rem; min-width: 1.6em; text-align: center;
}
.shop-main { max-width: 1400px; margin: 0 auto; padding: 1.25rem 1rem 4rem; }
.narrow { max-width: 720px; margin: 0 auto; }
.login-box { max-width: 400px; margin: 10vh auto 0; text-align: center; }
.login-box .card { text-align: left; }
.shop-footer { text-align: center; padding: 2rem 1rem; font-size: .85rem; color: var(--muted); }
.shop-footer a { color: var(--muted); margin: 0 .6em; }

.gallery-hint { margin: 0 0 1rem; color: var(--muted); }
.grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
.tile {
  position: relative; aspect-ratio: 1 / 1; background: #e9e7e2; border-radius: 8px; overflow: hidden;
  cursor: pointer; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .15s;
  user-select: none; -webkit-user-select: none;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.tile:hover img { transform: scale(1.02); }
.tile.selected { outline-color: var(--accent); }
.tile .tick {
  position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.85); border: 2px solid rgba(0,0,0,.15);
  display: grid; place-items: center; color: transparent; font-weight: 700;
}
.tile.selected .tick { background: var(--accent); border-color: #fff; color: #fff; }
.tile .zoom {
  position: absolute; bottom: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; cursor: zoom-in;
}
.tile .zoom:hover { background: rgba(0,0,0,.75); }
.tile .zoom svg, .lb-btn svg { width: 20px; height: 20px; }

/* Lupe / Großansicht */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,15,15,.94);
  display: none; flex-direction: column;
}
.lightbox.open { display: flex; }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; color: #ddd; gap: 1rem; }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 3.5rem; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; user-select: none; }
.lb-btn {
  border: 0; background: rgba(255,255,255,.12); color: #fff; width: 44px; height: 44px;
  border-radius: 50%; display: grid; place-items: center; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: .75rem; } .lb-next { right: .75rem; }
@media (max-width: 600px) { .lb-stage { padding: 0; } .lb-prev, .lb-next { background: rgba(0,0,0,.4); } }
.lb-select.selected { background: var(--accent); border-color: var(--accent); color: #fff; }

.sel-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.sel-item { position: relative; }
.sel-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; display: block; }
.sel-item .name { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .2em; }
.sel-item form { position: absolute; top: 6px; right: 6px; }
.sel-item .remove {
  border: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff;
  cursor: pointer; font-size: 1rem; line-height: 1;
}
.info-text { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1.5rem; }
.actions { display: flex; gap: .75rem; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }
.thumbs-mini { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .5rem; }
.thumbs-mini img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }

/* ---------------- Dashboard ---------------- */
.admin { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.sidebar { background: #1f2420; color: #cfd5d1; padding: 1.25rem .75rem; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { color: #fff; font-weight: 600; padding: 0 .6rem 1.25rem; }
.sidebar .brand small { display: block; color: #8a958e; font-weight: 400; font-size: .78rem; }
.sidebar a {
  display: flex; justify-content: space-between; align-items: center; color: #cfd5d1; text-decoration: none;
  padding: .55rem .7rem; border-radius: 8px; margin-bottom: 2px;
}
.sidebar a:hover { background: rgba(255,255,255,.06); }
.sidebar a.active { background: rgba(255,255,255,.12); color: #fff; }
.sidebar .badge { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 .55em; font-size: .78rem; }
.sidebar .bottom { position: absolute; bottom: 1rem; left: .75rem; right: .75rem; }
.admin-main { padding: 2rem 2.25rem 4rem; max-width: 1250px; width: 100%; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: .75rem; }
  .sidebar .brand { padding: 0 .5rem; width: 100%; }
  .sidebar .bottom { position: static; }
  .admin-main { padding: 1.25rem 1rem 3rem; }
}
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.tile-stat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; text-decoration: none; color: inherit; display: block; }
.tile-stat .num { font-size: 2rem; font-weight: 600; line-height: 1.1; }
.tile-stat .lbl { color: var(--muted); font-size: .9rem; }
.tile-stat.highlight { background: var(--accent); color: #fff; }
.tile-stat.highlight .lbl { color: rgba(255,255,255,.85); }

table.list { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.list th, table.list td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #fbfaf8; font-weight: 600; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.clickable { cursor: pointer; }
table.list tr.clickable:hover td { background: #faf9f6; }
.table-wrap { overflow-x: auto; }
.status { display: inline-block; padding: .15em .65em; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.status-neu { background: var(--warn-soft); color: var(--warn); }
.status-versendet { background: var(--accent-soft); color: var(--accent-dark); }
.status-abgelehnt { background: #eee; color: #777; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs a { padding: .6rem 1rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.filters select, .filters input { width: auto; }
.pills { display: flex; gap: .4rem; flex-wrap: wrap; }
.pills a { padding: .35rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .9rem; }
.pills a.active { background: var(--text); color: #fff; border-color: var(--text); }

.fields-table { width: 100%; border-collapse: collapse; }
.fields-table th, .fields-table td { padding: .45rem .5rem; text-align: left; }
.fields-table th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.fields-table td.c, .fields-table th.c { text-align: center; width: 90px; }
.fields-table input[type=checkbox] { width: 1.15em; height: 1.15em; accent-color: var(--accent); }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: .9rem; }

.dropzone {
  border: 2px dashed #c9c6bf; border-radius: var(--radius); padding: 2rem 1rem; text-align: center;
  background: var(--surface); cursor: pointer; transition: background .15s, border-color .15s;
}
.dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { display: none; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 1rem; display: none; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.admin-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.admin-photo { background: var(--surface); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); font-size: .8rem; }
.admin-photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #e9e7e2; }
.admin-photo .meta { padding: .45rem .55rem; display: flex; justify-content: space-between; align-items: center; gap: .3rem; }
.admin-photo .meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-photo.missing { outline: 3px solid var(--danger); outline-offset: -3px; }
/* V11: Fotos ansehen im Originalformat – Reihen gleicher Höhe, ganzes Foto, nicht beschnitten */
.admin-grid.natural { display: flex; flex-wrap: wrap; }
.admin-grid.natural::after { content: ""; flex: 10 1 0; }
.admin-grid.natural .admin-photo { flex: var(--r) 1 calc(var(--r) * 190px); min-width: 0; }
.admin-grid.natural .admin-photo img { aspect-ratio: var(--r); height: auto; object-fit: contain; }
.tag { display: inline-block; padding: .05em .45em; border-radius: 4px; font-size: .72rem; font-weight: 600; }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.icon-btn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 4px; font-size: 1rem; }
.icon-btn:hover { color: var(--danger); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 500; word-break: break-word; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.two-col > .card { margin-top: 0; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.bar { height: 8px; background: var(--accent); border-radius: 4px; min-width: 4px; }
.mail-frame { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* ---------------- V2: Alben, Nachladen, Kontakt, Fortschritt ---------------- */
.album-bar { border-top: 1px solid var(--line); }
.album-bar .inner { padding: 0 1rem; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.album-bar .inner::-webkit-scrollbar { display: none; }
.album-bar a { padding: .55rem .8rem; white-space: nowrap; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; font-size: .93rem; }
.album-bar a.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.album-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 600px) { .album-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.album-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .15s; }
.album-card:hover { transform: translateY(-2px); }
.album-cover { aspect-ratio: 4 / 3; background: #e9e7e2; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-info { padding: .7rem .9rem; display: flex; flex-direction: column; }
.page-title-row { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.page-title-row h1 { margin-bottom: .25rem; }
.loader { text-align: center; padding: 2rem; color: var(--muted); }
.contact-box { border-top: 1px solid var(--line); margin: 1.25rem 0 .5rem; padding-top: 1rem; }
.contact-links { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: .5rem; }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; border-color: #1ebe5a; }
.status-rueckfrage { background: #e8effc; color: #2f5ea8; }
.status-eingerichtet { background: #eee; color: #666; }
.status-vorbereitung { background: var(--warn-soft); color: var(--warn); }
.status-online { background: var(--accent-soft); color: var(--accent-dark); }
.status-offline { background: #eee; color: #777; }
.progress.show { display: block; }
.prep-box { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.prep-box .progress { flex-basis: 100%; margin-top: .25rem; height: 10px; }
.folder-new { border-left: 4px solid var(--accent); }
.album-row-name input { min-width: 180px; }
.bulk-bar { display: flex; gap: .75rem; align-items: center; margin: .75rem 0; flex-wrap: wrap; }
table.list td.cb, table.list th.cb { width: 36px; }
table.list input[type=checkbox] { width: 1.1em; height: 1.1em; accent-color: var(--accent); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: .45rem 0 .45rem 1.1rem; border-left: 2px solid var(--line); position: relative; font-size: .92rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .85rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline .when { color: var(--muted); font-size: .8rem; display: block; }
details.ask { margin-top: 1rem; }
details.ask summary { cursor: pointer; list-style: none; display: inline-flex; }
details.ask summary::-webkit-details-marker { display: none; }
details.ask[open] summary { margin-bottom: 1rem; }
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.pager a, .pager span { padding: .3rem .7rem; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; color: var(--text); background: var(--surface); }
.pager span.cur { background: var(--text); color: #fff; border-color: var(--text); }
.admin-photo .cover-btn { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: .8rem; padding: 0; }
.admin-photo .cover-btn:hover { color: var(--accent); }
.admin-photo.is-cover { outline: 3px solid var(--accent); outline-offset: -3px; }
.admin-main { min-width: 0; }
code { word-break: break-all; }
.prep-box > div:first-child { flex: 1 1 260px; }
.shop-header .album-bar .inner { justify-content: flex-start; gap: .25rem; padding-top: 0; padding-bottom: 0; }

/* ---------------- V3: 3:2-Raster und Lupen-Kreis ---------------- */
.grid-32 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 600px) { .grid-32 { grid-template-columns: repeat(2, 1fr); } }
.grid-32 .tile { aspect-ratio: 3 / 2; background: #ecebe7; cursor: pointer; -webkit-touch-callout: none; }
.grid-32 .tile img { object-fit: contain; }
.grid-32 .tile:hover img { transform: none; }
@media (hover: hover) and (pointer: fine) { .grid-32 .tile { cursor: none; } }
.lens {
  position: fixed; z-index: 50; left: 0; top: 0; border-radius: 50%; pointer-events: none;
  border: 3px solid #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.15);
  background-color: #222; background-repeat: no-repeat; opacity: 0; transform: scale(.85);
  transition: opacity .12s, transform .12s;
}
.lens.on { opacity: 1; transform: scale(1); }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }
.status-archiviert { background: #eee; color: #777; }

/* ---------------- V5: Limit, Bot-Schutz ---------------- */
.limit-hint { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: .7rem 1rem; border-radius: 8px; margin: .25rem 0 .75rem; }
.tile .ordered-badge { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; padding: .15em .5em; border-radius: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #1d1d1f; color: #fff;
  padding: .75rem 1.1rem; border-radius: 10px; max-width: min(92vw, 520px); font-size: .95rem; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 120; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.captcha-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.captcha-row img { border: 1px solid var(--line); border-radius: 8px; display: block; }
.captcha-row input { width: 90px; font-size: 1.15rem; text-align: center; }
.captcha-eq { font-size: 1.4rem; color: var(--muted); }
.nth { display: inline-block; margin-left: .3rem; font-size: .72rem; font-weight: 600; color: #2f5ea8; background: #e8effc; padding: .05em .45em; border-radius: 4px; white-space: nowrap; }

/* ================= V6: Design C „Warm und editorial“ (Gastseiten) ================= */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }

body.c { --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; background: #fff; color: #1d1d1f;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15.5px; }
body.c h1, body.c h2 { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; }
body.c h1 { font-size: 2.1rem; }
body.c .btn { border-radius: 999px; }
body.c .btn-primary:hover { filter: brightness(1.25); }
body.c a:not(.btn) { color: var(--accent); }  /* V7: dunkle Buttons behalten ihre weiße Schrift */
.c-main { max-width: 1400px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }

/* Kopf: Logo + Eventname */
.c-brand { text-align: center; padding: 2rem 1rem 1.4rem; }
.c-brand .c-logo { height: 56px; width: auto; display: inline-block; }
.c-event { font-size: clamp(2rem, 4.6vw, 3rem) !important; line-height: 1.1; margin: 1.1rem 0 .3rem; }
.c-date { color: #6b6b70; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.c-brand.compact { padding: 1.4rem 1rem .4rem; }
.c-brand.compact .c-logo { height: 42px; }
.c-event-small { margin-top: .6rem; color: #6b6b70; font-size: .9rem; }

/* Album-Leiste + „Meine Auswahl“ – bleibt beim Scrollen oben */
.c-nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid #ecebe7; }
.c-albums { border-top: 1px solid #ecebe7; border-bottom: 1px solid #ecebe7; }
.c-albums-inner { display: flex; justify-content: center; gap: .3rem 1.6rem; padding: 0 1rem; overflow-x: auto; scrollbar-width: none; }
.c-albums-inner::-webkit-scrollbar { display: none; }
.c-albums a { font-family: var(--serif); font-size: 1.22rem; font-weight: 500; color: #6b6b70; text-decoration: none;
  padding: .55rem .1rem; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.c-albums a:hover { color: #1d1d1f; }
.c-albums a.active { color: #1d1d1f; border-bottom-color: var(--accent); font-weight: 600; }
.c-selrow { max-width: 1400px; margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.c-selrow-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-selrow-title span { font-family: "Inter", sans-serif; font-size: .82rem; font-weight: 400; color: #6b6b70; margin-left: .6rem; }
.c-selbtn { display: inline-flex; align-items: center; gap: .55rem; background: var(--accent); color: #fff !important; text-decoration: none;
  padding: .5rem .55rem .5rem 1.05rem; border-radius: 999px; font-weight: 500; font-size: .92rem; white-space: nowrap; }
.c-selbtn:hover { filter: brightness(1.25); }
.c-selcount { background: #fff; color: var(--accent); border-radius: 999px; padding: .05rem .55rem; font-size: .82rem; font-weight: 600; }
.c-selbtn > span:last-child { padding-right: .4rem; }

/* Hinweise */
body.c .limit-hint { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0; margin: .4rem 0 .6rem; }
body.c .gallery-hint { text-align: left; font-size: .9rem; }

/* Fotos wie im Fotobuch */
body.c .grid-32 { gap: 6px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
body.c .grid-32 .tile { border-radius: 2px; background: #f4f3f0; }
body.c .tile.selected { outline-color: var(--accent); }
body.c .tile.selected .tick { background: var(--accent); }

/* Album-Übersicht */
.c-album-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: .8rem; }
.c-album { text-decoration: none; color: inherit !important; display: block; }
.c-album-cover { aspect-ratio: 3 / 2; background: #f4f3f0; overflow: hidden; border-radius: 2px; }
.c-album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.c-album:hover .c-album-cover img { transform: scale(1.03); }
.c-album-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; margin-top: .55rem; line-height: 1.15; }
.c-album-count { color: #6b6b70; font-size: .85rem; }

/* Formulare und Karten */
.c-narrow { max-width: 400px; margin: .5rem auto 0; }
.c-card { background: #fff; border: 1px solid #ecebe7; border-radius: 6px; padding: 1.5rem; }
body.c .card { border: 1px solid #ecebe7; box-shadow: none; border-radius: 6px; }
body.c .info-text { border-radius: 0; border-left-width: 3px; background: var(--accent-soft); border-left-color: var(--accent); }
body.c input:focus, body.c textarea:focus { border-color: var(--accent); outline-color: var(--accent-soft); }
body.c .check input { accent-color: var(--accent); }
body.c .login-box { margin-top: 1rem; }

/* Fußzeile */
.c-footer { text-align: center; padding: 2.5rem 1rem 2rem; color: #6b6b70; font-size: .82rem; border-top: 1px solid #f0efeb; margin-top: 2rem; }
.c-footer-logo { height: 26px; width: auto; opacity: .55; display: block; margin: 0 auto .7rem; }
.c-footer a { color: #6b6b70 !important; margin: 0 .6rem; }

@media (max-width: 600px) {
  .c-brand { padding: 1.3rem 1rem 1rem; }
  .c-brand .c-logo { height: 40px; }
  .c-event { font-size: 1.9rem !important; margin-top: .8rem; }
  .c-albums-inner { justify-content: flex-start; gap: 1.2rem; }
  .c-albums a { font-size: 1.12rem; }
  .c-selrow-title { font-size: 1.15rem; }
  .c-selrow-title span { display: none; }
  .c-selbtn { font-size: .85rem; padding: .45rem .5rem .45rem .85rem; }
  body.c .grid-32 { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .c-album-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem .8rem; }
  .c-album-name { font-size: 1.2rem; }
}
.brand-preview { background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 1rem; display: flex; align-items: center; justify-content: center; min-height: 96px; }
.brand-preview img { max-height: 70px; max-width: 100%; }

/* ================= V7: Sprachumschalter, Dashboard nach Events, Postausgang, Archiv ================= */
/* Sprachumschalter DEU | ENG */
.c-lang { display: inline-flex; border: 1.5px solid #1d1d1f; border-radius: 999px; overflow: hidden; flex-shrink: 0; background: #fff; }
.c-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 34px; padding: 0 .7rem;
  font: 600 .8rem/1 "Inter", sans-serif; letter-spacing: .08em; color: #1d1d1f !important; text-decoration: none; }
.c-lang a + a { border-left: 1.5px solid #1d1d1f; }
.c-lang a.active { background: #1d1d1f; color: #fff !important; }
.c-lang a:not(.active):hover { background: #f4f3f0; }
.c-lang-top { position: absolute; top: 14px; right: 16px; z-index: 40; }
.c-selrow-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
@media (max-width: 600px) {
  .c-lang a { min-width: 40px; min-height: 32px; padding: 0 .5rem; font-size: .74rem; }
  .c-lang-top { top: 10px; right: 10px; }
  .c-selrow-right { gap: .4rem; }
  /* Handy: Album steht schon unterstrichen in der Leiste – Platz für Sprache + „Meine Auswahl“ */
  .c-albums + .c-selrow .c-selrow-title { display: none; }
  .c-albums + .c-selrow .c-selrow-right { width: 100%; justify-content: space-between; }
}

/* Buttons im Dashboard */
.btn-ask { background: #e8710a; border-color: #e8710a; color: #fff; }
.btn-ask:hover { background: #cf6308; border-color: #cf6308; color: #fff; }
.status-wrap { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .15rem; vertical-align: middle; }
.card + .two-col { margin-top: 1.25rem; }
.status-date { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.tag-lang { background: #e8effc; color: #2f5ea8; }

/* Menü links: Events zum Aufklappen */
.sidebar { overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .bottom { position: static; margin-top: auto; padding-top: 1rem; }
.side-head { display: flex; justify-content: space-between; align-items: center; color: #8a958e; font-size: .74rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: 1.1rem .7rem .4rem; }
.sidebar a.side-new { display: inline-flex; padding: .1rem .55rem; margin: 0; border: 1px solid #3a423d; border-radius: 6px; font-size: .78rem;
  letter-spacing: 0; text-transform: none; color: #cfd5d1; font-weight: 500; }
.sidebar a.side-new:hover { border-color: #8a958e; }
.sidebar .ev > a { font-weight: 500; }
.sidebar .ev > a .ev-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: .4rem; align-items: center; min-width: 0; }
.sidebar .ev > a .arrow { color: #8a958e; font-size: .7rem; width: .8rem; flex-shrink: 0; }
.sidebar .ev-sub { margin: 0 0 .4rem 1.1rem; border-left: 1px solid #3a423d; padding-left: .3rem; }
.sidebar .ev-sub a { padding: .38rem .6rem; font-size: .92rem; }
.sidebar .warn { color: #f0a35b; font-size: .85rem; }
.sidebar .dot-new { background: #e8710a; }
.sidebar .badge.muted-badge { background: #3a423d; color: #cfd5d1; }
@media (max-width: 860px) {
  .sidebar { display: block; max-height: none; }
  .sidebar .side-toggle { display: inline-flex; }
  .sidebar:not(.open) .side-body { display: none; }
}
.side-toggle { display: none; background: none; border: 1px solid #3a423d; color: #fff; border-radius: 8px; padding: .3rem .7rem; font: inherit; cursor: pointer; }
.side-top { display: flex; justify-content: space-between; align-items: center; }

/* Event-Kopf und Übersicht */
.ev-head { margin-bottom: 1.25rem; }
.ev-head h1 { margin: 0 0 .25rem; }
.ev-head .crumb { color: var(--muted); font-size: .85rem; }
.ev-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; color: var(--muted); font-size: .92rem; margin-top: .4rem; }
.copy-inline { display: inline-flex; align-items: center; gap: .35rem; }
.copy-inline code { background: #f1efea; padding: .1rem .45rem; border-radius: 5px; color: var(--text); word-break: normal; }
.copy-inline button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: .1rem .5rem; font-size: .78rem; cursor: pointer; }
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.event-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; text-decoration: none; color: inherit; display: block; border-left: 4px solid transparent; }
.event-card.has-open { border-left-color: var(--warn); }
.event-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 8px 20px rgba(0,0,0,.06); }
.event-card h3 { margin: 0 0 .2rem; font-size: 1.08rem; }
.event-card .meta { color: var(--muted); font-size: .85rem; }
.event-card .open { margin-top: .6rem; font-weight: 600; color: var(--warn); }
.event-card .open.zero { color: var(--muted); font-weight: 400; }
.warn-box { background: var(--danger-soft); color: var(--danger); border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; }
.warn-box a { color: var(--danger); font-weight: 600; }
.tiles a.tile-stat:hover { box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 8px 20px rgba(0,0,0,.06); }
table.simple { width: 100%; border-collapse: collapse; }
table.simple th, table.simple td { padding: .5rem .55rem; border-bottom: 1px solid var(--line); text-align: left; }
table.simple th { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
table.simple td.r, table.simple th.r { text-align: right; }
table.simple tfoot td { font-weight: 600; border-bottom: 0; }

/* Postausgang */
.keep-box { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.keep-box select { width: auto; }
.day-head td { background: #fbfaf8 !important; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; padding-top: .9rem !important; }
.pill-err.active { background: var(--danger) !important; border-color: var(--danger) !important; }
.pill-err { color: var(--danger) !important; }
.pill-err.active { color: #fff !important; }
.kind { font-size: .82rem; white-space: nowrap; }

/* Englisch-Felder in den Einstellungen */
.en-field { margin-top: -.4rem; }
.en-field label { color: #2f5ea8; }
.en-stale { color: var(--warn); font-size: .82rem; margin-top: .25rem; }
.lang-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; padding: .05em .4em; border-radius: 4px; background: #e8effc; color: #2f5ea8; margin-right: .3rem; vertical-align: 1px; }
.lang-tag.de { background: #f1efea; color: #6b6b70; }

/* Archiv */
.tree { background: #fbfaf8; border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; font: .9rem/1.6 ui-monospace, Menlo, monospace; white-space: pre; overflow-x: auto; }
.check-ok { color: var(--accent-dark); font-weight: 600; }
.check-miss { color: var(--danger); font-weight: 600; }
.danger-zone { border: 1px solid var(--danger-soft); }
.danger-zone h2 { color: var(--danger); }
.archive-actions { white-space: normal; }
.archive-actions > * { margin: .15rem 0 .15rem .25rem; }

/* ================= V8: Geräte-Kürzel ================= */
.device-code { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; letter-spacing: .04em; background: #f1efea;
  color: var(--text) !important; padding: .05rem .4rem; border-radius: 4px; text-decoration: none; }
a.device-code:hover { background: #e4e2dd; }
.tag-device { background: #fde9d6; color: #b25606; white-space: nowrap; }
.device-box { background: #fde9d6; color: #8a4204; border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; }
.device-box a { color: #8a4204; font-weight: 600; }
.card.device-warn { border-left: 4px solid #e8710a; }

/* V10: Begrüßung (Passwort-Seite), „Bitte beachten“ (über den Alben) */
.c-welcome { text-align: center; font-size: 1.1rem; margin: 0 0 1rem; }
.c-notice { background: #f6f5f2; border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem;
  margin: .4rem 0 .9rem; font-size: .9rem; line-height: 1.45; }
.c-notice strong { display: block; margin-bottom: .25rem; }
.c-notice ul { margin: 0; padding-left: 1.2rem; }
.c-notice li + li { margin-top: .3rem; }

/* V11: Album anlegen, Ordner-Zeile */
.add-album { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.add-album input[type=text] { max-width: 260px; }
.folder-line { margin-top: .75rem; word-break: break-all; }
