@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

/* DaisyUI theme tokens: dark Hoppe Systems CI with cyan, blue and lime accents. */
:root,
[data-theme="hoppe-dark"] {
  color-scheme: dark;
  --color-base-100: #080b10;
  --color-base-200: #0d131a;
  --color-base-300: #131b24;
  --color-base-content: #e8fafb;
  --color-primary: #2de2e6;
  --color-primary-content: #061018;
  --color-secondary: #19a7ff;
  --color-secondary-content: #03111c;
  --color-accent: #9cfb6e;
  --color-accent-content: #061400;
  --color-neutral: #18232e;
  --color-neutral-content: #e8fafb;
  --color-info: #38bdf8;
  --color-success: #5beea3;
  --color-warning: #f59e0b;
  --color-error: #ff6179;
  --radius-selector: 0.375rem;
  --radius-field: 0.5rem;
  --radius-box: 0.5rem;
  --hs-ink: #080b10;
  --hs-surface: #131b24;
  --hs-surface-alt: #101820;
  --hs-text: #e8fafb;
  --hs-muted: #7d8b96;
  --hs-border: rgba(232, 250, 251, 0.14);
  --hs-border-strong: rgba(45, 226, 230, 0.32);
  --hs-cyan: #2de2e6;
  --hs-cyan-soft: #87f4f7;
  --hs-blue: #19a7ff;
  --hs-lime: #9cfb6e;
  --hs-shadow-cyan: 0 0 32px rgba(45, 226, 230, 0.2);
  --hs-aura-primary: 0 0 18px rgba(45, 226, 230, 0.38), 0 0 46px rgba(45, 226, 230, 0.16);
  --hs-aura-secondary: 0 0 18px rgba(25, 167, 255, 0.34), 0 0 46px rgba(25, 167, 255, 0.14);
  --hs-aura-soft: 0 0 36px rgba(45, 226, 230, 0.1), inset 0 0 44px rgba(45, 226, 230, 0.035);
  --hs-font-display: "Sora", "Inter", system-ui, sans-serif;
  --hs-font-body: "Inter", system-ui, sans-serif;
  --hs-font-technical: "Space Grotesk", "Inter", system-ui, sans-serif;
}

[data-theme="hoppe-light"] {
  color-scheme: light;
  --color-base-100: #f4fbfb;
  --color-base-200: #e8f3f4;
  --color-base-300: #d7e6e8;
  --color-base-content: #102026;
  --color-primary: #009aa2;
  --color-primary-content: #f4fbfb;
  --color-secondary: #126cb6;
  --color-secondary-content: #f4fbfb;
  --color-accent: #3d8c1f;
  --color-accent-content: #f4fbfb;
  --color-neutral: #d8e5e7;
  --color-neutral-content: #102026;
  --color-info: #0c80bd;
  --color-success: #23865a;
  --color-warning: #ad6b00;
  --color-error: #c0354d;
  --hs-ink: #f4fbfb;
  --hs-surface: #ffffff;
  --hs-surface-alt: #eaf4f5;
  --hs-text: #102026;
  --hs-muted: #52656f;
  --hs-border: rgba(16, 32, 38, 0.14);
  --hs-border-strong: rgba(0, 154, 162, 0.28);
  --hs-cyan: #009aa2;
  --hs-cyan-soft: #12bac3;
  --hs-blue: #126cb6;
  --hs-lime: #3d8c1f;
  --hs-shadow-cyan: 0 0 24px rgba(0, 154, 162, 0.18);
  --hs-aura-primary: 0 0 18px rgba(0, 154, 162, 0.22), 0 0 42px rgba(0, 154, 162, 0.1);
  --hs-aura-secondary: 0 0 18px rgba(18, 108, 182, 0.22), 0 0 42px rgba(18, 108, 182, 0.1);
  --hs-aura-soft: 0 0 30px rgba(0, 154, 162, 0.08), inset 0 0 36px rgba(0, 154, 162, 0.035);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--hs-ink);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--hs-text);
  background: var(--hs-ink);
  font-family: var(--hs-font-body);
  line-height: 1.6;
}

body::selection {
  color: #061018;
  background: var(--hs-cyan);
}

