/*
Theme Name: Radwerk Saar
Description: Premium, conversion-focused closing-sale website for Radwerk Saar.
Version: 1.7
Text Domain: radwerk-saar
*/

:root {
  --rw-ink: #151515;
  --rw-ink-2: #222222;
  --rw-muted: #66665f;
  --rw-paper: #ffffff;
  --rw-soft: #f4f3ef;
  --rw-line: #e5e3dd;
  --rw-orange: #f46a1a;
  --rw-orange-dark: #d95508;
  --rw-orange-soft: #fff0e7;
  --rw-radius: 20px;
  --rw-container: 1180px;
  --rw-shadow: 0 18px 50px rgba(18, 18, 18, .08);
  --rw-shadow-hover: 0 26px 70px rgba(18, 18, 18, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--rw-ink);
  background: var(--rw-paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.rw-modal-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.rw-container { width: min(calc(100% - 48px), var(--rw-container)); margin-inline: auto; }

.rw-sale-bar { background: var(--rw-ink); color: #fff; font-size: 12px; letter-spacing: .02em; }
.rw-sale-bar__inner { min-height: 34px; display:flex; justify-content:space-between; align-items:center; gap:20px; }
.rw-sale-bar strong { color: #ff9a63; }

.rw-header { position: sticky; top:0; z-index:40; background:rgba(255,255,255,.94); border-bottom:1px solid rgba(21,21,21,.08); backdrop-filter:blur(18px); }
.rw-header__inner { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.rw-logo { width:104px; display:block; }
.rw-logo img { width:100%; height:auto; }
.rw-nav { display:flex; align-items:center; gap:28px; font-weight:700; font-size:14px; }
.rw-nav a:not(.rw-button) { text-decoration:none; }
.rw-nav a:not(.rw-button):hover { color:var(--rw-orange-dark); }

.rw-button { min-height:50px; padding:0 22px; border:1px solid var(--rw-orange); border-radius:999px; display:inline-flex; align-items:center; justify-content:center; gap:9px; background:var(--rw-orange); color:#fff; text-decoration:none; font-size:14px; font-weight:800; letter-spacing:.01em; box-shadow:0 7px 18px rgba(244,106,26,.18); transition:transform .18s ease, background .18s ease, box-shadow .18s ease; }
.rw-button:hover { transform:translateY(-2px); background:var(--rw-orange-dark); border-color:var(--rw-orange-dark); box-shadow:0 12px 24px rgba(244,106,26,.24); }
.rw-button--dark { background:var(--rw-ink); border-color:var(--rw-ink); box-shadow:none; }
.rw-button--dark:hover { background:#000; border-color:#000; box-shadow:0 12px 24px rgba(0,0,0,.18); }
.rw-button--ghost { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.7); color:#fff; box-shadow:none; }
.rw-button--ghost:hover { background:#fff; color:var(--rw-ink); border-color:#fff; }
.rw-button--small { min-height:44px; padding-inline:18px; }
.rw-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }

.rw-hero { min-height:690px; position:relative; display:grid; align-items:end; overflow:hidden; color:#fff; background:#171717; }
.rw-hero__media { position:absolute; inset:0; background-size:cover; background-position:center 58%; transform:scale(1.015); }
.rw-hero__overlay { position:absolute; inset:0; background:linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.48) 48%, rgba(0,0,0,.18) 100%), linear-gradient(0deg, rgba(0,0,0,.58), transparent 55%); }
.rw-hero__content { position:relative; z-index:1; padding:118px 0 92px; max-width:850px; }
.rw-eyebrow { margin:0 0 15px; color:var(--rw-orange); font-size:12px; line-height:1.2; font-weight:900; text-transform:uppercase; letter-spacing:.16em; }
.rw-hero h1 { margin:0; max-width:760px; font-size:clamp(4rem,8vw,7rem); line-height:.86; letter-spacing:-.065em; text-transform:uppercase; font-weight:900; }
.rw-hero__lead { max-width:680px; margin:30px 0 32px; font-size:clamp(18px,2vw,22px); line-height:1.5; color:rgba(255,255,255,.94); }

.rw-proof { position:relative; z-index:3; margin-top:-1px; background:#fff; border-bottom:1px solid var(--rw-line); }
.rw-proof__grid { display:grid; grid-template-columns:repeat(3,1fr); }
.rw-proof__item { min-height:104px; display:flex; align-items:center; gap:15px; padding:20px 30px; border-right:1px solid var(--rw-line); }
.rw-proof__item:last-child { border-right:0; }
.rw-proof__icon { flex:0 0 38px; width:38px; height:38px; display:grid; place-items:center; border:1px solid #d8d5cf; border-radius:50%; color:var(--rw-orange-dark); font-size:11px; font-weight:900; }
.rw-proof strong { display:block; font-size:14px; line-height:1.2; }
.rw-proof span:not(.rw-proof__icon) { display:block; margin-top:4px; color:var(--rw-muted); font-size:13px; line-height:1.35; }

.rw-section { padding:112px 0; }
.rw-section--story { background:#fff; }
.rw-section--grey { background:var(--rw-soft); }
.rw-story { display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); gap:80px; align-items:center; }
.rw-story h2, .rw-contact h2 { margin:0 0 22px; max-width:700px; font-size:clamp(2.8rem,5vw,5rem); line-height:.95; letter-spacing:-.06em; font-weight:850; }
.rw-story p { max-width:620px; margin:0 0 18px; color:var(--rw-muted); font-size:17px; }
.rw-story strong { color:var(--rw-ink); }
.rw-story__image { border-radius:var(--rw-radius); overflow:hidden; box-shadow:var(--rw-shadow); }
.rw-story__image img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.rw-text-link { display:inline-flex; align-items:center; gap:8px; color:var(--rw-ink); text-decoration:none; font-weight:800; font-size:14px; }
.rw-text-link:hover { color:var(--rw-orange-dark); }

.rw-section__intro { max-width:760px; margin-bottom:46px; }
.rw-section h2 { margin:0 0 16px; font-size:clamp(2.8rem,5vw,5rem); line-height:.92; letter-spacing:-.06em; font-weight:850; }
.rw-section__intro > p:last-child { margin:0; color:var(--rw-muted); font-size:17px; }
.rw-section__intro strong { color:var(--rw-ink); }
.rw-offers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.rw-card { min-width:0; background:#fff; border:1px solid var(--rw-line); border-radius:var(--rw-radius); overflow:hidden; display:flex; flex-direction:column; cursor:pointer; box-shadow:0 4px 18px rgba(20,20,20,.04); transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.rw-card:hover, .rw-card:focus-visible { transform:translateY(-5px); box-shadow:var(--rw-shadow-hover); border-color:#d6d2ca; outline:none; }
.rw-card__image { position:relative; aspect-ratio:4/3; overflow:hidden; background:#eceae5; }
.rw-card__image img { width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.rw-card:hover .rw-card__image img { transform:scale(1.035); }
.rw-card__hint { position:absolute; left:16px; bottom:16px; padding:7px 11px; border-radius:999px; background:rgba(21,21,21,.9); color:#fff; font-size:11px; font-weight:800; opacity:0; transform:translateY(4px); transition:opacity .18s ease, transform .18s ease; }
.rw-card:hover .rw-card__hint, .rw-card:focus-visible .rw-card__hint { opacity:1; transform:none; }
.rw-card__body { min-width:0; padding:22px 22px 20px; display:flex; flex-direction:column; flex:1; }
.rw-card__topline { min-height:26px; display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.rw-badge { width:fit-content; padding:6px 9px; border-radius:999px; background:var(--rw-orange-soft); color:var(--rw-orange-dark); font-size:10px; line-height:1; font-weight:900; text-transform:uppercase; letter-spacing:.05em; }
.rw-badge--reserved { background:#ececeb; color:#444; }
.rw-discount { color:var(--rw-orange-dark); font-size:12px; font-weight:900; }
.rw-card__title { margin:0 0 7px; font-size:20px; line-height:1.12; letter-spacing:-.025em; font-weight:800; }
.rw-card__description { display:block; width:100%; height:20px; min-height:20px; max-height:20px; overflow:hidden; margin:0 0 18px; color:var(--rw-muted); font-size:13px; line-height:20px; }
.rw-card__description p { display:none; }
.rw-card__description p:first-child { display:block; width:100%; height:20px; margin:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; line-height:20px; }
.rw-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:9px; margin-top:auto; }
.rw-price__sale { font-size:26px; line-height:1; font-weight:900; letter-spacing:-.035em; }
.rw-price__old { color:#8a8984; font-size:12px; text-decoration:line-through; }
.rw-card__action { margin-top:15px; color:#77756f; font-size:12px; font-weight:800; }
.rw-card__ebay { width:100%; min-height:44px; margin-top:15px; font-size:13px; }
.rw-js .rw-card.is-load-hidden { display:none; }
.rw-offers__more { display:none; flex-direction:column; align-items:center; justify-content:center; gap:10px; margin-top:38px; text-align:center; }
.rw-js .rw-offers__more { display:flex; }
.rw-load-more { min-width:250px; }
.rw-offers__count { margin:0; color:var(--rw-muted); font-size:13px; }

.rw-contact { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:84px; align-items:center; }
.rw-contact__image { overflow:hidden; border-radius:var(--rw-radius); box-shadow:var(--rw-shadow); }
.rw-contact__image img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.rw-contact__details { display:grid; gap:18px; }
.rw-contact__item { padding-bottom:17px; border-bottom:1px solid var(--rw-line); }
.rw-contact__item:last-of-type { border-bottom:0; }
.rw-contact__item strong { display:block; margin-bottom:3px; font-size:13px; text-transform:uppercase; letter-spacing:.08em; }
.rw-contact__item span, .rw-contact__item a { color:var(--rw-muted); font-size:16px; line-height:1.55; text-decoration:none; }
.rw-contact__item a:hover { color:var(--rw-orange-dark); }
.rw-actions--contact { margin-top:5px; }

.rw-cta { padding:92px 0; background:var(--rw-ink); color:#fff; }
.rw-cta__inner { display:flex; align-items:flex-end; justify-content:space-between; gap:60px; }
.rw-cta h2 { max-width:760px; margin:0 0 18px; font-size:clamp(3rem,6vw,5.8rem); line-height:.9; letter-spacing:-.065em; font-weight:900; }
.rw-cta p { max-width:700px; margin:0; color:rgba(255,255,255,.72); font-size:17px; }

.rw-footer { padding:28px 0; background:#0c0c0c; color:#fff; }
.rw-footer__inner { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; font-size:12px; color:rgba(255,255,255,.7); }
.rw-footer a { color:#fff; text-decoration:none; }

.rw-mobile-bar { display:none; }

/* Product detail modal */
.rw-modal { position:fixed; inset:0; z-index:100; display:none; }
.rw-modal.is-open { display:block; }
.rw-modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.74); }
.rw-modal__dialog { position:absolute; left:50%; top:50%; width:min(1080px,calc(100% - 40px)); max-height:min(850px,calc(100vh - 40px)); overflow:auto; transform:translate(-50%,-50%); display:grid; grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr); background:#fff; border-radius:24px; box-shadow:0 40px 100px rgba(0,0,0,.38); }
.rw-modal__close { position:absolute; top:14px; right:14px; z-index:5; width:44px; height:44px; border:0; border-radius:50%; background:rgba(21,21,21,.9); color:#fff; font-size:28px; line-height:1; cursor:pointer; }
.rw-modal__gallery { position:relative; min-width:0; width:100%; aspect-ratio:4/3; align-self:start; overflow:hidden; background:#f2f1ed; }
.rw-modal__track { display:flex; width:100%; height:100%; transition:transform .28s ease; }
.rw-modal__slide { flex:0 0 100%; min-width:0; width:100%; height:100%; display:flex; align-items:flex-start; justify-content:center; }
.rw-modal__slide img { display:block; width:100%; height:100%; object-fit:contain; object-position:center top; }
.rw-modal__arrow { position:absolute; top:50%; transform:translateY(-50%); width:48px; height:48px; border:1px solid rgba(255,255,255,.45); border-radius:50%; background:rgba(21,21,21,.82); color:#fff; font-size:34px; line-height:1; cursor:pointer; }
.rw-modal__arrow:hover { background:#000; }
.rw-modal__arrow--prev { left:18px; }
.rw-modal__arrow--next { right:18px; }
.rw-modal__dots { position:absolute; left:50%; bottom:16px; transform:translateX(-50%); display:flex; gap:7px; }
.rw-modal__dot { width:8px; height:8px; padding:0; border:0; border-radius:50%; background:rgba(255,255,255,.55); cursor:pointer; }
.rw-modal__dot.is-active { background:#fff; transform:scale(1.2); }
.rw-modal__counter { position:absolute; left:18px; bottom:15px; padding:6px 9px; border-radius:999px; background:rgba(21,21,21,.78); color:#fff; font-size:11px; font-weight:800; }
.rw-modal__content { padding:62px 46px 46px; display:flex; flex-direction:column; justify-content:center; }
.rw-modal__content h2 { margin:0 0 16px; font-size:clamp(2.3rem,4vw,4rem); line-height:.93; letter-spacing:-.06em; }
.rw-modal__content > p { margin:0 0 25px; color:var(--rw-muted); font-size:15px; white-space:pre-line; }
.rw-modal__content .rw-price { margin:0 0 7px; }
.rw-modal__content .rw-price__sale { font-size:34px; }
.rw-modal__saving { min-height:22px; margin-bottom:25px; color:var(--rw-orange-dark); font-size:13px; font-weight:800; }
.rw-modal__content .rw-button { width:100%; }
.rw-modal__route { justify-content:center; margin-top:16px; }
.rw-modal__empty { width:100%; min-height:350px; display:grid; place-items:center; color:var(--rw-muted); }

body.admin-bar .rw-header { top:32px; }

@media (max-width: 980px) {
  .rw-container { width:min(calc(100% - 36px),var(--rw-container)); }
  .rw-offers { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rw-story, .rw-contact { grid-template-columns:1fr; gap:42px; }
  .rw-contact { max-width:780px; }
  .rw-cta__inner { align-items:flex-start; flex-direction:column; }
  .rw-modal__dialog { grid-template-columns:1fr 1fr; }
}

@media (max-width: 700px) {
  html { scroll-padding-top:76px; }
  body.admin-bar .rw-header { top:46px; }
  .rw-container { width:min(calc(100% - 28px),var(--rw-container)); }
  .rw-sale-bar__inner { min-height:30px; font-size:10px; }
  .rw-sale-bar__inner span:last-child { display:none; }
  .rw-header__inner { min-height:72px; }
  .rw-logo { width:88px; }
  .rw-nav { gap:10px; }
  .rw-nav > a:not(.rw-button) { display:none; }
  .rw-nav .rw-button { min-height:40px; padding-inline:15px; font-size:12px; }
  .rw-hero { min-height:650px; }
  .rw-hero__media { background-position:62% center; }
  .rw-hero__content { padding:100px 0 82px; }
  .rw-hero h1 { font-size:clamp(3.6rem,18vw,5.5rem); }
  .rw-hero__lead { margin-top:24px; font-size:17px; }
  .rw-proof__grid { grid-template-columns:1fr; }
  .rw-proof__item { min-height:78px; padding:14px 0; border-right:0; border-bottom:1px solid var(--rw-line); }
  .rw-proof__item:last-child { border-bottom:0; }
  .rw-section { padding:78px 0; }
  .rw-story h2, .rw-contact h2, .rw-section h2 { font-size:clamp(2.7rem,13vw,4.4rem); }
  .rw-story p { font-size:16px; }
  .rw-offers { grid-template-columns:1fr; gap:18px; }
  .rw-offers__more { margin-top:30px; }
  .rw-load-more { width:100%; min-width:0; }
  .rw-card__body { padding:19px; }
  .rw-card__title { font-size:19px; }
  .rw-price__sale { font-size:24px; }
  .rw-card__hint { opacity:1; transform:none; }
  .rw-contact__details { gap:14px; }
  .rw-cta { padding:76px 0; }
  .rw-cta h2 { font-size:clamp(3rem,14vw,5rem); }
  .rw-mobile-bar { position:fixed; left:0; right:0; bottom:0; z-index:60; display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:9px 12px calc(9px + env(safe-area-inset-bottom)); background:rgba(255,255,255,.96); border-top:1px solid var(--rw-line); box-shadow:0 -10px 30px rgba(0,0,0,.08); backdrop-filter:blur(16px); }
  .rw-mobile-bar .rw-button { min-height:44px; box-shadow:none; }
  .rw-mobile-bar .rw-button--dark { background:var(--rw-ink); }

  .rw-modal__dialog { width:100%; height:100%; max-height:none; border-radius:0; grid-template-columns:1fr; overflow-y:auto; }
  .rw-modal__gallery { height:auto; aspect-ratio:4/3; overflow:hidden; }
  .rw-modal__track { overflow-x:auto; scroll-snap-type:x mandatory; transform:none !important; transition:none; scrollbar-width:none; }
  .rw-modal__track::-webkit-scrollbar { display:none; }
  .rw-modal__slide { flex:0 0 88%; scroll-snap-align:center; aspect-ratio:4/3; margin-right:8px; }
  .rw-modal__slide:first-child { margin-left:6%; }
  .rw-modal__arrow, .rw-modal__dots { display:none; }
  .rw-modal__counter { left:auto; right:16px; bottom:14px; }
  .rw-modal__content { padding:34px 22px 38px; }
  .rw-modal__content h2 { font-size:clamp(2.5rem,12vw,4rem); }
  .rw-modal__close { top:10px; right:10px; }
  .rw-modal__route { padding-bottom:20px; }
  body.rw-modal-open .rw-mobile-bar { display:none; }
  .rw-footer { padding-bottom:90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}
