#beitragsgruppen {
    position: relative;
}

#beitragsgruppen .row:not(#info-einmal-beitrag){
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    margin-bottom: 14px;
    background: #ffffff;
    border: 1px solid #d4d8dd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    background: linear-gradient(
            135deg,
            rgba(90, 158, 51, 0.45) 0%,
            rgba(45, 126, 57, 0.10) 100%
    );
}
#info-einmal-beitrag{
    margin-bottom: 14px;
}
/* Header und Standardtexte KEINE KACHEL */
#beitrag-header{
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
}

/* ---------------------------------------------------------
   DER OBERSTE BLOCK IN JEDER KACHEL:
   (Radio + Label + Preis in einer Zeile)
--------------------------------------------------------- */
#beitragsgruppen .row > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Radio selbst */
#beitragsgruppen input[type="radio"].beitragsgruppe {
    width: 18px;
    height: 18px;
    accent-color: #006838;
    flex-shrink: 0;
    margin: 0;
}

/* Label */
#beitragsgruppen label.control-label {
    flex: 1 1 auto;
    white-space: normal;
    word-break: break-word;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

/* Preis (steht im ZWEITEN <div>) */
#beitragsgruppen .row > div:nth-child(2) {
    margin-left: auto;
    font-size: 1.5rem;
    font-weight: 700;
    color: #006838;
    white-space: nowrap;
    padding-left: 8px;
}

/* ---------------------------------------------------------
   HINWEISTEXT (3. BLOCK)
--------------------------------------------------------- */
#beitragsgruppen .beitrag-info {
    display: none;
    margin-top: 8px;
    background: #eef3ee;
    border-left: 4px solid #006838;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 1.15rem;
    line-height: 1.4;
    color: #2e3c2e;
}


/* -------------------------------------------------------
GRUPPE 17 – Minimalistisch, transparent, inline Radios
------------------------------------------------------- */

#bg17Radio {
    background: transparent !important; /* transparenter Hintergrund */
    padding: 4px 0 !important; /* minimaler Abstand */
    margin-top: 6px !important;

    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.12) !important; /* dezenter inset shadow */
    border-radius: 6px !important;
}

/* Headline */
#bg17Radio .text-l.strong {
    margin-bottom: 6px !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #2d7e39 !important;
}

/* Bootstrap killen, aber nicht hart */
#bg17Radio .col-xs-12 {
    margin: 10px 0;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* Radiobuttons – native, nur spacing */
#bg17Radio input[type="radio"].b17Vollmitglied {
    margin: 0 10px 0 !important;
    transform: none !important;
}

/* Labels – inline, nicht riesig */
#bg17Radio label.control-label {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 16px !important;
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    color: #1e2a1e !important;
}


#preisstand {
    display: inline-block;
    position: static;
    transform: none;
    padding: 10px 12px;
    margin: 0 10px 10px;
    background: linear-gradient(
            135deg,
            #f3f8f2 0%,
            #e8f1e5 100%
    );

    border-left: 6px solid #2d7e39;
    border-radius: 6px;

    font-family: "Open Sans", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3a2f;
    line-height: 1.4;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}

#preisstand:hover {
    filter: none;
}

#mapholder {
    position: relative;
}

#closeButton {
    position: absolute;
    top: 65px;
    right: 50%;
    transform: translateX(50%);
    width: 26px;
    height: 26px;
    border-radius: 50%; /* macht Kreis */

    background-color: #d93025; /* Google-Red / Danger-Red */
    color: white;
    font-size: 18px;
    font-weight: 900;
    line-height: 26px; /* vertikal perfekt zentriert */
    text-align: center;

    cursor: pointer;
    user-select: none;
    display: inline-block;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, background-color 0.2s ease;
}

#closeButton:hover {
    background-color: #b21f1a;
    transform: translateX(50%) scale(1.1);
}

#lgLabel {
    line-height: initial;
}

