/* Premium homepage hero — Min Børnehave */
.hero-premium {
    position: relative;
    isolation: isolate;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1rem clamp(3rem, 5vw, 4rem);
    overflow: hidden;
    background: linear-gradient(155deg, #0f2847 0%, #1e3a8a 24%, #2563eb 52%, #3b82f6 82%, #5b9cf5 100%);
}

.hero-premium-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(155deg, #0f2847 0%, #1e3a8a 24%, #2563eb 52%, #3b82f6 82%, #5b9cf5 100%);
}

.hero-premium-bg::before {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 88% 12%, rgba(121, 173, 135, 0.35), transparent 55%),
        radial-gradient(ellipse 50% 40% at 8% 92%, rgba(147, 197, 253, 0.28), transparent 50%);
    pointer-events: none;
}

.hero-premium-bg::after {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

@keyframes hero-float-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-24px, 18px) scale(1.05); }
}

@keyframes hero-float-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -16px) scale(1.08); }
}

.hero-premium-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 1.5rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

@media (max-width: 900px) {
    .hero-premium-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .hero-premium {
        padding-bottom: max(4.75rem, calc(3.25rem + env(safe-area-inset-bottom, 0px)));
    }

    .hero-premium h1,
    .hero-premium #hero-headline {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .hero-premium-types {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .guide-hub-grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }
}

.hero-premium-links .mb-btn {
    min-height: 44px;
}

.hero-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem 0.4rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
    color: #e0f2fe;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-premium-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bfdbfe;
    box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.35);
}

.hero-premium h1,
.hero-premium #hero-headline {
    margin: 1.25rem 0 0;
    max-width: none;
    font-size: clamp(2.35rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: #ffffff;
}

.hero-premium-accent,
#hero-headline-accent {
    color: #ffffff;
}

.hero-premium-lead,
.hero-premium #hero-subcopy {
    margin: 1.125rem 0 0;
    max-width: 34rem;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.hero-premium-features {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hero-premium-features li {
    display: inline-flex;
}

.hero-premium-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.88rem;
    font-weight: 700;
    color: #f0f9ff;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(23, 32, 51, 0.04);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-premium-feature-link:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.42);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(23, 32, 51, 0.08);
}

.hero-premium-feature-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hero-premium-features svg {
    flex-shrink: 0;
    color: #bfdbfe;
}

.hero-premium-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-sizing: border-box;
}


