/* ═══════════════════════════════════════════════════
   XDROP – Stylesheet (2024 · Responsive · PHP 8)
   Farben: #005467 (Teal) · #b91200 (Rot) · #fff2b9 (Gelb)
═══════════════════════════════════════════════════ */

/* ── Reset & Basis ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:    #005467;
    --primary-dk: #003d4d;
    --accent:     #b91200;
    --yellow:     #fff2b9;
    --gray-light: #f5f5f5;
    --gray:       #e0e0e0;
    --text:       #222;
    --text-muted: #777;
    --radius:     8px;
    --shadow:     0 2px 8px rgba(0,0,0,.1);
    --max-w:      900px;
    --font:       Arial, Helvetica, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--gray-light);
    padding-top: 56px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: .5rem; }
h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h3 { font-size: 1.1rem; margin: 1.2rem 0 .4rem; color: var(--primary); }
h4 { font-size: 1rem; margin: 1rem 0 .3rem; color: var(--primary-dk); }

ul { padding-left: 1.4rem; }
li { margin-bottom: .3rem; }

/* ── Navigation ─────────────────────────────────── */
.topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    height: 56px;
    padding: 0 16px;
}

.topnav__brand {
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: .05em;
    text-decoration: none;
}
.topnav__brand:hover { text-decoration: none; opacity: .85; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
}

.nav-menu a {
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: .9rem;
    text-decoration: none;
    display: block;
}
.nav-menu a:hover { background: rgba(255,255,255,.15); text-decoration: none; }

.nav-cart { font-size: 1.2rem; position: relative; }
.cart-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Burger */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}
.nav-burger span {
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

@media (max-width: 680px) {
    .nav-burger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 56px; right: 0;
        background: var(--primary-dk);
        flex-direction: column;
        width: 220px;
        padding: 12px 0;
        gap: 0;
        transform: translateX(100%);
        transition: transform .25s ease;
        border-radius: 0 0 0 var(--radius);
        box-shadow: var(--shadow);
    }
    #nav-toggle:checked ~ .nav-menu { transform: translateX(0); }
    #nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
    #nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    #nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
    .nav-menu a { padding: 12px 20px; border-radius: 0; }
}

