/* R&S consumer goods – static site stylesheet
   Clean theme on white. Colours: MY.SIZE navy brand (#103b5e) with light-blue tints from mysize.de. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #2b2b2b;
  --muted: #5b6770;
  --brand: #103b5e;          /* MY.SIZE navy */
  --brand-dark: #0a2a45;
  --accent: #3a8fc0;          /* decorative only – too light for body text on white */
  --blush: #e8f2f7;          /* light blue tint (mysize.de uses #d0e6ef) */
  --line: #d9e7ef;
  --radius: 12px;
  --shadow: 0 1px 3px rgb(16 59 94 / .06), 0 4px 16px rgb(16 59 94 / .08);
  --shadow-hover: 0 8px 24px rgb(16 59 94 / .18);
  --max: 1140px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* brand card colours */
  --mysize: #103b5e;
  --vitalis: #05070a;
  --on: #2b2b2b;
  /* ON product lines (Pantone C → sRGB) */
  --on-xl: #6d2077;        /* Extra Large      259 C */
  --on-fruit: #78be20;     /* Fruit and Color  368 C */
  --on-natural: #00a3e0;   /* Natural          299 C */
  --on-stim: #ff8200;      /* Stimulation      151 C */
  --on-thin: #ba0c2f;      /* Superthin        200 C */
  --on-band: linear-gradient(90deg,
      var(--on-xl) 0 20%, var(--on-fruit) 0 40%, var(--on-natural) 0 60%, var(--on-stim) 0 80%, var(--on-thin) 0);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); font-weight: 800; color: var(--brand); }
