/* ═══════════════════════════════════════
   KiteCucc — Modern Kite Rental Website
   ═══════════════════════════════════════ */

/* ── Reset & Base ─────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --off-white: #f7f7f8;
  --gray-50: #fafafa;
  --gray-100: #f0f0f2;
  --gray-200: #e2e2e6;
  --gray-300: #c8c8cf;
  --gray-400: #9d9da8;
  --gray-500: #6e6e7a;
  --gray-600: #4a4a56;
  --gray-700: #33333d;
  --gray-800: #1e1e26;
  --gray-900: #111117;
  --black: #08080c;

  --accent: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.12);

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  animation: pageIn 0.6s var(--ease-out-expo) both;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Container ────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ── Section tag / label ──────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  transition: color 0.4s ease;
}

#header.scrolled .logo-text {
  color: var(--gray-900);
}

.nav-desktop {
  display: flex;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.25s ease;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.3s var(--ease-out-expo);
}

.nav-desktop a:hover {
  color: var(--white);
}

.nav-desktop a:hover::after {
  width: 100%;
}

#header.scrolled .nav-desktop a {
  color: var(--gray-500);
}

#header.scrolled .nav-desktop a:hover {
  color: var(--gray-900);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

#header.scrolled .nav-toggle span {
  background: var(--gray-800);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8, 8, 12, 0.96);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo), color 0.2s ease;
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.25s; }

.mobile-nav a:hover {
  color: var(--gray-300);
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8,8,12,0.75) 0%, rgba(8,8,12,0.35) 50%, rgba(8,8,12,0.15) 100%),
    linear-gradient(to top, rgba(8,8,12,0.6) 0%, transparent 40%);
}

.hero-video-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  animation: canvasFadeIn 2s ease 0.4s both;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  padding-top: 72px;
}

.hero-left {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

#hero h1 .accent {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.6);
  max-width: 440px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--white);
  color: var(--gray-900);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--gray-900);
  color: var(--white);
}

.btn-sm:hover {
  background: var(--gray-700);
  transform: translateY(-1px);
}

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-hint span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ══════════════════════════════════════
   BRAND TICKER
   ══════════════════════════════════════ */
.brands-section {
  padding: 3.5rem 0;
  background: var(--gray-900);
  overflow: hidden;
}

.brands-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 1.5rem;
}

.brands-ticker {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}

.ticker-item {
  flex-shrink: 0;
  padding: 0 clamp(24px, 4vw, 48px);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
  transition: color 0.3s ease;
  letter-spacing: -0.01em;
}

.ticker-item:hover {
  color: rgba(255,255,255,0.6);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════
   RENTAL SECTION
   ══════════════════════════════════════ */
.rental-section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--white);
}

.rental-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .rental-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

.rental-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rental-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gray-900), var(--gray-500));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rental-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: var(--gray-300);
}

.rental-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.rental-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.rental-card > p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-features li {
  font-size: 0.85rem;
  color: var(--gray-600);
  padding-left: 1.25rem;
  position: relative;
}

.card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-300);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
}

.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

/* ══════════════════════════════════════
   PICKUP SECTION
   ══════════════════════════════════════ */
.pickup-section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--off-white);
}

.pickup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .pickup-grid {
    grid-template-columns: 1fr;
  }
}

.pickup-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.pickup-address {
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.pickup-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pickup-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pickup-detail svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gray-400);
  margin-top: 2px;
}

.pickup-detail strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.pickup-detail span {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.pickup-detail a {
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pickup-detail a:hover {
  color: var(--gray-900);
  border-color: var(--gray-400);
}

.pickup-map {
  border-radius: 20px;
  overflow: hidden;
  min-height: 360px;
  background: var(--gray-200);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.pickup-map iframe {
  display: block;
}

/* ══════════════════════════════════════
   CONTACT / IMPRESSZUM
   ══════════════════════════════════════ */
.contact-section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-main h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.contact-main > p {
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 400px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 14px 20px;
  background: var(--off-white);
  border-radius: 14px;
  border: 1px solid var(--gray-100);
  transition: all 0.3s var(--ease-out-expo);
}

.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gray-400);
}

.contact-link:hover {
  background: var(--gray-100);
  border-color: var(--gray-200);
  transform: translateX(4px);
}

/* Impresszum */
.contact-impresszum {
  padding: 2rem;
  background: var(--off-white);
  border-radius: 20px;
  border: 1px solid var(--gray-100);
}

.contact-impresszum h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.impresszum-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 1.25rem;
}

.impresszum-list dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.impresszum-list dd {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.impresszum-list a {
  border-bottom: 1px solid var(--gray-200);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.impresszum-list a:hover {
  color: var(--gray-900);
  border-color: var(--gray-400);
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
footer {
  padding: 2rem 0;
  background: var(--gray-900);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  opacity: 0.6;
}

.footer-left span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer-right {
  display: flex;
  gap: 1rem;
}

.footer-right a {
  color: var(--gray-500);
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
}

.footer-right a svg {
  width: 18px;
  height: 18px;
}

.footer-right a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   PAGE LOAD TRANSITION
   ══════════════════════════════════════ */
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes canvasFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════ */
[data-anim] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-anim].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   SELECTION & SCROLLBAR
   ══════════════════════════════════════ */
::selection {
  background: rgba(17, 17, 23, 0.15);
  color: var(--gray-900);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ══════════════════════════════════════
   RESPONSIVE FINE-TUNING
   ══════════════════════════════════════ */
@media (max-width: 480px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .rental-card {
    padding: 1.75rem;
  }

  .pickup-map {
    min-height: 260px;
  }
}

/* ══════════════════════════════════════
   FOCUS / ACCESSIBILITY
   ══════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--gray-400);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (min-width: 1600px) {
  .container {
    max-width: 1360px;
  }
}

/* ══════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker-track {
    animation: none;
  }

  [data-anim] {
    opacity: 1;
    transform: none;
  }
}
