/* ROCKVALID service pages · release 20261126-ui-polish-r3 */
:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-elevated: #071426;
  --panel: rgba(15, 23, 42, 0.9);
  --panel-solid: #0d172b;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.065);
  --border: rgba(148, 163, 184, 0.24);
  --border-soft: rgba(148, 163, 184, 0.14);
  --text: #f8fafc;
  --copy: #d9e3f0;
  --muted: #a8b4c6;
  --accent: #38bdf8;
  --accent-bright: #7dd3fc;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --success: #4ade80;
  --success-soft: rgba(74, 222, 128, 0.1);
  --warning: #facc15;
  --warning-soft: rgba(250, 204, 21, 0.09);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.09);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --content: 1080px;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 7%, rgba(56, 189, 248, 0.18), transparent 31rem),
    radial-gradient(circle at 90% 34%, rgba(14, 165, 233, 0.09), transparent 36rem),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.075) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
}

a {
  color: inherit;
}

a:hover {
  color: var(--accent-bright);
}

:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.95);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #062033;
  background: var(--accent-bright);
  font-weight: 850;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: 100%;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(2, 6, 23, 0.48);
  backdrop-filter: blur(18px);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  width: min(calc(100% - 40px), 1240px);
  min-height: 82px;
  margin: 0 auto;
  gap: 22px;
}

.brand,
.footer-brand {
  width: fit-content;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rockvalid-brandmark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.product-nav {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.product-nav a {
  min-height: 42px;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #e6eef8;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.product-nav a:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--text);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.language-control {
  display: grid;
  justify-self: end;
  width: min(190px, 100%);
  gap: 4px;
}

.language-control label {
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent-bright);
  border-bottom: 2px solid var(--accent-bright);
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.language-control select {
  color-scheme: dark;
  width: 100%;
  min-height: 43px;
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: #071426;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 720;
  appearance: none;
  cursor: pointer;
}

.language-control select option {
  color: #f8fafc;
  background: #071426;
}

.language-control select option:checked {
  color: #ffffff;
  background: #15415b;
}

.language-control select:hover {
  border-color: rgba(56, 189, 248, 0.55);
}

.noscript-languages {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.page-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 7vw, 72px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(7, 20, 38, 0.84));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-card::after {
  position: absolute;
  z-index: -1;
  top: -12rem;
  right: -10rem;
  width: 31rem;
  height: 31rem;
  border-radius: 50%;
  content: "";
  background: rgba(56, 189, 248, 0.12);
  filter: blur(18px);
}

.status-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  color: #d8e2ef;
  background: rgba(2, 6, 23, 0.58);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px var(--success-soft);
}

.eyebrow {
  margin: 24px 0 0;
  color: var(--accent-bright);
}

h1,
h2,
h3,
summary {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 930px;
  margin: 12px 0 22px;
  font-size: clamp(2.8rem, 8vw, 6.25rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
}

.hero-copy {
  max-width: 820px;
  margin: 0;
  color: #c6d2e1;
  font-size: clamp(1.04rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #042235;
  background: var(--accent);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.2);
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  color: #042235;
  background: var(--accent-bright);
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.button-secondary:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.intro-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 15px;
  margin: 18px 0;
  padding: 20px 22px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-md);
  color: #dcecf7;
  background: var(--accent-soft);
}

.intro-note > div:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  border-radius: 50%;
  color: var(--accent-bright);
  font-family: Georgia, serif;
  font-weight: 900;
}

.intro-note strong {
  display: block;
  margin-bottom: 3px;
}

.intro-note p {
  margin: 0;
  color: #cbddeb;
}

.toc-card {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(2, 6, 23, 0.44);
}

.toc-card > p {
  margin: 0 0 13px;
  color: var(--accent-bright);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 18px;
}

.toc-links a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  gap: 6px;
  padding: 4px 0;
  color: #d4deeb;
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc-links a span {
  color: #6f8199;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.toc-links a:hover {
  color: var(--accent-bright);
}

.section-list {
  display: grid;
  gap: 18px;
}

