.location-expansion-panels .mud-expand-panel-header {
    min-width: 0;
}

.location-expansion-panels .mud-expand-panel-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

/* Eigener Header-Inhalt */
.location-expansion-panels .expansion-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

/* Name darf mehrzeilig werden */
.location-expansion-panels .expansion-title-text {
    flex: 1 1 160px;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Chip darf ebenfalls mehrzeilig werden */
.location-expansion-panels .expansion-title-chip {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Auch der Text INNERHALB des MudChip darf umbrechen */
.location-expansion-panels .expansion-title-chip ::deep .mud-chip-content {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    height: auto;
}

/* Papierkorb bleibt immer sichtbar */
.location-expansion-panels .expansion-title-delete {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 20px;
}
.deco-top {
    transform: translateY(-2rem);
}
.deco-column {
    flex: 0 0 clamp(150px, 10vw, 200px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    height: calc(100vh - 60px);

    padding-top: 1rem;
    padding-bottom: 1rem;

    margin-left: 2rem;
    margin-right: 2rem;

    min-width: 0;
    position: sticky;
    top: 2rem;
}

.deco-img {
    width: clamp(175px, 11vw, 290px);
    height: clamp(230px, 15vw, 360px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: block;
}
.deco-img:last-child {
    margin-top: auto;
}
/* Mobile: keine Bilder */
.left-deco,
.right-deco {
    display: none;
}

/* Desktop: Bilder erst ab lg laden */
@media (min-width: 992px) {

    .left-deco,
    .right-deco {
        display: flex;
    }

    .left-deco .deco-top {
        background-image: url("/images/kid-left.webp");
    }

    .left-deco .deco-img:last-child {
        background-image: url("/images/kid-left2.webp");
    }

    .right-deco .deco-top {
        background-image: url("/images/kid-right.webp");
    }

    .right-deco .deco-img:last-child {
        background-image: url("/images/kid-right2.webp");
    }
}
.responsive-container {
    width: 100%;
    max-width: clamp(960px, 70vw, 1600px);
    margin: 0 auto;
    padding: 0 16px;
}

.favorite-gradient-icon .mud-icon-root {
    background: linear-gradient(
        90deg,
        #10B9D9 0%,
        #85C134 55%,
        #F6BD06 100%);
        
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.description-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;

    line-height: 1.6;
}
.dashboard-header
{
        background: rgba(255, 255, 255, 0.5) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

.role-card
{
    padding: 24px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.role-card:hover
{
    border-color: #2563eb;
    transform: translateY(-2px);
}

.role-card-selected
{
    padding: 24px;
    border-radius: 16px;
    border: 2px solid #2563eb;
    background: #eff6ff;
    transition: all 0.2s ease;
}
.logo-card {
    border: 2px solid gold;
}
.logo-preview {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    margin-top: 6px;
}
.logo-preview img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
}
.logo-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;

    background: gold;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}
.dialog-content {
    display: flex;
    justify-content: center;
    align-items: center;

    background: white;
    padding: 0;
}
.dialog-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}
.action-bar {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}
.save-btn {
    padding-left: 24px;
    padding-right: 24px;
}
.img-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: white;
}
.img-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}
.img-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.img-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.img-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.img-delete {
    position: absolute;
    top: 6px;
    right: 6px;

    width: 26px;
    height: 26px;

    border: none;
    border-radius: 50%;

    background: rgba(0,0,0,0.7);
    color: white;

    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
}
.img-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.0)
    );

    pointer-events: none;
}
.img-controls-bottom {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}
.img-controls {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;

    display: flex;
    justify-content: space-between;
    padding: 0 6px;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0)
    );
}
.img-actions {
    position: absolute;
    bottom: 6px;
    top: auto;
    right: 6px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    background: rgba(0, 0, 0, 0.6); /* 🔥 stärker */
    padding: 6px;
    border-radius: 10px;

    backdrop-filter: blur(4px); /* optional nice effect */
}
.img-actions .mud-icon-button {
    color: white !important;
}
.seat-row {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.mud-select {
    border-radius: 12px;
}
.opening-card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}
/* MOBILE FIRST */
.upload-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* BUTTON */
.upload-btn {
    width: 100%;
    border-radius: 12px;
    font-weight: 500;
    padding: 10px;
}

