/* HRH Hochrhein Hosting */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #06141a;
  --surface: #0b1f27;
  --raised: #102c36;
  --line: #1d4350;
  --text: #e8f3f4;
  --muted: #9ab5bb;
  --accent: #35d6e8;
  --accent-soft: rgba(53, 214, 232, 0.12);
  --accent-ink: #032329;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}

h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 60;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 34em;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck,
.site-header.is-open {
  background: rgba(6, 20, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  min-height: 44px;
}

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand span span {
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  border-radius: 10px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"] {
  background: var(--accent-soft);
}

.nav .btn {
  border-radius: 999px;
  margin-left: 10px;
  color: var(--accent-ink);
}

.nav .btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn:hover {
  color: var(--accent-ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  margin: auto;
}

.nav-toggle .icon-close,
.is-open .nav-toggle .icon-menu {
  display: none;
}

.is-open .nav-toggle .icon-close {
  display: block;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 24px;
    background: rgba(6, 20, 26, 0.97);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

  .is-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav a {
    min-height: 52px;
    font-size: 1.1rem;
  }

  .nav .btn {
    margin: 10px 0 0;
    justify-content: center;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  box-shadow: 0 0 0 6px var(--accent-soft), 0 10px 40px -10px var(--accent);
}

.btn-quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-quiet:hover {
  border-color: var(--accent);
  box-shadow: none;
  color: var(--accent);
}

.btn-small {
  min-height: 44px;
  padding: 0 20px;
}

/* Hero */

.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: flex-end;
  padding: 150px 0 clamp(48px, 8vw, 96px);
  isolation: isolate;
  overflow: hidden;
}

.hero-small {
  min-height: 0;
  padding-top: 170px;
}

.river {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 2%, transparent 45%),
    radial-gradient(90% 70% at 0% 100%, rgba(6, 20, 26, 0.92), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  max-width: 11.5em;
}

.hero .lead {
  margin-top: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(56px, 9vw, 104px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hero-facts li {
  padding: 22px 24px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.hero-facts strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

@media (max-width: 720px) {
  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts li {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Headline entrance: lines rise once on load */

.rise > span {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.rise > span > span {
  display: block;
  transform: translateY(105%);
  animation: rise 0.9s var(--ease) forwards;
}

.rise > span:nth-child(2) > span {
  animation-delay: 0.09s;
}

.rise > span:nth-child(3) > span {
  animation-delay: 0.18s;
}

.fade-in {
  opacity: 0;
  animation: fade 0.8s var(--ease) 0.45s forwards;
}

@keyframes rise {
  to {
    transform: none;
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

/* Sections */

.section {
  padding: clamp(72px, 11vw, 144px) 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head p {
  color: var(--muted);
  max-width: 32em;
}

@media (max-width: 820px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* Scroll reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Price list */

.pricelist {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
}

.pricegroup h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.pricegroup h3 svg {
  width: 22px;
  height: 22px;
}

.pricegroup ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto;
  gap: 8px 40px;
  align-items: baseline;
  padding: 26px 20px 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease), background-color 0.35s var(--ease);
}

.price-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

.price-row:hover {
  padding-left: 22px;
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
}

.price-row:hover::before {
  transform: scaleY(1);
}

.price-row .name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.price-row .desc {
  color: var(--muted);
}

.price-row .price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.price-row .price small {
  display: block;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
}

@media (max-width: 820px) {
  .price-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-right: 0;
  }

  .price-row .desc {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .price-row:hover {
    padding-left: 14px;
  }
}

.note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Fact grid (security) */

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fact {
  background: var(--surface);
  padding: clamp(24px, 3.5vw, 40px);
  transition: background-color 0.3s var(--ease);
}

.fact:hover {
  background: var(--raised);
}

.fact svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 22px;
}

.fact p {
  margin-top: 10px;
  color: var(--muted);
}

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

/* Region / about */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.split figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.split figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.4s var(--ease);
}

.split figure.is-in img {
  transform: none;
}

.split figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 14px;
  font-size: 0.85rem;
  color: var(--text);
  background: linear-gradient(to top, rgba(6, 20, 26, 0.9), transparent);
}

.split h2 + p {
  margin-top: 24px;
}

.split p + p {
  margin-top: 16px;
}

.split p {
  color: var(--muted);
}

.split .btn {
  margin-top: 32px;
}

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

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  position: relative;
}

.steps li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.steps li.is-in::before {
  transform: scaleX(1);
}

.steps h3::before {
  content: counter(step) ". ";
  color: var(--accent);
}

.steps p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}

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

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

/* Call to action */

.cta {
  position: relative;
  padding: clamp(72px, 11vw, 136px) 0;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}

.cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  left: 50%;
  bottom: -640px;
  margin-left: -450px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(53, 214, 232, 0.3), transparent);
}

.cta h2 {
  max-width: 14em;
}

.cta .lead {
  margin-top: 20px;
}

.cta .hero-actions {
  margin-top: 36px;
}

/* Marquee (gaming) */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee span {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.marquee span:nth-child(3n + 1) {
  color: var(--accent);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Game list */

.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 88px);
}

.games li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}

.games li:hover {
  border-bottom-color: var(--accent);
}

.games h3 {
  transition: color 0.3s var(--ease);
}

.games li:hover h3 {
  color: var(--accent);
}

.games p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
}

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

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-card {
  display: block;
  background: var(--surface);
  padding: clamp(24px, 3.5vw, 40px);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.3s var(--ease);
}

a.contact-card:hover {
  background: var(--raised);
}

.contact-card svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 22px;
}

.contact-card .label {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-card .value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

a.contact-card:hover .value {
  color: var(--accent);
}

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

/* FAQ */

.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

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

.faq summary:hover {
  color: var(--accent);
}

.faq summary svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 26px;
  color: var(--muted);
  max-width: 40em;
}

/* Legal pages */

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.6rem;
  margin: 56px 0 14px;
}

.prose h3 {
  margin: 32px 0 10px;
}

.prose p,
.prose ul {
  color: var(--muted);
  margin: 0 0 16px;
}

.prose ul {
  padding-left: 1.2em;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose address {
  font-style: normal;
  color: var(--text);
  margin-bottom: 16px;
}

.prose dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 28px;
  margin: 0 0 16px;
}

.prose dt {
  color: var(--muted);
}

.prose dd {
  margin: 0;
  color: var(--text);
}

.optout {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.optout p {
  margin: 0 0 16px;
  color: var(--text);
}

/* 404 */

.lost {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}

.lost .lead {
  margin-top: 24px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  color: var(--muted);
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer li a:hover {
  color: var(--accent);
}

.site-footer .brand {
  margin-bottom: 12px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    gap: 12px 32px;
    padding-inline: var(--gutter);
  }

  .marquee-track [aria-hidden="true"] {
    display: none;
  }

  .split figure img {
    transform: none;
  }
}