.content-section {
  min-width: 0;
  padding: clamp(25px, 5vw, 43px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.section-heading {
  margin-bottom: 18px;
}

.section-kicker {
  margin: 0 0 7px;
  color: var(--accent-bright);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.content-section h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.section-body > p,
.faq-answer p,
.notice p {
  color: var(--copy);
  hyphens: auto;
  overflow-wrap: anywhere;
}

.section-body > p {
  margin: 0.78em 0;
}

.section-body > p:first-child {
  margin-top: 0;
}

.section-body > p:last-child {
  margin-bottom: 0;
}

.check-list {
  display: grid;
  margin: 18px 0 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 27px;
  color: var(--copy);
  hyphens: auto;
  overflow-wrap: anywhere;
}

.check-list li::before {
  position: absolute;
  top: 0.18em;
  left: 0;
  color: var(--accent);
  content: "✓";
  font-weight: 900;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0 0;
  gap: 11px;
}

.fact {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--card);
}

.fact dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fact dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--text);
  font-weight: 690;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 22px;
  border: 1px solid var(--border-soft);
  border-radius: 15px;
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  background: rgba(2, 6, 23, 0.28);
}

th,
td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
  hyphens: auto;
  overflow-wrap: anywhere;
}

th {
  color: var(--accent-bright);
  background: rgba(56, 189, 248, 0.07);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  color: var(--copy);
}

tbody tr:last-child td {
  border-bottom: 0;
}

blockquote {
  margin: 22px 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 4px 14px 14px 4px;
  color: #e7f4fc;
  background: var(--accent-soft);
  font-size: 1.03rem;
  font-weight: 680;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.notice {
  margin-top: 20px;
  padding: 17px 19px;
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: 5px 13px 13px 5px;
  background: var(--accent-soft);
}

.notice strong {
  display: block;
  margin-bottom: 5px;
}

.notice p {
  margin: 0.5em 0 0;
}

.notice-warning {
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.notice-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.notice-success {
  border-left-color: var(--success);
  background: var(--success-soft);
}

.official-links {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--border-soft);
}

.official-links-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.official-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.official-links-list a {
  padding: 7px 11px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 10px;
  color: var(--accent-bright);
  background: rgba(56, 189, 248, 0.055);
  font-size: 0.84rem;
  font-weight: 720;
  text-decoration: none;
}

.official-links-list a:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: var(--accent-soft);
}

.faq-list {
  display: grid;
  margin-top: 18px;
  gap: 10px;
}

.faq-list details {
  overflow: clip;
  border: 1px solid var(--border-soft);
  border-radius: 15px;
  background: rgba(2, 6, 23, 0.38);
}

.faq-list details[open] {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(7, 20, 38, 0.72);
}

.faq-list summary {
  position: relative;
  padding: 17px 54px 17px 18px;
  color: var(--text);
  font-weight: 790;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
}

.faq-icon::before,
.faq-icon::after {
  position: absolute;
  top: 8px;
  left: 1px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: var(--accent);
  transition: transform 160ms ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

details[open] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-answer {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border-soft);
}

.faq-answer p {
  margin: 14px 0 0;
}

body[data-page="imprint"] .section-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="imprint"] .content-section {
  height: 100%;
}

body[data-page="imprint"] .content-section:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

body[data-page="howto"] .content-section {
  counter-increment: howto-step;
}

body[data-page="howto"] .section-list {
  counter-reset: howto-step;
}

body[data-page="howto"] .section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 15px;
}

body[data-page="howto"] .section-heading::before {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 1px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 13px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  content: counter(howto-step, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 900;
}

body[data-page="howto"] .section-kicker,
body[data-page="howto"] .content-section h2 {
  grid-column: 2;
}

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: rgba(2, 6, 23, 0.5);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(300px, 1.5fr) minmax(160px, 0.6fr);
  align-items: start;
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 34px 0 44px;
  gap: 28px;
}

.footer-inner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.service-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.service-nav a {
  color: #bec9d8;
  font-size: 0.86rem;
  text-decoration: none;
}

