/* ============================================================
   muntafuner.at - hell, modern, alpine
   Mobile-first - dann Tablet/Desktop Breakpoints
   ============================================================ */
:root {
    --c-sky:        #0ea5e9;
    --c-sky-dark:   #0284c7;
    --c-teal:       #06b6d4;
    --c-teal-dark:  #0891b2;
    --c-green:      #84cc16;
    --c-green-dk:   #65a30d;
    --c-sun:        #facc15;
    --c-orange:     #f97316;
    --c-pink:       #ec4899;
    --c-violet:     #a855f7;

    --bg:           #fafbfc;
    --bg-cool:      linear-gradient(180deg, #f0f9ff 0%, #ecfeff 60%, #fafbfc 100%);
    --surface:      #ffffff;
    --border:       #e2e8f0;
    --border-soft:  #f1f5f9;

    --text:         #0f172a;
    --text-soft:    #475569;
    --text-mute:    #94a3b8;

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 22px;

    --sh-sm: 0 1px 3px rgba(15,23,42,0.08);
    --sh-md: 0 6px 18px rgba(15,23,42,0.10);
    --sh-lg: 0 18px 40px rgba(15,23,42,0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex; flex-direction: column;
}
a { color: var(--c-teal-dark); text-decoration: none; }
a:hover { color: var(--c-sky-dark); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
h3 { font-size: clamp(17px, 2vw, 20px); font-weight: 700; }

/* ====== Layout ====== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; width: 100%; }
.container.narrow { max-width: 640px; }
.site-main { flex: 1; padding: 24px 0 56px; }

/* ====== Header ====== */
.site-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--sh-sm);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
    width: 44px; height: 44px; border-radius: 10px;
    object-fit: contain; background: #fff;
    box-shadow: var(--sh-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; color: var(--c-sky-dark); font-size: 18px; letter-spacing: -0.3px; }
.brand-tag  { font-size: 11px; color: var(--text-soft); font-weight: 500; }

.main-nav { display: flex; gap: 14px; align-items: center; }
.main-nav a {
    color: var(--text); font-weight: 600; font-size: 14.5px;
    padding: 8px 10px; border-radius: 8px; transition: all 0.15s;
}
.main-nav a:hover { background: var(--border-soft); color: var(--c-sky-dark); }
.main-nav .btn-cta {
    background: linear-gradient(135deg, var(--c-teal), var(--c-teal-dark));
    color: #fff; padding: 9px 16px;
    box-shadow: 0 4px 12px rgba(8,145,178,0.30);
}
.main-nav .btn-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(8,145,178,0.45); }

.user-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--border-soft); padding: 4px 4px 4px 10px; border-radius: 999px; }
.user-chip > a { padding: 4px 6px; font-size: 13px; }
.user-chip .role-badge {
    background: linear-gradient(135deg, var(--c-orange), #ea580c); color: #fff;
    padding: 3px 9px; border-radius: 10px; font-size: 11px; font-weight: 700;
}
.user-chip .logout { background: #fff; padding: 4px 10px; border-radius: 999px; box-shadow: var(--sh-sm); }

.nav-toggle {
    display: none;
    background: transparent; border: 1px solid var(--border);
    width: 40px; height: 40px; border-radius: 8px;
    font-size: 18px; cursor: pointer;
}

/* ====== Flash / Hinweise ====== */
.flash {
    padding: 12px 16px; border-radius: var(--r-md); margin: 14px 0;
    font-weight: 600; font-size: 14px;
}
.flash-ok   { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.flash-err  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.flash ul { margin: 4px 0 0 18px; font-weight: 500; }

/* ====== Hero ====== */
.hero {
    background: var(--bg-cool);
    border-radius: var(--r-xl);
    padding: 36px 24px;
    text-align: center;
    margin-bottom: 30px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(14,165,233,0.10), transparent 60%),
                       radial-gradient(circle at 20% 80%, rgba(132,204,22,0.08), transparent 60%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { color: var(--c-sky-dark); margin-bottom: 8px; }
.hero .tag { color: var(--text-soft); font-size: clamp(15px, 2vw, 18px); margin-bottom: 22px; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-cta { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* ====== Buttons ====== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 20px; border-radius: var(--r-md);
    font-weight: 700; font-size: 14.5px;
    border: 1px solid var(--border);
    background: var(--surface); color: var(--text);
    cursor: pointer; text-decoration: none;
    transition: all 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-primary {
    background: linear-gradient(135deg, var(--c-teal), var(--c-teal-dark));
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 14px rgba(8,145,178,0.30);
}
.btn-primary:hover { color: #fff; box-shadow: 0 8px 22px rgba(8,145,178,0.45); }
.btn-green {
    background: linear-gradient(135deg, var(--c-green), var(--c-green-dk));
    color: #fff; border-color: transparent;
}
.btn-green:hover { color: #fff; }
.btn-ghost { background: transparent; border-color: var(--c-teal); color: var(--c-teal-dark); }
.btn-danger { background: #fff; color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* ====== Section ====== */
.section { margin: 36px 0; }
.section-head {
    display: flex; justify-content: space-between; align-items: end; gap: 14px;
    margin-bottom: 16px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head .sub { color: var(--text-soft); font-size: 14px; }
.section-head .more { color: var(--c-teal-dark); font-weight: 600; font-size: 14px; }

/* ====== Kategorien-Grid (Sticker-Cards) ====== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.cat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 14px 10px 12px;
    text-align: center; text-decoration: none;
    transition: all 0.18s;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    position: relative;
}
.cat-card:hover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: var(--sh-lg);
    border-color: var(--c-teal);
}
.cat-sticker { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.10)); }
.cat-card-icon-fallback { width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; font-size: 48px; border-radius: 50%; background: linear-gradient(135deg, #e0f2fe, #ecfeff); }
.cat-name { color: var(--text); font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.cat-desc { color: var(--text-soft); font-size: 11.5px; line-height: 1.35; }
.cat-count {
    position: absolute; top: 8px; right: 8px;
    background: var(--c-orange); color: #fff;
    font-size: 10.5px; font-weight: 700;
    padding: 2px 7px; border-radius: 999px;
}

/* ====== Post-Card-Grid ====== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.post-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); overflow: hidden;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    transition: all 0.18s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--c-teal); color: inherit; }
.post-card .card-img {
    height: 160px;
    background-size: cover; background-position: center;
    background-color: #f1f5f9;
}
.post-card .card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.post-card .card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-badge {
    color: #fff; padding: 3px 9px; border-radius: 10px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.2px;
}
.post-card .time { color: var(--text-mute); font-size: 11.5px; font-weight: 600; }
.post-card .card-title { margin: 2px 0 0; font-size: 16.5px; line-height: 1.3; }
.post-card .card-excerpt { color: var(--text-soft); font-size: 13.5px; line-height: 1.5; flex: 1; }
.post-card .card-foot {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--border-soft); padding-top: 10px;
    font-size: 12px; color: var(--text-soft);
}
.post-card .price { background: var(--c-green); color: #fff; padding: 3px 10px; border-radius: 8px; font-weight: 700; font-size: 12px; }

/* ====== Auth-Cards ====== */
.auth-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); padding: 28px;
    box-shadow: var(--sh-md);
    margin: 30px auto;
}
.auth-card h1 { font-size: 24px; margin-bottom: 4px; color: var(--c-sky-dark); }
.auth-card .lead { color: var(--text-soft); margin-bottom: 18px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-soft); }

/* ====== Forms ====== */
.form label {
    display: block; margin-bottom: 12px; font-weight: 600;
    font-size: 13.5px; color: var(--text);
}
.form input[type=text],
.form input[type=email],
.form input[type=password],
.form input[type=url],
.form input[type=number],
.form input[type=tel],
.form input[type=date],
.form input[type=time],
.form select,
.form textarea {
    display: block; width: 100%;
    margin-top: 6px; padding: 11px 14px;
    border: 1px solid var(--border); border-radius: var(--r-md);
    background: #fff; color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
    font-size: 14.5px;
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none; border-color: var(--c-teal);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.18);
}
.form textarea { min-height: 140px; line-height: 1.5; resize: vertical; }
.form .check { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 16px; cursor: pointer; }
.form .check input { margin-top: 4px; }
.form .check span { font-weight: 500; color: var(--text-soft); font-size: 13.5px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ====== Beitrag-Detail ====== */
.post-detail {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); padding: 28px;
    box-shadow: var(--sh-sm);
}
.post-detail h1 { margin-bottom: 8px; }
.post-detail .meta-row { color: var(--text-soft); margin-bottom: 20px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.post-detail .post-body { font-size: 16px; line-height: 1.7; color: var(--text); }
.post-detail .post-body p { margin: 0 0 14px; }
.post-detail .post-image { margin: 18px 0; border-radius: var(--r-md); overflow: hidden; }
.post-detail .actions { display: flex; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }

/* ====== Sidebar / Dashboard ====== */
.layout-2col { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; }
.side-card h3 { margin-bottom: 10px; color: var(--c-sky-dark); }

/* ====== Footer ====== */
.site-footer {
    background: #0f172a; color: #cbd5e1; margin-top: 50px;
    padding: 40px 0 20px;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px; padding: 0 16px;
}
.footer-brand { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.site-footer h4 { color: #fff; margin-bottom: 8px; font-size: 14px; }
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 4px 0; }
.site-footer a { color: #cbd5e1; font-size: 13.5px; }
.site-footer a:hover { color: #38bdf8; }
.footer-bottom {
    text-align: center; color: #64748b; font-size: 12px;
    margin-top: 24px; padding-top: 16px; border-top: 1px solid #1e293b;
}

/* ====== Sticker-Hero (Multi-Sticker-Banner) ====== */
.hero-stickers {
    display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px;
}
.hero-stickers img { width: 56px; height: 56px; object-fit: contain; }

/* ====== Mobile / Tablet ====== */
@media (max-width: 880px) {
    .header-inner { padding: 8px 12px; }
    .brand-tag { display: none; }
    .nav-toggle { display: inline-block; }
    .main-nav {
        display: none; position: absolute; top: 100%; right: 0; left: 0;
        background: #fff; padding: 12px; gap: 6px;
        flex-direction: column; align-items: stretch;
        border-bottom: 1px solid var(--border); box-shadow: var(--sh-md);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 10px 14px; }
    .user-chip { justify-content: flex-start; }

    .layout-2col { grid-template-columns: 1fr; }
    .hero { padding: 26px 16px; }
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
    .cat-sticker { width: 70px; height: 70px; }
    .cat-card-icon-fallback { width: 70px; height: 70px; font-size: 38px; }
    .post-detail { padding: 18px; }
    .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { gap: 18px; }
}

/* ====== Utility ====== */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { background: var(--border-soft); color: var(--text-soft); padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.text-center { text-align: center; }
.muted { color: var(--text-soft); }
.spacer-sm { height: 12px; }
.spacer-md { height: 24px; }
.bookmark-btn, .report-btn {
    cursor: pointer; background: transparent; border: 1px solid var(--border);
    padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
    color: var(--text-soft); transition: all 0.12s;
}
.bookmark-btn:hover { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.bookmark-btn.active { background: #fcd34d; border-color: #fcd34d; color: #92400e; }
.report-btn:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }

/* Empty State */
.empty {
    text-align: center; padding: 40px 20px;
    color: var(--text-soft); background: var(--border-soft);
    border-radius: var(--r-md); border: 2px dashed var(--border);
}
.empty .icon { font-size: 48px; opacity: 0.5; margin-bottom: 10px; }

/* === Cookie-Modal (schlicht & robust) === */
.cookie-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}
.cookie-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 22px 20px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
}
.cookie-head {
    margin-bottom: 12px;
}
.cookie-icon {
    font-size: 28px;
    line-height: 1;
    display: inline-block;
}
.cookie-logo {
    display: none; /* Logo im Modal sparen wir ein - sieht im Kontext aufgeräumter aus */
}
.cookie-title {
    font-size: 19px;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 8px;
}
.cookie-lead {
    font-size: 13.5px;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 16px;
}
.cookie-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    text-align: left;
}
.cookie-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    line-height: 1.45;
}
.cookie-list li:last-child {
    border-bottom: 0;
}
.cookie-list strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 1px;
}
.cookie-list .cookie-meta {
    display: block;
    font-size: 12.5px;
    color: #64748b;
}
.cookie-tick {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
}
.cookie-tick.optional {
    background: #e2e8f0;
    color: #64748b;
    font-size: 16px;
}
.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.cookie-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 700;
    display: inline-block;
    text-align: center;
}
.cookie-btn-primary {
    background: #0891b2;
    color: #fff;
}
.cookie-btn-primary:hover {
    background: #0e7490;
}
.cookie-btn-ghost {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}
.cookie-btn-ghost:hover {
    background: #e2e8f0;
    color: #0c4a6e;
}
.cookie-btn-emoji {
    margin-right: 6px;
}
.cookie-foot {
    font-size: 12px;
    color: #94a3b8;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.cookie-foot a {
    color: #0891b2;
    font-weight: 600;
}

/* === Welcome-Popup === */
.welcome-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: welcome-fade 0.25s ease-out;
}
@keyframes welcome-fade { from { opacity: 0; } to { opacity: 1; } }
.welcome-overlay.hide { animation: welcome-fade-out 0.2s ease-in forwards; }
@keyframes welcome-fade-out { to { opacity: 0; } }
.welcome-box {
    background: #fff; border-radius: 24px;
    padding: 36px 32px 30px; text-align: center;
    max-width: 420px; width: 100%;
    box-shadow: 0 30px 80px rgba(2,132,199,0.3);
    animation: welcome-pop 0.5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes welcome-pop {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.welcome-logo {
    width: 64px; height: auto; margin: 0 auto 12px;
    filter: drop-shadow(0 6px 16px rgba(8,145,178,0.25));
}
.welcome-greeting {
    font-size: 28px; font-weight: 800; letter-spacing: -0.5px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4, #84cc16);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}
.welcome-sub {
    color: #475569; font-size: 17px; font-weight: 500;
    margin-bottom: 22px; line-height: 1.45;
}
.welcome-close { padding: 12px 28px; font-size: 15px; }

/* Loading-Spinner (fuer Sprach-Switches etc.) */
.loading-overlay {
    position: fixed; inset: 0; z-index: 998;
    background: rgba(255,255,255,0.85);
    display: none; align-items: center; justify-content: center;
}
.loading-overlay.show { display: flex; }
.loading-spinner {
    width: 56px; height: 56px;
    border: 4px solid #e0f2fe;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Kontakt-Optionen (im Beitrag) === */
.contact-box {
    background: linear-gradient(135deg, #f0f9ff, #ecfeff);
    border: 1px solid #bae6fd;
    border-radius: 16px;
    padding: 20px 22px;
    margin: 24px 0 8px;
}
.contact-box h3 {
    font-size: 16px; font-weight: 700;
    color: #0c4a6e; margin-bottom: 14px;
}
.contact-options-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.contact-option {
    background: #fff; border-radius: 12px; padding: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(2,132,199,0.08);
}
.contact-icon { font-size: 28px; margin-bottom: 4px; }
.contact-label {
    font-size: 13px; font-weight: 700; color: #475569;
    margin-bottom: 10px;
}
.contact-reveal {
    margin-top: 10px; font-weight: 700;
    background: #fef3c7; padding: 8px 12px;
    border-radius: 8px; color: #92400e;
    word-break: break-all;
}
.contact-reveal a { color: #92400e; text-decoration: underline; }

/* === Kontakt-Optionen im Formular (beitrag_neu) === */
fieldset.contact-options {
    border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 16px 18px 12px; margin: 4px 0 12px;
    background: #f8fafc;
}
fieldset.contact-options legend {
    font-weight: 700; color: #0c4a6e; padding: 0 8px;
}
.check-row {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 8px 0; padding: 8px 10px;
    background: #fff; border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}
.check-row input[type=checkbox] { margin-top: 3px; flex-shrink: 0; }
.check-row span { font-size: 14px; line-height: 1.4; }
.contact-sub {
    margin: 4px 0 8px 28px;
}
.contact-sub input {
    width: 100%; padding: 8px 12px;
    border: 1px solid #cbd5e1; border-radius: 8px;
    font-size: 14px;
}

/* === Email-Verschleierung === */
.mail-obf {
    /* Bots ohne JS sehen "kontakt [ät] muntafuner.at" */
    font-family: inherit;
    color: #0891b2;
    word-break: break-word;
}
.mail-obf .mail-at {
    /* "@" als "[ät]" - macht das Harvesting unzuverlaessig */
    color: inherit;
    font-style: italic;
}
.mail-obf-resolved {
    color: #0891b2;
    text-decoration: underline;
}

/* ====== Header-Suche ====== */
.header-search {
    display: none; /* nur auf Mobile als Lupen-Icon */
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border-radius: 10px; background: #f1f5f9;
    color: #0c4a6e; text-decoration: none; font-size: 18px;
    margin-left: auto; margin-right: 6px;
    transition: background .12s;
}
.header-search:hover { background: #cffafe; }
.search-link-nav { font-weight: 700; color: #0891b2; }
@media (max-width: 880px) {
    .header-search { display: inline-flex; }
}

/* ====== Lightbox (Klick auf Bild zeigt es gross) ====== */
.mf-lightbox {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(15, 23, 42, 0.93);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    cursor: zoom-out;
    animation: mfLbIn 0.18s ease;
}
.mf-lightbox.closing { animation: mfLbOut 0.18s ease forwards; }
.mf-lightbox img {
    max-width: 96vw; max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: default;
    background: #fff;
}
.mf-lightbox-close {
    position: absolute; top: 16px; right: 18px;
    background: rgba(0,0,0,0.55); color: #fff;
    border: 0; cursor: pointer;
    width: 42px; height: 42px; border-radius: 50%;
    font-size: 22px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.mf-lightbox-close:hover { background: rgba(0,0,0,0.85); }
.mf-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.55); color: #fff;
    border: 0; cursor: pointer;
    width: 56px; height: 56px; border-radius: 50%;
    font-size: 36px; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, transform .15s;
}
.mf-lb-prev { left: 18px; }
.mf-lb-next { right: 18px; }
.mf-lightbox-nav:hover { background: rgba(0,0,0,0.85); transform: translateY(-50%) scale(1.05); }
.mf-lightbox-count {
    position: absolute; top: 22px; left: 22px;
    background: rgba(0,0,0,0.55); color: #fff;
    font-size: 13px; font-weight: 700;
    padding: 5px 12px; border-radius: 999px;
}
@media (max-width: 600px) {
    .mf-lightbox-nav { width: 44px; height: 44px; font-size: 28px; }
    .mf-lb-prev { left: 8px; } .mf-lb-next { right: 8px; }
}
@keyframes mfLbIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes mfLbOut { from { opacity: 1; } to { opacity: 0; } }
