/* =========================================================
   meelo Dorfplatz – Landing Page CSS
   ========================================================= */
.mdp-wrap {
    font-family: 'DM Sans', system-ui, sans-serif;
    --dp-primary: #2563eb;
    max-width:var(--ms-max-w,1280px);
    margin: 0 auto;
    padding: 0 0 64px;
}

/* ── Ortschaft-Banner ──────────────────────────────────── */
.mdp-ort-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 24px; background: #f8f7f4;
    border-bottom: 1px solid #e5e3de; font-size: 13px;
    flex-wrap: wrap;
}
.mdp-ort-pill {
    background: var(--dp-primary); color: #fff;
    padding: 4px 12px; border-radius: 20px; font-weight: 700;
}
.mdp-ort-hint { color: #6b7280; }
.mdp-ort-link {
    margin-left: auto; color: var(--dp-primary);
    font-weight: 700; text-decoration: none;
}
.mdp-ort-link:hover { text-decoration: underline; }

/* ── Hero Mosaik ───────────────────────────────────────── */
.mdp-hero {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 480px;
    gap: 4px;
    margin-bottom: 48px;
}
.mdp-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .6s ease;
}
.mdp-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
}
.mdp-hero-main {
    position: relative; overflow: hidden;
    display: flex; align-items: flex-end;
    text-decoration: none; color: #fff;
}
.mdp-hero-main:hover .mdp-hero-bg { transform: scale(1.03); }
.mdp-hero-main-content {
    position: relative; z-index: 1;
    padding: 32px 36px; width: 100%;
}
.mdp-kicker {
    display: inline-block; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .1em;
    background: var(--dp-primary); color: #fff;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.mdp-hero-title {
    font-size: clamp(22px, 3vw, 36px); font-weight: 800;
    margin: 0 0 10px; line-height: 1.15;
}
.mdp-hero-sub {
    font-size: 14px; opacity: .85; line-height: 1.55; margin: 0;
    max-width: 400px;
}
.mdp-hero-right {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
}
.mdp-hero-sub-card {
    position: relative; overflow: hidden;
    display: flex; align-items: flex-end;
    text-decoration: none; color: #fff;
}
.mdp-hero-sub-card--tall {
    grid-row: 1;
}
.mdp-hero-sub-card:hover .mdp-hero-bg { transform: scale(1.04); }
.mdp-hero-sub-content {
    position: relative; z-index: 1;
    padding: 14px 18px; display: flex;
    flex-direction: column; gap: 4px; width: 100%;
}
.mdp-hero-sub-title {
    font-size: 15px; font-weight: 700; line-height: 1.3;
}

