/* ==========================================================================
   IMpunkt Gebrauchtmarkt – Frontend
   1:1 übertragen aus dem Mockup screens/gebrauchtmarkt.html (+ Modals)
   Farben: #F0F8F7 Hintergrund · #017B6E Teal · #015f55 Hover · #0D2B28 Text
           #d1e8e6 Rahmen · #e6f4f3 Teal hell · #99d6d2 Teal Linie · #6b7280 Grau
   ========================================================================== */

.gm-shop {
        --gm-bg: #F0F8F7;
        --gm-teal: #017B6E;
        --gm-teal-hover: #015f55;
        --gm-text: #0D2B28;
        --gm-border: #d1e8e6;
        --gm-teal-light: #e6f4f3;
        --gm-teal-light-hover: #d5ecea;
        --gm-teal-line: #99d6d2;
        --gm-muted: #6b7280;
        --gm-divider: #f3f4f6;
        --gm-shadow-box: 0 1px 4px rgba(0, 0, 0, 0.07);
        --gm-shadow-card: 0 1px 4px rgba(0, 0, 0, 0.07), 0 4px 16px rgba(0, 0, 0, 0.04);
        --gm-shadow-card-hover: 0 4px 20px rgba(1, 123, 110, 0.15);

        background: var(--gm-bg);
        color: var(--gm-text);
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        font-weight: 300;
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
        width: 100%;
        box-sizing: border-box;
        container-type: inline-size;
        container-name: gm;
}
/* Modal-Portal am <body>: kein Containment, sonst wird position:fixed eingeschränkt. */
.gm-shop.gm-portal { container-type: normal; background: transparent; }

/* Volle Breite (Standard, wie Merchandise-Shop): bricht aus schmalen Theme-Inhaltsbereichen aus.
   --gm-vw wird per JS auf die Breite ohne Scrollbalken gesetzt. Abschaltbar mit breite="inhalt". */
.gm-shop.gm-shop--full {
        width: var(--gm-vw, 100vw);
        max-width: var(--gm-vw, 100vw);
        position: relative;
        left: calc(50% - var(--gm-vw, 100vw) / 2);
        margin-left: 0 !important;
        margin-right: 0 !important;
}

.gm-shop *,
.gm-shop *::before,
.gm-shop *::after { box-sizing: border-box; }

.gm-shop h2, .gm-shop h3, .gm-shop h4, .gm-shop p, .gm-shop ul, .gm-shop dl, .gm-shop dd { margin: 0; padding: 0; }
.gm-shop ul { list-style: none; }
.gm-shop a { text-decoration: none; box-shadow: none; }
.gm-shop button { font-family: 'Poppins', sans-serif; text-transform: none; letter-spacing: normal; line-height: 1.5; box-shadow: none; margin: 0; }
.gm-shop [hidden] { display: none !important; }

/* ---------- Grid: 25 % / 50 % / 25 % ---------- */
.gm-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
        gap: 20px;
        padding: 24px 32px 48px;
        max-width: 1280px;
        margin: 0 auto;
        align-items: start;
}
.gm-col { display: flex; flex-direction: column; min-width: 0; }
.gm-col--left { gap: 16px; }
.gm-col--mid { gap: 20px; }
.gm-col--right { gap: 14px; }

/* ---------- Boxen ---------- */
.gm-box {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--gm-shadow-box);
}
.gm-box--pad { padding: 16px; }
.gm-box__head {
        background: var(--gm-teal);
        color: #fff;
        padding: 14px 18px;
        font-family: 'Teko', sans-serif;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        line-height: 1.2;
        display: flex;
        align-items: center;
        gap: 8px;
}
.gm-box__head i { font-size: 13px; }
.gm-box__body { padding: 16px; }

.gm-breadcrumb {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.72rem;
        color: var(--gm-muted);
        margin-bottom: 8px;
}
.gm-breadcrumb a { color: var(--gm-muted); text-decoration: underline; text-underline-offset: 2px; }
.gm-breadcrumb a:hover { color: var(--gm-teal); }
.gm-breadcrumb i { font-size: 8px; }
.gm-breadcrumb span { color: var(--gm-teal); font-weight: 600; }

