/* ==========================================================================
   Barts Verleihservice – Modern Redesign
   Dark/Light contrast with warm accent gradient
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* CSS Custom Properties */
:root {
  /* Colors – Dark & Vibrant */
  --color-dark: #0b0b0f;
  --color-dark-card: #16161d;
  --color-dark-surface: #1e1e28;
  --color-dark-border: rgba(255, 255, 255, 0.08);

  --color-light: #ffffff;
  --color-light-bg: #f5f5fa;
  --color-light-card: #ffffff;
  --color-light-border: rgba(0, 0, 0, 0.06);

  --color-text-on-dark: #e8e8ee;
  --color-text-muted-dark: #9a9ab0;
  --color-text-on-light: #1a1a2e;
  --color-text-muted-light: #6b6b80;

  /* Accent Gradient – Warm Orange/Amber */
  --accent-start: #ff6b35;
  --accent-end: #ffb347;
  --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  --accent-glow: rgba(255, 107, 53, 0.3);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.8125rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3rem;
  --font-size-5xl: 3.75rem;
  --font-size-6xl: 4.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition: 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 600ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-8));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-on-light);
  background-color: var(--color-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 var(--space-4);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   Header – Glassmorphism on Dark
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(11, 11, 15, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-dark-border);
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(11, 11, 15, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
  font-weight: 800;
  font-size: var(--font-size-lg);
  color: var(--color-light);
  letter-spacing: -0.02em;
}

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

.nav {
  display: none;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted-dark);
  position: relative;
  padding: var(--space-2) 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width var(--transition);
}

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

.nav a:hover::after {
  width: 100%;
}

.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-light);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-phone svg {
  stroke: var(--accent-start);
}

@media (min-width: 1024px) {
  .header-phone {
    display: flex;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-light);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(11, 11, 15, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-dark-border);
  padding: var(--space-8);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  z-index: 99;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.mobile-nav a {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-text-on-dark);
  padding: var(--space-2) 0;
}

.mobile-phone {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

/* ==========================================================================
   Hero Section – Dark with Gradient Overlay
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  text-align: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 15, 0.6) 0%, rgba(11, 11, 15, 0.2) 40%, rgba(11, 11, 15, 0.8) 100%),
    linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, transparent 50%);
}

.hero-content {
  width: 100%;
  max-width: 900px;
  padding: var(--space-8);
  color: var(--color-light);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(255, 107, 53, 0.15);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--accent-end);
  margin-bottom: var(--space-8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  color: var(--color-light);
  margin-bottom: var(--space-6);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: var(--font-size-5xl);
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: var(--font-size-6xl);
  }
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: var(--color-text-muted-dark);
  margin-bottom: var(--space-12);
  letter-spacing: -0.01em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: var(--font-size-xl);
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    gap: var(--space-4);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--color-dark);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: var(--color-dark);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-light);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Buttons on light backgrounds */
.section-light .btn-primary {
  background: var(--accent-gradient);
  color: var(--color-dark);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: var(--space-20) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-32) 0;
  }
}

/* Dark section (default) */
.section-dark {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
}

/* Light section */
.section-light {
  background: var(--color-light-bg);
  color: var(--color-text-on-light);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  text-align: center;
  margin-bottom: var(--space-4);
  letter-spacing: -0.04em;
}

.section-dark .section-title {
  color: var(--color-light);
}

.section-light .section-title {
  color: var(--color-text-on-light);
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--font-size-4xl);
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: var(--font-size-5xl);
  }
}

.section-title-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

.section-dark .section-intro {
  color: var(--color-text-muted-dark);
}

.section-light .section-intro {
  color: var(--color-text-muted-light);
}

/* ==========================================================================
   Products
   ========================================================================== */

.products {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

@media (min-width: 1024px) {
  .products {
    gap: var(--space-24);
  }
}

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  background: var(--color-dark-card);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-dark-border);
  transition: border-color var(--transition);
  overflow: hidden;
  max-width: 100%;
}

.product:hover {
  border-color: rgba(255, 107, 53, 0.2);
}

@media (min-width: 768px) {
  .product {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
    padding: var(--space-8);
  }

  .product:nth-child(even) .product-gallery {
    order: 2;
  }
}

/* Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  max-width: 100%;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-dark-surface);
  aspect-ratio: 16/9;
  width: 100%;
}

.gallery-main img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-main video {
  position: absolute;
  top: 0;
  left: 0;
}

.gallery-main:hover img {
  transform: scale(1.03);
}

/* Image position overrides */
.gallery-main img[src*="kroko_2"] {
  object-position: center 10%;
}