.service-nav a[aria-current="page"] {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.updated {
  justify-self: end;
  text-align: right;
}

@media (max-width: 900px) {
  .toc-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="imprint"] .section-list {
    grid-template-columns: 1fr;
  }

  body[data-page="imprint"] .content-section:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    margin: 0 auto;
  }

  .updated {
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr 1fr;
    width: min(calc(100% - 28px), 560px);
    padding: 14px 0 17px;
    gap: 13px 16px;
  }

  .language-control {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: min(260px, 100%);
    text-align: center;
  }

  .brand {
    grid-column: 1;
    grid-row: 2;
  }

  .product-nav {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
  }

  .page-shell {
    width: min(calc(100% - 24px), var(--content));
    padding: 24px 0 46px;
  }

  .hero-card {
    border-radius: 23px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4.5rem);
  }

  .toc-links,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    border-radius: 18px;
  }

  .footer-inner {
    width: min(calc(100% - 24px), var(--content));
  }
}

@media (max-width: 470px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .brand,
  .product-nav {
    grid-column: 1;
    justify-self: center;
  }

  .brand {
    grid-row: 2;
  }

  .product-nav {
    grid-row: 3;
    justify-content: center;
  }

  .hero-card {
    padding: 30px 23px;
  }

  .hero-actions {
    display: grid;
  }

  .intro-note {
    grid-template-columns: 1fr;
  }

  body[data-page="howto"] .section-heading {
    grid-template-columns: 1fr;
  }

  body[data-page="howto"] .section-heading::before {
    grid-row: auto;
    margin-bottom: 8px;
  }

  body[data-page="howto"] .section-kicker,
  body[data-page="howto"] .content-section h2 {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    color: #111827;
    background: #fff;
    font-size: 10.5pt;
  }

  body::before,
  .site-header,
  .hero-actions,
  .toc-card,
  .site-footer,
  .skip-link {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .hero-card,
  .content-section,
  .intro-note,
  .notice,
  .fact,
  .faq-list details {
    break-inside: avoid;
    color: #111827;
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: none;
  }

  .hero-card {
    padding: 0 0 18pt;
    border: 0;
  }

  .hero-card::after,
  .status-pill,
  .eyebrow {
    display: none;
  }

  h1 {
    margin-top: 0;
    color: #020617;
    font-size: 30pt;
  }

  .hero-copy,
  .section-body > p,
  .faq-answer p,
  .notice p,
  .check-list li,
  td,
  .intro-note p {
    color: #1f2937;
  }

  .section-kicker,
  th,
  .official-links-label {
    color: #0369a1;
  }

  .section-list,
  body[data-page="mission"] .section-list,
  body[data-page="imprint"] .section-list {
    display: block;
  }

  .content-section {
    margin: 0 0 12pt;
    padding: 16pt;
  }

  .faq-list details:not([open]) .faq-answer {
    display: block;
  }

  .official-links-list a {
    color: #0369a1;
    border: 0;
    background: transparent;
  }
}

/* A reading aid alongside the complete, unchanged original service text. */
.easy-language-help {
  margin: 1.5rem 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #96f5af;
  border-radius: 1.25rem;
  background: #0f2530;
  color: #f8fafc;
  line-height: 1.65;
}
.easy-language-help h2 { margin: 0 0 1rem; color: #ffffff; }
.easy-language-help .easy-language-notice {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border-left: 3px solid #96f5af;
  background: #071723;
  color: #f8fafc;
}
.easy-language-help li + li { margin-top: 0.8rem; }
.original-language-label { margin: 1.5rem 0 0.75rem; font-weight: 700; color: #cbd5e1; }
.language-control select { min-height: 44px; max-width: 100%; }
.language-control select:focus-visible { outline: 3px solid #96f5af; outline-offset: 4px; }
@media print {
  .easy-language-help { background: #ffffff; border-color: #334155; color: #111827; }
  .easy-language-help h2, .easy-language-help .easy-language-notice,
  .original-language-label { background: #ffffff; color: #111827; }
}