a {
  color: inherit;
  text-decoration: none;
}

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

main {
  position: relative;
  z-index: 3;
}

.site-page {
  isolation: isolate;
}

/* Blueprint background: dark plan texture plus the animated plan lines behind the content. */
.blueprint-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--hs-ink);
  background-image:
    linear-gradient(rgba(45, 226, 230, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 226, 230, 0.06) 1px, transparent 1px),
    url("../graphics/hs-blueprint-grid.svg");
  background-position: 0 0, 0 0, center;
  background-size: 52px 52px, 52px 52px, 720px 720px;
  animation: blueprintDrift 46s linear infinite;
}

.blueprint-background::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 11, 16, 0.92), rgba(8, 11, 16, 0.56) 45%, rgba(8, 11, 16, 0.88)),
    linear-gradient(180deg, rgba(8, 11, 16, 0.12), rgba(8, 11, 16, 0.96));
}

[data-theme="hoppe-light"] .blueprint-background {
  background-color: var(--hs-ink);
  background-image:
    linear-gradient(rgba(0, 154, 162, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 154, 162, 0.08) 1px, transparent 1px),
    url("../graphics/hs-blueprint-grid.svg");
}

[data-theme="hoppe-light"] .blueprint-background::before {
  background:
    linear-gradient(90deg, rgba(244, 251, 251, 0.94), rgba(244, 251, 251, 0.64) 45%, rgba(244, 251, 251, 0.9)),
    linear-gradient(180deg, rgba(244, 251, 251, 0.18), rgba(244, 251, 251, 0.96));
}

[data-theme="hoppe-light"] .blueprint-background::after {
  opacity: 0.1;
}

.blueprint-background::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url("../graphics/hs-corner-brackets.svg");
  background-repeat: no-repeat;
  background-position: calc(100% - 6vw) 11vh;
  background-size: min(34vw, 420px);
  opacity: 0.18;
  mix-blend-mode: screen;
}

.blueprint-mainlines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  filter: url("#planWaver");
}

.club-page .blueprint-mainlines {
  filter: url("#planWaverClub");
}

.error-page .blueprint-mainlines {
  filter: url("#planWaverError");
}

.vcard-page .blueprint-mainlines {
  filter: url("#planWaverCard");
}

.plan-line {
  fill: none;
  stroke: url("#planGradient");
  stroke-width: 1.35;
  stroke-dasharray: 240 42;
  stroke-linecap: square;
  opacity: 0.72;
  filter: drop-shadow(0 0 9px rgba(45, 226, 230, 0.32));
}

.club-page .plan-line {
  stroke: url("#planGradientClub");
}

.error-page .plan-line {
  stroke: url("#planGradientError");
}

.vcard-page .plan-line {
  stroke: url("#planGradientCard");
}

.plan-line-soft {
  opacity: 0.42;
}

/* GSAP thread overlay: connects Beratung, Planung and Software nodes while scrolling. */
.thread-overlay {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.thread-path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.84;
  filter: url("#threadGlow");
}

.thread-guide {
  opacity: 0;
}

.thread-consulting {
  stroke: var(--hs-cyan);
}

.thread-planning {
  stroke: var(--hs-blue);
}

.thread-software {
  stroke: var(--hs-lime);
}

/* DaisyUI navbar adjustments: sticky glass surface while DaisyUI handles the layout. */
.site-nav {
  gap: 2rem;
  min-height: 72px;
  padding: 0.62rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(232, 250, 251, 0.08);
  background: rgba(8, 11, 16, 0.78);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), var(--hs-aura-soft);
  backdrop-filter: blur(18px);
}

[data-theme="hoppe-light"] .site-nav {
  background: rgba(244, 251, 251, 0.84);
  border-bottom-color: rgba(16, 32, 38, 0.1);
  box-shadow: 0 14px 36px rgba(16, 32, 38, 0.12), var(--hs-aura-soft);
}

.site-nav .menu a {
  color: rgba(232, 250, 251, 0.78);
  font-weight: 700;
}

[data-theme="hoppe-light"] .site-nav .menu a {
  color: rgba(16, 32, 38, 0.78);
}

