:root {
  --bg-primary: #050505;
  --bg-secondary: #111111;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --accent-1: #3b82f6; /* Blue */
  --accent-2: #8b5cf6; /* Purple */
  --accent-3: #14b8a6; /* Teal */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius-md: 12px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-1);
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.gradient-text-alt {
  background: linear-gradient(135deg, var(--accent-3), var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--text-secondary);
  font-weight: 400;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Subtle background glow effect */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, rgba(5,5,5,0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: float 20s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, rgba(5,5,5,0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: float 15s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-content {
  text-align: left;
  max-width: 800px;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

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

/* Text Cycling Animation Container */
.cycle-container {
  display: inline-flex;
  position: relative;
  height: 1.2em;
  vertical-align: bottom;
  overflow: hidden;
  min-width: 200px;
}

@media (min-width: 768px) {
  .cycle-container {
    min-width: 350px;
  }
}

.cycle-text {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.5s ease;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.cycle-text.active {
  top: 0;
  opacity: 1;
}

.cycle-text.prev {
  top: -100%;
  opacity: 0;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.25rem;
    margin: 0 auto 40px auto;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px -10px rgba(59, 130, 246, 0.7);
  color: #fff;
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Services Section */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

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

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

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-1);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

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

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 100px 0;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.05) 0%, rgba(5,5,5,0) 70%);
}

.cta-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 40px;
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 40px;
  background: var(--bg-primary);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 0.875rem;
}

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

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-col ul li a:hover {
  color: var(--accent-1);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

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

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Page specific content (Impressum, AGB, Datenschutz) */
.page-header {
  padding: 160px 0 60px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 60px;
}

.page-header h1 {
  font-size: 3rem;
}

.content-block {
  max-width: 800px;
  margin: 0 auto 100px auto;
  color: var(--text-secondary);
}

.content-block h2 {
  color: var(--text-primary);
  margin: 40px 0 16px;
  font-size: 1.5rem;
}

.content-block h3 {
  color: var(--text-primary);
  margin: 24px 0 12px;
  font-size: 1.25rem;
}

.content-block p {
  margin-bottom: 16px;
}

.content-block ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-block li {
  margin-bottom: 8px;
}
