/* ==========================================================================
   LinkTool.de - Style Sheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Variables)
   -------------------------------------------------------------------------- */
:root {
  font-size: 16px;
  --background: 240 10% 4%;
  --foreground: 0 0% 98%;
  --card: 240 10% 6%;
  --card-foreground: 0 0% 98%;
  --card-border: 240 5% 15%;
  --primary: 180 100% 50%;
  --primary-foreground: 240 10% 4%;
  --muted: 240 5% 15%;
  --muted-foreground: 240 5% 65%;
  --border: 240 5% 15%;
  --destructive: 0 84.2% 60.2%;
  --color-primary: hsl(180 100% 50%);
  --color-purple: hsl(270 91% 65%);
  --color-purple-400: #a855f7;
  --color-blue-400: #3b82f6;
  --color-blue-500: #3b82f6;
  --color-green-400: #22c55e;
  --color-green-500: #22c55e;
  --color-pink-400: #ec4899;
  --color-pink-500: #ec4899;
  --color-amber-500: #f59e0b;
  --color-slate-300: #cbd5e1;
  --container-padding: 20px;
  --container-max-width: 1280px;
  --spacing: 0.25rem;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Geist', sans-serif;
  --blur-xl: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

@media (max-width: 400px) {
  :root {
    --container-padding: 16px;
  }
}

@media (min-width: 768px) {
  :root {
    --container-padding: 40px;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: 60px;
    font-size: 18px;
  }
}

/* --------------------------------------------------------------------------
   2. Reset / Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  background-image: radial-gradient(circle at 15% 50%, rgba(0, 255, 255, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(138, 43, 226, 0.05), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. Skip Link (Accessibility)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: hsl(var(--primary-foreground));
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.page-wrapper {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --------------------------------------------------------------------------
   5. Grid Background
   -------------------------------------------------------------------------- */
.grid-bg {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  z-index: -1;
  opacity: 0.4;
}

/* --------------------------------------------------------------------------
   6. Glass Panel
   -------------------------------------------------------------------------- */
.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(var(--blur-xl));
  -webkit-backdrop-filter: blur(var(--blur-xl));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   7. Glow Line
   -------------------------------------------------------------------------- */
.glow-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.5;
  box-shadow: 0 0 10px var(--color-primary);
}

/* --------------------------------------------------------------------------
   8. Text Gradient
   -------------------------------------------------------------------------- */
.text-gradient {
  background: linear-gradient(90deg, var(--color-primary), var(--color-blue-400), var(--color-purple-400));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 300;
}

.text-primary {
  color: var(--color-primary);
}

.text-purple {
  color: var(--color-purple-400);
}

.text-right {
  text-align: right;
}

/* --------------------------------------------------------------------------
   9. Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsl(var(--background));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: env(safe-area-inset-top, 0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .header-inner {
    height: 5rem;
  }
}

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

.logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
  background: rgba(0, 255, 255, 0.2);
  border: 1px solid rgba(0, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
}

@media (min-width: 768px) {
  .logo-text {
    font-size: 1.25rem;
  }
}

.logo-accent {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   10. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition-normal);
}

.btn-login {
  border: 1px solid rgba(0, 255, 255, 0.5);
  color: var(--color-primary);
  background: transparent;
}

.btn-login:hover {
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   11. Main
   -------------------------------------------------------------------------- */
.main {
  padding-top: calc(4rem + env(safe-area-inset-top, 0));
  padding-bottom: 3rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .main {
    padding-top: calc(5rem + env(safe-area-inset-top, 0));
    padding-bottom: 4rem;
  }
}

