/* =====================================================================
   IBO Script – globales Design (alle Seiten)
   Farben aus dem Logo: Anthrazit + Bronze. Schrift: Barlow.
   ===================================================================== */

:root {
    --ink: #151A23;
    --ink-2: #2A313F;
    --steel: #5B6475;
    --steel-2: #8A92A1;
    --line: #E2E5EA;
    --mist: #F3F5F8;
    --white: #FFFFFF;
    --bronze: #9A6A2C;
    --bronze-dark: #7E5520;
    --bronze-soft: #F5EEE3;
    --swiss: #D52B1E;
    /* Akzentfarbe (Knöpfe). Für Grün wie im Vorbild: #82B440 / #6F9A36 */
    --accent: #9A6A2C;
    --accent-dark: #7E5520;

    --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --nav-h: 0px;

    /* Alte Variablen, damit bestehende Seiten (AGB, Login, Forum …) mitziehen */
    --c-primary: var(--bronze-dark);
    --c-primary-hover: var(--ink);
    --c-secondary: var(--bronze);
    --c-dark: var(--ink);
    --c-gray: var(--mist);
    --c-text: var(--ink);
    --c-text-light: var(--steel);
    --c-border: var(--line);
    --pag-card-shadow: 0 1px 2px rgba(21, 26, 35, .05);
    --pag-card-shadow-hover: 0 8px 24px -12px rgba(21, 26, 35, .25);

    /* Bootstrap-Farben angleichen */
    --bs-primary: #7E5520;
    --bs-primary-rgb: 126, 85, 32;
    --bs-link-color: #7E5520;
    --bs-link-color-rgb: 126, 85, 32;
    --bs-link-hover-color: #151A23;
    --bs-body-font-family: var(--font);
    --bs-body-color: #151A23;
}

body {
    background: var(--white);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -0.01em;
}
a { color: var(--bronze-dark); }
a:hover { color: var(--ink); }
.text-primary { color: var(--bronze-dark) !important; }
.text-muted { color: var(--steel) !important; }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

html { scroll-padding-top: 16px; }

/* ---------------------------------------------------------------------
   Kopfbereich (Marktplatz-Stil)
   --------------------------------------------------------------------- */
.top-strip { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
             background: #0E1117; color: #E6E8EC; font-size: 14px; font-weight: 500; padding: 7px 16px; text-align: center; }
.top-strip-btn { background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; padding: 4px 12px; border-radius: 4px; text-decoration: none; }
.top-strip-btn:hover { background: var(--accent-dark); color: #fff; }

.site-head { background: var(--ink); color: #fff; }
.head-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; }
.head-row .head-inner { height: 60px; justify-content: space-between; }
.site-logo img { display: block; height: 32px; width: auto; }
.site-actions { display: flex; align-items: center; gap: 14px; }
.head-link { color: #E6E8EC; text-decoration: none; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.head-link:hover { color: #fff; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 4px;
    border: 1px solid rgba(255,255,255,.18); background: transparent; color: #E6E8EC; font-weight: 600; font-size: 13px; cursor: pointer;
}
.lang-btn:hover { border-color: rgba(255,255,255,.4); }
.lang-btn img, .lang-menu img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }
.lang-menu { border: 1px solid var(--line) !important; border-radius: var(--r-md) !important; padding: 6px !important;
             box-shadow: 0 12px 32px -12px rgba(21,26,35,.25) !important; min-width: 140px; }
.lang-menu .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; padding: 7px 10px; }
.lang-menu .dropdown-item.active, .lang-menu .dropdown-item:active { background: var(--bronze-soft); color: var(--ink); font-weight: 700; }

.cat-row { background: #1D222C; border-top: 1px solid rgba(255,255,255,.06); }
.cat-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; height: 44px;
             overflow-x: auto; scrollbar-width: none; white-space: nowrap; width: 100%; }
.cat-links::-webkit-scrollbar { display: none; }
.cat-links a { display: block; padding: 8px 12px; color: #C3C8D1; text-decoration: none; font-size: 14px; font-weight: 500; border-radius: 4px; }
.cat-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.cat-links a.is-strong { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.cat-links .sep { flex: 1; }
@media (max-width: 767.98px) {
    .head-inner { padding: 0 16px; }
    .head-row .head-inner { height: 56px; }
    .site-logo img { height: 28px; }
    .cat-links .sep { flex: 0 0 8px; }
}

/* ---------------------------------------------------------------------
   Knöpfe
   --------------------------------------------------------------------- */
.btn-ink, .btn-line, .btn-bronze, .btn-accent, .btn-accent-line {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px; border-radius: var(--r-sm);
    font-family: var(--font); font-weight: 600; font-size: 16px; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    border: 1px solid transparent;
}
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); color: var(--white); }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-bronze, .btn-accent { background: var(--accent); color: var(--white); }
.btn-bronze:hover, .btn-accent:hover { background: var(--accent-dark); color: var(--white); }
.btn-accent-line { background: var(--white); color: var(--accent-dark); border: 1px solid var(--accent); }
.btn-accent-line:hover { background: var(--accent); color: var(--white); }
.btn-sm-x { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* Bootstrap-Knöpfe und alte Klassen an das neue Design anpassen */
.btn { font-family: var(--font); }
.btn-primary {
    background: var(--ink); border: 1px solid var(--ink); color: var(--white);
    font-weight: 600; border-radius: var(--r-sm); box-shadow: none;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--ink-2) !important; border-color: var(--ink-2) !important; color: var(--white) !important;
    transform: none; box-shadow: none;
}
.btn-dark { background: var(--ink); border: none; color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }
.btn-buy {
    background: var(--ink); color: var(--white); font-weight: 600; border-radius: var(--r-sm);
    padding: 14px; width: 100%; display: block; text-align: center; text-decoration: none;
}
.btn-buy:hover { background: var(--ink-2); color: var(--white); }

