/*
 * Driller: Header und Footer der alten Website /seite/ im Look des Shopware-Shops (DrillerTheme).
 * Statischer Nachbau – Farben, Schrift und Icons aus custom/static-plugins/DrillerTheme.
 * Alle Klassen mit Präfix "dd-", damit das alte Shopware-5-CSS (shop.min.css) nicht hineinwirkt.
 */
@font-face {
    font-family: 'Flexo';
    src: url('../fonts/Flexo-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Flexo';
    src: url('../fonts/Flexo-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --dd-primary: #FECC02;
    --dd-secondary: #FFF7D6;
    --dd-text: #000;
    --dd-muted: #333;
}

.dd-benefits, .dd-header, .dd-footer {
    font-family: 'Flexo', sans-serif;
    color: var(--dd-text);
    line-height: 1.4;
    text-align: left;
}
.dd-benefits *, .dd-header *, .dd-footer * { box-sizing: border-box; }
.dd-benefits ul, .dd-header ul, .dd-footer ul { list-style: none; margin: 0; padding: 0; }
.dd-benefits li, .dd-header li, .dd-footer li { margin: 0; padding: 0; list-style: none; }
.dd-benefits a, .dd-header a, .dd-footer a { color: inherit; text-decoration: none; }
.dd-benefits img, .dd-header img, .dd-footer img { display: block; max-width: none; border: 0; }

.dd-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Inhaltsbereich der alten Seiten auf dieselbe Breite wie Header und Footer (Shop: 1400px, 16px Rand) */
body > section.content-main.container {
    max-width: 1400px;
    padding-left: 16px;
    padding-right: 16px;
}

/* ---------- Leiste über dem Header ---------- */
.dd-benefits { background: var(--dd-secondary); }
.dd-benefits__row { display: none; }
.dd-benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}
.dd-benefit img { height: 15px; width: auto; }

/* Slider unter 1200px (wie im Shop: d-xl-none), reines CSS über Radio-Buttons */
.dd-benefits__slider { position: relative; overflow: hidden; }
.dd-slide-radio { position: absolute; opacity: 0; pointer-events: none; }
.dd-slides { display: flex; transition: transform .25s ease; }
.dd-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 35px;
    padding: 0 16px;
}
.dd-slide-prev, .dd-slide-next { display: flex; align-items: center; width: 20%; cursor: pointer; }
.dd-slide-next { justify-content: flex-end; }
.dd-slide-prev img, .dd-slide-next img { width: 14px; height: 14px; }
#dd-slide-2:checked ~ .dd-slides { transform: translateX(-100%); }
#dd-slide-3:checked ~ .dd-slides { transform: translateX(-200%); }
#dd-slide-4:checked ~ .dd-slides { transform: translateX(-300%); }
#dd-slide-5:checked ~ .dd-slides { transform: translateX(-400%); }

@media (min-width: 1200px) {
    .dd-benefits__row { display: flex; align-items: center; justify-content: space-between; min-height: 35px; }
    .dd-benefits__slider { display: none; }
}

/* eKomi-Kundenauszeichnung (Wert aus dd_ekomi_stars, siehe inc/ekomi.php) */
.dd-ekomi img.dd-ekomi__seal { width: 25px; height: 25px; }
.dd-ekomi__text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.dd-ekomi__title { font-size: 16px; font-weight: 700; }
.dd-ekomi__rating { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 400; }
.dd-ekomi__stars { position: relative; display: inline-flex; gap: 2px; }
.dd-ekomi__stars svg { display: block; fill: #333; }
.dd-ekomi__stars-inner { position: absolute; top: 0; left: 0; display: inline-flex; gap: 2px; overflow: hidden; white-space: nowrap; }
.dd-ekomi__stars-inner svg { fill: #000; flex: none; }

/* ---------- Header ---------- */
.dd-header { background: var(--dd-primary); }
.dd-header__row {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo actions" "search search";
    align-items: center;
    column-gap: 16px;
    padding-top: 16px;
}
.dd-logo { grid-area: logo; display: block; }
.dd-logo img { width: 186px; height: auto; }

.dd-search {
    grid-area: search;
    display: flex;
    align-items: center;
    margin: 16px -16px 0;
    padding: 16px;
    background: var(--dd-secondary);
}
.dd-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 9px;
    border: 0;
    border-bottom: 1px solid var(--dd-text);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    color: var(--dd-text);
    -webkit-appearance: none;
    appearance: none;
}
.dd-search input[type="search"]::placeholder { color: var(--dd-muted); opacity: 1; }
.dd-search input[type="search"]:focus { outline: none; }
.dd-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: auto;
    align-self: stretch;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--dd-text);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}
.dd-search button img { width: 24px; height: 24px; }

.dd-actions {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}
.dd-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    cursor: pointer;
}
.dd-action img { width: 32px; height: 32px; }
.dd-action span { display: none; }
.dd-action--wishlist, .dd-action--account { display: none; }

/* Menü-Schalter ohne JavaScript (Checkbox + Label) */
.dd-menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.dd-menu-btn .dd-icon-close { display: none; }
.dd-menu-toggle:checked ~ .dd-header__row .dd-menu-btn .dd-icon-open { display: none; }
.dd-menu-toggle:checked ~ .dd-header__row .dd-menu-btn .dd-icon-close { display: block; }

