/* ==========================================================================
   Lassak Digital - Core Design System & Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Root Variables & Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121216;
  --bg-card: rgba(18, 18, 22, 0.6);
  --bg-card-hover: rgba(22, 22, 28, 0.85);
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0a5;
  --text-muted: #5c5d61;
  
  --accent: #ff4d1c;
  --accent-hover: #ff683d;
  --accent-dim: rgba(255, 77, 28, 0.15);
  --accent-dim-hover: rgba(255, 77, 28, 0.25);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 77, 28, 0.25);
  --border-glow: rgba(255, 77, 28, 0.4);
  
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;
  
  --shadow-main: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 10px 30px -10px rgba(255, 77, 28, 0.2);
}

/* --------------------------------------------------------------------------
   Resets & Base Styles
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

body.mobile-open {
  overflow: hidden;
}

/* Hide default cursor on desktops */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  body a, body button, body select, body textarea, body .interactive, body iframe {
    cursor: none;
  }
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
  transition: background var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Custom Cursor
   -------------------------------------------------------------------------- */
.cursor, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  display: none;
  transition: width var(--transition-smooth), height var(--transition-smooth), border-color var(--transition-smooth);
}

@media (pointer: fine) {
  .cursor {
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
  }
  .cursor-ring {
    display: block;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 77, 28, 0.4);
    box-shadow: 0 0 10px rgba(255, 77, 28, 0.05);
  }
}

/* --------------------------------------------------------------------------
   Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  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);
}

/* --------------------------------------------------------------------------
   Layout & Reusable Typography
   -------------------------------------------------------------------------- */
section {
  padding: 60px 20px;
  position: relative;
}

@media (min-width: 768px) {
  section {
    padding: 100px 40px;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 120px 80px;
  }
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.accent-line {
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  margin-bottom: 28px;
  border-radius: 2px;
}

/* Button UI Elements */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--accent);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 40px;
  border: 1px solid var(--accent);
  transition: transform var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(255, 77, 28, 0.4);
}

.btn-primary svg {
  transition: transform var(--transition-smooth);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 40px;
  border: 1px solid var(--border-color);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), background-color var(--transition-smooth);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background-color: var(--accent-dim);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Navigation Bar (NAV)
   -------------------------------------------------------------------------- */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-smooth);
}

@media (min-width: 768px) {
  nav {
    padding: 14px 40px;
  }
}

@media (min-width: 1024px) {
  nav {
    padding: 14px 80px;
    background-color: rgba(10, 10, 12, 0.85);
  }
}

.nav-logo {
  height: 24px;
  display: flex;
  align-items: center;
  z-index: 1002;
  transition: height var(--transition-smooth);
}

@media (min-width: 1024px) {
  .nav-logo {
    height: 28px;
  }
}

.nav-logo a {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Hamburger Toggle Button */
.nav-toggle {
  background: transparent;
  border: none;
  outline: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  z-index: 1002;
  padding: 0;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hamburger transforms on open */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--accent);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--accent);
}

/* Mobile Menu Layout (Default / Mobile-First) */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(10, 10, 12, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 120px 24px 40px;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  list-style: none;
}

.nav-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu li a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.nav-menu li a:hover {
  color: var(--accent);
}

.nav-menu .nav-cta {
  font-size: 1rem;
  margin-top: 16px;
  width: auto;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
  .nav-menu {
    position: static;
    flex-direction: row;
    height: auto;
    width: auto;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    gap: 32px;
  }
  .nav-menu li a {
    font-size: 0.95rem;
    font-weight: 500;
  }
  .nav-menu .nav-cta {
    margin-top: 0;
    padding: 8px 18px;
    font-size: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 20%;
  width: 30vw;
  height: 30vw;
  background-color: var(--accent-dim);
  filter: blur(120px);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.hero-glow2 {
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 25vw;
  height: 25vw;
  background-color: rgba(255, 77, 28, 0.08);
  filter: blur(100px);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
}

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

.hero h1 .accent {
  color: var(--accent);
  display: block;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 40px;
}

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

/* Scroll-Down Button */
.hero-scroll-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-primary);
  z-index: 5;
  transition: color var(--transition-smooth), transform var(--transition-smooth);
  display: block;
}

.hero-scroll-btn:hover {
  color: var(--accent);
  transform: translateX(-50%) scale(1.2);
}