.hero-premium-stat {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-premium-stat strong {
    display: block;
    font-size: clamp(1.05rem, 4.5vw, 1.5rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-premium-stat span {
    font-size: 0.8rem;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.72);
}

/* Glass search panel */
.hero-premium-panel {
    position: relative;
}

.hero-premium-card {
    position: relative;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
    padding: 1.5rem;
    border-radius: 1.625rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    border: 1px solid rgba(255, 255, 255, 0.98);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 4px 12px rgba(23, 32, 51, 0.04),
        0 28px 64px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(121, 173, 135, 0.14);
}

.hero-premium-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(121, 173, 135, 0.5), rgba(138, 198, 237, 0.35), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-premium-card-head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.125rem;
}

.hero-premium-milo {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(121, 173, 135, 0.25);
}

.hero-premium-card-head strong {
    display: block;
    font-size: 1rem;
    color: #152238;
}

.hero-premium-card-head span {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.hero-premium-form,
.hero-search-form.hero-premium-form {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: unset;
    gap: 0.875rem;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.hero-premium-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.35rem;
    border-radius: 1rem;
    background: #f1f6fb;
    border: 1px solid #dce8f5;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-premium-search:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hero-premium-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.75rem 0.5rem 0.75rem 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #152238;
    outline: none;
}

.hero-premium-search input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.hero-premium-search button {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 3rem;
    padding: 0 1rem;
    border: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #79ad87 0%, #6a9d79 50%, #5f9470 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(121, 173, 135, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-premium-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(121, 173, 135, 0.4);
}

.hero-premium-search button:active {
    transform: translateY(0);
}

.hero-premium-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.hero-premium-types button {
    min-height: 2.5rem;
    padding: 0.4rem 0.65rem;
    border-radius: 0.65rem;
    border: 1px solid #e2ebf5;
    background: #fff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.hero-premium-types button:hover,
.hero-premium-types button.is-active {
    border-color: rgba(121, 173, 135, 0.55);
    background: #f0f7f2;
    color: #2d5c3f;
    box-shadow: 0 4px 12px rgba(121, 173, 135, 0.15);
}

.hero-premium .hero-match-details {
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    background: #fafbfc;
    overflow: visible;
}

.hero-premium .hero-match-details[open] {
    border-color: #cfe5d5;
    background: #f7fbf8;
    overflow: visible;
    padding-bottom: 0.75rem;
}

.hero-premium .hero-match-details summary {
    font-size: 0.8rem;
    font-weight: 750;
    color: #4a6b55;
    padding: 0.25rem 0;
    cursor: pointer;
    list-style: none;
}

.hero-premium .hero-match-details summary::-webkit-details-marker {
    display: none;
}

.hero-premium .hero-match-details[open] summary {
    margin-bottom: 0.35rem;
    border-bottom: 1px solid #dcfce7;
    padding-bottom: 0.35rem;
}

.hero-premium .hero-match-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 0.5rem;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.hero-premium .hero-match-fields > label {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.hero-premium .hero-match-fields > label:has(.mb-select--open) {
    z-index: 50;
}

.hero-premium .hero-match-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.25;
}

.hero-premium .hero-match-optional {
    font-weight: 600;
    color: #64748b;
}

.hero-premium .hero-match-fields .mb-select,
.hero-premium .hero-match-fields input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.hero-premium .hero-match-fields .mb-select__trigger {
    min-height: 44px;
    padding: 0 0.75rem;
    border-radius: 10px;
    border-color: #cbd5e1;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 650;
    box-shadow: none;
}

.hero-premium .hero-match-fields .mb-select__trigger:hover:not(:disabled) {
    border-color: #a8c9b3;
    background: #fff;
}

.hero-premium .hero-match-fields .mb-select--open .mb-select__trigger,
.hero-premium .hero-match-fields .mb-select__trigger:focus-visible {
    border-color: #79ad87;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(121, 173, 135, 0.18);
}

.hero-premium .hero-match-fields .mb-select--open .mb-select__chevron {
    color: #4a6b55;
}

.hero-premium .hero-match-fields .mb-select__menu.mb-select__menu--portal {
    border-radius: 12px;
    border-color: #cfe5d5;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 16px 40px rgba(15, 23, 42, 0.12);
}

.hero-premium .hero-match-fields .mb-select__option:hover:not(.mb-select__option--disabled),
.hero-premium .hero-match-fields .mb-select__option.is-focused:not(.mb-select__option--disabled) {
    background: #f0fdf4;
    color: #166534;
}

.hero-premium .hero-match-fields .mb-select__option.is-selected {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    box-shadow: inset 0 0 0 1px rgba(121, 173, 135, 0.35);
}

.hero-premium .hero-match-fields .mb-select__check {
    color: #4a6b55;
}

@media (max-width: 900px) {
    .hero-premium .hero-match-fields {
        grid-template-columns: 1fr;
    }
}

.hero-premium .hero-match-details {
    position: relative;
    z-index: 1;
}

.hero-premium-links {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e8f0f8;
    box-sizing: border-box;
}

.hero-premium-links .mb-btn {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    box-sizing: border-box;
    font-size: 0.85rem;
    justify-content: center;
    text-align: center;
    white-space: normal;
}

.hero-premium-card .mb-btn-soft {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.hero-premium-card .mb-btn-secondary {
    background: #fff;
    border-color: #cbd5e1;
    color: #1e293b;
}

.hero-premium .hero-match-details {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.hero-premium .hero-match-details summary {
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 521px) {
    .hero-premium-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hero-premium-trust,
.hero-premium #hero-trust-line {
    grid-column: 1 / -1;
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 960px) {
    .hero-premium-inner {
        grid-template-columns: 1fr;
    }

    .hero-premium h1,
    .hero-premium #hero-headline {
        font-size: clamp(2rem, 8vw, 2.65rem);
    }
}

@media (max-width: 1100px) {
    .hero-premium-search {
        grid-template-columns: 1fr;
    }

    .hero-premium-search button {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 640px) {
    .hero-premium {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .hero-premium-features {
        padding-left: 0;
    }

    .hero-premium-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .hero-premium-stat {
        flex: unset;
    }
}

@media (max-width: 520px) {
    .hero-premium-stats {
        grid-template-columns: 1fr;
    }

    .hero-premium-types {
        grid-template-columns: 1fr;
    }

    .hero-premium .hero-match-fields {
        grid-template-columns: 1fr;
    }
}

.hero-premium-card {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.hero-premium .hero-match-fields label {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.hero-premium .hero-match-fields label span:not(.hero-match-label):not(.hero-match-optional) {
    color: #64748b;
    font-weight: 600;
}

.hero-premium .hero-match-fields input,
.hero-premium .hero-match-fields select {
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 0 0.75rem;
    font-size: 0.9rem;
    color: #152238;
}

.hero-premium .hero-match-fields select:focus,
.hero-premium .hero-match-fields input:focus {
    outline: none;
    border-color: #79ad87;
    box-shadow: 0 0 0 3px rgba(121, 173, 135, 0.18);
}

.hero-premium-features li {
    line-height: 1.5;
}

.hero-premium-badge {
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.65rem;
}