.site-nav .menu a:hover,
.site-nav .menu a:focus-visible,
.site-nav .menu a[aria-current="page"] {
  color: var(--hs-cyan);
  background: rgba(45, 226, 230, 0.1);
}

.nav-divider {
  display: block;
  width: 1px;
  height: 1.6rem;
  margin: 0.35rem 0.45rem;
  padding: 0;
  background: var(--hs-border);
}

/* Mobile dropdown: opaque layer so menu links stay readable over the page content. */
.nav-dropdown {
  border: 1px solid var(--hs-border);
  background: rgba(8, 11, 16, 0.98);
  color: var(--hs-text);
  box-shadow: var(--hs-aura-primary), 0 24px 60px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

[data-theme="hoppe-light"] .nav-dropdown {
  background: rgba(244, 251, 251, 0.98);
  box-shadow: var(--hs-aura-primary), 0 24px 54px rgba(16, 32, 38, 0.18);
}

.nav-dropdown a {
  color: var(--hs-text);
}

.theme-toggle {
  color: var(--hs-text);
}

.theme-toggle .theme-icon {
  width: 1.12rem;
  height: 1.12rem;
}

.theme-icon-moon {
  display: none;
}

[data-theme="hoppe-light"] .theme-icon-sun {
  display: none;
}

[data-theme="hoppe-light"] .theme-icon-moon {
  display: block;
}

.brand-lockup {
  display: inline-flex;
  width: clamp(150px, 14vw, 205px);
  min-width: 150px;
}

.brand-lockup img {
  width: 100%;
  height: auto;
}

/* Landing hero: first viewport content and subtle brand mark. */
.hero-section {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(700px, calc(100svh - 176px));
  padding: clamp(2.25rem, 5vh, 4.2rem) clamp(1.25rem, 6vw, 6.5rem) clamp(2.1rem, 5vh, 4rem);
}

.hero-section::after {
  position: absolute;
  right: clamp(1.2rem, 6vw, 7rem);
  bottom: 2.5rem;
  width: min(34vw, 340px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--hs-cyan), var(--hs-lime));
}

.hero-copy,
.club-hero-copy {
  max-width: 780px;
}

.hero-brand-mark {
  position: absolute;
  right: clamp(-2rem, 4vw, 5rem);
  bottom: clamp(1rem, 12vh, 7rem);
  z-index: -1;
  width: min(44vw, 620px);
  min-width: 340px;
  opacity: 0.22;
  filter: drop-shadow(0 0 36px rgba(45, 226, 230, 0.34));
}

.kicker,
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--hs-cyan);
  font-family: var(--hs-font-technical);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--hs-text);
  font-family: var(--hs-font-display);
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.65rem, 5.7vw, 5.25rem);
  font-weight: 800;
}

h2 {
  max-width: 920px;
  font-size: clamp(2rem, 4.9vw, 4.55rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  font-weight: 400;
}

p {
  margin: 0;
  color: rgba(232, 250, 251, 0.78);
}

[data-theme="hoppe-light"] p {
  color: rgba(16, 32, 38, 0.76);
}

.hero-lead,
.club-hero-copy p {
  max-width: 760px;
  margin-top: 1rem;
  color: rgba(232, 250, 251, 0.84);
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
}

[data-theme="hoppe-light"] .hero-lead,
[data-theme="hoppe-light"] .club-hero-copy p {
  color: rgba(16, 32, 38, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

/* Button overrides keep DaisyUI behavior, but enforce CI colors and Aura glow. */
.btn {
  position: relative;
  min-height: 2.95rem;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-primary-content);
  box-shadow: var(--hs-aura-primary);
}

.btn-primary:hover {
  border-color: var(--hs-cyan-soft);
  background: var(--hs-cyan-soft);
  color: var(--color-primary-content);
}

.btn-outline {
  border-color: rgba(232, 250, 251, 0.32);
  color: var(--hs-text);
}

.btn-secondary {
  border-color: var(--color-secondary);
  background: var(--color-secondary);
  color: var(--color-secondary-content);
  box-shadow: var(--hs-aura-secondary);
}

.btn-secondary:hover {
  border-color: #65c6ff;
  background: #65c6ff;
  color: var(--color-secondary-content);
}

.thread-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--hs-border);
  border-radius: 8px;
  background: rgba(13, 19, 26, 0.7);
  color: rgba(232, 250, 251, 0.86);
  font-size: 0.9rem;
  font-weight: 800;
}