/* --------------------------------------------------------------------------
   12. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: 1.5rem 0 4rem;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 2.5rem;
  }
}

.hero-inner {
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.hero-content {
  max-width: 42rem;
  position: relative;
  z-index: 20;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: rgba(0, 255, 255, 0.05);
  font-size: 0.75rem;
  font-family: monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.05em;
  hyphens: auto;
  word-break: break-word;
}

@media (min-width: 400px) {
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
    hyphens: none;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

@media (min-width: 1024px) {
  .hero-visual {
    min-height: 450px;
  }
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 1.5rem;
  filter: blur(100px);
  z-index: -1;
}

.hero-image-wrapper {
  position: relative;
  padding: 1px;
  border-radius: 1rem;
}

.hero-image-border {
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-purple-400));
  border-radius: 1rem;
  opacity: 0.3;
  filter: blur(4px);
}

.hero-image {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 600px;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
}

.stat-card {
  position: absolute;
  z-index: 30;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(var(--blur-xl));
}

.stat-card-sichtbarkeit {
  top: 0.5rem;
  left: 0;
}

.stat-card-indexierung {
  bottom: 1rem;
  right: 0;
}

@media (min-width: 640px) {
  .stat-card-sichtbarkeit {
    top: 1rem;
    left: -1rem;
  }

  .stat-card-indexierung {
    bottom: 2.5rem;
    right: -1rem;
  }
}

@media (min-width: 1024px) {
  .stat-card-sichtbarkeit {
    left: -2rem;
  }

  .stat-card-indexierung {
    right: -2rem;
  }
}

.stat-card-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid;
}

.stat-icon-green {
  background: rgba(34, 197, 94, 0.2);
  color: var(--color-green-400);
  border-color: rgba(34, 197, 94, 0.3);
}

.stat-icon-primary {
  background: rgba(0, 255, 255, 0.2);
  color: var(--color-primary);
  border-color: rgba(0, 255, 255, 0.3);
}

.stat-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.stat-label {
  font-size: 0.625rem;
  font-family: monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.stat-value {
  font-size: 1rem;
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  color: white;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 1.125rem;
  }
}

/* --------------------------------------------------------------------------
   13. Features Section
   -------------------------------------------------------------------------- */
.features {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
  .features {
    padding: 6rem 0;
  }
}

.features-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
  .features-header {
    margin-bottom: 5rem;
  }
}

.features-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  hyphens: auto;
}

@media (min-width: 768px) {
  .features-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    hyphens: none;
  }
}

.features-subtitle {
  font-family: monospace;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   14. Card Hover Effect
   -------------------------------------------------------------------------- */
.card-hover-effect {
  transition: all 500ms ease;
}

@media (hover: hover) {
  .card-hover-effect:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.15);
  }
}

/* --------------------------------------------------------------------------
   15. Feature Cards
   -------------------------------------------------------------------------- */
.feature-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  padding: 1px;
}

.feature-card-inner {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

@media (min-width: 768px) {
  .feature-card-inner {
    flex-direction: row;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 2rem;
  }
}

.feature-icon {
  width: 6rem;
  height: 6rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .feature-icon {
    width: 8rem;
    height: 8rem;
  }
}

.feature-icon-primary {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.feature-icon-purple {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.05);
}

.feature-icon-blue {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.05);
}

.feature-icon-pink {
  background: rgba(236, 72, 153, 0.05);
  border: 1px solid rgba(236, 72, 153, 0.2);
  box-shadow: inset 0 0 20px rgba(236, 72, 153, 0.05);
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.5));
  transition: transform 700ms ease;
}

@media (hover: hover) {
  .feature-card:hover .feature-img {
    transform: scale(1.1);
  }
}

.feature-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.feature-icon-svg {
  width: 1rem;
  height: 1rem;
  color: var(--color-primary);
}

.feature-icon-purple-svg {
  color: var(--color-purple-400);
}

.feature-icon-blue-svg {
  color: var(--color-blue-400);
}

.feature-icon-pink-svg {
  color: var(--color-pink-400);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: white;
}

.feature-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   16. Marktplatz Section
   -------------------------------------------------------------------------- */
.marktplatz {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .marktplatz {
    padding: 6rem 0;
  }
}

@media (min-width: 1024px) {
  .marktplatz {
    padding: 8rem 0;
  }
}


.marktplatz-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .marktplatz-grid {
    flex-direction: row;
    gap: 4rem;
  }
}

.marktplatz-content {
  flex: 1;
  max-width: 48rem;
}

@media (min-width: 1024px) {
  .marktplatz-content {
    width: 50%;
  }
}