h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; color: var(--brand); margin-top: 1.6em; }
h4 { font-size: 1.1rem; font-weight: 700; }
p, ul, dl { margin: 0 0 1rem; }
strong { font-weight: 800; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.lead { font-size: 1.15rem; font-weight: 700; color: var(--brand); }
.eyebrow {
  margin: 0 0 .3rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.prose { max-width: 70ch; }
.prose h3:first-child { margin-top: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / .94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo { display: block; flex: 0 0 auto; line-height: 0; }
.logo-mark {
  display: block;
  width: 93px;
  height: 72px;
  background: var(--brand);              /* the grey logo shape, drawn in the brand colour */
  -webkit-mask: url("../img/layout/logo.png") center / contain no-repeat;
          mask: url("../img/layout/logo.png") center / contain no-repeat;
}
.logo:hover .logo-mark { background: var(--brand-dark); }

.main-nav { flex: 1; display: flex; justify-content: flex-end; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 -3px 0 transparent;
  transition: background .15s, box-shadow .15s;
}
.main-nav a:hover { background: var(--blush); color: var(--brand); }
.main-nav a[aria-current] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }

.topbar { background: var(--blush); border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.badge {
  padding: 2px 12px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}
.lang { display: flex; gap: 8px; }
.lang a { display: block; line-height: 0; padding: 3px; border-radius: 4px; opacity: .5; transition: opacity .15s; }
.lang a img { border-radius: 2px; }
.lang a:hover, .lang a[aria-current] { opacity: 1; }
.lang a[aria-current] { box-shadow: 0 0 0 2px var(--accent); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button { display: none; }

/* ---------- main ---------- */
.content {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 72px;
}

/* buttons */
.button {
  display: inline-block;
  padding: .7em 1.4em;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.button-outline { background: transparent; color: var(--brand); }
.button-outline:hover { background: var(--blush); color: var(--brand-dark); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

/* home hero */
.hero {
  position: relative;
  margin: -16px 0 56px;
  padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: calc(var(--radius) * 2);
  background:
    radial-gradient(circle at 90% 10%, rgb(58 143 192 / .22), transparent 45%),
    linear-gradient(135deg, var(--blush), var(--surface));
  overflow: hidden;
}
.hero::after {                           /* large, faint R&S mark as decoration */
  content: "";
  position: absolute;
  right: clamp(24px, 6vw, 80px);
  top: 50%;
  width: min(30vw, 320px);
  aspect-ratio: 232 / 180;
  transform: translateY(-50%) rotate(-8deg);
  background: var(--accent);
  opacity: .16;
  -webkit-mask: url("../img/layout/logo.png") center / contain no-repeat;
          mask: url("../img/layout/logo.png") center / contain no-repeat;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 20ch; margin-bottom: .4em; }
.hero .subtitle { margin: 0; color: var(--muted); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 700; }
.intro { margin-bottom: 56px; }

/* brand tiles (home) and brand cards */
.brand-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brand-tile, .brand-logo {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--tile);
}
.brand-tile { box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.brand-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.brand-tile img, .brand-logo img { display: block; max-height: 90px; width: auto; }
.brand-mysize {                          /* brighter than the site's navy so the card stands out */
  --tile:
    radial-gradient(circle at 15% 0%, rgb(208 230 239 / .45), transparent 55%),
    linear-gradient(140deg, #2f86c4, #1a5a8c 55%, var(--mysize));
}
.brand-tile.brand-mysize, .brand-card.brand-mysize { outline: 3px solid #a9d0e6; outline-offset: 3px; }   /* light-blue outline, MY.SIZE only */
.brand-tile.brand-mysize:focus-visible { outline-color: var(--accent); }
.brand-vitalis { --tile: radial-gradient(ellipse at 50% 120%, rgb(30 136 229 / .55), transparent 65%), var(--vitalis); }
.brand-on { --tile: linear-gradient(var(--on), var(--on)) padding-box; }
.brand-on.brand-tile, .brand-on .brand-logo { position: relative; overflow: hidden; }
.brand-on.brand-tile::after, .brand-on .brand-logo::after {   /* five-colour band of the ON product lines */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: var(--on-band);
}

.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.brand-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.brand-card .brand-logo { min-height: 180px; border-radius: 0; }
.on-lines { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: .4rem 0 0; }
.on-lines li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 12px 3px 8px;
  border-radius: 999px;
  background: var(--blush);
  font-size: .9rem;
  font-weight: 700;
}
.on-lines li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.brand-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 28px; }
.brand-body h2 { margin-bottom: .2em; }
.tagline { color: var(--brand); font-weight: 800; letter-spacing: .04em; }
.card-action { margin: auto 0 0; padding-top: .5rem; }

/* quality facts */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 8px 0 48px; }
.fact {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--accent);
}
.fact strong { display: block; color: var(--brand); font-size: 1.5rem; line-height: 1.2; }
.fact span { color: var(--muted); font-weight: 600; }
.claim {
  margin-top: 2rem;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: var(--blush);
  color: var(--brand);
  font-weight: 800;
}

/* cards: dealer page columns, imprint */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-2 > div, .card {
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.grid-2 > div > h3:first-child, .card > h2:first-child { margin-top: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.card h2 { font-size: 1.2rem; color: var(--brand); }
dl { display: grid; gap: 2px; }
dt { color: var(--muted); font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
dd { margin: 0 0 .8rem; font-weight: 600; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.5em; margin-bottom: .3em; }
.checklist li::before {
  content: "";
  position: absolute;
  left: .2em;
  top: .55em;
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: var(--accent);
}

/* legal page lists */
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { background: var(--brand); color: #e3eff6; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
}
.footer-nav { display: flex; gap: 24px; align-items: flex-start; font-weight: 700; }
.footer-copy {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px 28px;
  border-top: 1px solid rgb(255 255 255 / .15);
  color: #b9d3e3;
  font-size: .85rem;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .brand-grid, .card-grid { grid-template-columns: 1fr; }
  .brand-card { flex-direction: row; }
  .brand-card .brand-logo { flex: 0 0 38%; min-height: 0; }
}

/* burger menu below 1080px – the Spanish menu labels need the room */
@media (max-width: 1080px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 8px 16px; }
  .logo-mark { width: 72px; height: 56px; }
  .topbar-inner { padding: 4px 16px; }
  .nav-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    margin-left: auto;
  }
  .nav-button:hover { background: var(--blush); }
  .nav-button span, .nav-button span::before, .nav-button span::after {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--brand);
    position: relative;
    transition: transform .2s, background .2s;
  }
  .nav-button span::before, .nav-button span::after { content: ""; position: absolute; left: 0; }
  .nav-button span::before { top: -7px; }
  .nav-button span::after { top: 7px; }
  .nav-toggle:checked + .nav-button span { background: transparent; }
  .nav-toggle:checked + .nav-button span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-button span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:focus-visible + .nav-button { outline: 3px solid var(--accent); }

  .main-nav { display: none; flex-basis: 100%; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; padding: 4px 0 10px; }
  .main-nav a { padding: 12px; }
  .main-nav a[aria-current] { box-shadow: inset 4px 0 0 var(--accent); border-radius: 0 8px 8px 0; }
}

@media (max-width: 900px) {
  .hero::after { display: none; }
  .facts { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .content { padding: 28px 16px 56px; }
  .hero { margin: -4px -4px 40px; }
  .brand-tiles { grid-template-columns: 1fr; }
  .brand-tile { min-height: 110px; }
  .brand-card { flex-direction: column; }
  .brand-card .brand-logo { flex: none; min-height: 140px; }   /* reset the 38% basis from the tablet layout */
  .grid-2 > div, .card { padding: 22px 20px; }
  .footer-inner { padding: 28px 16px 16px; }
  .footer-copy { padding: 12px 16px 24px; }
}

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

@media print {
  body { background: #fff; }
  .site-header { position: static; box-shadow: none; }
  .main-nav, .nav-button, .topbar, .buttons, .card-action, .hero::after { display: none; }
  .hero { background: none; padding: 0; }
  .brand-card, .fact, .card, .grid-2 > div { box-shadow: none; border: 1px solid #ccc; }
  .site-footer { background: none; color: #000; }
  .site-footer a { color: #000; }
}