.gallery-main img[src*="kroko_3"] {
  object-position: center 10%;
}

.gallery-main img[src*="kroko_4"] {
  object-position: center center;
}

.gallery-main img[src*="kroko_5"] {
  object-position: left center;
}

.gallery-main img[src*="kroko_6"] {
  object-position: center 10%;
}

.gallery-main img[src*="zoo_6"] {
  object-position: center 40%;
}

.gallery-main img[src*="zoo_7"] {
  object-position: center 40%;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-bottom: var(--space-1);
}

.thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: none;
  transition: all var(--transition-fast);
  opacity: 0.5;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb:hover {
  opacity: 0.8;
}

.thumb.active {
  border-color: var(--accent-start);
  opacity: 1;
}

/* Video Thumbnail */
.thumb-video {
  position: relative;
}

.thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Gallery Video */
.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Product Info */
.product-info {
  padding: var(--space-2) 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 767px) {
  .product-info {
    text-align: center;
  }

  .product-info .product-description,
  .product-info h3 {
    text-align: left;
  }

  .product-info .btn {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .product-info {
    padding: var(--space-6) var(--space-4);
  }
}

.product-info h3 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
  color: var(--color-light);
}

@media (min-width: 768px) {
  .product-info h3 {
    font-size: var(--font-size-3xl);
  }
}

.product-description {
  color: var(--color-text-muted-dark);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

@media (max-width: 480px) {
  .product-specs {
    flex-direction: column;
  }
}

.spec {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-on-dark);
}

.spec svg {
  flex-shrink: 0;
  color: var(--accent-start);
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing {
  display: grid;
  gap: var(--space-6);
}

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

.pricing-card {
  background: var(--color-light-card);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-light-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.pricing-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-light-bg);
  color: var(--color-text-on-light);
  letter-spacing: -0.02em;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.price-row:last-of-type {
  border-bottom: none;
}

.price-row.highlight {
  background: var(--accent-gradient);
  margin: var(--space-2) calc(-1 * var(--space-5));
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border-bottom: none;
}

.price-row.highlight .price-label,
.price-row.highlight .price-value {
  color: var(--color-dark);
}

.price-row.highlight .price-label {
  font-weight: 600;
}

.price-label {
  color: var(--color-text-muted-light);
  font-size: var(--font-size-base);
}

.price-value {
  font-weight: 700;
  color: var(--color-text-on-light);
  font-size: var(--font-size-lg);
}

.price-value small {
  font-weight: 400;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted-light);
}

.price-row.highlight .price-value small {
  color: rgba(0, 0, 0, 0.6);
}

.price-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted-light);
  margin: var(--space-2) 0 var(--space-4);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--accent-start);
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--color-light);
  font-weight: 600;
}

.contact-item a,
.contact-item span {
  color: var(--color-text-muted-dark);
}

.contact-item a:hover {
  color: var(--accent-start);
}

/* Form on Dark */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-on-dark);
}

.form-group input,
.form-group textarea {
  padding: var(--space-4);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  background: var(--color-dark-surface);
  color: var(--color-text-on-dark);
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-start);
  background: var(--color-dark-card);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Date input fix for dark theme */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* ==========================================================================
   Footer – Dark
   ========================================================================== */

.footer {
  background: var(--color-dark-card);
  color: var(--color-text-muted-dark);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid var(--color-dark-border);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-dark-border);
}

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

.footer-brand .logo {
  display: block;
  color: var(--color-light);
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: var(--font-size-sm);
  margin: 0;
  color: var(--color-text-muted-dark);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--color-text-muted-dark);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

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

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  color: var(--color-text-muted-dark);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover {
  color: var(--accent-start);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: var(--space-6);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--font-size-xs);
  margin: 0;
  color: var(--color-text-muted-dark);
}

/* ==========================================================================
   Legal Pages (Impressum, Datenschutz)
   ========================================================================== */

.legal-page {
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-16);
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  min-height: 100vh;
}

.legal-page h1 {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-12);
  color: var(--color-light);
}

.legal-page h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-light);
  letter-spacing: -0.02em;
}

.legal-page h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--color-text-on-dark);
}

.legal-page p {
  color: var(--color-text-muted-dark);
  line-height: 1.8;
  max-width: 720px;
}

.legal-page a {
  color: var(--accent-start);
}

.legal-page a:hover {
  color: var(--accent-end);
}

.legal-page strong {
  color: var(--color-text-on-dark);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

/* Gradient text utility */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Decorative glow orb */
.glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Features/Stats Bar
   ========================================================================== */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  text-align: center;
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-dark-border);
  border-bottom: 1px solid var(--color-dark-border);
}