[data-theme="hoppe-light"] .legend-chip {
  background: rgba(255, 255, 255, 0.74);
  color: rgba(16, 32, 38, 0.86);
}

/* Thread nodes are shared by the legend, cards and process steps. */
.thread-node {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: var(--hs-cyan);
  background: var(--hs-ink);
  box-shadow: 0 0 15px currentColor;
}

.planning .thread-node,
.planning-card .thread-node,
.thread-node[data-thread="planning"] {
  color: var(--hs-blue);
}

.software .thread-node,
.software-card .thread-node,
.thread-node[data-thread="software"] {
  color: var(--hs-lime);
}

.intro-band,
.thread-section,
.club-detail-band,
.conditions-band,
.club-flow-band,
.closing-band {
  position: relative;
  padding: clamp(4rem, 11vw, 8rem) clamp(1.25rem, 6vw, 6.5rem);
}

/* Content bands: main scroll narrative and responsive grids. */
.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  border-top: 1px solid rgba(232, 250, 251, 0.08);
  border-bottom: 1px solid rgba(232, 250, 251, 0.08);
  background: rgba(13, 19, 26, 0.46);
}

[data-theme="hoppe-light"] .intro-band,
[data-theme="hoppe-light"] .club-teaser,
[data-theme="hoppe-light"] .conditions-band {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(16, 32, 38, 0.1);
}

.section-heading {
  max-width: 960px;
}

.section-heading p:not(.kicker) {
  max-width: 720px;
  margin-top: 1rem;
  font-size: 1.05rem;
}

.signal-grid {
  display: grid;
  gap: 0.9rem;
}

.signal-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15rem 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(232, 250, 251, 0.12);
}

.signal-item:first-child {
  border-top: 0;
}

.signal-value,
.step-index,
.condition-row span,
.flow-step span {
  color: var(--hs-cyan);
  font-family: var(--hs-font-technical);
  font-weight: 800;
}

.signal-item h3,
.signal-item p {
  grid-column: 2;
}

.signal-item h3 {
  font-size: 1.05rem;
}

.service-spread {
  min-height: 1120px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  max-width: 1180px;
  margin-top: clamp(2.5rem, 7vw, 5rem);
}

.card {
  border: 1px solid var(--hs-border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(19, 27, 36, 0.88), rgba(13, 19, 26, 0.72));
  box-shadow: var(--hs-aura-soft);
}

[data-theme="hoppe-light"] .card,
[data-theme="hoppe-light"] .club-panel,
[data-theme="hoppe-light"] .legal-aside,
[data-theme="hoppe-light"] .flow-step,
[data-theme="hoppe-light"] .condition-row {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(234, 244, 245, 0.78));
  border-color: rgba(16, 32, 38, 0.12);
}

.service-card,
.system-card,
.club-card {
  position: relative;
  min-height: 300px;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  overflow: hidden;
}

.service-card::before,
.system-card::before,
.club-card::before,
.flow-step::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  opacity: 0.52;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(45, 226, 230, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%);
}

.planning-card::before {
  background:
    linear-gradient(90deg, rgba(25, 167, 255, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%);
}

.software-card::before {
  background:
    linear-gradient(90deg, rgba(156, 251, 110, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%);
}

.service-card img,
.system-card img,
.club-card img {
  position: relative;
  width: 38px;
  height: 38px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 14px rgba(45, 226, 230, 0.28));
}

.service-card h3,
.system-card h3,
.club-card h3 {
  position: relative;
  max-width: 18rem;
  margin-bottom: 0.8rem;
}

.service-card p,
.system-card p,
.club-card p {
  position: relative;
}

.card-node {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
}

.process-band {
  min-height: 1120px;
  background: linear-gradient(180deg, rgba(8, 11, 16, 0.25), rgba(19, 27, 36, 0.45));
}

[data-theme="hoppe-light"] .process-band {
  background: linear-gradient(180deg, rgba(244, 251, 251, 0.3), rgba(215, 230, 232, 0.48));
}

.process-stack {
  display: grid;
  gap: 1rem;
  max-width: 980px;
  margin: clamp(2.5rem, 7vw, 5rem) auto 0;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  min-height: 190px;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid rgba(232, 250, 251, 0.12);
}

.process-step .step-index,
.process-step h3,
.process-step p {
  grid-column: 2;
}

.process-step .step-index {
  margin-bottom: -1.3rem;
}

.process-step h3 {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
}

.process-step p {
  max-width: 700px;
}

.step-pins {
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: row;
  gap: 0.45rem;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.3rem;
}

.systems-grid,
.club-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.4rem, 6vw, 4.6rem);
}