/* ---------- Hauptnavigation ---------- */
.dd-nav { display: none; background: var(--dd-secondary); }
.dd-menu-toggle:checked ~ .dd-nav { display: block; }
.dd-nav ul { display: flex; flex-direction: column; }
.dd-nav a {
    display: block;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.dd-nav li:last-child a { border-bottom: 0; }

@media (min-width: 992px) {

    .dd-header__row {
        grid-template-columns: auto minmax(0, 280px) 1fr;
        grid-template-areas: "logo search actions";
        padding-top: 16px;
        padding-bottom: 16px;
        column-gap: 0;
    }
    .dd-logo { padding-right: 2rem; }
    .dd-logo img { width: 200px; }
    .dd-search { margin: 0; padding: 0; background: transparent; }
    .dd-search input[type="search"], .dd-search button { border-bottom-width: 2px; }

    .dd-action img { width: 32px; height: 32px; }
    .dd-action span { display: block; }
    .dd-action--wishlist, .dd-action--account { display: flex; }
    .dd-menu-btn { display: none; }

    .dd-nav, .dd-menu-toggle:checked ~ .dd-nav { display: block; }
    .dd-nav ul { flex-direction: row; flex-wrap: wrap; column-gap: 20px; padding: 1rem 0; }
    .dd-nav a { padding: 0; border: 0; font-size: 16px; }
    .dd-nav a:hover { text-decoration: underline; }
}

/* ---------- Footer ---------- */
.dd-footer { margin-top: 2rem; border-top: 1px solid var(--dd-text); }
.dd-footer__heading { background: var(--dd-secondary); }
.dd-footer__heading-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.dd-footer__heading-row .dd-logo img { width: 186px; }
.dd-footer__benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.dd-footer__benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 22.4px;
}
.dd-footer__benefits img { height: 18px; width: auto; }

.dd-footer__main { background: var(--dd-primary); padding: 32px 0; }
.dd-footer__claim {
    margin: 0 0 32px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}
.dd-footer__cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
.dd-footer__col-title { margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 19.2px; }
.dd-footer__col, .dd-footer__col li { font-size: 16px; line-height: 26px; }
.dd-footer__col address { font-style: normal; color: var(--dd-muted); line-height: 22px; }
.dd-footer__col a:hover { text-decoration: underline; }
.dd-footer__contact { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.dd-footer__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--dd-muted); text-decoration: underline; }
.dd-footer__contact img { width: 16px; height: 16px; }
.dd-footer__hours { color: var(--dd-muted); font-size: 16px; line-height: 22px; margin: 0; }

.dd-footer__bottom { background: #000; color: #fff; }
.dd-footer__bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 24px;
    padding-bottom: 24px;
    font-size: 16px;
    color: #999;
    text-align: center;
}

@media (min-width: 768px) {
    .dd-footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
    .dd-nav ul { column-gap: 32px; }
    .dd-nav a { font-size: 18px; }
    .dd-footer__heading-row { flex-direction: row; justify-content: space-between; }
    .dd-footer__claim { font-size: 32px; }
    .dd-footer__main { padding-top: 40px; }
    .dd-footer__cols { grid-template-columns: repeat(4, 1fr); }
    .dd-footer__bottom-row { flex-direction: row; justify-content: space-between; }
}

/* ---------- Kontakt-Button unten rechts (wie Plugin DrillerContactModal im Shop) ---------- */
.dd-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
    font-family: 'Flexo', sans-serif;
    color: #000;
    text-align: left;
}
.dd-contact > * { pointer-events: auto; }
.dd-contact__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #C31622;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.dd-contact__button img { display: block; width: 24px; height: 24px; }
.dd-contact__icon-close, .dd-contact.is-open .dd-contact__icon-open { display: none !important; }
.dd-contact.is-open .dd-contact__icon-close { display: block !important; }
.dd-contact__modal { width: 100%; max-width: 410px; background: #fff; }
.dd-contact__modal[hidden] { display: none; }
.dd-contact__heading { display: flex; flex-direction: column; gap: 8px; padding: 16px 24px; background: #FECC02; }
.dd-contact__top { font-size: 16px; line-height: 22.4px; }
.dd-contact__title { font-size: 24px; line-height: 28.8px; font-weight: 700; }
.dd-contact__entries { padding: 8px 24px; }
.dd-contact__entry { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.dd-contact__entry img { display: block; width: 24px; height: 24px; flex: none; }
.dd-contact__entry-title { font-size: 16px; line-height: 22.4px; font-weight: 700; }
.dd-contact__entry a { font-size: 16px; line-height: 22.4px; color: #000; text-decoration: underline; }
.dd-contact__entry a:hover { text-decoration: underline; }
.dd-contact__backdrop { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .5); }
html.dd-contact-open { overflow: hidden; }
/* Ab Tablet öffnet die Box neben dem Button (wie im Shop), auf dem Handy darüber */
@media (min-width: 576px) {
    .dd-contact { flex-direction: row; justify-content: flex-end; align-items: flex-end; gap: 20px; }
    .dd-contact__modal { order: 0; }
    .dd-contact__button { order: 1; }
}
