/* Marktplatz – ein Stylesheet fuer alle Domains. Die Akzentfarbe kommt pro Site aus config/sites.php. */

:root {
    --accent: #1d5fa8;
    --navy: #14304f;
    --text: #1b2430;
    --muted: #5f6b7a;
    --bg: #f4f6f9;
    --white: #fff;
    --border: #e1e6ed;
    --danger: #d64545;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(20, 48, 79, 0.06), 0 1px 3px rgba(20, 48, 79, 0.04);
    --shadow: 0 8px 24px rgba(20, 48, 79, 0.08);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 2.2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.1rem; }
.muted { color: var(--muted); } .small { font-size: 0.88rem; } .nowrap { white-space: nowrap; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--navy); text-decoration: none; font-size: 1.1rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--navy)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-admin { color: var(--muted) !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.65rem 1.3rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none !important; line-height: 1.3; transition: filter 0.15s, background-color 0.15s; }
.btn:hover { filter: brightness(0.94); }
.btn-primary { background: var(--navy); color: #fff !important; }
.btn-accent { background: var(--accent); color: #fff !important; }
.btn-secondary { background: #fff; color: var(--text) !important; border-color: var(--border); }
.btn-danger { background: var(--danger); color: #fff !important; }
.btn-link { background: none; color: var(--accent) !important; padding-left: 0.5rem; padding-right: 0.5rem; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 3rem; margin: 2rem 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(180deg, var(--accent), var(--navy)); }
.hero-compact { grid-template-columns: 1fr; }
.eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 1rem; }
.hero h1 { font-size: 2.3rem; margin-bottom: 0.8rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-aside { display: grid; gap: 0.75rem; }
.stat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; display: flex; align-items: baseline; gap: 0.75rem; }
.stat-num { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.stat-label { color: var(--muted); }

/* Sections */
.section { margin: 2.5rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip { font-size: 0.85rem; font-weight: 500; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); text-decoration: none; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); padding: 3rem; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 1rem; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card { position: relative; display: flex; flex-direction: column; gap: 0.6rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-featured { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--accent); color: #fff; }
.card .badge { position: absolute; top: -0.7rem; left: 1.2rem; box-shadow: 0 2px 6px rgba(20,48,79,0.15); }
.card-featured { margin-top: 0.4rem; }
.badge-neutral { background: var(--muted); } .badge-accent { background: var(--accent); }
.card-head { display: flex; gap: 0.9rem; align-items: center; }
.card-logo { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--border); flex-shrink: 0; }
.card-logo-fallback { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); }
.card h3 { font-size: 1.05rem; }
.card-text { color: var(--muted); font-size: 0.93rem; }
.card-cta { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-top: auto; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2rem 2.5rem; }
.cta-band h2 { color: #fff; margin-bottom: 0.3rem; } .cta-band p { color: rgba(255,255,255,0.8); max-width: 40rem; }

/* Profil */
.breadcrumb { font-size: 0.88rem; color: var(--muted); margin: 1.5rem 0 1rem; }
.breadcrumb a { color: var(--muted); }
.profile { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }
.profile-main { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.profile-head { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.profile-logo { width: 84px; height: 84px; border-radius: 14px; object-fit: contain; border: 1px solid var(--border); flex-shrink: 0; font-size: 2rem; }
.profile-head h1 { font-size: 1.7rem; }
.prose p { margin-bottom: 0.9rem; }
.profile-side { display: grid; gap: 1rem; align-content: start; }
.box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.box h3 { margin-bottom: 0.9rem; }
.contact-list { list-style: none; display: grid; gap: 0.5rem; }
.contact-list li { display: flex; gap: 0.75rem; }
.contact-list span { color: var(--muted); min-width: 4.5rem; font-size: 0.9rem; }
.contact-list a { word-break: break-all; }

/* Forms */
.form { display: grid; gap: 0.9rem; }
.form label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; }
.form label.inline { grid-template-columns: auto 1fr; align-items: center; gap: 0.5rem; font-weight: 500; }
.form input, .form select, .form textarea { font: inherit; padding: 0.65rem 0.8rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.form input[type=checkbox] { width: auto; }
.form-wide { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.checks { display: grid; gap: 0.4rem; align-content: end; }
.hp { position: absolute; left: -9999px; }
.actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.danger-zone { margin-top: 1.5rem; }
.flash { max-width: 1100px; margin: 1rem auto 0; padding: 0.8rem 1.25rem; border-radius: var(--radius-sm); font-weight: 500; }
.flash-success { background: #e6f6ec; color: #1d6b3d; border: 1px solid #b9e4c8; }
.flash-error { background: #fdecec; color: #8a2424; border: 1px solid #f3c2c2; }

/* Werbeplatz */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 0.8rem; margin: 1rem 0 2rem; }
.steps li { counter-increment: s; display: flex; gap: 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.steps li::before { content: counter(s); flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1rem 0 0.5rem; }
.plan { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.plan-featured { border-color: var(--accent); }
.plan .badge { position: absolute; top: -0.7rem; left: 1.25rem; }
.plan-price { font-size: 1.8rem; font-weight: 700; color: var(--navy); margin: 0.5rem 0; }
.plan-price span { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 1.2rem; color: var(--muted); }

/* Admin */
.narrow { max-width: 420px; margin: 3rem auto; }
.pill { background: var(--danger); color: #fff; border-radius: 999px; padding: 0 0.5rem; font-size: 0.75rem; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 1rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th, .table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { background: var(--bg); font-weight: 600; color: var(--muted); font-size: 0.85rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.4rem; }
.dot-on { background: #2e9e5b; } .dot-off { background: #c0c7d1; }
.inquiries { display: grid; gap: 1rem; }
.inquiry.is-read { opacity: 0.7; }
.inquiry-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }

/* Legal */
.legal { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; max-width: 820px; }
.legal h2 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }
.legal p { margin-bottom: 0.8rem; }
.legal-note { background: #fff7e6; border: 1px solid #f3d9a4; color: #7a5200; padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 2.5rem 0 1.5rem; margin-top: 3rem; }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer strong { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.footer-network { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-network a { margin-left: 0.6rem; color: rgba(255,255,255,0.7); }

@media (max-width: 860px) {
    .hero, .profile, .two-col { grid-template-columns: 1fr; }
    .hero { padding: 2rem 1.5rem; }
    .hero h1 { font-size: 1.8rem; }
    .plans, .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    h1 { font-size: 1.6rem; }
    .site-header { padding: 0.7rem 1rem; }
    .site-nav a:not(.btn) { display: none; }
    .hero { padding: 1.5rem 1.1rem; margin: 1rem 0; }
    .cta-band { padding: 1.5rem; }
    .hero-actions .btn { width: 100%; }
    .legal { padding: 1.5rem; }
}

/* Beispiel-Kennzeichnung */
.tag-example { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; color: var(--muted); border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 0.05rem 0.5rem; vertical-align: middle; margin-left: 0.35rem; }
.example-note { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff7e6; border: 1px solid #f3d9a4; color: #7a5200; border-radius: var(--radius-sm); padding: 0.8rem 1.1rem; margin-bottom: 1rem; font-size: 0.92rem; }

/* Vorschau-Seite */
.preview-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; align-items: start; }
.preview-sticky { position: sticky; top: 5rem; display: grid; gap: 1rem; }
.preview-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 1rem; }
.preview-profile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.preview-profile .profile-head { margin-bottom: 1rem; }
.preview-profile .profile-logo { width: 64px; height: 64px; font-size: 1.5rem; }
.preview-profile h1 { font-size: 1.4rem; }
.preview-profile .contact-list:not(:empty) { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.form .check { display: flex; gap: 0.5rem; align-items: center; font-weight: 500; }
.form .check input { width: auto; }
@media (max-width: 860px) { .preview-layout { grid-template-columns: 1fr; } .preview-sticky { position: static; } }

/* Startseite: kompakter Kopf, Eintraege direkt darunter */
.page-head { padding: 2rem 0 0.5rem; max-width: 46rem; }
.page-head h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.page-head .lead { margin-bottom: 0; }
.section-tight { margin-top: 1.5rem; }
.count { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 0.05rem 0.55rem; vertical-align: middle; margin-left: 0.3rem; }
.hero h2 { font-size: 1.8rem; margin-bottom: 0.6rem; }
@media (max-width: 520px) { .page-head { padding-top: 1.25rem; } .page-head h1 { font-size: 1.5rem; } }

/* Premium: Anzeigefoto und Galerie */
.card-featured .badge { z-index: 2; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; margin: 1.25rem 0 0.5rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.example-line { margin-top: 1.25rem; }

/* Werbeplatz-Seite */
.plans-wide { max-width: 760px; }
.plan ul { display: grid; gap: 0.3rem; margin-top: 0.5rem; }
.sandbox-band { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: #fff; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: var(--radius); padding: 1.75rem 2rem; }
.sandbox-band h2 { margin-bottom: 0.3rem; } .sandbox-band p { color: var(--muted); max-width: 42rem; }

/* Sandbox */
.plan-pick { border: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.plan-pick legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.form .plan-option { display: flex; gap: 0.6rem; align-items: flex-start; border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 0.9rem; font-weight: 500; cursor: pointer; }
.form .plan-option input { width: auto; margin-top: 0.25rem; }
.form .plan-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.premium-fields { display: grid; gap: 0.9rem; background: color-mix(in srgb, var(--accent) 5%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); border-radius: 10px; padding: 1rem; }
@media (max-width: 520px) { .plan-pick { grid-template-columns: 1fr; } }