/* DESKTOP */
@media (min-width: 768px) {
    .upload-section {
        max-width: 400px;
    }

    .upload-btn {
        width: auto;
        min-width: 150px;
    }
}
.upload-btn {
    align-self: flex-start; /* verhindert full width */
    min-width: 140px;
    border-radius: 10px;
}
.opening-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.day {
    font-weight: 500;
    color: #374151;
    width: 40px;
}
.time {
    color: #6b7280;
}

.create-card {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.pricing-card {
    border-radius: 20px;
    transition: 0.2s;
    border: 1px solid #e5e7eb;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
/* PREMIUM HIGHLIGHT */
.pricing-card.premium {
    border: 2px solid var(--mud-palette-primary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
/* Preis Zusatz */
.price-sub {
    font-size: 14px;
    color: #6b7280;
}
.video-container {
    position: relative;
    width: 90%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.carousel-item-container {
    width: 100%;
    height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8fafc;
    border-radius: 16px;
}
.carousel-flex {
    width: 100%;
    min-height: 220px;
    max-height: 350px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8fafc;
}
.media-tab {
    height: auto !important;
    overflow: visible !important;
}
/* CAROUSEL */
.carousel-item-fix {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 280px !important; /* 🔥 wichtig */
    background: #f8fafc;
}
.media-carousel {
    border-radius: 16px;
    overflow: hidden;
    height: auto !important;
}
.carousel-img-wrapper {
    width: 100%;
    height: 260px; /* 🔥 mehr Höhe */

    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc; /* neutraler Hintergrund */
    border-radius: 16px;
}
.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}
/* VIDEO */
.video-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}
.video-frame {
    width: 100%;
    height: 320px;
    border: none;
}
.map-placeholder {
    border-radius: 20px;
}
.photo-carousel,
.carousel-item-container {
    height: clamp(180px, 35vw, 320px);
}
/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .logo-col {
        justify-content: flex-start;
        margin-top: 16px;
    }

    .detail-logo-wrapper,
    .detail-logo {

        width: 100px;
        height: 100px;
    }
.brand-text {
    color: #0369a1;
}
.header-title {
    font-size: 2rem !important;
}


.video-frame {
    height: 240px;
}

    .opening-row {
        font-size: 0.95rem;
    }

    .detail-description {
        font-size: 0.95rem;
    }
}
/* LIGHTBOX */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.9);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 3000; /* 🔥 WICHTIG */
}
.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.h-100 {
    height: 100%;
}
.primary-text {
    color: var(--mud-palette-primary); /* dein blau */
}
.secondary-text {
    color: var(--mud-palette-text-secondary);
}
.detail-header {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
}
.logo-col {

    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.detail-logo-wrapper {

    width: 140px;
    height: 140px;

    overflow: hidden;

    border-radius: 24px;

    background: white;

    flex-shrink: 0;

    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.detail-logo {

    width: 140px;
    height: 140px;

    object-fit: cover;

    display: block;
}
.detail-header {
    border-radius: 24px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);

    overflow: hidden;
}



.header-title {
    font-weight: 700;
}
.section-title {
    font-weight: 600;
}
.detail-description {
    line-height: 1.7;
    font-size: 1rem;
}
.opening-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.opening-day {
    font-weight: 600;
}

.opening-time {
    opacity: 0.85;
}

.seat-card {
    border-radius: 16px;
}


.detail-avatar {
   width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
}
.detail-image-wrapper {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
}
.detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.video-frame {
    width: 100%;
    height: 200px;
    border-radius: 12px;
}
.edit-card {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.invoice-card {
    border-radius: 16px;
    border: 1px solid #e0f2fe;
    background: white;
}
.location-image-wrapper {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.location-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* 🔥 KEIN verzerren */
}
.location-card {
    border-radius: 16px;
    border: 1px solid #e0f2fe;
}

.location-card:hover {
    box-shadow: 0 8px 25px rgba(3, 105, 161, 0.1);
}
.profile-header {
    border-radius: 20px;
}

.profile-logo {
    border: 2px solid var(--edufinder-sky);
    background: white;
}

.subscription-card {
    border-radius: 16px;
    border: 1px solid var(--edufinder-sky-bg);
}
.search-bar {
    border-radius: 20px;
    background: white;

    box-shadow: 0 10px 30px rgba(0,0,0,0.05);

    margin-bottom: 24px;
}

/* Labels */
.mud-table {
    border-radius: 12px;
}
.search-bar .mud-typography {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

/* Inputs */
.search-bar .mud-input-root {
    border-radius: 12px;
}
 .searchagent-header {
        justify-content: flex-start;
    }

    @media (min-width: 960px) {
        .searchagent-header {
            justify-content: flex-end;
        }
    }
/* Button */
.search-btn {
    height: 44px;
    border-radius: 12px;
}
/* ===== COLORS ===== */
:root {
    --edufinder-sky: #0369a1;
    --edufinder-sky-light: #0ea5e9;
    --edufinder-sky-bg: #e0f2fe;
}

/* ===== BASE ===== */
body {
    margin: 0;
    background: white; /* 🔥 wichtig */
}
.page-start {
    padding-top: 20px;
}
.clickable {
    cursor: pointer;
}

/* ===== BACKGROUND ===== */
.page-background {
    background: linear-gradient(
        180deg,
        var(--edufinder-sky-bg) 0%,
        #F5FBFF 100%
    );
}

/* ===== HEADER ===== */
.appbar-premium {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--edufinder-sky-bg);
    position: fixed;
    z-index: 2000;
}

.logo {
    font-weight: 700;
    color: #0369a1;
    font-size: 20px;
    text-decoration: none;
}
.detail-panel {
    height: 100%;              /* 🔥 füllt rechte Seite */
    min-height: 400px;         /* fallback */

    display: flex;
    align-items: center;       /* vertikal zentriert */
    justify-content: center;   /* horizontal zentriert */

    border-radius: 16px;
}
/* ===== CONTENT OFFSET (wegen fixed header) ===== */
.main-content {
    padding-top: 64px;
    padding-bottom: 80px; /* etwas mehr Luft */
    z-index: 1;
}

@media (max-width: 600px) {
    .main-content {
        padding-top: 56px;
    }
}

/* ===== HERO TEXT ===== */
.hero-title {
    color: #075985;
    font-weight: 600;
    line-height: 1.1;
}

.hero-subtitle {
    color: #54708b;
    line-height: 1.6;
}
.search-button {
    min-width: 180px;
}
@media (max-width: 600px) {

    .hero-title {
        font-size: 3.2rem !important;
    }

    .hero-subtitle {
        font-size: 1.05rem !important;
    }

    .search-button {
        width: 100%;
    }
}

/* ===== SEARCH BOX (FIXED PROBLEM HERE 🔥) ===== */
.login-box {
    max-width: 650px;   /* 🔥 statt 500 */
    width: 100%;

    margin: 0 auto;

    border-radius: 20px;
    background: white;

    border: 1px solid var(--edufinder-sky-bg);
    box-shadow: 0 10px 30px rgba(3, 105, 161, 0.08);
    margin-top: 20px;
    padding: 32px;
}
.search-box {
    border-radius: 20px;
    background: white;
    border: 1px solid var(--edufinder-sky-bg);

    /* 🔥 WICHTIG: jetzt breit! */
    width: 100%;
    max-width: 800px;

    margin: 0 auto;

    box-shadow: 0 10px 30px rgba(3, 105, 161, 0.08);
}

/* ===== BUTTON ===== */
.edufinder-btn {
    background-color: var(--edufinder-sky);
    color: white;
    border-radius: 12px;
}

.edufinder-btn:hover {
    background-color: var(--edufinder-sky-light);
}

/* ===== CHIPS ===== */
.mud-chip {
    cursor: pointer;
    margin: 4px;
    border-radius: 12px;
}
.mud-chip.mud-chip-color-primary {
    font-weight: 500;
}
.mud-chip.mud-chip-selected {
    background-color: var(--edufinder-sky) !important;
    color: white !important;
}
.profile-avatar {
    background: white;

    border: 2px solid var(--edufinder-sky);

    color: var(--edufinder-sky);

    width: 40px;
    height: 40px;
position: relative;
    cursor: pointer;

    transition: all 0.2s ease;
    z-index: 2;
}
.profile-avatar:hover {
    background: var(--edufinder-sky-bg);
    transform: scale(1.05);
}
.profile-avatar::after {
    content: "";
    position: absolute;

    bottom: 6px;   /* 🔥 höher setzen */
    right: 5px;   /* 🔥 leicht nach außen */

    width: 8px;
    height: 8px;

    background: #22c55e;
    border-radius: 50%;
}
.profile-click {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
/* ===== INFO CARDS ===== */
.info-card {
    border-radius: 16px;
    border: 1px solid var(--edufinder-sky-bg);
    transition: all 0.2s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(3, 105, 161, 0.1);
}
.search-layout {
    min-height: 500px; /* oder einfach weglassen */
}
@media (max-width:600px){
    .header-title{
        font-size:3rem!important;
        line-height:1.1;
    }
}
/* ===== BACKGROUND IMAGES ===== */
.bg-kid {
    position: absolute;
    width: 180px;
    height: auto;
    object-fit: contain;
    opacity: .9;
    pointer-events: none;
    z-index: 0;
}

.bg-kid.left{
    top:120px;

    left:max(
        20px,
        calc((100vw - 1920px) / 2 + 20px)
    );
}

.bg-kid.right{
    top:120px;

    right:max(
        20px,
        calc((100vw - 1920px) / 2 + 20px)
    );
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .bg-kid {
        display: none;
    }
}

/* ===== GLOBAL CLEAN ===== */
a {
    text-decoration: none;
}

/* ===== CARD STYLE ===== */
.mud-card {
    border-radius: 14px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
/* ===== FOOTER ===== */
.footer-wrapper {
    background-color: #f1f5f9;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.footer {
    
    padding: 60px 20px 0px;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.04);
    
}

/* LINKS */
.layout-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-background {
    flex: 1;
    position: relative;
    z-index: 0;
}
.footer a {
    color: #475569;
    text-decoration: none;
}
@media (max-width: 600px) {
    .footer {
        padding-top: 40px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

.footer a:hover {
    color: var(--edufinder-sky);
}

/* TEXT */
.footer .mud-typography {
    margin-bottom: 6px;
}
/* ===== FIX BLAZOR LOADER ===== */

.loading-progress { position: relative; display: block; width: 8rem; height: 8rem; margin: 20vh auto 1rem auto; } .loading-progress circle { fill: none; stroke: #e0e0e0; stroke-width: 0.6rem; transform-origin: 50% 50%; transform: rotate(-90deg); } .loading-progress circle:last-child { stroke: #1b6ec2; stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%; transition: stroke-dasharray 0.05s ease-in-out; } .loading-progress-text { position: absolute; text-align: center; font-weight: bold; inset: calc(20vh + 3.25rem) 0 auto 0.2rem; } .loading-progress-text:after { content: var(--blazor-load-percentage-text, "Loading"); } code { color: #c02d76; }