/* ---------------------------------------------------------------------
   Alte Bausteine (werden von Unterseiten noch genutzt)
   --------------------------------------------------------------------- */
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--mist); }
.blob-1, .blob-2 { display: none; }
.hero { padding: 80px 0 64px; position: relative; }
.hero h1 { font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; }
.hero p { color: var(--steel); font-size: 1.15rem; }
.text-gradient { color: var(--bronze-dark); background: none; -webkit-text-fill-color: currentColor; }
.badge-soft-primary { background: var(--bronze-soft); color: var(--bronze-dark); }

.feature-box {
    background: var(--white); border-radius: var(--r-lg); padding: 32px;
    border: 1px solid var(--line); box-shadow: none; height: 100%;
}
html[dir="rtl"] .feature-box { text-align: right; }
.feature-icon {
    width: 48px; height: 48px; border-radius: var(--r-md); background: var(--bronze-soft); color: var(--bronze-dark);
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 20px;
}
.pkg-card {
    border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); overflow: hidden;
    height: 100%; display: flex; flex-direction: column;
}
.img-wrapper { overflow: hidden; position: relative; height: 190px; background: var(--mist); }
.pkg-img { width: 100%; height: 100%; object-fit: cover; object-position: top; cursor: zoom-in; }
.type-badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; z-index: 5; }
html[dir="rtl"] .type-badge { right: 14px; left: auto; }
.badge-full { background: var(--white); color: var(--ink); }
.badge-backend { background: var(--ink); color: var(--white); }
.badge-addon { background: var(--bronze); color: var(--white); }
.price-badge { color: var(--ink); font-weight: 700; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.included-badge { color: var(--bronze-dark); font-weight: 700; background: var(--bronze-soft); padding: 6px 14px; border-radius: var(--r-sm); }
.feature-list { list-style: none; padding: 0; margin: 20px 0; }
.feature-list li { margin-bottom: 12px; display: flex; align-items: flex-start; color: var(--steel); }
.feature-list i { color: var(--bronze-dark); margin-right: 12px; margin-top: 5px; font-size: 12px; }
html[dir="rtl"] .feature-list i { margin-left: 12px; margin-right: 0; }
.theme-row { display: flex; align-items: center; padding: 6px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.6rem); }
.section-header p { color: var(--steel); font-size: 1.1rem; max-width: 600px; margin: .75rem auto 0; }
.contact-meta { font-size: .9rem; color: var(--steel); display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; }

.form-control:focus, .form-select:focus { border-color: var(--bronze) !important; box-shadow: 0 0 0 3px rgba(154,106,44,.15) !important; }

/* ---------------------------------------------------------------------
   Produktkarten
   --------------------------------------------------------------------- */
.mk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mk-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: 6px; overflow: hidden;
        box-shadow: 0 1px 3px rgba(21,26,35,.1); }
.mk-featured .card { box-shadow: none; border: 1px solid var(--line); }
.card[hidden] { display: none; }
.card-img { display: block; background: var(--mist); }
.card-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.card h3 { font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1.3; margin: 0 0 3px; letter-spacing: 0;
           overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-dark); }
.card-sub { color: var(--steel-2); font-size: 13px; margin: 0 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-price { font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-btns { display: flex; gap: 6px; }
.icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px;
            border: 1px solid #D5D9DF; color: var(--steel); text-decoration: none; font-size: 13px; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.card-btns .btn-accent-line { white-space: nowrap; }

.btn-xs { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 4px; }
@media (max-width: 575.98px) {
    .mk-grid, .mk-grid-2 { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #C9CED8; margin-top: 0; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 32px; }
.site-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .f-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--white); margin: 0 0 6px; }
.site-footer .f-tag { color: #9AA2B1; margin: 0 0 18px; }
.site-footer address { font-style: normal; color: #9AA2B1; margin: 0; line-height: 1.7; }
.site-footer h3 { font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--white); margin: 0 0 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #C9CED8; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; color: #8A92A1; }
.site-footer-bottom a { color: #D4B07E; }
.swiss-cross { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; }
@media (max-width: 767.98px) {
    .site-footer-top { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------------------------------------------------------------------
   Cookie-Hinweis
   --------------------------------------------------------------------- */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1050;
    max-width: 560px; margin: 0 auto;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: 0 16px 40px -16px rgba(21,26,35,.35);
    padding: 18px 20px; display: none; gap: 16px; align-items: center;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: 15px; color: var(--ink-2); flex: 1; }
.cookie-banner .cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 575.98px) {
    .cookie-banner { flex-direction: column; align-items: stretch; }
    .cookie-banner .cookie-btns > * { flex: 1; }
}

/* Themes auf der Produktseite */
.p-themes { margin-top: 8px; }
.p-themes h2 { font-family: var(--font); font-size: 1.35rem; font-weight: 600; margin: 0 0 16px; }
.mk-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 767.98px) { .mk-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.p-themes .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
.p-themes .card-btns .btn-accent-line { flex: 1; }
@media (max-width: 575.98px) {
    .card-body { padding: 9px 10px 10px; }
    .card h3 { font-size: 13.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .card-sub { font-size: 11.5px; margin-bottom: 8px; }
    .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
    .card-price { font-size: 1rem; }
    .card-btns .btn-accent-line { flex: 1; font-size: 12.5px; padding: 0 6px; }
}
.card-themes { align-self: flex-start; margin: -6px 0 12px; font-size: 13px; font-weight: 600; color: var(--accent-dark);
               background: var(--bronze-soft); padding: 2px 8px; border-radius: 4px; text-decoration: none; }
.card-themes:hover { color: var(--ink); }
