/* ================================================================
   MAKARSKA GASTRO – Preisvergleich (cijene.php) · „Küstenlinie“
   Hero mit Preisschild & Münze in der Sonne, schwebende €-Tags,
   animiertes Meer; Suchkarte überlappt das Meer.
   Nur Optik, alle Klassen bleiben. Laden NACH new.css / preis.css.
   ================================================================ */

/* ── HERO „Küstenlinie“: Himmel · Sonne · animiertes Meer ───── */
.mgh {
    --b: #851B2F; --bd: #6B1425; --g: #BE9440; --gl: #D9BE82;
    --c: #F6EFE3; --sand: #E8DCC0; --k: #2A2024;
    position: relative; overflow: hidden; text-align: center; color: var(--k);
    background: linear-gradient(180deg, #FBF8F1, var(--c));
    font-family: 'Poppins', var(--font, system-ui), sans-serif;
}
.mgh *, .mgh *::before, .mgh *::after { box-sizing: border-box; }
.mgh-wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.mgh-sky { position: relative; z-index: 1; padding: 44px 0 76px; }
.mgh-kicker { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--b); margin-bottom: 14px; }
.mgh-kicker::before, .mgh-kicker::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--g); vertical-align: middle; margin: 0 12px; }
.mgh-title { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: var(--k); margin: 0 0 14px; }
.mgh-sub { font-size: .98rem; line-height: 1.55; color: #5d4f4a; max-width: 560px; margin: 0 auto; }

/* Sonne */
.mgh-sun {
    position: absolute; z-index: 0; width: 230px; height: 230px; border-radius: 50%; background: var(--g);
    left: calc(50% + 270px); bottom: -108px;
    box-shadow: 0 0 0 16px rgba(190,148,64,.20), 0 0 0 38px rgba(190,148,64,.10);
    display: flex; align-items: flex-start; justify-content: center; gap: 4px; padding-top: 32px;
}
.mgh-sun svg { width: 74px; height: 74px; opacity: .92; }

/* Deko-Elemente links (nur Desktop) */
.mgh-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.mgh-d { position: absolute; display: none; align-items: center; gap: 7px; color: var(--b); }
.mgh-d svg { width: 18px; height: 18px; }
@media (min-width: 1120px) {
    .mgh-d { display: inline-flex; }
    .mgh-d0 { left: max(24px, calc(50% - 590px)); top: 54px; }
    .mgh-d1 { left: max(24px, calc(50% - 500px)); top: 128px; }
    .mgh-d2 { left: max(24px, calc(50% - 610px)); top: 190px; }
}

/* Meer */
.mgh-sea { position: relative; z-index: 3; background: var(--b); color: var(--c); padding: 20px 0 66px; }
.mgh-sea::before, .mgh-sea::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; background-repeat: repeat-x; background-size: 120px 100%; }
.mgh-sea::before {
    top: -27px; height: 28px; z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14 Q30 0 60 14 T120 14 V28 H0Z' fill='%23851B2F'/%3E%3Cpath d='M0 14 Q30 0 60 14 T120 14' fill='none' stroke='%23D9BE82' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.mgh-sea::after {
    top: -37px; height: 30px; z-index: 0; opacity: .6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30' viewBox='0 0 120 30' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q20 0 40 10 T80 10 T120 10 V30 H0Z' fill='%23BE9440'/%3E%3C/svg%3E");
}
.mgh-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mgh-points li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border: 1px solid rgba(217,190,130,.65); border-radius: 999px; background: rgba(107,20,37,.55); font-size: .76rem; font-weight: 500; letter-spacing: .02em; color: var(--c); }
.mgh-points svg { width: 15px; height: 15px; color: var(--gl); flex: none; }

@media (prefers-reduced-motion: no-preference) {
    .mgh-sea::before { animation: mghw 16s linear infinite; }
    .mgh-sea::after  { animation: mghw 26s linear infinite reverse; }
    .mgh-d { animation: mghbob 5s ease-in-out infinite; }
    .mgh-d1 { animation-delay: -1.7s; }
    .mgh-d2 { animation-delay: -3.2s; }
}
@keyframes mghw { from { background-position-x: 0; } to { background-position-x: 120px; } }
@keyframes mghbob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(3deg); } }

