/* ===================================================================
 * SCHILDERGENERATOR - Ergänzungen zum NOVOGRAV-Design (style.css)
 * =================================================================== */

/* Kein seitliches Scrollen durch Einblend-Animationen (AOS fade-left/right).
 * "clip" statt "hidden", damit die Sidebar "sticky" bleibt. */
body {
    overflow-x: clip;
}

/* Untermenü des letzten Hauptpunkts rechtsbündig, damit es nicht aus dem Fenster ragt */
.header__menu-item:last-child > .header__submenu {
    left: auto;
    right: 0;
}

/* Logo-Schriftzug "Schildergenerator für Corel Draw" */
.sg-wordmark {
    max-width: 600px;
    margin: 0 0 28px;
}
.sg-wordmark img {
    width: 100%;
    height: auto;
}

/* Bild neben Text */
.sg-media {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin: 24px 0 32px;
}
.sg-media__img {
    flex: 0 0 auto;
    max-width: 45%;
}
.sg-media__img img {
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.sg-media__text { flex: 1 1 auto; min-width: 0; }
@media (max-width: 768px) {
    .sg-media { flex-direction: column; }
    .sg-media__img { max-width: 100%; }
}

/* Screenshot-Galerie */
.sg-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin: 24px 0 32px;
}
.sg-gallery__item {
    background: #f4f6f7;
    border: 1px solid #e0e3e6;
    border-radius: 4px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.legacy .sg-gallery__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: #ffffff;
    border: 1px solid #e0e3e6;
    text-decoration: none;
}
.legacy .sg-gallery__item img {
    max-height: 104px;
    width: auto;
    transition: transform 0.2s ease;
}
.sg-gallery__item a:hover img { transform: scale(1.05); }
.legacy .sg-gallery__item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* Info-/Kontaktbox */
.sg-box {
    background: #eef1f3;
    border-left: 4px solid #003D4E;
    padding: 20px 24px;
    margin: 24px 0 32px;
}
.legacy .sg-box p:last-child { margin-bottom: 0; }
.sg-box--alarm { border-left-color: #b53349; }

/* Corel-Partner-Hinweis */
.sg-partner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.legacy .sg-partner a { text-decoration: none; }

/* Barcode-Liste */
.sg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 24px;
    padding: 0;
}
.legacy .sg-tags li {
    list-style: none;
    margin: 0;
    padding: 4px 12px;
    background: #e6eef1;
    color: #003D4E;
    font-size: 15px;
    font-weight: 600;
    border-radius: 3px;
}

/* Kachel-Links (Workshops / Tools) */
.sg-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 24px 0 32px;
}
.legacy a.sg-card {
    display: block;
    padding: 22px 24px;
    background: linear-gradient(to bottom, #ededed 0%, #c9c9c9 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #003D4E;
    transition: background 0.2s ease, color 0.2s ease;
}
.legacy a.sg-card:hover {
    background: #003D4E;
    color: #ffffff;
}
.sg-card__title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}
.sg-card__text {
    display: block;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

/* Produktverpackung im Hero-Bereich der Startseite */
.hero__product {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.hero__product img {
    width: 110px;
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}
.hero__product a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===================================================================
 * Cookie-Banner (CookieConsent v3) im NOVOGRAV-Design
 * =================================================================== */
#cc-main {
    --cc-font-family: "Saira Semi Condensed", sans-serif;
    --cc-modal-border-radius: 4px;
    --cc-btn-border-radius: 3px;
    --cc-primary-color: #003D4E;
    --cc-secondary-color: #333333;
    --cc-link-color: #003D4E;
    /* gleichwertige Buttons: "Akzeptieren" und "Ablehnen" gleich gestaltet */
    --cc-btn-primary-bg: #003D4E;
    --cc-btn-primary-border-color: #003D4E;
    --cc-btn-primary-color: #ffffff;
    --cc-btn-primary-hover-bg: #002a37;
    --cc-btn-primary-hover-border-color: #002a37;
    --cc-btn-secondary-bg: #003D4E;
    --cc-btn-secondary-border-color: #003D4E;
    --cc-btn-secondary-color: #ffffff;
    --cc-btn-secondary-hover-bg: #002a37;
    --cc-btn-secondary-hover-border-color: #002a37;
    --cc-toggle-on-bg: #003D4E;
    --cc-cookie-category-block-bg: #eef1f3;
    --cc-cookie-category-block-hover-bg: #e6eef1;
    --cc-footer-bg: #eef1f3;
}
#cc-main .cm__title,
#cc-main .pm__title { font-size: 20px; font-weight: 700; }
#cc-main .pm__badge { background: #e6eef1; color: #003D4E; }
#cc-main .cm__desc,
#cc-main .pm__section-desc { font-size: 15px; line-height: 1.55; }

/* ===================================================================
 * YouTube 2-Klick-Lösung
 * =================================================================== */
.legacy .yt-consent:not(.is-loaded) {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #003D4E 0%, #00222c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.yt-consent__inner {
    max-width: 560px;
    padding: 24px;
    text-align: center;
}
.yt-consent__play {
    display: inline-block;
    width: 64px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    margin-bottom: 12px;
}
.yt-consent__play::after {
    content: "";
    position: absolute;
    left: 26px;
    top: 12px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #ffffff;
}
.legacy .yt-consent__title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}
.legacy .yt-consent__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px;
}
.legacy .yt-consent__text a { color: #ffffff; }
.yt-consent__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.yt-consent__btn {
    font-family: "Saira Semi Condensed", sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 18px;
    border: 1px solid #ffffff;
    border-radius: 3px;
    background: #ffffff;
    color: #003D4E;
    cursor: pointer;
}
.yt-consent__btn:hover { background: #e6eef1; }
.yt-consent__btn--ghost {
    background: transparent;
    color: #ffffff;
}
.yt-consent__btn--ghost:hover { background: rgba(255, 255, 255, 0.15); }
@media (max-width: 600px) {
    .legacy .yt-consent:not(.is-loaded) { aspect-ratio: auto; }
    .legacy .yt-consent__text { font-size: 13px; }
}