.system-card,
.club-card {
  min-height: 270px;
}

.club-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.68fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  border-top: 1px solid rgba(232, 250, 251, 0.08);
  border-bottom: 1px solid rgba(232, 250, 251, 0.08);
  background: rgba(13, 19, 26, 0.52);
}

.club-copy {
  position: relative;
  max-width: 780px;
}

.club-copy h2 {
  font-size: clamp(2rem, 4.2vw, 4rem);
}

.club-copy p:not(.kicker) {
  margin: 1rem 0 1.8rem;
  font-size: 1.05rem;
}

.club-pins,
.closing-pins {
  display: flex;
  gap: 0.68rem;
  margin-bottom: 1rem;
}

.club-panel {
  display: grid;
  gap: 0.65rem;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  border: 1px solid rgba(45, 226, 230, 0.22);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.64);
}

.club-panel img {
  width: 56px;
  margin-bottom: 0.8rem;
}

.club-panel span {
  display: block;
  padding: 0.78rem 0;
  border-top: 1px solid rgba(232, 250, 251, 0.12);
  color: rgba(232, 250, 251, 0.86);
  font-weight: 700;
}

[data-theme="hoppe-light"] .club-panel span,
[data-theme="hoppe-light"] .legal-section p,
[data-theme="hoppe-light"] .legal-section li,
[data-theme="hoppe-light"] .legal-aside a {
  color: rgba(16, 32, 38, 0.76);
}

.closing-band {
  display: grid;
  place-items: center;
  min-height: 620px;
  text-align: center;
}

.error-main {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 168px);
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.25rem, 6vw, 6.5rem);
}

.error-panel {
  position: relative;
  width: min(100%, 920px);
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid rgba(45, 226, 230, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 226, 230, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(19, 27, 36, 0.86), rgba(8, 11, 16, 0.74));
  box-shadow: var(--hs-aura-primary);
  overflow: hidden;
}