/* ---------------------------------------------------------
   MOBILE ≤ 480px
--------------------------------------------------------- */
@media (max-width: 480px) {
    #map > img {
        max-width: 100vw;
    }

    /* Zeile oben bleibt Zeile, aber enger */
    #beitragsgruppen .row > div:first-child {
        gap: 6px;
        align-items: flex-start;
    }

    /* Label etwas eingerückt unter dem Radio */
    #beitragsgruppen label.control-label {
        margin-top: 1px;
    }

    /* Preis unter Label */
    #beitragsgruppen .row > div:nth-child(2) {
        margin-left: 0;
        margin-top: 4px;
        text-align: right;
    }

    #bg17Radio .col-xs-12 {
        flex-direction: column !important;
        justify-content: space-around;
    }

    #bg17Radio .col-xs-12 > div {
        display: flex;
        min-width: 100px;
        justify-content: space-between;
        align-items: center;
    }

    /* ---------------------------------------------------------
SCHWEBENDER BADGE „PREISSTAND“ – LINKER RAND, TRAPEZFÖRMIG
--------------------------------------------------------- */
    #preisstand {
        position: sticky;
        top: 50%; /* vertikale Mitte */
        left: -62px; /* direkt am linken Rand */
        transform: translateY(145%) translateX(-38%) rotate(-90deg); /* drehen + mittig platzieren */
        transform-origin: left top;
        margin: 0;
        /* Größe der Badge-Fläche */
        padding: 12px 20px;
        height: auto;

        clip-path: polygon(
                0% 0%, /* links oben – breit */ 100% 0%, /* rechts oben – schmal */ 90% 100%, /* rechts unten – schmal */ 10% 100% /* links unten – breit */
        );

        /* Hintergrund-Farbverlauf (SV-Style) */
        background: linear-gradient(
                90deg,
                #2d7e39 0%,
                #5a9e33 100%
        );

        color: white;
        font-family: "Open Sans", Arial, sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
    }

    /* Optional: leichte Hover-Eleganz */
    #preisstand:hover {
        filter: brightness(1.08);
    }
    .form-control,
    #bemerkung{
        border-radius: 6px!important;
    }

    .bg-info,
    #mapbutton {
        border-radius: 6px;
        margin-bottom: 15px;
    }

    #StammLG,
    #StammLG > * {
        padding: 0 !important;
    }

    button[type="submit"],
    input[type="submit"],
    #mapbutton {
        position: relative;
        display: inline-block;
        font-weight: bold;
        border-radius: 6px;
        margin-bottom: 15px;
        box-shadow: 0 4px 0px rgba(0, 0, 0, 0.35), /* unterer Kanten-Schatten */ 0 4px 6px rgba(0, 0, 0, 0.20); /* weicher tiefer Schatten */

        /* Lichtkante oben */
        background-image: linear-gradient(
                rgba(255, 255, 255, 0.35),
                rgba(255, 255, 255, 0.00) 40%
        );
        background-blend-mode: overlay;

        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    /* Klick: nach unten gedrückt */
    #mapbutton:active {
        transform: translateY(2px);
        box-shadow: 0 2px 0px rgba(0, 0, 0, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.20);
    }


    /* Gesamter Upload-Wrapper */
    .uploadCroppedImage {
        display: block;
        width: 100%;
        margin: 5px 0;
    }

    /* Der sichtbare Bereich um den Button + Text */
    .uploadCroppedImage > div > div > div {
        border: 2px solid #66a66e !important; /* dezentes Grün passend zu deinem CI */
        border-radius: 10px;
        background: #f8fcf8;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
        transition: box-shadow 0.2s ease, transform 0.2s ease;
    }

    /* Hover in Mobile = sanftes Anheben */
    .uploadCroppedImage > div > div > div:active {
        transform: scale(0.97);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

    /* "Durchsuchen..." Button */
    .uploadCroppedImage .btn.btn-small.btn-default {
        background: linear-gradient(135deg, #2d7e39 0%, #5a9e33 100%);
        border: none !important;
        color: #fff !important;
        padding: 8px 14px !important;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.95rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    /* Button Tapp-Effekt */
    .uploadCroppedImage .btn.btn-small.btn-default:active {
        transform: scale(0.92);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    }

    /* Datei-Info Text */
    .uploadCroppedImage span {
        font-size: 0.95rem !important;
        font-weight: 600;
        color: #2c3a2f !important;
        opacity: 0.9;
    }

    /* Panel refinement (Bildvorschau etc.) */
    .uploadCroppedImage .panel {
        border-radius: 10px !important;
        overflow: hidden;
        margin-top: 12px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    }

    .uploadCroppedImage .panel-heading {
        background: #e6f2e6 !important;
        border-bottom: 1px solid #d1e6d1 !important;
    }

    .uploadCroppedImage .panel-body {
        background: #fafdf9 !important;
    }

    #info-einmal-beitrag{
        background: #f4f9f3; /* sehr helles, seriöses SV-Grün */
        border-left: 6px solid #2d7e39; /* deine CI */
        padding: 7px 9px;
        margin: 0;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    }

    #beitrag-header > .col-xs-12{
        padding:0;
    }

    #shv > .container > .row > .col-xs-12[style*="min-height:350px"] {
        display: none !important;
    }
    .tx-svmodules{
        margin-bottom: 150px;
    }
}

/* ---------------------------------------------------------
   ULTRA MOBILE ≤ 375px
--------------------------------------------------------- */
@media (max-width: 375px) {
    #beitragsgruppen label.control-label {
        font-size: 1rem;
    }

    #beitragsgruppen .row > div:nth-child(2) {
        font-size: 1rem;
    }
}
