:root {
  /* Colors - Premium Dark Mode with Deep Teal/Emerald */
  --bg-color: #050a15;
  --bg-color-alt: #0b1120;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary-color: #0d9488;
  --primary-glow: rgba(13, 148, 136, 0.4);
  --accent-color: #10b981;
  --glass-bg: rgba(30, 41, 59, 0.5);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing & Sizes */
  --container-width: 1100px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism utility */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.3);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px var(--primary-glow);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(5, 10, 21, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  background: linear-gradient(90deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a:not(.btn-outline):hover {
  color: var(--primary-color);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.15) 0%, rgba(5, 10, 21, 1) 50%);
  padding-top: var(--nav-height);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: 50px;
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

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

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Hero Animation ITASCON */
.hero-animation-container {
  margin: 3rem 0;
  position: relative;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; 
}

.itascon-anim {
  display: flex;
  flex-direction: row; 
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  position: relative;
  opacity: 0; 
  transition: opacity 1s ease;
  perspective: 800px;
  width: 100%;
}

.itascon-anim.loaded {
  opacity: 1;
}

.letter-group {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  position: relative;
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  max-width: 1000px;
  opacity: 1;
  transform: translateZ(0) scale(1);
  filter: blur(0);
}

.letter {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(180deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.suffix {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent-color);
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-in-out 0.2s, padding 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  padding-left: 0;
  margin-bottom: 3px;
}

/* Hidden letters dissolve into background */
.letter-group.hidden-letter {
  max-width: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  transform: translateZ(-80px) scale(0.6);
  filter: blur(6px);
}

/* Active letter pops to foreground */
.letter-group.active {
  transform: translateZ(30px) scale(1.05);
}

/* Active letter expands its suffix */
.letter-group.active .suffix {
  max-width: 600px;
  opacity: 1;
  padding-left: 6px;
}


/* Mission */
.mission {
  background-color: var(--bg-color-alt);
}

.mission-content {
  text-align: center;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

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

/* Leistungen */
.leistungen {
  background-color: var(--bg-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  text-align: center;
}

.service-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.service-card p {
  color: var(--text-muted);
}

/* Founder */
.founder {
  background-color: var(--bg-color-alt);
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.founder-image-wrapper {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.founder-image {
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(13, 148, 136, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.founder-text h2 {
  font-size: 2.5rem;
  margin: 1rem 0 0.5rem;
}

.founder-text h4 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 500;
}

.founder-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Utilities */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Contact CTA */
.contact {
  background-color: var(--bg-color);
}

.contact-card {
  padding: 4rem 2rem;
  border-color: rgba(13, 148, 136, 0.4);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(13, 148, 136, 0.1) 100%);
}

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

.contact-card h2 {
  margin-bottom: 1rem;
}

.mt-4 { margin-top: 2rem; }

/* Footer */
footer {
  background-color: #03060c;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
}

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

.footer-copy {
  color: #475569;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 350px;
  height: 500px;
  max-height: calc(100vh - 100px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

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

.chat-header {
  padding: 1rem 1.2rem;
  background: rgba(13, 148, 136, 0.15);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
}

.chat-avatar {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.chat-close:hover {
  color: var(--text-main);
}

.chat-body {
  flex: 1;
  padding: 1.5rem 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Scrollbar for chat */
.chat-body::-webkit-scrollbar {
  width: 6px;
}
.chat-body::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 3px;
}

.chat-message {
  max-width: 85%;
  padding: 0.8rem 1.2rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: messageSlideIn 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes messageSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bot-message {
  align-self: flex-start;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
}

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

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
  animation: messageSlideIn 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
}

.chat-option-btn {
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid var(--primary-color);
  color: var(--text-main);
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.chat-option-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.8rem 1rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.chat-action-btn {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  background: var(--primary-color);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
  border: none;
}
.chat-action-btn:hover {
  background: var(--accent-color);
}

/* Responsive */
@media (max-width: 900px) {
  .founder-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .founder-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }
  .letter {
    font-size: 2.5rem;
  }
  .suffix {
    font-size: 1.4rem;
    margin-bottom: 2px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none; 
  }
  
  .itascon-anim {
    flex-direction: row; 
    flex-wrap: nowrap;
    gap: 3px;
    width: 100%;
    padding: 0 5px;
    justify-content: center;
  }

  .letter {
    font-size: 1.8rem;
  }
  
  .suffix {
    font-size: 1rem;
    margin-bottom: 2px;
    white-space: nowrap;
  }
  
  .letter-group.active .suffix {
    max-width: 250px;
  }
  
  .hero-animation-container {
    margin: 1.5rem 0;
    height: 80px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }

  .chat-widget {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    transform: translateY(100%);
  }

  .chat-widget.open {
    transform: translateY(0);
  }
}