[data-theme="hoppe-light"] .error-panel {
  background:
    linear-gradient(135deg, rgba(0, 154, 162, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(244, 251, 251, 0.88), rgba(234, 244, 245, 0.78));
}

.error-panel::after {
  position: absolute;
  right: clamp(-3rem, -4vw, -1rem);
  bottom: clamp(-5rem, -6vw, -2rem);
  width: min(42vw, 320px);
  aspect-ratio: 1;
  content: "";
  background: url("../logos/Hoppe-Systems_Signet_Verlauf_RGB_Transparent_v02.png") center / contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.error-code {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--hs-cyan);
  font-family: var(--hs-font-technical);
  font-size: clamp(3.3rem, 14vw, 8rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
}

.error-panel h1 {
  max-width: 720px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.error-panel p {
  max-width: 640px;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.closing-content {
  position: relative;
  max-width: 860px;
  padding: clamp(1.35rem, 4vw, 3.4rem);
}

.closing-content .closing-pins {
  justify-content: center;
}

.closing-content h2 {
  margin-inline: auto;
}

.closing-content p {
  max-width: 620px;
  margin: 1rem auto 1.8rem;
  font-size: 1.08rem;
}

.closing-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.closing-frame-path {
  fill: none;
  stroke: url("#closingFrameGradient");
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
  filter: drop-shadow(0 0 9px rgba(45, 226, 230, 0.32));
}

.closing-frame.is-complete .closing-frame-path {
  filter: drop-shadow(0 0 12px rgba(45, 226, 230, 0.38));
}

/* Footer: legal links plus the only visible entry point to the Vereins page. */
.site-footer {
  position: relative;
  z-index: 4;
  gap: clamp(1.6rem, 4vw, 4rem);
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1.25rem, 6vw, 6.5rem);
  border-top: 1px solid rgba(232, 250, 251, 0.1);
  background: rgba(8, 11, 16, 0.82);
  color: rgba(232, 250, 251, 0.68);
  font-family: var(--hs-font-technical);
  box-shadow: inset 0 1px 0 rgba(45, 226, 230, 0.08);
  overflow: hidden;
}

[data-theme="hoppe-light"] .site-footer {
  background: rgba(244, 251, 251, 0.88);
  border-top-color: rgba(16, 32, 38, 0.12);
}

.site-footer::after {
  position: absolute;
  top: 50%;
  left: clamp(-3rem, 2vw, 2rem);
  z-index: 0;
  width: min(26vw, 220px);
  height: calc(100% - 1.1rem);
  content: "";
  background: url("../logos/Hoppe-Systems_Signet_Verlauf_RGB_Transparent_v02.png") center / contain no-repeat;
  opacity: 0.14;
  filter: drop-shadow(0 0 36px rgba(45, 226, 230, 0.28));
  pointer-events: none;
  transform: translateY(-50%);
}

[data-theme="hoppe-light"] .site-footer::after {
  background: url("../logos/Hoppe-Systems_Signet_deepink_RGB_Transparent_v02.png") center / contain no-repeat;
}

.site-footer .footer-title {
  color: var(--hs-text);
  font-family: var(--hs-font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  opacity: 1;
}

.site-footer p,
.site-footer span,
.site-footer a {
  color: rgba(232, 250, 251, 0.72);
}

[data-theme="hoppe-light"] .site-footer p,
[data-theme="hoppe-light"] .site-footer span,
[data-theme="hoppe-light"] .site-footer a {
  color: rgba(16, 32, 38, 0.72);
}

.footer-brand,
.footer-links,
.footer-contact {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.footer-brand {
  display: grid;
  gap: 0.4rem;
}

.footer-brand p,
.footer-contact span,
.footer-contact a {
  max-width: 20rem;
}

.footer-copy {
  color: rgba(232, 250, 251, 0.52);
}

[data-theme="hoppe-light"] .footer-copy {
  color: rgba(16, 32, 38, 0.52);
}

.footer-tax-note {
  max-width: 24rem;
  color: rgba(232, 250, 251, 0.58);
  font-size: 0.82rem;
  line-height: 1.45;
}

[data-theme="hoppe-light"] .footer-tax-note {
  color: rgba(16, 32, 38, 0.58);
}

.site-footer .legal-placeholder {
  color: var(--hs-lime);
}

.footer-links a,
.footer-contact a {
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a[aria-current="page"],
.footer-contact a:hover {
  color: var(--hs-cyan);
}

.legal-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(520px, calc(100svh - 180px));
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 6vw, 6.5rem);
  border-bottom: 1px solid rgba(232, 250, 251, 0.08);
}

.legal-hero h1 {
  max-width: 860px;
  font-size: clamp(2.6rem, 6vw, 6rem);
  overflow-wrap: anywhere;
}

.legal-hero > * {
  min-width: 0;
}

.legal-hero p:not(.kicker) {
  max-width: 720px;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 6vw, 6.5rem);
}

.legal-aside {
  align-self: start;
  padding: 1rem;
  border: 1px solid rgba(45, 226, 230, 0.2);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.58);
  box-shadow: var(--hs-aura-soft);
}

.legal-aside h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.legal-aside a {
  display: block;
  padding: 0.58rem 0;
  border-top: 1px solid rgba(232, 250, 251, 0.1);
  color: rgba(232, 250, 251, 0.78);
  font-weight: 700;
}

.legal-aside a:hover {
  color: var(--hs-cyan);
}

.legal-content {
  display: grid;
  gap: 1.8rem;
}

.legal-section {
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(232, 250, 251, 0.12);
}

.legal-section h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
}

.legal-section h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.55rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.legal-section p,
.legal-section li {
  color: rgba(232, 250, 251, 0.8);
}

.legal-section ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.legal-placeholder {
  color: var(--hs-lime);
  font-weight: 800;
}

.legal-note {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(156, 251, 110, 0.24);
  border-radius: 8px;
  background: rgba(156, 251, 110, 0.06);
}

/* Reveal states are animated by GSAP, with a CSS fallback class if JS is unavailable. */
.reveal {
  transform: translateY(18px);
  opacity: 0;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

/* Vereins page: dedicated layout for the footer-only club information page. */
.club-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: min(640px, calc(100svh - 150px));
  padding: clamp(3rem, 7vh, 5.2rem) clamp(1.25rem, 6vw, 6.5rem) clamp(2.6rem, 6vh, 4.5rem);
}

.club-hero h1 {
  font-size: clamp(2.55rem, 3.9vw, 4.6rem);
}

.club-hero .btn {
  margin-top: 2rem;
}

.club-hero-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(45, 226, 230, 0.2);
  border-radius: 8px;
  background: rgba(13, 19, 26, 0.6);
  box-shadow: inset 0 0 64px rgba(45, 226, 230, 0.08);
}

