/* LR Produktkatalog 2026 — gemeinsames Stylesheet für Sprachwahl (/), Deutsch (/de/) und Español (/es/) */
:root {
    /* System-Standard-Tokens (identisch zu index.html / impressum.html) */
    --hsv-blue: #0046AD; --navy: #0A192F; --brand-accent: #C5A059; --hsv-grey: #F8FAFC;
    --glass: rgba(255, 255, 255, 0.95); --transition: 0.3s;
    /* Katalog-interne Aliase auf die Standard-Tokens */
    --bg: var(--hsv-grey); --panel: #ffffff; --ink: var(--navy); --muted: #4A5568; --accent: var(--hsv-blue); --accent-ink: #ffffff;
    --line: #e2e8f0; --shadow: 0 10px 30px rgba(10, 25, 47, .28); --overlay: rgba(248, 250, 252, .97);
    --ph: 600px; --pw: 484px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
    display: flex; flex-direction: column; background: var(--bg); color: var(--ink); overflow: hidden;
    font-family: 'Inter', sans-serif;
    -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Kopfzeile: Standard-Header (wie impressum.html/index.html, ohne top-nav/Client-Access; kompaktes Padding) ===== */
header {
    display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 12px; position: sticky; top: 0; z-index: 1000;
    padding: 8px 4%; background: var(--glass); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(0, 70, 173, 0.1);
}
.header-left { display: flex; align-items: center; flex: 0 0 auto; }
.logo { display: flex; align-items: center; font-weight: 900; font-size: clamp(16px, 3vw, 22px); letter-spacing: -0.5px; text-decoration: none; color: var(--navy); }
.dynamic-logo.raute-logo { width: 35px; height: 35px; background: var(--hsv-blue); transform: rotate(45deg); border: 2px solid var(--navy); box-shadow: 3px 3px 0 var(--navy); margin-right: 25px; margin-left: 10px; display: flex; justify-content: center; align-items: center; }
.dynamic-logo { width: 150px; height: 50px; background-size: contain; background-repeat: no-repeat; background-position: left center; }
.cat-title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; cursor: pointer;
    background: transparent; border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; font-size: 13px; font-weight: 700; }
.lang-switch a, .lang-switch span { padding: 7px 11px; text-decoration: none; }
.lang-switch span { background: var(--accent); color: var(--accent-ink); }
.lang-switch a { color: var(--ink); }
.lang-switch a:hover { background: var(--line); }