.stat-item strong {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.stat-item span {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted-dark);
  font-weight: 500;
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ==========================================================================
   Availability Calendar
   ========================================================================== */

.calendar-wrapper {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  background: var(--color-dark-card);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .calendar-wrapper {
    padding: var(--space-8);
  }
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.cal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-dark-surface);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text-on-dark);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.cal-btn:hover {
  background: rgba(255, 107, 53, 0.15);
  border-color: rgba(255, 107, 53, 0.3);
  color: var(--accent-start);
}

.cal-month-label {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-light);
  letter-spacing: -0.02em;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: var(--space-5);
}

@media (max-width: 400px) {
  .calendar-grid {
    gap: 2px;
  }

  .cal-header {
    font-size: 0.6rem;
    padding: var(--space-1) 0 var(--space-2);
  }

  .cal-day-num {
    font-size: 0.75rem;
  }

  .cal-day-label {
    font-size: 0.45rem;
  }

  .cal-month-label {
    font-size: var(--font-size-base);
  }
}

.cal-header {
  text-align: center;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted-dark);
  padding: var(--space-2) 0 var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-on-dark);
  border-radius: var(--radius-sm);
  background: var(--color-dark-surface);
  transition: background var(--transition-fast);
  user-select: none;
}

.cal-day.cal-empty {
  background: transparent;
}

.cal-day.cal-past {
  opacity: 0.3;
  color: var(--color-text-muted-dark);
}

.cal-day.cal-today {
  border: 2px solid var(--accent-start);
  color: var(--accent-end);
  font-weight: 700;
}

.cal-day.cal-booked-kroko,
.cal-day.cal-booked-zoo,
.cal-day.cal-booked-both {
  flex-direction: column;
  gap: 2px;
  cursor: not-allowed;
}

.cal-day.cal-booked-kroko {
  background: linear-gradient(135deg, #ff6b35, #ffb347);
  color: #0b0b0f;
}

.cal-day.cal-booked-zoo {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.cal-day.cal-booked-both {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
}

.cal-day-num {
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1;
}

.cal-day-label {
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-dark-border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted-dark);
}

.legend-item::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.legend-available::before {
  background: var(--color-dark-surface);
  border: 1px solid var(--color-dark-border);
}

.legend-kroko::before {
  background: linear-gradient(135deg, #ff6b35, #ffb347);
}

.legend-zoo::before {
  background: linear-gradient(135deg, #10b981, #059669);
}

.legend-both::before {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

/* ==========================================================================
   Contact Form Status Message
   ========================================================================== */

.form-message {
  display: none;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-align: center;
  margin-top: var(--space-2);
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

/* ==========================================================================
   Chat Widget
   ========================================================================== */

.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

/* Toggle-Button */
.chat-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px var(--accent-glow);
}

.chat-icon-close {
  display: none;
}

/* Chat-Fenster */
.chat-window {
  width: 330px;
  max-height: 460px;
  background: var(--color-dark-card);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  transform-origin: bottom right;
}

.chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: var(--color-dark-surface);
  border-bottom: 1px solid var(--color-dark-border);
  flex-shrink: 0;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.chat-header-text strong {
  display: block;
  color: var(--color-text-on-dark);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.chat-header-text span {
  font-size: var(--font-size-xs);
  color: #4ade80;
}

/* Nachrichten-Bereich */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-dark-border) transparent;
}

.chat-message {
  max-width: 88%;
  padding: 0.6rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  line-height: 1.55;
}

.chat-message p {
  margin: 0;
}

.chat-message--user {
  background: var(--accent-gradient);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-message--bot {
  background: var(--color-dark-surface);
  color: var(--color-text-on-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* Tipp-Animation */
.chat-message--typing {
  background: var(--color-dark-surface);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  padding: 0.7rem 0.875rem;
}

.typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 18px;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--color-text-muted-dark);
  border-radius: 50%;
  animation: chatBounce 1.2s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-6px); }
}

/* Eingabe-Bereich */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  border-top: 1px solid var(--color-dark-border);
  background: var(--color-dark-surface);
  flex-shrink: 0;
}

#chatInput {
  flex: 1;
  background: var(--color-dark-card);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.875rem;
  color: var(--color-text-on-dark);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

#chatInput::placeholder {
  color: var(--color-text-muted-dark);
}

#chatInput:focus {
  border-color: var(--accent-start);
}

#chatSend {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

#chatSend:hover {
  transform: scale(1.1);
}

#chatSend:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 400px) {
  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-window {
    width: calc(100vw - 2rem);
  }
}