.club-hero-mark img {
  width: min(52%, 180px);
  filter: drop-shadow(0 0 28px rgba(45, 226, 230, 0.44));
}

.conditions-band {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.86fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  background: rgba(13, 19, 26, 0.48);
}

.conditions-copy h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.conditions-copy p {
  margin-top: 1rem;
  font-size: 1.08rem;
}

.conditions-list {
  display: grid;
  gap: 0.8rem;
}

.condition-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(232, 250, 251, 0.12);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.58);
}

.club-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.2rem, 6vw, 4.5rem);
}

.flow-step {
  position: relative;
  min-height: 250px;
  padding: 1.35rem;
  border: 1px solid rgba(232, 250, 251, 0.13);
  border-radius: 8px;
  background: rgba(13, 19, 26, 0.7);
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(45, 226, 230, 0.38);
  border-radius: 8px;
}

.flow-step h3,
.flow-step p,
.flow-step span {
  position: relative;
}

.flow-step h3 {
  margin-bottom: 0.75rem;
}

/* Digital business card: hidden standalone page for direct personal contact sharing. */
.vcard-page main {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 168px);
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 6vw, 6.5rem);
}

.vcard-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  width: min(100%, 980px);
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid rgba(45, 226, 230, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 226, 230, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(19, 27, 36, 0.9), rgba(8, 11, 16, 0.76));
  box-shadow: var(--hs-aura-primary);
  overflow: hidden;
}

