/* Foto-Shop fotos.dmsk-media.de: ruhig, monochrom, passend zu dmsk-media.de */
:root { --ink: #0f0f0e; --paper: #f3f2ee; --white: #fff; --muted: #6a6a64; --line: #dcdad2; --bad: #a32020; --ok: #1f6b3a; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.top { background: var(--ink); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.top img { height: 36px; width: auto; }
.top nav { display: flex; gap: 20px; align-items: center; font-size: .95rem; }
.top nav a { text-decoration: none; opacity: .85; }
.top nav a:hover { opacity: 1; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.hero { background: var(--ink); color: #fff; padding: 36px 0 44px; }
.hero p { margin: 0; max-width: 62ch; color: #d4d3cc; }
.hero .meta { margin-top: 8px; color: #b7b6ae; font-size: .95rem; }
main { padding: 32px 0 64px; min-height: 55vh; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { background: #2a2a28; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: rgba(0,0,0,.06); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--small { padding: 7px 14px; font-size: .9rem; }

.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.event { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.event:hover { border-color: var(--ink); }
.event img, .event .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #e6e4dc; }
.event div { padding: 14px 16px 16px; }
.event h2 { font-size: 1.1rem; margin: 0 0 4px; }
.event p { margin: 0; color: var(--muted); font-size: .92rem; }
.event .ph { display: grid; place-items: center; }
.event .ph .lock { color: var(--muted); font-size: .95rem; padding: 0; }

.bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.bar form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bar input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.price-line { color: var(--muted); font-size: .95rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tile { position: relative; background: #e6e4dc; border-radius: 8px; overflow: hidden; aspect-ratio: 3 / 2; }
.tile a { display: block; height: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile form { position: absolute; right: 8px; bottom: 8px; }
.tile .add, .tile .in { border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.tile .add { background: rgba(15,15,14,.88); color: #fff; }
.tile .in { background: #fff; color: var(--ink); font-weight: 600; }

.cartbar { position: sticky; bottom: 0; background: var(--ink); color: #fff; padding: 12px 0; z-index: 5; }
.cartbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.pager a, .pager span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; font-size: .92rem; }
.pager .active, .pager [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pagination li a, .pagination li span { display: block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; font-size: .92rem; }
.pagination li.disabled span { color: var(--muted); }
.mt-l { margin-top: 28px; }
.mt-s { margin-top: 12px; margin-bottom: 0; }
.flush { margin: 0; }

.viewer { background: var(--ink); border-radius: 10px; padding: 12px; }
.viewer img { margin: 0 auto; max-height: 72vh; width: auto; border-radius: 4px; }
.viewer-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 14px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.narrow { max-width: 520px; margin: 0 auto; }
.field { margin-bottom: 14px; display: grid; gap: 5px; }
.field label { font-weight: 500; }
.field input[type=text], .field input[type=email], .field input[type=password] { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .95rem; }
.check input { margin-top: 4px; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; background: #fbeaea; color: var(--bad); border: 1px solid #efc7c7; }
.alert--ok { background: #e8f4ec; color: var(--ok); border-color: #c4e2cf; }
.muted { color: var(--muted); }
.list { list-style: none; padding: 0; margin: 0 0 16px; }
.list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list img { width: 72px; height: 48px; object-fit: cover; border-radius: 4px; }
.list .l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 600; padding: 12px 0; }
.sum { color: var(--muted); font-size: .92rem; margin: -8px 0 12px; }

.foot { background: var(--ink); color: #bdbcb4; padding: 28px 0; font-size: .92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot a { color: #fff; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } .top nav a:not(.keep) { display: none; } }