.gm-shop .gm-intro-title {
        font-family: 'Teko', sans-serif;
        font-size: 1.7rem;
        font-weight: 600;
        color: var(--gm-text);
        line-height: 1.05;
        margin-bottom: 8px;
        text-transform: none;
        letter-spacing: normal;
}
.gm-text { font-size: 0.83rem; color: var(--gm-muted); line-height: 1.6; margin-bottom: 10px !important; }
.gm-text--mb12 { margin-bottom: 12px !important; }

/* ---------- Buttons (8px Radius) ---------- */
.gm-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 9px 12px;
        border-radius: 8px;
        border: 1px solid transparent;
        font-size: 0.82rem;
        font-weight: 600;
        cursor: pointer;
        transition: background-color .15s, color .15s, transform .15s, border-color .15s;
        text-decoration: none;
}
.gm-btn--block { width: 100%; }
.gm-col--left .gm-btn--block { padding: 10px; margin-top: 6px; }
.gm-btn--primary { background: var(--gm-teal); border-color: var(--gm-teal); color: #fff; }
.gm-btn--primary:hover,
.gm-btn--primary:focus-visible { background: var(--gm-teal-hover); border-color: var(--gm-teal-hover); color: #fff; transform: translateY(-1px); }
.gm-btn--secondary { background: var(--gm-teal-light); border-color: var(--gm-teal-line); color: var(--gm-teal-hover); }
.gm-btn--secondary:hover,
.gm-btn--secondary:focus-visible { background: var(--gm-teal-light-hover); color: var(--gm-teal-hover); }
.gm-btn--reserved,
.gm-btn--reserved:hover { background: #fef9c3 !important; color: #854d0e !important; border-color: #fde68a !important; cursor: not-allowed !important; transform: none !important; }
.gm-btn--disabled,
.gm-btn--disabled:hover { background: #e5e7eb; color: #9ca3af; border-color: #e5e7eb; cursor: not-allowed; transform: none; }
.gm-btn--lg { padding: 12px; font-size: 0.85rem; }
.gm-btn[disabled] { pointer-events: none; }
.gm-btn.is-loading { opacity: .75; pointer-events: none; }

/* YouTube-Buttons */
.gm-yt {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: #ff0000;
        color: #fff !important;
        font-weight: 600;
        border-radius: 6px;
        transition: background-color .15s;
}
.gm-yt:hover { background: #cc0000; color: #fff; }
.gm-yt--small { font-size: 0.72rem; padding: 5px 10px; }
.gm-yt--block { display: flex; justify-content: center; gap: 6px; width: 100%; font-size: 0.78rem; padding: 9px 10px; border-radius: 8px; }
.gm-yt--pending, .gm-yt--pending:hover { background: #fca5a5; cursor: default; flex-wrap: wrap; text-align: center; line-height: 1.3; }
.gm-yt em { font-style: normal; font-weight: 400; opacity: .9; }

/* Größen-Chip */
.gm-size-chip {
        display: flex;
        align-items: center;
        gap: 10px;
        background: var(--gm-teal-light);
        border: 1px solid var(--gm-teal-line);
        border-radius: 8px;
        padding: 12px 14px;
        margin-bottom: 10px;
}
.gm-size-chip__letter {
        height: 36px; width: 36px; flex-shrink: 0;
        border-radius: 8px;
        background: #fff;
        color: var(--gm-teal);
        display: flex; align-items: center; justify-content: center;
        font-family: 'Teko', sans-serif;
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1;
        padding-top: 4px;
}
.gm-size-chip__title { font-size: 0.8rem; color: var(--gm-teal-hover); font-weight: 600; }
.gm-size-chip__sub { font-size: 0.73rem; color: var(--gm-muted); }

/* PDF-Download */
.gm-doc {
        display: flex;
        align-items: center;
        gap: 10px;
        background: var(--gm-teal-light);
        border: 1px solid var(--gm-teal-line);
        border-radius: 8px;
        padding: 10px 12px;
        margin-bottom: 10px;
        transition: background-color .15s;
}
.gm-doc:hover { background: var(--gm-teal-light-hover); }
.gm-doc__icon { height: 36px; width: 36px; flex-shrink: 0; border-radius: 8px; background: #fff; color: var(--gm-teal); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.gm-doc__text { flex: 1; }
.gm-doc__title { display: block; font-size: 0.8rem; color: var(--gm-teal-hover); font-weight: 600; }
.gm-doc__sub { display: block; font-size: 0.72rem; color: var(--gm-muted); }
.gm-doc__dl { color: var(--gm-teal); font-size: 0.85rem; }

/* ---------- Abschnittstitel ---------- */
.gm-section-title {
        font-family: 'Teko', sans-serif;
        font-size: 1.6rem;
        font-weight: 600;
        color: var(--gm-teal);
        letter-spacing: 0.5px;
        line-height: 1.2;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 4px;
}
.gm-section-title::after { content: ''; flex: 1; height: 2px; background: var(--gm-teal-line); border-radius: 2px; }

/* ---------- Filter-Pills ---------- */
.gm-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: -8px; flex-wrap: wrap; }
.gm-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gm-filter {
        padding: 6px 14px;
        border-radius: 20px;
        background: #fff;
        border: 1px solid var(--gm-border);
        color: var(--gm-teal);
        font-size: 0.75rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        transition: background-color .15s, color .15s;
}
.gm-filter:hover { background: var(--gm-teal-light); color: var(--gm-teal); }
.gm-filter__count { color: var(--gm-muted); font-weight: 400; }
.gm-filter.is-active,
.gm-filter.is-active:hover { background: var(--gm-teal); border-color: var(--gm-teal); color: #fff; }
.gm-filter.is-active .gm-filter__count { background: rgba(255, 255, 255, 0.25); color: #fff; border-radius: 10px; padding: 0 6px; font-size: 0.68rem; font-weight: 600; }
.gm-filter.is-active .gm-dot { display: none; }
.gm-dot { height: 8px; width: 8px; border-radius: 50%; display: inline-block; }
.gm-dot--verfuegbar { background: #16a34a; }
.gm-dot--reserviert { background: #eab308; }
.gm-dot--verkauft { background: #9ca3af; }
.gm-sorthint { font-size: 0.72rem; color: var(--gm-muted); }

/* ---------- Geräte-Card (12px, Teal-Kante links, Hover-Leuchten) ---------- */
.gm-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        display: grid;
        grid-template-columns: 190px 1fr;
        border-left: 4px solid var(--gm-teal);
        box-shadow: var(--gm-shadow-card);
        transition: box-shadow .2s;
}
.gm-card:hover { box-shadow: var(--gm-shadow-card-hover); }
.gm-card--reserviert { border-left-color: #eab308; }
.gm-card--verkauft { background: #f9fafb; border: 1px solid #e5e7eb; border-left: 4px solid #d1d5db; box-shadow: var(--gm-shadow-box); color: #9ca3af; }
.gm-card--verkauft:hover { box-shadow: var(--gm-shadow-box); }
.gm-card.is-hidden { display: none; }

.gm-card__media { background: var(--gm-teal-light); position: relative; display: flex; align-items: center; justify-content: center; min-height: 180px; }
.gm-card--verkauft .gm-card__media { background: #e5e7eb; }
.gm-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gm-card--verkauft .gm-card__img { filter: grayscale(1); opacity: .6; }
.gm-card__placeholder { text-align: center; color: var(--gm-teal); padding: 16px; }
.gm-card__placeholder i { font-size: 3rem; margin-bottom: 8px; display: block; }
.gm-card__placeholder span { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: .7; }
.gm-card--verkauft .gm-card__placeholder { color: #9ca3af; }

/* Status-Badge (Pill) */
.gm-badge {
        position: absolute;
        top: 10px; left: 10px;
        z-index: 2;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 3px 10px;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.5;
}
.gm-badge i { font-size: 0.6rem; }
.gm-badge--verfuegbar { background: #dcfce7; color: #16a34a; }
.gm-badge--reserviert { background: #fef9c3; color: #854d0e; }
.gm-badge--verkauft { background: #d1d5db; color: #4b5563; }

.gm-card__body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gm-card__meta { display: flex; align-items: center; gap: 8px; }
.gm-tag { padding: 2px 8px; border-radius: 4px; font-size: 0.68rem; font-weight: 600; background: #dbeafe; color: #1e40af; }
.gm-card--verkauft .gm-tag { background: #e5e7eb; color: var(--gm-muted); }
.gm-card__nr { font-size: 0.68rem; color: var(--gm-muted); }
.gm-card--verkauft .gm-card__nr { color: #9ca3af; }
.gm-shop .gm-card__title { font-family: 'Teko', sans-serif; font-size: 1.25rem; font-weight: 500; color: var(--gm-text); line-height: 1.2; text-transform: none; letter-spacing: normal; }
.gm-card--verkauft .gm-card__title { color: var(--gm-muted); }

.gm-facts { font-size: 0.78rem; border-top: 1px solid var(--gm-divider); padding-top: 8px !important; }
.gm-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.gm-facts > div + div { border-top: 1px solid var(--gm-divider); }
.gm-facts dt { color: var(--gm-muted); display: flex; align-items: center; gap: 8px; font-weight: 300; }
.gm-facts dt i { width: 12px; color: var(--gm-teal); text-align: center; }
.gm-facts dd { font-weight: 500; }
.gm-facts .gm-right { text-align: right; }
.gm-facts .gm-shrink0 { flex-shrink: 0; }
.gm-card--verkauft .gm-facts,
.gm-card--verkauft .gm-facts > div + div { border-color: #e5e7eb; }
.gm-card--verkauft .gm-facts dt,
.gm-card--verkauft .gm-facts dt i { color: #9ca3af; }

.gm-card__desc { font-size: 0.78rem; color: var(--gm-muted); line-height: 1.55; }
.gm-card__desc p + p { margin-top: 6px; }


.gm-price { border-top: 1px solid var(--gm-divider); padding-top: 10px; }
.gm-card--verkauft .gm-price { border-color: #e5e7eb; }
.gm-price__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.gm-price__value { font-family: 'Teko', sans-serif; font-size: 1.6rem; color: var(--gm-teal); font-weight: 600; line-height: 1; }
.gm-price__cur { font-size: 1rem; vertical-align: top; display: inline-block; margin-top: 4px; }
.gm-card--verkauft .gm-price__value { color: #9ca3af; text-decoration: line-through; }
.gm-price__note { font-size: 0.68rem; color: var(--gm-muted); }
.gm-card--verkauft .gm-price__note { color: #9ca3af; }


.gm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.gm-hint { font-size: 0.7rem; color: var(--gm-muted); display: flex; align-items: center; gap: 6px; }
.gm-hint__icon { color: var(--gm-teal-line); }
.gm-hint--reserved { color: #854d0e; background: #fefce8; border-radius: 6px; padding: 8px 10px; align-items: flex-start; line-height: 1.5; }
.gm-hint--reserved i { margin-top: 2px; }
.gm-card--verkauft .gm-hint { color: #9ca3af; }

.gm-empty,
.gm-filter-empty { background: #fff; border-radius: 12px; box-shadow: var(--gm-shadow-box); padding: 32px 24px; text-align: center; color: var(--gm-muted); font-size: 0.83rem; }
.gm-empty i { font-size: 2.2rem; color: var(--gm-teal); margin-bottom: 10px; display: block; }

.gm-footnote { font-size: 0.72rem; color: var(--gm-muted); text-align: center; }

/* ---------- Rechte Spalte ---------- */
.gm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gm-stat { background: #fff; border-radius: 12px; padding: 16px; text-align: center; box-shadow: var(--gm-shadow-box); }
.gm-stat__icon { height: 32px; width: 32px; margin: 0 auto 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.gm-stat__icon--verfuegbar { background: #dcfce7; color: #16a34a; }
.gm-stat__icon--reserviert { background: #fef9c3; color: #854d0e; }
.gm-stat__num { font-family: 'Teko', sans-serif; font-size: 2.6rem; font-weight: 600; color: var(--gm-teal); line-height: 1; padding-top: 4px; }
.gm-stat__label { font-size: 0.7rem; color: var(--gm-muted); line-height: 1.35; margin-top: 4px; }
.gm-stand { font-size: 0.68rem; color: var(--gm-muted); text-align: center; margin-top: -4px; }

.gm-checklist li { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--gm-text); }
.gm-checklist li + li { margin-top: 8px; }
.gm-checklist li > span { height: 20px; width: 20px; flex-shrink: 0; border-radius: 50%; background: var(--gm-teal-light); color: var(--gm-teal); display: flex; align-items: center; justify-content: center; font-size: 0.6rem; }

.gm-eyebrow { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gm-teal); font-weight: 700; margin-bottom: 4px; }
.gm-shop .gm-contact-title { font-family: 'Teko', sans-serif; font-size: 1.1rem; font-weight: 500; color: var(--gm-text); line-height: 1.25; margin-bottom: 8px; text-transform: none; letter-spacing: normal; }
.gm-contact-text { font-size: 0.76rem; color: var(--gm-muted); line-height: 1.5; margin-bottom: 12px !important; }
.gm-contact-phone { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--gm-teal); }
.gm-contact-phone:hover { color: var(--gm-teal-hover); }
.gm-contact-phone i { font-size: 0.72rem; }

.gm-partner { background: #111827; border-radius: 10px; padding: 16px; text-align: center; color: #fff; box-shadow: var(--gm-shadow-box); }
.gm-partner__logo { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 12px; }
.gm-shop .gm-partner__title { font-family: 'Teko', sans-serif; font-size: 1.1rem; font-weight: 500; letter-spacing: 1px; line-height: 1.2; margin-bottom: 4px; color: #fff; }
.gm-partner__text { font-size: 0.74rem; color: rgba(255, 255, 255, 0.75); line-height: 1.5; }

/* ---------- Modals ---------- */
.gm-modal {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 100000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        color: var(--gm-text);
        overflow-y: auto;
}
.gm-modal__box {
        background: #fff;
        border-radius: 16px;
        padding: 32px;
        width: 440px;
        max-width: 100%;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        position: relative;
        font-size: 16px;
        line-height: 1.5;
        animation: gm-pop .18s ease-out;
}
@keyframes gm-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.gm-modal__close {
        position: absolute;
        top: 16px; right: 16px;
        background: none !important;
        border: 0;
        padding: 0;
        font-size: 1.4rem;
        color: var(--gm-muted);
        line-height: 1;
        cursor: pointer;
}
.gm-modal__close:hover { color: var(--gm-text); }
.gm-modal__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gm-modal__icon { height: 40px; width: 40px; flex-shrink: 0; border-radius: 10px; background: var(--gm-teal-light); color: var(--gm-teal); display: flex; align-items: center; justify-content: center; }
.gm-shop .gm-modal__title { font-family: 'Teko', sans-serif; font-size: 1.5rem; font-weight: 500; color: var(--gm-teal); line-height: 1.1; text-transform: none; letter-spacing: normal; }
.gm-modal__sub { font-size: 0.72rem; color: var(--gm-muted); }
.gm-modal__intro { font-size: 0.85rem; color: var(--gm-muted); line-height: 1.6; margin-bottom: 16px !important; }

.gm-summary { background: var(--gm-bg); border-radius: 8px; padding: 12px; margin-bottom: 16px; font-size: 0.82rem; }
.gm-summary__row { display: flex; align-items: center; gap: 12px; }
.gm-summary__thumb { height: 48px; width: 36px; flex-shrink: 0; border-radius: 6px; background: var(--gm-teal-light); border: 1px solid var(--gm-teal-line); color: var(--gm-teal); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gm-summary__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gm-summary__info { flex: 1; min-width: 0; }
.gm-summary__name { font-weight: 600; line-height: 1.3; }
.gm-summary__details { font-size: 0.72rem; color: var(--gm-muted); }
.gm-summary__price { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; border-top: 1px solid var(--gm-border); padding-top: 8px; margin-top: 8px; color: var(--gm-teal); }


.gm-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.gm-form__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gm-field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.gm-field > span { font-size: 0.75rem; font-weight: 600; }
.gm-field > span em { font-style: normal; font-weight: 400; color: var(--gm-muted); }
.gm-shop .gm-field input,
.gm-shop .gm-field select,
.gm-shop .gm-field textarea {
        width: 100%;
        border: 1px solid var(--gm-border);
        border-radius: 8px;
        padding: 9px 12px;
        font-size: 0.85rem;
        font-family: 'Poppins', sans-serif;
        font-weight: 300;
        color: var(--gm-text);
        background: #fff;
        box-shadow: none;
        margin: 0;
        height: auto;
        line-height: 1.5;
        outline: none;
        transition: border-color .15s, box-shadow .15s;
}
.gm-shop .gm-field textarea { resize: none; }
.gm-shop .gm-field input:focus,
.gm-shop .gm-field select:focus,
.gm-shop .gm-field textarea:focus { border-color: var(--gm-teal); box-shadow: 0 0 0 3px rgba(1, 123, 110, 0.15); }
.gm-shop .gm-field .is-invalid { border-color: #dc2626; }

.gm-consult { display: flex; align-items: flex-start; gap: 8px; background: var(--gm-teal-light); border: 1px solid var(--gm-teal-line); border-radius: 8px; padding: 10px 12px; cursor: pointer; font-size: 0.78rem; line-height: 1.45; margin: 0; }
.gm-consult strong { font-weight: 600; color: var(--gm-teal-hover); }
.gm-muted { color: var(--gm-muted); }
.gm-privacy { display: flex; align-items: flex-start; gap: 8px; font-size: 0.72rem; color: var(--gm-muted); line-height: 1.45; padding-top: 4px; margin: 0; cursor: pointer; }
.gm-privacy a { color: var(--gm-teal); text-decoration: underline; }
.gm-consult input, .gm-privacy input { margin-top: 3px; accent-color: var(--gm-teal); flex-shrink: 0; }

.gm-form__error { background: #fef2f2; color: #b91c1c; border-radius: 8px; padding: 8px 12px; font-size: 0.78rem; }
.gm-cancel { background: none !important; border: 0; padding: 0; width: 100%; font-size: 0.78rem; color: var(--gm-muted); font-weight: 500; cursor: pointer; }
.gm-cancel:hover { color: var(--gm-teal); }
.gm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.gm-success { text-align: center; padding-top: 4px; }
.gm-success__icon { height: 56px; width: 56px; margin: 0 auto 12px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.gm-success__text { font-size: 0.85rem; color: var(--gm-text); line-height: 1.6; margin-bottom: 16px !important; }

body.gm-modal-open { overflow: hidden; }

/* ---------- Responsive (Container Queries: richtet sich nach der verfügbaren Inhaltsbreite des Themes) ---------- */
/* 1/4 · 2/4 · 1/4 bleibt bis 960px erhalten (identisch zum Merchandise-Shop), darunter einspaltig:
   links → Mitte → rechts. Keine Zwischenstufe, die die rechte Spalte verschiebt. */
@container gm (max-width: 1100px) {
        .gm-card { grid-template-columns: 1fr; }
        .gm-card__media { min-height: 200px; }
}
@container gm (max-width: 960px) {
        .gm-grid { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 40px; }
}
@container gm (max-width: 400px) {
        .gm-actions { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
        .gm-modal__box { padding: 24px 20px; }
        .gm-form__cols { grid-template-columns: 1fr; }
}