[data-theme="hoppe-light"] .vcard-card {
  background:
    linear-gradient(135deg, rgba(0, 154, 162, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(234, 244, 245, 0.78));
}

.vcard-card::after {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: min(44vw, 360px);
  aspect-ratio: 1;
  content: "";
  background: url("../logos/Hoppe-Systems_Signet_Verlauf_RGB_Transparent_v02.png") center / contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

.vcard-content,
.vcard-side {
  position: relative;
  z-index: 1;
}

.vcard-logo {
  width: min(240px, 70vw);
  margin-bottom: clamp(1.4rem, 4vw, 2.5rem);
}

.vcard-content h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}

.vcard-content p:not(.kicker) {
  max-width: 640px;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

.vcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.vcard-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.vcard-info,
.booking-placeholder {
  padding: 1rem;
  border: 1px solid var(--hs-border);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.46);
}

[data-theme="hoppe-light"] .vcard-info,
[data-theme="hoppe-light"] .booking-placeholder {
  background: rgba(255, 255, 255, 0.58);
}

.vcard-info {
  display: grid;
  gap: 0.7rem;
}

.vcard-info span {
  display: block;
  color: rgba(232, 250, 251, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

[data-theme="hoppe-light"] .vcard-info span {
  color: rgba(16, 32, 38, 0.62);
}

.vcard-info a,
.booking-placeholder p {
  color: rgba(232, 250, 251, 0.84);
}

[data-theme="hoppe-light"] .vcard-info a,
[data-theme="hoppe-light"] .booking-placeholder p {
  color: rgba(16, 32, 38, 0.82);
}

.booking-placeholder h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

@keyframes blueprintDrift {
  0% {
    background-position: 0 0, 0 0, center;
  }
  100% {
    background-position: 156px 104px, 156px 104px, calc(50% + 120px) calc(50% + 80px);
  }
}

/* Respect reduced-motion users by disabling long-running transitions and scroll animation. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

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

/* Tablet layouts: collapse split sections and reduce multi-column grids. */
@media (max-width: 1050px) {
  .intro-band,
  .club-teaser,
  .conditions-band,
  .club-hero,
  .legal-layout,
  .vcard-card {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
  }

  .legal-aside h2 {
    grid-column: 1 / -1;
  }

  .service-grid,
  .systems-grid,
  .club-detail-grid,
  .club-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .process-step p {
    grid-column: 2;
  }

  .step-pins {
    grid-row: 1 / span 3;
  }

  .club-hero {
    overflow: hidden;
  }

  .club-hero-copy {
    position: relative;
    z-index: 1;
  }

  .club-hero-mark {
    position: absolute;
    right: clamp(-4rem, 2vw, 1rem);
    bottom: clamp(1rem, 5vw, 3rem);
    width: min(34vw, 240px);
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0.16;
    pointer-events: none;
  }

  .club-hero-mark img {
    width: 100%;
    opacity: 0.28;
  }
}

/* Mobile layouts: keep the DaisyUI navbar horizontal and make content single-column. */
@media (max-width: 760px) {
  .site-nav {
    gap: 0.35rem;
    min-height: 4.5rem;
    padding: 0.5rem 0.75rem;
  }

  .site-nav .navbar-start {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    gap: 0.35rem;
  }

  .site-nav .navbar-end {
    flex: 0 0 auto;
    width: auto;
  }

  .site-nav .navbar-end .btn {
    min-height: 2.35rem;
    padding-inline: 0.7rem;
    font-size: 0.78rem;
  }

  .theme-toggle.btn {
    padding-inline: 0;
  }

  .nav-dropdown {
    left: 0;
    width: min(14rem, calc(100vw - 1.5rem));
  }

  .brand-lockup {
    width: min(42vw, 156px);
    min-width: 150px;
  }

  .hero-section,
  .club-hero {
    min-height: auto;
    overflow: hidden;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-brand-mark {
    right: -4.5rem;
    bottom: 8rem;
    width: min(68vw, 310px);
    min-width: 0;
    opacity: 0.14;
  }

  h1 {
    font-size: clamp(2.35rem, 10.4vw, 2.75rem);
  }

  .club-hero h1 {
    font-size: clamp(2.25rem, 9.4vw, 2.6rem);
  }

  .hero-lead,
  .club-hero-copy p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-wrap: nowrap;
    gap: 0.55rem;
  }

  .hero-actions .btn {
    min-height: 2.7rem;
    padding-inline: 0.78rem;
    font-size: 0.78rem;
  }

  .thread-legend {
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .thread-legend::-webkit-scrollbar {
    display: none;
  }

  .legend-chip {
    min-height: 2.2rem;
    padding: 0.48rem 0.64rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .club-hero-mark {
    display: none;
  }

  .club-hero .btn {
    margin-top: 1.35rem;
  }

  .error-main {
    min-height: calc(100svh - 156px);
  }

  .legal-hero {
    min-height: auto;
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
  }

  .legal-layout {
    padding-top: 2.4rem;
  }

  .legal-aside {
    grid-template-columns: 1fr;
  }

  .legal-section h2 {
    overflow-wrap: anywhere;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }

  .hero-section::after {
    width: 54vw;
  }

  .service-grid,
  .systems-grid,
  .club-detail-grid,
  .club-flow {
    grid-template-columns: 1fr;
  }

  .service-spread,
  .process-band {
    min-height: auto;
  }

  .process-step {
    min-height: auto;
    padding: 1.2rem 0;
  }

  .thread-path {
    stroke-width: 3;
  }

  .vcard-page main {
    min-height: auto;
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
  }

  .vcard-actions {
    flex-direction: column;
  }

  .vcard-actions .btn {
    width: 100%;
  }
}