/* ===== Bühne / Buch ===== */
.stage {
    position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center;
    overflow: hidden; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none;
}
.book { position: relative; display: flex; perspective: 2600px; transform: translateX(var(--shift, 0px)); transition: transform .7s cubic-bezier(.45, .05, .25, 1), opacity .25s ease; }
.slot { position: relative; width: var(--pw); height: var(--ph); }
.slot img, .face img { display: block; width: 100%; height: 100%; object-fit: cover; background: #fff; box-shadow: var(--shadow); -webkit-user-drag: none; }
.slot.empty img, .slot.empty::after { visibility: hidden; }
.slot.left { cursor: w-resize; }
.slot.right { cursor: e-resize; }
.slot.left::after, .slot.right::after { content: ""; position: absolute; top: 0; width: 7%; height: 100%; pointer-events: none; }
.slot.left::after { right: 0; background: linear-gradient(to left, rgba(0, 0, 0, .22), transparent); }
.slot.right::after { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, .22), transparent); }
.leaf { position: absolute; top: 0; width: var(--pw); height: var(--ph); transform-style: preserve-3d; transition: transform .7s cubic-bezier(.45, .05, .25, 1); z-index: 3; }
.leaf.next { left: 50%; transform-origin: left center; }
.leaf.prev { left: 0; transform-origin: right center; }
.leaf.next.turn { transform: rotateY(-180deg); }
.leaf.prev.turn { transform: rotateY(180deg); }
.leaf .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf .face.back { transform: rotateY(180deg); }
.leaf .face.blank { background: transparent; }
/* Einzelseiten-Modus (Mobil): Seite wischt seitlich */
.book.single { width: var(--pw); height: var(--ph); overflow: hidden; perspective: none; transform: none; transition: none; }
.book.single .slot { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .3s ease; cursor: default; }
.book.single .slot::after { display: none; }
.nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 68px; border: 0; border-radius: 12px;
    background: rgba(10, 25, 47, .55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.nav:hover { background: rgba(10, 25, 47, .8); }
.nav:disabled { opacity: .25; cursor: default; }
.nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nav.prev { left: 8px; }
.nav.next { right: 8px; }
.loader {
    position: absolute; inset: 0; z-index: 6; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px;
    background: color-mix(in srgb, var(--bg) 70%, transparent); font-weight: 700; font-size: 14px; pointer-events: none;
}
.loader.on { display: flex; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Untere Leiste + Footer ===== */
.cat-bar {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 86px 8px 12px; /* rechts Platz für das reCAPTCHA-Badge (wie auf den anderen Seiten) */
    background: var(--panel); border-top: 1px solid var(--line);
}
.page-ind { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.shop-btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 11px; font-weight: 800; font-size: 15px;
    background: var(--accent); color: var(--accent-ink); text-decoration: none; box-shadow: 0 4px 14px rgba(0, 70, 173, .35); text-align: center;
}
.shop-btn:hover { filter: brightness(1.08); }
.main-footer { flex: 0 0 auto; background: var(--navy); color: white; padding: 8px 5% 10px; text-align: center; }
.footer-links a { color: #a0aec0; text-decoration: none; margin: 0 10px; font-size: 12px; font-weight: 600; transition: var(--transition); display: inline-block; padding-bottom: 2px; }
.footer-links a:hover { color: white; }
.main-footer p { color: #718096; font-size: 11px; margin-top: 4px; }

/* ===== Übersicht ===== */
.overview { position: fixed; inset: 0; z-index: 50; background: var(--overlay); overflow: auto; padding: 14px; }
.overview[hidden] { display: none; }
.ov-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; max-width: 1200px; margin: 0 auto 12px; }
.ov-head h2 { margin: 0; font-size: 18px; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; max-width: 1200px; margin: 0 auto; }
.thumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: 8px; background: var(--panel); cursor: pointer; overflow: hidden; }
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1240 / 1535; background: #fff; }
.thumb span { position: absolute; left: 0; bottom: 0; padding: 2px 8px; font-size: 12px; font-weight: 800; background: var(--accent); color: var(--accent-ink); border-top-right-radius: 8px; }
.thumb:hover, .thumb.cur { border-color: var(--accent); }

/* ===== Cookie-Banner (Standard-Optik wie index.html; gleicher Consent-Schlüssel klopp_cookie_consent) ===== */
#cookieBanner { position: fixed; bottom: 30px; left: 5%; right: 5%; background: white; border-radius: 15px; z-index: 999999; box-shadow: 0 20px 50px rgba(0,0,0,0.2); padding: 30px; max-width: 1200px; margin: 0 auto; border: 1px solid #e2e8f0; color: var(--navy); }
#cookieBanner h3 { margin: 0 0 10px 0; color: var(--navy); font-weight: 900; display: flex; align-items: center; gap: 10px; font-size: 17px; }
#cookieBanner h3 svg { width: 20px; height: 20px; fill: none; stroke: var(--hsv-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#cookieBanner p { margin: 0; font-size: 13px; color: #4A5568; line-height: 1.6; font-weight: 500; }
.cb-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.cb-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-cookie { width: auto; padding: 10px 20px; font-size: 12px; margin: 0; background: white; color: var(--navy); border: 2px solid #e2e8f0; border-radius: 8px; font-weight: 800; cursor: pointer; text-transform: uppercase; transition: var(--transition); }
.btn-cookie:hover { border-color: var(--hsv-blue); }
.btn-cookie-primary { background: var(--hsv-blue); color: white; border-color: var(--hsv-blue); }
.btn-cookie-primary:hover { background: var(--navy); border-color: var(--navy); }
.cb-opts { display: flex; gap: 25px; font-size: 13px; border-top: 1px solid #e2e8f0; padding-top: 15px; margin-top: 20px; flex-wrap: wrap; font-weight: 700; color: var(--navy); }
.cb-opts label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cb-opts input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--hsv-blue); }
.cb-opts .links { margin-left: auto; display: flex; gap: 20px; }
.cb-opts .links a { color: var(--hsv-blue); text-decoration: none; }

/* ===== Install-Banner (App installieren) ===== */
.install-banner { position: fixed; left: 12px; bottom: 12px; z-index: 999990; max-width: min(420px, calc(100vw - 24px)); display: flex; gap: 12px; align-items: flex-start;
    background: #fff; color: var(--navy); border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.install-banner img { border-radius: 10px; border: 1px solid #e2e8f0; flex: 0 0 auto; }
.install-banner strong { display: block; font-size: 14px; font-weight: 900; margin-bottom: 3px; }
.install-banner p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: #4A5568; }
.ib-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ib-btn { padding: 9px 16px; border-radius: 8px; font-size: 12px; font-weight: 800; cursor: pointer; border: 2px solid #e2e8f0; background: #fff; color: var(--navy); font-family: inherit; }
.ib-primary { background: var(--hsv-blue); border-color: var(--hsv-blue); color: #fff; }
.ib-primary:hover { background: var(--navy); border-color: var(--navy); }
@media print { .install-banner { display: none; } }

/* ===== Sprachwahl-Seite (/lr-produktkatalog/) ===== */
body.choose { overflow: auto; min-height: 100%; }
.choose-main { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 22px 14px; }
.choose-wrap { width: min(980px, 100%); text-align: center; }
.choose h1 { margin: 0 0 6px; font-size: clamp(22px, 4vw, 34px); }
.choose p.sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile {
    display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; text-decoration: none; color: var(--ink);
    background: var(--panel); border: 2px solid var(--line); transition: transform .15s ease, border-color .15s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.tile img { width: min(100%, 300px); height: auto; aspect-ratio: 1240 / 1535; border-radius: 6px; box-shadow: var(--shadow); background: #fff; }
.tile strong { font-size: 22px; }
.tile small { color: var(--muted); font-size: 13px; }

/* ===== Responsiv ===== */
@media (max-width: 640px) {
    .dynamic-logo { width: 100px; height: 34px; }
    .main-footer { padding-right: 86px; } /* Platz für das reCAPTCHA-Badge */
    #dynLogoText { display: none; }
    .btn .lbl { display: none; }
    .shop-btn { padding: 10px 14px; font-size: 14px; flex: 1; }
    .page-ind { font-size: 12px; }
    .nav { width: 34px; height: 54px; }
    .tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .book, .leaf, .book.single .slot { transition: none !important; }
}
@media (max-width: 900px) { .cat-title { display: none; } }
@media print { header, .cat-bar, .main-footer, .nav, #cookieBanner { display: none; } }
