:root { --brand: #3b82f6; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; color: #1f2937; line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.pub-header { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 50; }
.pub-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.pub-logo { font-weight: 700; font-size: 1.1rem; color: #0f172a; }
.pub-logo img { max-height: 36px; }
.pub-nav { display: flex; align-items: center; gap: 1.25rem; font-size: 14px; }
.pub-nav a { color: #374151; }
.pub-nav a:hover { color: var(--brand); }
.btn-nav { background: var(--brand); color: #fff !important; padding: .4rem .9rem; border-radius: 6px; font-weight: 500; }
.btn-nav:hover { background: #1d4ed8; }

/* Hero */
.pub-hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); color: #fff; padding: 4rem 1.25rem; text-align: center; }
.pub-hero h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; }
.pub-hero p { margin-top: .75rem; color: rgba(255,255,255,.7); font-size: 1.1rem; }

/* Sections */
.pub-section { padding: 3rem 1.25rem; }
.section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }

/* Katalog-Grid (public) */
.katalog-pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.pub-katalog-card { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.pub-katalog-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.12); transform: translateY(-2px); text-decoration: none; }
.pub-katalog-cover { aspect-ratio: 3/4; overflow: hidden; background: #f1f5f9; }
.pub-katalog-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 3rem; }
.pub-katalog-info { padding: 1rem; }
.pub-katalog-info h3 { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: .25rem; }
.pub-katalog-info p { font-size: 12.5px; color: #6b7280; margin-bottom: .5rem; }
.pub-katalog-views { font-size: 11px; color: #9ca3af; }
.pub-empty { text-align: center; padding: 4rem; color: #9ca3af; }
.pub-empty i { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: .375rem; margin-bottom: 1rem; }
.form-group label { font-size: 13.5px; font-weight: 500; color: #374151; }
.form-control { width: 100%; padding: .5rem .75rem; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; color: #111827; transition: border-color .15s; }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.pub-form { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.5rem; }
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.25rem; border-radius: 8px; font-size: 14px; font-weight: 500; border: none; cursor: pointer; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 13.5px; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* Static page */
.static-page { max-width: 760px; }
.static-content { line-height: 1.8; color: #374151; }
.static-content h2, .static-content h3 { margin: 1.5rem 0 .5rem; color: #111827; }
.static-content p { margin-bottom: 1rem; }

/* Footer */
.pub-footer { background: #0f172a; color: rgba(255,255,255,.5); padding: 1.5rem 1.25rem; margin-top: 4rem; }
.pub-footer .container { display: flex; justify-content: center; }
.footer-links { display: flex; gap: 1.5rem; font-size: 13px; }
.footer-links a { color: rgba(255,255,255,.5); }
.footer-links a:hover { color: #fff; }