.ki-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.05);
  font-size: 0.75rem;
  font-family: monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-purple-400);
  margin-bottom: 1.5rem;
}

.ki-badge svg {
  width: 0.75rem;
  height: 0.75rem;
}

.marktplatz-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  hyphens: auto;
}

@media (min-width: 768px) {
  .marktplatz-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    hyphens: none;
  }
}

.marktplatz-text {
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 2rem;
}

.marktplatz-list {
  list-style: none;
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--color-slate-300);
}

.marktplatz-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.list-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.list-dot-primary {
  background: var(--color-primary);
  box-shadow: 0 0 5px var(--color-primary);
}

.list-dot-purple {
  background: var(--color-purple-400);
  box-shadow: 0 0 5px var(--color-purple-400);
}

.list-dot-blue {
  background: var(--color-blue-400);
  box-shadow: 0 0 5px var(--color-blue-400);
}

/* --------------------------------------------------------------------------
   17. Publisher Table Card
   -------------------------------------------------------------------------- */
.marktplatz-table-wrapper {
  width: 100%;
}

@media (min-width: 1024px) {
  .marktplatz-table-wrapper {
    width: 50%;
  }
}

.publisher-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.publisher-card-header {
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 0.5rem;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) {
  background: rgba(239, 68, 68, 0.8);
}

.window-dots span:nth-child(2) {
  background: rgba(245, 158, 11, 0.8);
}

.window-dots span:nth-child(3) {
  background: rgba(34, 197, 94, 0.8);
}

.matches-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: monospace;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(0, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.publisher-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.6);
}

.publisher-table {
  width: 100%;
  font-family: monospace;
  font-size: 0.875rem;
  text-align: left;
  border-collapse: collapse;
}

.publisher-table th,
.publisher-table td {
  padding: 0.75rem 1rem;
}

@media (min-width: 768px) {
  .publisher-table th,
  .publisher-table td {
    padding: 1rem 1.5rem;
  }
}

.publisher-table thead {
  color: hsl(var(--muted-foreground));
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.publisher-table tbody {
  color: var(--color-slate-300);
}

.publisher-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition-fast);
}

.publisher-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.publisher-table tbody tr.row-highlight {
  background: rgba(0, 255, 255, 0.05);
}

.publisher-blur {
  color: white;
  filter: blur(4px);
  user-select: none;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: black;
  padding: 2rem 0;
  position: relative;
  z-index: 20;
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem 0;
  }
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-tagline {
  color: hsl(var(--muted-foreground));
  font-family: monospace;
  font-size: 0.875rem;
  max-width: 24rem;
}

.footer-legal-title {
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-family: monospace;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 2rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-version {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   19. Cookie Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: hsl(var(--card));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem var(--container-padding);
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner-text {
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  line-height: 1.5;
}

.cookie-banner-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  text-decoration: none;
}

.cookie-accept-button {
  min-height: 44px;
  padding: 0.5rem 1.5rem;
  background: var(--color-primary);
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: 0.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.cookie-accept-button:hover {
  opacity: 0.9;
}

.cookie-accept-button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   20. Legal Pages
   -------------------------------------------------------------------------- */
.legal-main {
  padding-top: calc(5rem + env(safe-area-inset-top, 0));
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .legal-main {
    padding-top: 8rem;
  }
}

.legal-section {
  padding: 1.5rem 0;
}

@media (min-width: 768px) {
  .legal-section {
    padding: 2rem 0;
  }
}

.legal-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .legal-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

.legal-content {
  max-width: 48rem;
  line-height: 1.7;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1.5rem;
}

.legal-content a {
  color: var(--color-primary);
}

.legal-content a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   21. 404 Error Page
   -------------------------------------------------------------------------- */
.error-main {
  padding-top: calc(5rem + env(safe-area-inset-top, 0));
  padding-bottom: 4rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .error-main {
    padding-top: 8rem;
  }
}

.error-section {
  text-align: center;
}

.error-code {
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .error-code {
    font-size: 6rem;
  }
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.error-text {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.error-cta {
  display: inline-block;
}