/* ── Layout ─────────────────────────────────────── */
.page-bg { background: #fff; }
.main-wrapper {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px 40px;
}

.site-logo {
    text-align: center;
    padding: 28px 0 16px;
}
.site-logo img { max-width: 340px; margin: 0 auto; }

/* ── Seitenüberschrift ───────────────────────────── */
.page-header {
    text-align: center;
    padding: 20px 0 0;
    margin-bottom: 28px;
}
.page-header h1 {
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    letter-spacing: .03em;
}
.page-header .back-link {
    font-size: .85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
}
.page-header .back-link:hover { text-decoration: underline; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 30px;
    border: 0;
    cursor: pointer;
    font-size: .95rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background .15s, opacity .15s;
    line-height: 1.3;
}
.btn:hover { opacity: .88; text-decoration: none; }

.btn--primary   { background: var(--accent);  color: #fff; }
.btn--secondary { background: var(--primary); color: #fff; }
.btn--ghost     { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 8px 18px; }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--sm        { padding: 6px 14px; font-size: .85rem; }
.btn--lg        { padding: 14px 30px; font-size: 1.05rem; }
.btn--full      { width: 100%; display: block; }
.btn--paypal    { background: #ffc439; color: #003087; border: 0; padding: 10px 24px; border-radius: 30px; font-weight: bold; cursor: pointer; font-size: .95rem; }

/* Login-Button: weniger abgerundet, mehr Abstand */
.form-box .btn--primary {
    border-radius: 6px;
    margin-top: 20px;
}

/* ── Notices ─────────────────────────────────────── */
.notice {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: .95rem;
    line-height: 1.5;
}
.notice--yellow { background: var(--yellow); border-left: 4px solid #e6c200; }
.notice--yellow .notice-actions { text-align: right; margin-top: 10px; }
.notice--gray   { background: var(--gray-light); border-left: 4px solid var(--gray); }
.notice--green  { background: #e7f9e4; border-left: 4px solid #4caf50; }
.notice--red    { background: #fce4e4; border-left: 4px solid var(--accent); }

/* ── Hero (Startseite) ───────────────────────────── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 32px 0;
}
.hero__content h1 { color: var(--primary); line-height: 1.2; }
.hero__content p  { margin: 12px 0 20px; font-size: 1rem; }
.hero__buttons    { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__image img  { border-radius: 0; box-shadow: none; }

@media (max-width: 600px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero__buttons { justify-content: center; }
    .hero__image { order: -1; }
    .hero__image img { max-width: 280px; margin: 0 auto; }
    .hero__content h1 { display: none; }
}

/* ── Shop-Filter ─────────────────────────────────── */
.shop-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray);
}
.shop-filter__sort { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-filter__kat  { display: flex; gap: 8px; align-items: center; }
.shop-filter__kat select {
    padding: 7px 10px;
    border: 2px solid var(--gray);
    border-radius: var(--radius);
    font-size: .9rem;
}
.btn--ghost.active { background: var(--primary); color: #fff; }

/* ── Produktgrid ─────────────────────────────────── */
.shop-count {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 600px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.product-card {
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s;
    background: #fff;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.15); }

.product-card__img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}
.product-card__img-wrap img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform .25s;
}
.product-card:hover .product-card__img-wrap img { transform: scale(1.04); }

.product-card__nr {
    position: absolute;
    bottom: 6px; right: 8px;
    font-size: .75rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.7);
}

.product-card__body {
    padding: 10px 12px 14px;
}
.product-card__name {
    font-size: .9rem;
    font-weight: bold;
    margin-bottom: 6px;
    line-height: 1.3;
}
.product-card__price {
    font-size: .85rem;
    margin-bottom: 8px;
    color: var(--text);
}
.product-card__price strong { color: var(--accent); font-size: 1rem; }

/* ── Pagination ──────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 32px 0 8px;
    flex-wrap: wrap;
}
.pag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 2px solid var(--gray);
    border-radius: 6px;
    font-size: .9rem;
    color: var(--primary);
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.pag-btn:hover { background: var(--gray-light); text-decoration: none; }
.pag-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: bold; }
.pag-dots { color: var(--text-muted); padding: 0 4px; }

/* ── Verfügbarkeit ───────────────────────────────── */
.avail--green { color: #4caf50; }
.avail--red   { color: var(--accent); }

/* ── Warenkorb-Vorschau (Shop) ───────────────────── */
.cart-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--yellow);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
}
.cart-preview__thumbs { display: flex; gap: 6px; }
.cart-preview__thumbs img { border-radius: 4px; }

/* ── Produktdetail ───────────────────────────────── */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.detail-nr    { color: var(--text-muted); font-size: .9rem; }
.detail-price { font-size: 1.4rem; margin: 12px 0; }
.detail-specs { margin-top: 24px; }
.detail-specs ul { font-size: .9rem; }

@media (max-width: 600px) {
    .detail-layout { grid-template-columns: 1fr; }
}

/* ── Warenkorb ───────────────────────────────────── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 720px) {
    .cart-layout { grid-template-columns: 1fr; }
}

.cart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray);
}
.cart-row__thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.cart-row__info { flex: 1; font-size: .9rem; }
.cart-row__info .muted { font-size: .8rem; color: var(--text-muted); }
.cart-row__price { font-weight: bold; white-space: nowrap; }
.cart-row__del {
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 4px 8px;
    cursor: pointer;
    text-decoration: none;
}
.cart-row__del:hover { color: var(--accent); }

.cart-summary {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 20px;
}

.summary-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: .9rem; }
.summary-table td { padding: 6px 4px; }
.summary-table td:last-child { text-align: right; white-space: nowrap; }
.summary-total td { border-top: 2px solid var(--primary); padding-top: 10px; font-size: 1rem; }

.address-box {
    background: #fff;
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 14px;
    margin: 12px 0;
    font-size: .88rem;
}
.address-box h3 { margin: 0 0 6px; font-size: .9rem; color: var(--primary); }

.agb-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .88rem;
    margin: 14px 0;
    cursor: pointer;
    line-height: 1.4;
}
.agb-check input { margin-top: 3px; flex-shrink: 0; }

/* ── Bestellungen ────────────────────────────────── */
.order-card {
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
}
.order-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: #fff;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.order-card__nr { font-weight: bold; font-size: 1rem; }
.order-card__thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    flex-wrap: wrap;
    background: #fafafa;
    border-bottom: 1px solid var(--gray);
}
.order-card__thumbs img { border-radius: 4px; }

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: bold;
}
.status--red    { background: #fce4e4; color: var(--accent); }
.status--yellow { background: var(--yellow); color: #7a6400; }
.status--green  { background: #e7f9e4; color: #2e7d32; }
.status--gray   { background: var(--gray); color: var(--text-muted); }

.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.order-table td { padding: 6px 16px; }
.order-table__total td { border-top: 2px solid var(--gray); padding-top: 10px; }

.order-card__section {
    padding: 12px 16px;
    border-top: 1px solid var(--gray);
}
.order-card__section h4 { margin-bottom: 8px; }

.payment-info {
    background: var(--yellow);
    padding: 16px;
    border-top: 1px solid #e6c200;
}
.payment-info table { font-size: .88rem; margin-bottom: 12px; }
.payment-info td { padding: 4px 12px 4px 0; vertical-align: top; }
.payment-info td:first-child { color: var(--text-muted); white-space: nowrap; }

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: bold;
}
.badge--green { background: #e7f9e4; color: #2e7d32; }
.badge--dhl   { background: #ffcc00; color: #d40511; }

/* ── Formular ────────────────────────────────────── */
.form-box {
    max-width: 420px;
    margin: 0 auto;
}
.form-box--wide { max-width: 640px; }

label {
    display: block;
    font-size: .88rem;
    font-weight: bold;
    margin: 14px 0 4px;
    color: var(--primary-dk);
}

input[type=text],
input[type=email],
input[type=password],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--gray);
    border-radius: var(--radius);
    font-size: .95rem;
    font-family: var(--font);
    transition: border-color .15s;
    background: #fff;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}
textarea { resize: vertical; min-height: 120px; }

fieldset {
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 16px;
}
legend {
    font-weight: bold;
    color: var(--primary);
    padding: 0 8px;
    font-size: .9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: .9rem;
    cursor: pointer;
    font-weight: normal;
}
.radio--label input,
.checkbox-label input { width: auto; }

.form-links {
    text-align: center;
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: 16px;
}
.form-links a { color: var(--primary); }

/* ── Content-Box (AGB, Impressum) ─────────────────── */
.content-box {
    max-width: 800px;
    margin: 0 auto;
    font-size: .95rem;
    line-height: 1.7;
}
.content-box p { margin-bottom: 12px; }

/* ── Diverses ────────────────────────────────────── */
.mwst       { font-size: .8rem; color: var(--text-muted); }
.muted      { color: var(--text-muted); font-size: .85rem; }
.muted--red { color: var(--accent); font-size: .85rem; }
.success    { color: #2e7d32; font-weight: bold; }

.hero__logo {
    text-align: center;
    margin-bottom: 32px;
}
.hero__logo img { max-width: 260px; margin: 0 auto; }

/* ── Info-Cards ──────────────────────────────────── */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 700px;
    gap: 20px;
    margin: 0 auto 32px;
}
.info-card {
    background: var(--gray-light);
    border: 1px solid var(--gray);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 20px 22px;
    font-size: .9rem;
    line-height: 1.6;
}
.info-card h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--primary);
}
.info-card p { margin-bottom: 8px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card__icon {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
}


/* ── Detail-Thumbs ───────────────────────────────── */
.detail-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.detail-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--gray);
    cursor: pointer;
    transition: border-color .15s;
}
.detail-thumb:hover,
.detail-thumb.active { border-color: var(--primary); }


/* ── Dashboard-Cards (Login) ─────────────────────── */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    max-width: 700px;
    margin: 0 auto 32px;
}
.dash-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: var(--gray-light);
    border: 1px solid var(--gray);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow .15s, border-color .15s;
}
.dash-card:hover { box-shadow: var(--shadow); border-top-color: var(--accent); text-decoration: none; }
.dash-card--logout { border-top-color: var(--gray); }
.dash-card--logout:hover { border-top-color: var(--accent); }
.dash-card__icon { font-size: 1.8rem; color: var(--primary); margin-bottom: 10px; }
.dash-card__title { font-weight: bold; font-size: 1rem; margin-bottom: 4px; }
.dash-card__sub { font-size: .8rem; color: var(--text-muted); }
.dash-badge { background: var(--accent); color: #fff; border-radius: 10px; padding: 1px 7px; font-size: .75rem; font-weight: bold; }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
    background: var(--gray-light);
    border-top: 1px solid var(--gray);
    padding: 24px 16px;
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
}
.textile-info {
    max-width: 800px;
    margin: 0 auto 16px;
    font-size: .78rem;
    line-height: 1.5;
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.footer-bottom a { color: var(--primary); }

/* ── Home Sections (Neue Designs, FAQ) ───────────────────────────────────── */
.home-section { max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.home-section__title { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.home-section__sub { color: #666; margin-bottom: 20px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid #e0e0e0; }
.faq__item { border-bottom: 1px solid #e0e0e0; }
.faq__q { width: 100%; background: none; border: none; text-align: left; padding: 16px 0; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #222; }
.faq__q:hover { color: var(--primary); }
.faq__icon { font-size: 1.3rem; font-weight: 300; color: var(--primary); transition: transform .2s; }
.faq__a { display: none; padding: 0 0 16px; color: #555; line-height: 1.6; }
.faq__item--open .faq__a { display: block; }
.faq__item--open .faq__icon { transform: rotate(45deg); }

/* ── Address box edit icon ───────────────────────────────────────────────── */
.address-box__head { display: flex; justify-content: space-between; align-items: center; }
.address-box__head h3 { margin: 0; }
.address-box__edit { color: #aaa; font-size: 0.85rem; padding: 4px 6px; border-radius: 4px; transition: color .15s, background .15s; }
.address-box__edit:hover { color: var(--primary); background: #f0f4f5; }
