/* Inter Variable Font — self-hosted (DSGVO-konform, keine externen Requests) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Veliton Sub-Page Styles
   Consistent with main page: dark theme, orange accent, Inter font
   Used by: impressum, datenschutz, nutzungsbedingungen, privacy, terms, reset-password, 404
*/

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

:root {
  --bg: #050505;
  --bg2: #0a0a0a;
  --text: #fff;
  --text2: #a0a0a8;
  --text3: rgba(255,255,255,0.4);
  --accent: #f97316;
  --accent2: #ea580c;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --panel: rgba(255,255,255,0.025);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: #fff; }

/* Subtle ambient background — much lighter than homepage hero */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 70% -10%, rgba(249,115,22,0.06), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(234,88,12,0.04), transparent 60%);
  pointer-events: none;
}

/* ============ Navigation ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
}

.nav-logo .logo-symbol {
  height: 28px;
  width: auto;
  display: block;
}

.nav-logo .logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text2);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: #fff;
  color: #000 !important;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  transition: opacity .2s, transform .2s;
}

.nav-cta:hover {
  opacity: .88;
  transform: translateY(-1px);
  color: #000 !important;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text2);
  font-size: .9rem;
  font-weight: 500;
}

.nav-back:hover { color: var(--text); }

.nav-back::before {
  content: '←';
  font-size: 1rem;
}

@media (max-width: 768px) {
  .nav { padding: .85rem 1.2rem; }
  .nav-links { display: none; }
  .nav-logo .logo-symbol { height: 24px; }
  .nav-logo .logo-text { font-size: 1.05rem; }
}

/* ============ Page Layout ============ */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

@media (max-width: 768px) {
  .page { padding: 6rem 1.2rem 3rem; }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  transition: color .15s ease, transform .15s ease;
}

.back-link::before { content: '←'; font-size: 1rem; }

.back-link:hover {
  color: #fff;
  transform: translateX(-2px);
}

/* ============ Content Panel ============ */
.legal-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.5rem 2.5rem 3rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  .legal-panel { padding: 2rem 1.4rem 2.4rem; border-radius: 1rem; }
}

.legal-panel h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: .35rem;
  word-wrap: break-word;
}

.legal-panel > p:first-of-type,
.legal-panel > div > p:first-of-type {
  /* "Stand: ..." / "Effective: ..." line */
  color: var(--text3);
  font-size: .85rem;
  font-style: italic;
  margin-bottom: 2.5rem;
}

.legal-panel section {
  margin-bottom: 2.4rem;
}

.legal-panel section:last-child { margin-bottom: 0; }

.legal-panel h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  margin-top: .25rem;
  letter-spacing: -.01em;
}

.legal-panel h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin-top: 1.4rem;
  margin-bottom: .55rem;
}

.legal-panel p {
  color: var(--text2);
  margin-bottom: .9rem;
  line-height: 1.7;
}

.legal-panel strong { color: #fff; font-weight: 600; }

.legal-panel ul, .legal-panel ol {
  color: var(--text2);
  margin: .5rem 0 1rem 1.4rem;
  line-height: 1.7;
}

.legal-panel li { margin-bottom: .45rem; }

.legal-panel li strong { color: #fff; }

.legal-panel a {
  color: var(--accent);
  word-break: break-word;
}

.legal-panel a:hover { color: #fff; }

.legal-panel hr,
.legal-panel .divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* The empty <div></div> separator from the original React code */
.legal-panel section + div:empty {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ============ Footer ============ */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  background: var(--bg);
}

.footer-i {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-logo .logo-symbol {
  height: 20px;
  width: auto;
  display: block;
  opacity: .85;
}

.footer-logo .logo-text {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: -.02em;
  line-height: 1;
}

.footer-links {
  display: flex;
  gap: .8rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text2);
  font-size: .85rem;
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

.footer-sep { color: var(--text3); font-size: .85rem; }

.footer-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-copy, .made-in-de {
  color: var(--text3);
  font-size: .8rem;
}

@media (max-width: 768px) {
  .footer-i { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-right { justify-content: center; flex-wrap: wrap; }
}

/* ============ Reset Password Bridge Page ============ */
.bridge-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

.bridge-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bridge-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(249,115,22,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bridge-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(249,115,22,0.5));
}

.bridge-card h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  color: #fff;
}

.bridge-card .lead {
  font-size: 1.05rem;
  color: var(--text2);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.bridge-btn {
  display: inline-block;
  width: 100%;
  background: var(--accent);
  color: #fff !important;
  padding: 1rem 1.5rem;
  border-radius: .8rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}

.bridge-btn:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  color: #fff !important;
}

.bridge-hint {
  margin-top: 1.5rem;
  font-size: .85rem;
  color: var(--text3);
  font-style: italic;
}

/* ============ 404 Page ============ */
.notfound-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.notfound-content {
  max-width: 520px;
}

.notfound-code {
  font-size: clamp(5rem, 14vw, 8rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.04em;
  margin-bottom: 1rem;
}

.notfound-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}

.notfound-text {
  color: var(--text2);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.notfound-btn {
  display: inline-block;
  background: #fff;
  color: #000 !important;
  padding: .8rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}

.notfound-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
  color: #000 !important;
}