/* ── Sections ──────────────────────────────────────────── */
.mdp-section { padding: 0 24px; margin-bottom: 48px; }
.mdp-section-head {
    display: flex; align-items: flex-end;
    justify-content: space-between; margin-bottom: 18px;
}
.mdp-section-title {
    font-size: 20px; font-weight: 800; color: #1a1916; margin: 0 0 3px;
}
.mdp-section-sub { font-size: 13px; color: #9ca3af; margin: 0; }
.mdp-section-more {
    font-size: 13px; font-weight: 700;
    color: var(--dp-primary); text-decoration: none;
    display: flex; align-items: center; gap: 4px; white-space: nowrap;
    border: 1.5px solid var(--dp-primary); border-radius: 20px;
    padding: 5px 14px; transition: all .15s;
}
.mdp-section-more:hover { background: var(--dp-primary); color: #fff; }

/* ── Vereine Carousel ──────────────────────────────────── */
.mdp-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 12px;
}
.mdp-v-card {
    position: relative; aspect-ratio: 3/4;
    overflow: hidden; border-radius: 14px;
    text-decoration: none; display: block;
    cursor: pointer;
}
.mdp-v-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .5s ease;
}
.mdp-v-card:hover .mdp-v-bg { transform: scale(1.05); }
.mdp-v-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
}
.mdp-v-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 12px 12px 14px; z-index: 1;
    display: flex; flex-direction: column; gap: 4px;
}
.mdp-v-cat {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; color: rgba(255,255,255,.7);
}
.mdp-v-name {
    font-size: 14px; font-weight: 800; color: #fff;
    line-height: 1.25;
}
.mdp-v-logo {
    position: absolute; bottom: 10px; right: 10px; z-index: 2;
    width: 38px; height: 38px; border-radius: 9px;
    background: rgba(255,255,255,.9); padding: 4px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.mdp-v-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mdp-v-logo-fallback {
    position: absolute; bottom: 10px; right: 10px; z-index: 2;
    width: 38px; height: 38px; border-radius: 9px;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

/* ── Events Grid ───────────────────────────────────────── */
.mdp-ev-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 140px;
    gap: 8px;
}
.mdp-ev-card {
    position: relative; overflow: hidden;
    border-radius: 10px; text-decoration: none;
    display: block;
}
.mdp-ev-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .4s ease;
}
.mdp-ev-card:hover .mdp-ev-bg { transform: scale(1.06); }
.mdp-ev-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
}
.mdp-ev-content {
    position: absolute; inset: 0; z-index: 1;
    padding: 8px 10px;
    display: flex; flex-direction: column;
    justify-content: space-between;
}
.mdp-ev-badge {
    display: inline-block; font-size: 10px; font-weight: 800;
    padding: 2px 8px; border-radius: 20px; align-self: flex-start;
}
.mdp-ev-badge--free { background: #f59e0b; color: #fff; }
.mdp-ev-badge--paid { background: var(--dp-primary); color: #fff; }
.mdp-ev-cat {
    font-size: 10px; color: rgba(255,255,255,.7);
    font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.mdp-ev-title {
    font-size: 13px; font-weight: 800; color: #fff;
    line-height: 1.25; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Inside Cards ──────────────────────────────────────── */
.mdp-inside-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.mdp-inside-card {
    background: #fff; border: 1px solid #e5e3de; border-radius: 14px;
    padding: 18px; text-decoration: none; display: flex;
    flex-direction: column; gap: 10px;
    transition: all .18s;
}
.mdp-inside-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.08); }
.mdp-inside-head { display: flex; gap: 10px; align-items: center; }
.mdp-inside-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mdp-inside-author { font-size: 13px; font-weight: 700; color: #1a1916; }
.mdp-inside-thema { font-size: 11px; color: var(--dp-primary); font-weight: 700; }
.mdp-inside-title {
    font-size: 15px; font-weight: 800; color: #1a1916;
    margin: 0; line-height: 1.3;
}
.mdp-inside-excerpt {
    font-size: 13px; color: #6b7280; line-height: 1.55;
    margin: 0; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mdp-inside-footer {
    display: flex; gap: 12px; font-size: 12px; color: #9ca3af;
    padding-top: 8px; border-top: 1px solid #f3f2ef;
}

/* ── Leer-State ────────────────────────────────────────── */
.mdp-empty {
    text-align: center; padding: 80px 24px;
    color: #9ca3af;
}
.mdp-empty h2 { font-size: 22px; font-weight: 700; color: #1a1916; margin-bottom: 8px; }
.mdp-empty p  { font-size: 15px; max-width: 400px; margin: 0 auto; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .mdp-ev-grid { grid-template-columns: repeat(4, 1fr); }
    .mdp-carousel { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
}
@media (max-width: 768px) {
    .mdp-hero { grid-template-columns: 1fr; grid-template-rows: 340px auto; gap: 4px; }
    .mdp-hero-right { grid-template-rows: 200px; grid-template-columns: 1fr 1fr; }
    .mdp-ev-grid { grid-template-columns: repeat(3, 1fr); }
    .mdp-section { padding: 0 16px; }
    .mdp-hero-main-content { padding: 20px; }
    .mdp-carousel { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
    .mdp-hero { grid-template-rows: 280px auto; }
    .mdp-hero-title { font-size: 20px; }
    .mdp-ev-grid { grid-template-columns: repeat(2, 1fr); }
    .mdp-carousel { grid-template-columns: repeat(2, 1fr); }
    .mdp-inside-grid { grid-template-columns: 1fr; }
    .mdp-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
