/* ==========================================================================
   ON) Kondome – www.oncondoms.com
   Ein Stylesheet für alle Seiten. Mobile-first, ohne Framework.
   Aufbau: 1 Fonts · 2 Tokens · 3 Basis · 4 Layout · 5 Komponenten
           6 Sektionen · 7 Rechtsseiten · 8 Animation · 9 Breakpoints
   ========================================================================== */

/* 1 · Fonts (selbst gehostet, OFL – keine Requests an Dritte, DSGVO) ----- */
@font-face { font-family: "Unbounded"; font-weight: 400; font-display: swap; src: url("../fonts/unbounded-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* 2 · Design-Tokens ------------------------------------------------------ */
:root {
  color-scheme: light;

  /* Markenblau aus den Bannern (#007AEE) + dunklere Stufen für AA-Kontrast.
     Weiß auf --blue erreicht nur ~4.2:1 → nur für große Schrift/Flächen. */
  --blue: #007aee;
  --blue-600: #0a5fd0;      /* Buttons, Links auf Weiß (≥ 5:1) */
  --blue-800: #0a3a8f;      /* Hero-Verlauf dunkel */
  --blue-50: #eef5ff;
  --ink: #0b1f4b;           /* Fließtext auf Weiß (≈ 15:1) */
  --ink-soft: #3d4f75;      /* Sekundärtext auf Weiß (≈ 8:1) */
  --line: #d9e3f3;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --todo: #ffe45c;          /* Markierung offener Punkte – vor Livegang entfernen */

  /* Pantone-Näherungen (Farben Pantone.txt) – GENÄHERT, gegen Styleguide prüfen */
  --p-natural: #00a3e0;     /* Pantone 299 C  · Natural Feeling */
  --p-superthin: #ba0c2f;   /* Pantone 200 C  · Super Thin */
  --p-stimulation: #ff8200; /* Pantone 151 C  · Stimulation */
  --p-xl: #6d2077;          /* Pantone 259 C  · Extra Groß */
  --p-fruit: #78be20;       /* Pantone 368 C  · Fruit & Color */

  /* ONsize-Größen – aus den Packshots abgetastet, Pantone laut Liste daneben */
  --s-47: #00cbde;  /* 2201 C */
  --s-49: #00c9bf;  /* 3275 C */
  --s-53: #00c800;  /* 2271 C */
  --s-57: #a7d900;  /* 375 C  */
  --s-60: #e6ad00;  /* 7549 C */
  --s-64: #ea8700;  /* 2013 C */
  --s-69: #e8002b;  /* 185 C  */
  --s-72: #e700a0;  /* 2395 C */

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgb(11 31 75 / .25);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
}

/* 3 · Basis -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-underline-offset: .18em; }
a:hover { color: var(--blue-800); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; hyphens: auto; overflow-wrap: break-word; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.5em; height: 1.5em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* Offene Punkte sichtbar markieren (Suche im Code: "todo") */
.todo { background: var(--todo); color: #3a2e00; font: 600 .78rem/1.4 var(--font-body); padding: .1em .45em; border-radius: 4px; white-space: normal; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* 4 · Layout ------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--soft { background: var(--bg-soft); }
.section__intro { max-width: 46rem; margin-bottom: clamp(28px, 5vw, 48px); }
.section__intro p { color: var(--ink-soft); font-size: 1.125rem; }
.eyebrow { display: inline-block; font: 700 .8rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 1rem; }
.grid { display: grid; gap: clamp(16px, 2.5vw, 24px); }

/* 5 · Komponenten -------------------------------------------------------- */

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
/* ONsize-Logo (Ringe + Wortmarke nebeneinander): Markenblau im Header, weiß im Footer */
.logo, .logo:hover { display: inline-flex; align-items: center; gap: .55rem; color: var(--blue); text-decoration: none; }
.logo__rings { width: 42px; height: 42px; }
.logo__word { width: 88px; height: 22px; }

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__list a { display: block; padding: .5em .8em; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav__list a:hover { background: var(--blue-50); }
.lang { display: flex; gap: 2px; margin-left: 8px; font-weight: 600; font-size: .9rem; }
.lang a, .lang span { padding: .35em .55em; border-radius: 8px; text-decoration: none; }
.lang [aria-current] { background: var(--ink); color: #fff; }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 700 .95rem/1 var(--font-display); text-decoration: none; letter-spacing: .02em;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--blue-800); }
.btn--light:hover { color: var(--blue-800); background: var(--blue-50); }
.btn--ghost { border-color: rgb(255 255 255 / .8); color: #fff; }
.btn--ghost:hover { color: #fff; background: rgb(255 255 255 / .12); }

/* Karten */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); }

/* 6 · Sektionen ---------------------------------------------------------- */

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 50% at 85% 10%, rgb(0 163 224 / .55), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgb(231 0 160 / .25), transparent 70%),
    linear-gradient(165deg, var(--blue-800) 0%, #0b56c4 50%, var(--blue) 100%);
  padding-top: clamp(56px, 10vw, 120px);
}
.hero__content { position: relative; z-index: 1; max-width: 44rem; }
.hero h1 { font-size: clamp(2.8rem, 11vw, 6.2rem); letter-spacing: -.02em; margin-bottom: .3em; }
.hero h1 span { display: block; font-weight: 400; font-size: .32em; letter-spacing: .08em; margin-bottom: .6em; }
.hero__lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 34rem; margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { margin-top: clamp(32px, 6vw, 56px); }
.hero__visual img { width: 100%; max-width: 980px; margin-inline: auto; } /* freigestellt, mit Schatten */
/* dekoratives Motiv: Original-Bildmarke mit Ringen (assets/img/logo-rings-white.svg) */
.hero__rings { position: absolute; width: clamp(300px, 48vw, 620px); height: auto; right: clamp(-160px, -8vw, -60px); top: clamp(-80px, -4vw, -20px); opacity: .16; pointer-events: none; }

/* Markenstory */
.story__grid { grid-template-columns: 1fr; }
.story-card { position: relative; overflow: hidden; }
.story-card h3 { font-size: 1.35rem; text-transform: uppercase; }
.story-card p { color: var(--ink-soft); margin: 0; }
.story-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--accent, var(--blue)); }
.statement {
  margin: clamp(32px, 5vw, 56px) 0 0; padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius); background: var(--ink); color: #fff;
  font: 700 clamp(1.2rem, 3vw, 1.8rem)/1.35 var(--font-display);
}
.statement footer { margin-top: .8em; font: 600 .95rem/1.4 var(--font-body); color: #c9d6f2; }

/* Sortiment – Tabs (ohne JS: alle Panels untereinander sichtbar) */
.tabs__list { display: none; }
.js .tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs__tab {
  border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  padding: .7em 1.2em; border-radius: 999px; font: 700 .9rem/1 var(--font-display);
}
.tabs__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs__panel + .tabs__panel { margin-top: 32px; }
.js .tabs__panel + .tabs__panel { margin-top: 0; }
.line { overflow: hidden; padding: 0; }
.line__media { background: var(--blue); }
.line__media img { width: 100%; }
.line__body { padding: clamp(20px, 3vw, 32px); }
.line__body > p { color: var(--ink-soft); }
.line__title { font-size: 1.5rem; }
.line__title small { font: 400 .95rem/1 var(--font-body); color: var(--ink-soft); margin-left: .4em; text-transform: none; }
.products { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.product { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.product__icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--c, var(--ink)); color: #fff; }
.product__pack { width: 72px; flex: none; margin: -6px 0 -6px -4px; } /* 3er-Packshot statt Icon, wo vorhanden */
.product h4 { margin: 0 0 .2em; font: 700 1rem/1.3 var(--font-display); }
.product p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.product .product__packs { margin-top: .35em; font-size: .85rem; font-weight: 600; color: var(--ink); }
.product ul { margin: .4em 0 0; padding-left: 1.1em; font-size: .9rem; color: var(--ink-soft); }

/* ONsize (Logo ersetzt hier das Eyebrow, Quelle input/RS_ONSIZE.svg) */
.onsize__logo { width: clamp(80px, 12vw, 112px); margin-bottom: 1.25rem; }
.onsize__packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 32px; }
.onsize__packs figure {
  margin: 0; padding: 10px 8px 8px; text-align: center; background: #fff;
  border-radius: var(--radius-sm); border: 2px solid var(--line); transition: border-color .3s ease, transform .3s ease;
}
.onsize__packs img { width: 100%; max-width: 140px; margin-inline: auto; }
.onsize__packs figcaption { margin-top: 6px; font: 700 .95rem/1 var(--font-display); }
/* vom Größenfinder markiert (main.js) */
.onsize__packs figure.is-match { border-color: var(--c); transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .onsize__packs figure.is-match { transform: none; } }
.onsize__facts { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.onsize__facts li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5em 1em; font-weight: 600; font-size: .95rem; }
.finder { display: grid; gap: 24px; align-items: center; }
.finder__label { font-weight: 600; margin: 0 0 .6em; }
.finder input[type="range"] { width: 100%; accent-color: var(--blue-600); height: 32px; }
.finder__hint { margin: .8em 0 0; color: var(--ink-soft); font-size: .95rem; }
.finder__scale { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-soft); }
.finder__result { text-align: center; }
.finder__badge {
  display: inline-grid; place-items: center; width: 132px; height: 132px; border-radius: 50%;
  background: #fff; border: 12px solid var(--c, var(--blue)); color: var(--ink);
  font: 700 2.4rem/1 var(--font-display); transition: border-color .3s ease;
}
.finder__badge small { display: block; font: 600 .8rem/1 var(--font-body); margin-top: -1.6em; }
.finder__text { margin-top: 12px; font-weight: 600; min-height: 3.3em; }
.sizes { width: 100%; border-collapse: collapse; margin-top: 32px; background: #fff; border-radius: var(--radius-sm); overflow: hidden; font-size: .95rem; }
.sizes caption { text-align: left; font-weight: 600; padding-bottom: .6em; }
.sizes th, .sizes td { padding: .7em .9em; border-bottom: 1px solid var(--line); text-align: left; }
.sizes tbody th { white-space: nowrap; }
@media (max-width: 479px) { .sizes th, .sizes td { padding: .6em .45em; font-size: .9rem; } }
.sizes thead th { background: var(--ink); color: #fff; font-weight: 600; }
.sizes tr.is-match td, .sizes tr.is-match th { background: var(--blue-50); }
.size-dot { display: inline-block; width: .9em; height: .9em; border-radius: 50%; background: var(--c); vertical-align: -.1em; margin-right: .5em; }

/* Material & Qualität */
.quality__grid { grid-template-columns: 1fr; }
.fact { display: flex; gap: 16px; }
.fact .icon { width: 40px; height: 40px; color: var(--blue-600); }
.fact > div { min-width: 0; }
.fact h3 { margin-bottom: .3em; }
.fact p { margin: 0; color: var(--ink-soft); }
.legal-note { margin-top: 28px; padding: 20px 24px; border-radius: var(--radius-sm); border: 1px dashed var(--ink-soft); color: var(--ink-soft); font-size: .95rem; }
.legal-note strong { color: var(--ink); }

/* Anwendung */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.steps li { counter-increment: step; position: relative; padding: 24px; }
.steps li::before {
  content: counter(step); margin-bottom: 14px;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-600); color: #fff; font: 700 1.1rem/1 var(--font-display);
}
.steps h3 { font-size: 1rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 0; font: 700 1.02rem/1.4 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; transition: transform .25s ease; color: var(--blue-600); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding-bottom: 20px; color: var(--ink-soft); }
.faq details > div p:last-child { margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d6f2; padding-block: 56px 32px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .logo, .site-footer .logo:hover { color: #fff; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer__grid h2 { font-size: .85rem; letter-spacing: .1em; color: #fff; margin-bottom: 1em; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4em; }
.footer__grid address { font-style: normal; }
.footer__claim { margin: 1em 0 0; font: 700 1rem/1 var(--font-display); color: #fff; }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* 7 · Rechtsseiten ------------------------------------------------------- */
.legal { max-width: 48rem; padding-block: clamp(40px, 7vw, 80px); }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); text-transform: uppercase; }
.legal h2 { font-size: 1.2rem; text-transform: none; margin-top: 2em; }
.legal address { font-style: normal; }
.legal .draft { padding: 14px 18px; border-radius: var(--radius-sm); background: #fff6c7; border: 1px solid #e8cf55; color: #3a2e00; }

/* 8 · Animation (dezent, respektiert reduzierte Bewegung) --------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 9 · Breakpoints -------------------------------------------------------- */

/* Mobile-Navigation (nur mit JS; ohne JS bleibt die Liste sichtbar und scrollt) */
@media (max-width: 899px) {
  .nav__list { overflow-x: auto; }
  .js .nav-toggle {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--blue-50); color: var(--ink); cursor: pointer;
  }
  .js .nav { position: fixed; inset: var(--header-h) 0 auto; background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; display: none; }
  .js .nav.is-open { display: block; }
  .js .nav__list { flex-direction: column; }
  .js .nav__list a { padding: .8em .6em; font-size: 1.05rem; }
  .nav { margin-left: auto; min-width: 0; }
  .js .nav { margin-left: 0; }
  .js .lang { margin-left: 8px; }
}

@media (min-width: 640px) {
  .story__grid { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .quality__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .nav-toggle { display: none !important; }
  .finder { grid-template-columns: 1.4fr 1fr; }
  .onsize__packs { grid-template-columns: repeat(8, 1fr); }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (min-width: 1100px) {
  .story__grid { grid-template-columns: repeat(4, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .products--4 { grid-template-columns: repeat(4, 1fr); }
  .products--4 .product { padding: 14px; gap: 12px; }
  .products--4 .product__pack { width: 60px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.lang--push { margin-left: auto !important; }