.hero-scroll-btn svg {
  display: block;
  width: 36px;
  height: 36px;
  animation: arrowBounce 2.5s infinite ease-in-out;
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* --------------------------------------------------------------------------
   Process Features Section
   -------------------------------------------------------------------------- */
.process-features {
  border-bottom: 1px solid var(--border-color);
}

.process-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.process-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.process-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 35px 30px;
  border-radius: 16px;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.process-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.process-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-dim);
  transition: color var(--transition-smooth);
}

.process-card:hover .process-num {
  color: var(--accent);
}

.process-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.process-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Workflow Section
   -------------------------------------------------------------------------- */
.workflow {
  background-color: rgba(18, 18, 22, 0.3);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 0;
}

@media (min-width: 1024px) {
  .workflow {
    padding: 100px 0;
  }
}

.workflow-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.workflow-header .section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 12px;
}

.timeline {
  counter-reset: step-counter;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
  list-style: none;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(255, 77, 28, 0.05),
    var(--accent) 15%,
    var(--accent) 85%,
    rgba(255, 77, 28, 0.05)
  );
  z-index: 1;
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-step {
  position: relative;
  margin-bottom: 48px;
  width: 100%;
  counter-increment: step-counter;
  z-index: 2;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

/* Numbered dot on timeline using CSS counter and pseudo-element */
.timeline-step::before {
  content: counter(step-counter);
  position: absolute;
  top: 28px;
  left: 20px;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 8px var(--accent-dim);
  transition: border-color var(--transition-smooth), background-color var(--transition-smooth), color var(--transition-smooth), box-shadow var(--transition-smooth);
}

@media (min-width: 768px) {
  .timeline-step::before {
    left: 50%;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    top: 36px;
  }
}

.timeline-step:hover::before {
  background-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 15px var(--accent);
}

/* Card styling */
.workflow-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px 24px;
  margin-left: 45px;
  width: calc(100% - 45px);
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

@media (min-width: 768px) {
  .workflow-card {
    width: calc(50% - 35px);
    margin-left: 0;
    padding: 36px;
  }
}

.workflow-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.workflow-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.workflow-badge::before {
  content: "Schritt " counter(step-counter);
}

.workflow-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
  color: var(--text-primary);
}

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

.workflow-target {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background-color: rgba(10, 10, 12, 0.5);
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.workflow-target span {
  font-weight: 700;
  color: var(--text-primary);
}

.workflow-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (min-width: 768px) {
  /* Alternating layouts */
  .timeline-step:nth-child(odd) .workflow-card {
    margin-left: 0;
    margin-right: auto;
  }
  
  .timeline-step:nth-child(even) .workflow-card {
    margin-left: auto;
    margin-right: 0;
  }
}

/* --------------------------------------------------------------------------
   Contact Section (Direkter Draht)
   -------------------------------------------------------------------------- */
.contact {
  padding-top: 20px;
}

@media (min-width: 768px) {
  .contact {
    padding-top: 30px;
  }
}

@media (min-width: 1024px) {
  .contact {
    padding-top: 40px;
  }
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.contact-sidebar {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: 16px;
}

.contact-sidebar h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-sidebar p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: rgba(10, 10, 12, 0.4);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 12px;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.contact-method:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.contact-method-icon {
  font-size: 1.8rem;
  color: var(--accent);
}

.contact-method-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.contact-method-val {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.contact-footer-logo {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.contact-footer-logo img {
  height: 28px;
  opacity: 0.4;
  transition: opacity var(--transition-smooth);
}

.contact-footer-logo img:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Callback Form Section
   -------------------------------------------------------------------------- */
.callback-section {
  position: relative;
}

.callback-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.callback-header {
  text-align: center;
}

.callback-header .section-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 12px;
}

.callback-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-main);
  position: relative;
  transition: all var(--transition-smooth);
}

#formspree-callback {
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.form-group input {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group input:focus + label,
.form-group:focus-within label {
  color: var(--accent);
}

#formspree-callback button[type="submit"] {
  margin-top: 12px;
  width: 100%;
  cursor: pointer;
}

#form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.5;
  animation: formSuccessFadeIn 0.5s var(--transition-smooth) forwards;
}

@keyframes formSuccessFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Footer Section
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border-color);
  background-color: #08080a;
  padding: 40px 20px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