@media (max-width: 768px) {
    .mgh-sky { padding: 30px 0 108px; }
    .mgh-wrap { padding: 0 18px; }
    .mgh-sub { font-size: .9rem; }
    .mgh-sun { width: 150px; height: 150px; left: auto; right: -34px; bottom: -78px; padding-top: 20px; gap: 0; box-shadow: 0 0 0 10px rgba(190,148,64,.20), 0 0 0 24px rgba(190,148,64,.10); }
    .mgh-sun svg { width: 46px; height: 46px; }
    .mgh-sea { padding: 14px 0 64px; }
    .mgh-points { gap: 8px; }
    .mgh-points li { padding: 7px 12px; font-size: .7rem; }
}

.mgh--cijene .mgh-d { padding: 7px 13px; border: 1px solid var(--g); border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 600; box-shadow: 0 10px 20px -12px rgba(133,27,47,.5); }

/* ── Städte-Chips in Markenfarben ───────────────────────────── */
body .mg-cities { border-bottom-color: #E8DCC0; }
body .mg-city-chip { border-color: #E8DCC0; }
body .mg-city-chip:hover { border-color: #BE9440; color: #851B2F; }
body .mg-city-chip.active { background: #851B2F; border-color: #851B2F; color: #fff; }
body .mg-city-count { background: #F6EFE3; color: #851B2F; }
body .mg-city-chip.active .mg-city-count { background: #BE9440; color: #2A2024; }

/* ── Suchkarte (Desktop) überlappt das Meer ─────────────────── */
body .desktop-price-search { position: relative; z-index: 6; margin-top: -48px; background: transparent !important; border: 0 !important; box-shadow: none !important; padding-top: 0 !important; }
body .desktop-price-search-container { background: #fff; border: 1px solid #E8DCC0; border-radius: 16px; padding: 22px 26px; box-shadow: 0 22px 40px -26px rgba(107,20,37,.55); }
body .desktop-price-search-label { color: #7a6c66; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 600; }
body .desktop-price-search-input { border-radius: 999px !important; border-color: #E8DCC0 !important; }
body .desktop-price-search-input:focus { outline: 2px solid #BE9440; outline-offset: 1px; }
body .desktop-price-search-btn { border-radius: 999px !important; background: #851B2F !important; border-color: #851B2F !important; color: #fff !important; }
body .desktop-price-search-btn:hover { background: #6B1425 !important; }

/* ── Schnellsuche ───────────────────────────────────────────── */
body .desktop-quick-search-title { position: relative; padding-top: 22px; }
body .desktop-quick-search-title::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Cpath d='M0 5 Q6 0 12 5 T24 5 T36 5 T48 5' fill='none' stroke='%23BE9440' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 48px 10px; }
body .quick-search-btn { border-radius: 999px !important; border-color: #E8DCC0 !important; transition: border-color .2s, color .2s, background .2s, transform .2s; }
body .quick-search-btn:hover { border-color: #BE9440 !important; color: #851B2F !important; transform: translateY(-2px); }

/* ── Kennzahlen, Tabelle, Karten ────────────────────────────── */
body .desktop-stat-item, body .mobile-stat-item { border-radius: 12px; }
body .desktop-stat-item.lowest .desktop-stat-number, body .mobile-stat-item.lowest .mobile-stat-number { color: #2D5A3D; }
body .desktop-stat-item.highest .desktop-stat-number, body .mobile-stat-item.highest .mobile-stat-number { color: #851B2F; }
body .desktop-stat-item.average .desktop-stat-number, body .mobile-stat-item.average .mobile-stat-number { color: #BE9440; }
body .desktop-table-container { border-radius: 12px; border-color: #E8DCC0 !important; overflow: hidden; }
body .cheapest-row { background: #F6EFE3 !important; }
body .btn-details, body .mobile-action-details { border-radius: 999px !important; }
body .mobile-result-card { border-radius: 12px !important; border-color: #E8DCC0 !important; transition: transform .25s, box-shadow .25s, border-color .25s; }
body .mobile-result-card:hover { transform: translateY(-3px); border-color: #BE9440 !important; box-shadow: 0 16px 28px -20px rgba(133,27,47,.5); }
body .mobile-result-card.cheapest { border-color: #BE9440 !important; }
body .mobile-category-btn, body .sort-btn, body .mobile-tab { border-radius: 999px !important; }
body .mobile-category-btn.active, body .sort-btn.active { background: #851B2F !important; border-color: #851B2F !important; color: #fff !important; }
