/*
 * GetYourGuide-Affiliate-Block auf der Automaten-Detailseite.
 *
 * Bewusst eigene Klassen statt Tailwind-Utilities: assets/css/tailwind.css ist
 * ein gepurgter Build, der nicht in Git liegt und auf DEV dem lokalen Stand
 * entspricht. Neue Utilities wären dort schlicht nicht vorhanden und der Block
 * würde unsichtbar rendern. Optik an assets/css/partner.css angelehnt, damit
 * beide Anzeigen als dieselbe Kategorie erkennbar sind.
 */

.cq-gyg {
    border: 1px solid #e7e2d6;
    background: #fbf9f4;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin: 2.5rem 0 1.5rem;
}

.cq-gyg__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #efeade;
}

.cq-gyg__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2f3941;
    margin: 0;
}

/* Werbekennzeichnung – identische Optik wie .cq-partner-label. */
.cq-gyg__label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a89a7c;
    font-weight: 600;
    white-space: nowrap;
}

.cq-gyg__body {
    padding: 1rem;
}

/* Standortzeile: nennt Ort und Region im Klartext. Steht bewusst ÜBER dem
   Widget-Container – das automatische Widget wertet den Inhalt oberhalb
   seiner Position aus und leitet daraus die passenden Aktivitäten ab. */
.cq-gyg__location {
    font-size: 0.875rem;
    color: #68737d;
    margin: 0 0 0.75rem;
}

.cq-gyg__location strong {
    color: #2f3941;
}

/* ── Klick-Gate ──────────────────────────────────────────────────────────
   Das Widget lädt erst nach aktivem Nutzerklick. Vorher geht keine Anfrage
   an GetYourGuide – kein Drittanbieter-Cookie ohne Zutun des Nutzers. */

.cq-gyg__consent {
    text-align: center;
    padding: 1.25rem 1rem;
    border: 1px dashed #ddd5c2;
    border-radius: 10px;
    background: #fffdf8;
}

.cq-gyg__consent-text {
    font-size: 0.875rem;
    color: #68737d;
    margin: 0 0 0.9rem;
    line-height: 1.5;
}

.cq-gyg__btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    transition: background-color 0.15s ease-in-out;
}

.cq-gyg__btn:hover,
.cq-gyg__btn:focus-visible {
    background: #1d4ed8;
}

.cq-gyg__privacy {
    display: block;
    margin-top: 0.7rem;
    font-size: 0.75rem;
    color: #8a94a0;
}

.cq-gyg__privacy a {
    color: #68737d;
    text-decoration: underline;
}

/* Container des externen Widgets. Mindesthöhe erst nach dem Laden, damit ein
   nicht ladendes Widget (Adblocker, Ausfall) keinen leeren Rahmen hinterlässt. */
.cq-gyg__widget {
    min-height: 0;
}

.cq-gyg__widget.is-loading {
    min-height: 120px;
}

/* Gehoert zum GetYourGuide-Snippet und bleibt stehen, falls das Widget nichts
   rendert. Dezent, aber sichtbar - der Hinweis ist Teil der Anbieter-Vorgabe. */
.cq-gyg__poweredby {
    display: block;
    font-size: 0.75rem;
    color: #8a94a0;
}

.cq-gyg__poweredby a {
    color: inherit;
    text-decoration: underline;
}

.cq-gyg__hint {
    font-size: 0.75rem;
    color: #8a94a0;
    margin: 0.75rem 0 0;
}

/* Greift, wenn das externe Skript nicht liefert: der gesamte Block
   verschwindet still, statt einen kaputten Rahmen zu zeigen. */
.cq-gyg.is-failed {
    display: none;
}
