/* =========================================================
   Pipeloops – Layout (Redesign 2026)
   Wird nach stylesheet.css geladen (siehe includes/head.php) und legt das neue
   Layout ueber die alten osCommerce-Klassen. Farben & Schriften zentral als Variablen.
   ========================================================= */
:root {
  --bg: #f6f2ea;          /* warmes Papier */
  --surface: #ffffff;
  --ink: #221c16;         /* Text */
  --muted: #6a5f53;       /* Nebentext */
  --line: #e2d9ca;
  --wood: #2b2019;        /* Kopf/Fuss: dunkles Holz */
  --wood-2: #3a2c22;
  --on-wood: #f3ead9;
  --on-wood-muted: #c9b9a0;
  --brass: #c4953f;       /* Akzent: Messing */
  --brass-ink: #8a6220;   /* Messing als Textfarbe auf hell */
  --sale: #b23a2a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(34,28,22,.06), 0 6px 18px rgba(34,28,22,.07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
  --tap: 44px;            /* Mindestgroesse fuer Touch-Ziele */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; }
/* Hoehe automatisch – ausser bei den alten Abstandshaltern (pixel_trans.gif o.ae.), die ihre feste Hoehe brauchen */
img:not([src*="pixel_"]) { height: auto; }
a { color: var(--brass-ink); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* ---------- Kopfbereich ---------- */
.site-header { background: var(--wood); color: var(--on-wood); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--on-wood); line-height: 1.05; flex-shrink: 0; }
.brand b { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: .01em; }
.brand small { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.brand:hover { color: #fff; }

.main-nav { flex: 1; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a, .main-nav button {
  display: flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 14px;
  color: var(--on-wood); text-decoration: none; font: 500 .98rem var(--sans);
  background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.main-nav a:hover, .main-nav button:hover, .main-nav [aria-expanded="true"] { background: var(--wood-2); color: #fff; }
.main-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--brass); border-radius: 8px 8px 0 0; }
.main-nav .chev { width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.has-sub { position: relative; }
.sub {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  list-style: none; margin: 0; padding: 8px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.sub::before { content: ""; position: absolute; top: -6px; left: 0; right: 0; height: 6px; }
.has-sub.open > .sub { display: block; }
.sub a { color: var(--ink); border-radius: 6px; padding: 8px 12px; min-height: var(--tap); }
.sub a:hover { background: var(--bg); color: var(--ink); }
.sub .sub-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 2px; }

.tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tool {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); min-width: var(--tap); justify-content: center;
  padding: 0 12px; color: var(--on-wood); text-decoration: none; border-radius: 8px; font-size: .95rem; background: none; border: 0; cursor: pointer;
}
.tool:hover { background: var(--wood-2); color: #fff; }
.tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { background: var(--brass); color: var(--wood); font-weight: 700; font-size: .75rem; border-radius: 99px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }
.lang { display: inline-flex; border: 1px solid #5a4636; border-radius: 8px; overflow: hidden; margin-right: 6px; }
.lang a { color: var(--on-wood-muted); text-decoration: none; padding: 0 10px; min-height: 36px; display: grid; place-items: center; font-size: .85rem; font-weight: 600; }
.lang a[aria-current="true"] { background: var(--brass); color: var(--wood); }
.menu-btn { display: none; }

/* ---------- Tablet & kleiner: Menue als Schublade ---------- */
@media (max-width: 1040px) {
  .menu-btn { display: inline-flex; }
  .tool .label { display: none; }
  .main-nav {
    position: fixed; inset: var(--nav-top, 68px) 0 0 auto; width: min(380px, 100%); background: var(--wood);
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; padding: 12px 12px 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,.3);
  }
  body.nav-open .main-nav { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: var(--nav-top, 68px) 0 0 0; background: rgba(0,0,0,.35); z-index: -1; }
  .main-nav > ul { flex-direction: column; gap: 2px; }
  .main-nav a, .main-nav button { width: 100%; justify-content: space-between; font-size: 1.05rem; min-height: 52px; }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--brass); border-radius: 8px; }
  .sub { position: static; box-shadow: none; background: var(--wood-2); min-width: 0; margin: 2px 0 6px; }
  .sub a { color: var(--on-wood); }
  .sub a:hover { background: var(--wood); color: #fff; }
  .sub .sub-label { color: var(--on-wood-muted); }
}

/* ---------- Startseite ---------- */
.brand-band { background: #888 url("../images/banner_strip.png") left center / cover no-repeat; aspect-ratio: 1490 / 215; max-height: 215px; width: 100%; }
.hero { padding: 48px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-ink); font-weight: 700; margin-bottom: 10px; display: block; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 99px; font-weight: 600; text-decoration: none; border: 2px solid transparent; font-size: 1rem; cursor: pointer;
}
.btn-primary { background: var(--wood); color: var(--on-wood); }
.btn-primary:hover { background: var(--brass); color: var(--wood); }
.btn-ghost { border-color: var(--wood); color: var(--wood); background: transparent; }
.btn-ghost:hover { background: var(--wood); color: var(--on-wood); }
.feature { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; }
.feature img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature .cap { padding: 16px 20px 18px; }
.feature .cap b { font-family: var(--serif); font-size: 1.2rem; display: block; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--brass); color: var(--wood); padding: 3px 10px; border-radius: 99px; margin-bottom: 8px; }

.section { padding: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head a { font-weight: 600; text-decoration: none; }

.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news a { display: block; background: var(--surface); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink); border-left: 4px solid var(--brass); box-shadow: var(--shadow); }
.news a:hover { transform: translateY(-2px); }
.news time { font-size: .85rem; color: var(--muted); display: block; margin-bottom: 4px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s ease; }
.card:hover { transform: translateY(-3px); }
.card .img { aspect-ratio: 4/3; background: #ddd5c6; overflow: hidden; }
.card .img img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 1.05rem; margin: 0; }
.card .meta { font-size: .88rem; color: var(--muted); }
.card .foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: space-between; align-items: center; }
.price { white-space: nowrap; }
.price { font-weight: 700; font-size: 1.05rem; }
.price s { color: var(--muted); font-weight: 400; font-size: .9rem; margin-right: 6px; }
.price .sale { color: var(--sale); }
.tag { font-size: .75rem; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; color: var(--muted); }

.intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.panel { background: var(--surface); border-radius: 14px; padding: 26px 28px; box-shadow: var(--shadow); }
.panel.accent { background: var(--wood); color: var(--on-wood); }
.panel.accent h2, .panel.accent h3 { color: #fff; }
.panel.accent a.btn-primary { background: var(--brass); color: var(--wood); }
.panel.accent a.btn-primary:hover { background: #fff; }

/* ---------- Shop ---------- */
.page-head { padding-top: 34px; padding-bottom: 10px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; padding-bottom: 50px; }
.filters { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 88px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.filters legend { font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.filters label { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.filters input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--wood); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; gap: 6px; }
.chips input { position: absolute; opacity: 0; }
.chips label:has(input:checked) { background: var(--wood); color: var(--on-wood); border-color: var(--wood); }
input[type=search], select {
  width: 100%; min-height: var(--tap); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; background: #fff; color: var(--ink);
}
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); }
.filter-btn { display: none; }
.filters .close-row { display: none; }

@media (max-width: 1040px) {
  .shop { grid-template-columns: 1fr; }
  .filter-btn { display: inline-flex; }
  .filters {
    position: fixed; inset: auto 0 0 0; top: auto; max-height: 82vh; overflow-y: auto; z-index: 60;
    border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .25s ease; padding: 20px 22px 30px;
    box-shadow: 0 -10px 30px rgba(0,0,0,.25);
  }
  body.filters-open .filters { transform: none; }
  .filters .close-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .filters .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
}

/* ---------- Fussbereich ---------- */
.site-footer { background: var(--wood); color: var(--on-wood-muted); margin-top: 40px; font-size: .95rem; }
.site-footer a { color: var(--on-wood); text-decoration: none; }
.site-footer a:hover { color: var(--brass); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0 28px; }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; }
.newsletter { display: flex; gap: 8px; margin-top: 10px; }
.newsletter input { flex: 1; min-height: var(--tap); border-radius: 8px; border: 1px solid #5a4636; background: var(--wood-2); color: #fff; padding: 0 12px; font: inherit; min-width: 0; }
.newsletter button { min-height: var(--tap); border-radius: 8px; border: 0; background: var(--brass); color: var(--wood); font-weight: 700; padding: 0 14px; cursor: pointer; }
.withdraw { display: inline-flex !important; margin-top: 12px; border: 2px solid var(--brass); border-radius: 8px; padding: 0 14px; font-weight: 700; }
.foot-bottom { border-top: 1px solid #4a392c; padding: 16px 0 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }

@media (max-width: 1040px) {
  .hero-grid, .intro { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .filters .cols { grid-template-columns: 1fr; }
  .brand b { font-size: 1.4rem; }
}


/* Nur eine Zeile Karten: weitere Karten werden ausgeblendet, je nach Breite 1–4 sichtbar */
.cards.one-row { grid-template-rows: auto; grid-auto-rows: 0; row-gap: 0; overflow: hidden; }
.card .img img, .feature img { display: block; }

/* =========================================================
   Ergaenzungen fuer den echten Shop
   ========================================================= */

/* Seitenrahmen: Inhalt mittig begrenzt; Startseite/Shop nutzen volle Breite */
.page-main { display: block; max-width: var(--max); margin: 0 auto; padding: 28px 20px 40px; min-height: 50vh; }
body.page-wide .page-main { max-width: none; padding: 0; }
.page-main > table { width: 100%; }

/* Kopf: Konto-Menue rechtsbuendig, leerer Warenkorb ohne Zahl, Menue-Symbol wechselt */
.account-menu { position: relative; }
.sub.sub-right { left: auto; right: 0; min-width: 220px; }
.badge.is-empty { display: none; }
.menu-btn .i-close { display: none; }
body.nav-open .menu-btn .i-open { display: none; }
body.nav-open .menu-btn .i-close { display: inline; }
.main-nav .is-current > button { box-shadow: inset 0 -3px 0 var(--brass); border-radius: 8px 8px 0 0; }
.tools .tool[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--brass); }
.account-menu .sub a { color: var(--ink); display: flex; align-items: center; min-height: var(--tap); padding: 8px 12px; border-radius: 6px; text-decoration: none; }
.account-menu .sub a:hover { background: var(--bg); }
@media (max-width: 1040px) {
  .main-nav .is-current > button { box-shadow: inset 4px 0 0 var(--brass); border-radius: 8px; }
}

/* Fussbereich */
.foot-h { color: #fff; font-size: 1rem; font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 22px 0 8px; }
.foot-grid > div:not(:first-child) .foot-h { margin-top: 0; }
.site-footer p { margin: 0 0 12px; }
.foot-copy a { color: var(--on-wood-muted); text-decoration: underline; }
.btn-brass { background: var(--brass); color: var(--wood) !important; }
.btn-brass:hover { background: #fff; text-decoration: none !important; }

/* Hinweise oben (Fehler-/Infomeldungen) */
.notice { margin-top: 16px; margin-bottom: 0; padding: 12px 16px; border-radius: var(--radius); }
.notice-error { background: #fbe4e0; color: #7a1f12; }
.notice-info { background: #e8f1e4; color: #24451a; }
.notice-warning { background: #fff4d6; color: #5b4a12; }

/* Buttons aus tep_image_button / tep_image_submit */
.btn { font-family: var(--sans); line-height: 1.2; text-align: center; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: .9rem; }
button.btn { font: 600 1rem var(--sans); }
a .btn { text-decoration: none; }
a:hover .btn-primary { background: var(--brass); color: var(--wood); }
a:hover .btn-ghost { background: var(--wood); color: var(--on-wood); }

/* =========================================================
   Alte osCommerce-Klassen im neuen Stil
   (gleiche Spezifitaet wie stylesheet.css, gewinnt durch spaetere Ladung)
   ========================================================= */
BODY { background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
A { text-decoration: none; }
A:hover { text-decoration: underline; }
TD.main, P.main, .main { font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
TD.smallText, SPAN.smallText, P.smallText, .smallText { font-family: var(--sans); font-size: .9rem; }
TD.pageHeading, DIV.pageHeading {
  font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; color: var(--ink); line-height: 1.2; padding-bottom: 6px;
}
TD.header { font-family: var(--sans); font-size: 1rem; line-height: 1.6; text-align: left; }
.infoBox { background: transparent; }
TD.infoBox, SPAN.infoBox { font-family: var(--sans); font-size: 1rem; }
table.infoBox { background: var(--line); border-radius: var(--radius); }
.infoBoxContents { background: var(--surface); font-family: var(--sans); font-size: 1rem; }
.infoBoxHeading { background: var(--wood); color: var(--on-wood); font-family: var(--sans); font-size: .95rem; font-weight: 600; }
.infoBoxNotice { background: #fbe4e0; }
.infoBoxNoticeContents { background: #fff4f2; font-family: var(--sans); }
TABLE.productListing { border-collapse: collapse; }
.productListing-heading { background: var(--wood); color: var(--on-wood); font-family: var(--sans); font-size: .9rem; font-weight: 600; padding: 8px; }
TD.productListing-data { font-family: var(--sans); font-size: 1rem; padding: 8px; }
TR.accountHistory-odd, TR.addressBook-odd, TR.alsoPurchased-odd, TR.payment-odd, TR.productListing-odd, TR.productReviews-odd, TR.upcomingProducts-odd, TR.shippingOptions-odd { background: var(--surface); }
TR.accountHistory-even, TR.addressBook-even, TR.alsoPurchased-even, TR.payment-even, TR.productListing-even, TR.productReviews-even, TR.upcomingProducts-even, TR.shippingOptions-even { background: #faf7f1; }
.moduleRow, .moduleRowOver { cursor: pointer; }
.moduleRowOver { background: #f3ecdf; }
.moduleRowSelected { background: #efe2c6; }
TD.fieldKey, TD.fieldValue, TD.tableHeading, TD.accountCategory { font-family: var(--sans); font-size: 1rem; }
TD.tableHeading { font-weight: 700; }
SPAN.productSpecialPrice { color: var(--sale); font-weight: 700; }
SPAN.errorText, SPAN.markProductOutOfStock { color: var(--sale); font-family: var(--sans); }
.inputRequirement { color: var(--sale); font-family: var(--sans); font-size: .85rem; }
.checkoutBarFrom, .checkoutBarTo { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.checkoutBarCurrent { font-family: var(--sans); font-size: .85rem; color: var(--ink); font-weight: 700; }
.messageBox { font-family: var(--sans); font-size: 1rem; }
.messageStackError, .messageStackWarning { background: #fbe4e0; color: #7a1f12; font-family: var(--sans); font-size: 1rem; }
.messageStackSuccess { background: #e8f1e4; color: #24451a; font-family: var(--sans); font-size: 1rem; }
.prodText, .plainText { font-family: var(--sans); font-size: 1rem; line-height: 1.6; }

/* Formularfelder: gut bedienbar auf Tablets (16px verhindert Zoom auf iOS) */
CHECKBOX, INPUT, RADIO, SELECT, TEXTAREA { font-family: var(--sans); font-size: 16px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea {
  min-height: 40px; padding: 6px 10px; border: 1px solid #cfc4b2; border-radius: 8px; background: #fff; color: var(--ink); max-width: 100%;
}
textarea { min-height: 120px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--wood); vertical-align: middle; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(196,149,63,.45); outline-offset: 1px; border-color: var(--brass-ink); }

/* Inhalte aus der Datenbank/Infoseiten: Bilder und Tabellen nicht breiter als die Seite */
.page-main img { max-width: 100%; }
.page-main iframe, .page-main video { max-width: 100%; }

/* Honeypot-Felder (Spamschutz) bleiben IMMER unsichtbar – nicht entfernen */
.email2, td.email2, label.email2, input.email2 { display: none !important; }
TD.main_hidden { visibility: hidden; }

/* Startseite: Ticker-Leiste (TEXT_TICKER) und Kleinigkeiten */
.ticker-bar { background: var(--brass); }
.ticker-bar a { display: block; padding: 10px 0; color: var(--wood); font-weight: 700; text-align: center; text-decoration: none; }
.ticker-bar a:hover { text-decoration: underline; }
.cap-price { margin-top: 6px; }
.btn-on-dark { border-color: var(--on-wood); color: var(--on-wood); }
.btn-on-dark:hover { background: var(--on-wood); color: var(--wood); }
.feature .cap .muted { display: block; }

/* Shop */
.filters .close-row h2 { margin: 0; }
.tool-dark { color: var(--ink); }
.tool-dark:hover { background: var(--bg); color: var(--ink); }
.tool svg, .tool-dark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.filter-actions { margin-top: 0; }
body.js #filterApply { display: none; }           /* mit JavaScript wird sofort gefiltert */
.sort-label { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.sort-label select { width: auto; flex: 1; }

/* Produktseite */
.product-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.page-main h1.product-title { color: var(--ink); font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0; }
.page-main h1.product-title .smallText { font-family: var(--sans); color: var(--muted); }
.product-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 1.05rem; }
.product-price { font-size: 1.4rem; font-weight: 700; white-space: nowrap; }
.product-price s { font-size: 1rem; font-weight: 400; color: var(--muted); margin-right: 6px; }
.product-frame { display: block; width: 100%; border: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }

/* Reiter der aelteren Produktseiten (includes/modules/product_tabs.php, scr.js)
   Angelehnt an die neueren Beschreibungsseiten in documents/: Reiterleiste oben,
   aktiver Reiter geht in die weisse Inhaltsflaeche ueber, Inhalt max. 900px breit. */
.page-main .tabline { margin-bottom: 0; }
.page-main #mainnavtabbed1, .page-main #mainnav1 {
  list-style: none; margin: 0; padding: 6px 6px 0; display: flex; flex-wrap: wrap; gap: 4px;
  background: #ece5d8; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line);
}
.page-main #mainnavtabbed1 li, .page-main #mainnav1 li { float: none; width: auto; margin: 0; }
.page-main #mainnavtabbed1 li a, .page-main #mainnav1 li a,
.page-main #mainnavtabbed1 li a:hover, .page-main #mainnavtabbed1 li a.tabon, .page-main #mainnavtabbed1 li a.tabon:hover {
  display: flex; align-items: center; min-height: var(--tap); padding: 0 18px; margin-bottom: -1px;
  border: 1px solid transparent; border-radius: 8px 8px 0 0; background: transparent;
  color: var(--muted); font: 600 .95rem var(--sans); text-decoration: none;
}
.page-main #mainnavtabbed1 li a:hover { color: var(--ink); background: rgba(255,255,255,.55); }
.page-main #mainnavtabbed1 li a.tabon, .page-main #mainnavtabbed1 li a.tabon:hover {
  background: var(--surface); color: var(--ink); border-color: var(--line); border-bottom-color: var(--surface);
}
.page-main .tabline td[align=right] img { border-radius: 8px; margin: 0 0 8px auto; }
/* Inhalt der Reiter: weisse Flaeche, keine feste Hoehe mit eigenem Scrollbalken */
.page-main .tabcontent {
  height: auto !important; overflow: visible !important; clear: both;
  background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); padding: 28px max(20px, calc((100% - 900px) / 2)); font-size: 1rem; line-height: 1.6; color: #333;
}
.page-main .tabcontent > div:first-child { font: 600 1.5rem/1.3 var(--serif) !important; color: var(--ink); border-bottom: 0 !important; margin-bottom: 4px; }
.page-main .tabcontent h1, .page-main .tabcontent h2 { color: var(--ink); font-family: var(--serif); }
.page-main .tabcontent img { max-width: 100%; height: auto; border-radius: 6px; }
.page-main .tabcontent table { max-width: 100%; }
@media (max-width: 700px) {
  .page-main .tabline > tbody > tr > td { display: block; width: 100%; text-align: left; }
  .page-main .tabline td[align=right] img { margin: 10px 0 0; }
  .page-main .tabcontent { padding: 18px 16px; }
}
/* Neuere Produkte: Frame etwas hoeher, damit auf Tablets mehr Inhalt ohne Scrollen sichtbar ist */
.product-frame { min-height: 600px; height: min(85vh, 1000px); }
.page-main table.product-desc { background: transparent; border: 0; }

/* Handy: Kopfbereich kompakter, damit Logo, Sprache, Konto, Warenkorb und Menue in eine Zeile passen */
@media (max-width: 480px) {
  .header-row { gap: 8px; }
  .wrap { padding: 0 14px; }
  .brand b { font-size: 1.25rem; }
  .brand small { display: none; }
  .tools { gap: 0; }
  .tool { padding: 0 8px; min-width: 40px; }
  .lang { margin-right: 2px; }
  .lang a { padding: 0 7px; }
}

/* Handy: zweispaltige Formular-/Inhaltstabellen (40/60, 50/50) untereinander statt nebeneinander */
@media (max-width: 600px) {
  .page-main td[width="40%"], .page-main td[width="60%"], .page-main td[width="50%"] { display: block; width: 100% !important; }
  .page-main input[type=text], .page-main input[type=email], .page-main input[type=password], .page-main select, .page-main textarea { width: 100%; }
  .page-main textarea { min-width: 0; }
  .page-main td.main, .page-main td.smallText { word-break: break-word; }
}

/* Download-Uebersicht (sampleset_downloads.php): Liste + Details, auf schmalen Bildschirmen untereinander */
.dl-layout { display: flex; flex-wrap: wrap; gap: 20px; }
.dl-list { flex: 0 1 340px; min-width: 0; }
.dl-list ul { margin: 0; padding-left: 20px; }
.dl-detail { flex: 1 1 420px; min-width: 0; }
.dl-frame { display: block; width: 100%; border: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); min-height: 300px; }

/* =========================================================
   Saison-Dekoration Winter (nur aktiv mit body.season-winter, siehe index.php)
   - Schneefall per js/winter.js im Banner
   - Schneekante am unteren Bannerrand
   ========================================================= */
.season-winter .brand-band { position: relative; }
.season-winter .brand-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 16px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M-1 16V9C6 5 12 4 18 7S29 11 35 8S47 2 54 5S64 11 71 9S82 3 89 5S98 10 104 8S113 6 121 9V16Z' fill='%23fbfaf7'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 16px;
  filter: drop-shadow(0 -1px 1px rgba(255,255,255,.6)) drop-shadow(0 1px 1px rgba(43,32,25,.12));
}
.season-winter .snow-canvas { position: absolute; inset: 0; pointer-events: none; }

/* Lichterkette (js/winter.js) */
.season-winter .page-main { position: relative; }
.winter-lights { position: absolute; left: 0; z-index: 5; pointer-events: none; overflow: visible; }
.winter-lights .wire { fill: none; stroke: #23301f; stroke-width: 1.6; stroke-linecap: round; opacity: .85; }
.winter-lights .lit { animation-name: pl-blinken; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; }
@keyframes pl-blinken { from { opacity: 1; } to { opacity: .28; } }
@media (prefers-reduced-motion: reduce) { .winter-lights .lit { animation: none; } }

/* Weihnachtsbaum-Karte (24.12. 18 Uhr bis 26.12., includes/modules/weihnachtsbaum.php) */
.xmas-card { background: #2b2019; }
.xmas-card svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.xmas-card .cap { padding: 14px 20px 22px; text-align: center; }
.xmas-gruss {
  margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: .02em;
  background: linear-gradient(180deg, #f6e3a6 0%, #d8ae52 55%, #a97b2c 100%); -webkit-background-clip: text; background-clip: text; color: #d8ae52; -webkit-text-fill-color: transparent;
}
.xmas-licht { animation-name: pl-funkeln; animation-iteration-count: infinite; animation-direction: alternate; animation-timing-function: ease-in-out; }
@keyframes pl-funkeln { from { opacity: 1; } to { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .xmas-licht { animation: none; } }
/* Foto: ganzer Baum sichtbar (auch Hochformat), schwarzer Rand geht in den dunklen Fotohintergrund ueber */
.xmas-card.xmas-foto { background: #000; }
.xmas-foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #000; }

/* =========================================================
   Inhalte im Rahmen (sampleset_download_details.php, listen_details.php)
   – werden in Downloads, Anhoeren und den Beschreibungen der neueren Orgeln eingebettet
   ========================================================= */
body.frame-page { background: var(--surface); color: var(--ink); font: 16px/1.6 var(--sans); margin: 0; padding: 16px 20px 20px; }
.frame-page > table { width: 100%; }
.frame-page .Head_0, .frame-page .Head_1 { font: 600 1.25rem/1.3 var(--serif); color: var(--ink); margin: 18px 0 8px; padding: 0; background: none; border: 0; }
.frame-page .Head_0:first-child, .frame-page .Head_1:first-child { margin-top: 0; }
.frame-page p, .frame-page .plainText, .frame-page td, .frame-page .main { font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--ink); }
.frame-page a { color: var(--brass-ink); }
.frame-page a:hover { color: var(--ink); }
.frame-page table { border-collapse: collapse; max-width: 100%; }
.frame-page table[width="100%"] td { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.frame-page table[width="100%"] tr:first-child td { font-weight: 700; color: var(--muted); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.frame-page button, .frame-page .switchToHW4, .frame-page .switchToHW5 {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; margin-top: 6px;
  border: 2px solid var(--wood); border-radius: 99px; background: transparent; color: var(--wood);
  font: 600 .95rem var(--sans); cursor: pointer;
}
.frame-page button:hover { background: var(--wood); color: var(--on-wood); }
/* Videos der Klangbeispiele */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 20px 24px; margin: 8px 0 18px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { font-weight: 700; margin-top: 8px; }
.video-text { color: var(--muted); font-size: .95rem; }
