/* ========================================
   New Generation of Chat - Enhanced Styles
   with AI Visibility & Accessibility Improvements
   ======================================== */

/* CSS Variables for theming */
:root {
  --primary-color: #0044cc;
  --primary-hover: #003399;
  --secondary-color: #6c757d;
  --accent-color: #ff6b35;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #fff;
  --bg-light: #f8f9fa;
  --border-color: #dee2e6;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
  --font-heading: 'Dosis', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

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

a:hover,
a:focus {
  color: var(--primary-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   ACCESSIBILITY - Visually Hidden
   Hide visually but keep accessible to screen readers
   ======================================== */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip Link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero_area {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0066ff 100%);
  color: white;
  padding-bottom: 4rem;
  overflow: hidden;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.1;
}

/* Header */
.header_section {
  padding: 1rem 0;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
  text-decoration: none;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: white;
  text-decoration: none;
}

.navbar-brand img {
  height: 54px;
  width: auto;
}

.navbar-brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Mobile Menu Toggle */
.menu_toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu_toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.menu_toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu_toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu_toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Menu */
.menu {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}

.menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  list-style: none;
}

.menu a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: var(--transition);
}

.menu a:hover,
.menu a:focus,
.menu a.active {
  color: white;
  text-decoration: none;
}

.menu a:hover::after,
.menu a:focus::after,
.menu a.active::after {
  width: 100%;
}

/* Hero Content */
.hero_content {
  padding: 3rem 0;
}

.hero_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero_kicker {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.hero_text h1 {
  color: white;
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.hero_text p {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero_buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero_buttons_center {
  justify-content: center;
}

/* Hero Box */
.hero_box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero_box h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero_box ul {
  list-style: none;
}

.hero_box li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero_box li:last-child {
  border-bottom: none;
}

.hero_box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: bold;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}

.btn_primary {
  background: white;
  color: var(--primary-color);
}

.btn_primary:hover,
.btn_primary:focus {
  background: var(--bg-light);
  color: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn_secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.btn_secondary:hover,
.btn_secondary:focus {
  background: white;
  color: var(--primary-color);
  text-decoration: none;
}

.btn_secondary_blue {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.btn_secondary_blue:hover,
.btn_secondary_blue:focus {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: white;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 4rem 0;
}

.heading_container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.heading_container h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.heading_container p {
  color: var(--text-light);
  font-size: 1.125rem;
}

/* About Box */
.about_box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-light);
  padding: 3rem;
  border-radius: var(--radius);
}

.about_box img {
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.about_text_second {
  margin-top: 1rem;
}

/* Cards */
.cards_3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cards_2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.card:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.feature_icon {
  padding: 2rem;
  text-align: center;
  background: var(--bg-light);
}

.feature_icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.card_img {
  overflow: hidden;
}

.card_img img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.card:hover .card_img img {
  transform: scale(1.05);
}

.card_body {
  padding: 1.5rem;
}

.card_body h3,
.card_body h5 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.client_link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.client_link::after {
  content: '→';
  transition: var(--transition);
}

.client_link:hover::after {
  transform: translateX(4px);
}

/* SEO Section */
.seo_section {
  background: var(--bg-light);
}

.seo_box {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.seo_box p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.seo_text_spacing {
  margin-top: 1.5rem;
}

.seo_box strong {
  color: var(--primary-color);
}

/* CTA Box */
.cta_box {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0066ff 100%);
  color: white;
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
}

.cta_box h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta_box p {
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Info Section */
.info_section {
  background: #1a1a2e;
  color: white;
  padding: 4rem 0;
}

.info_grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.info_section h6 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info_section p {
  opacity: 0.8;
  line-height: 1.7;
}

.info_links {
  list-style: none;
}

.info_links li {
  margin-bottom: 0.75rem;
}

.info_links a {
  color: rgba(255, 255, 255, 0.8);
}

.info_links a:hover,
.info_links a:focus {
  color: white;
}

.info_contact {
  font-style: normal;
}

.info_contact a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.info_contact a:hover,
.info_contact a:focus {
  color: white;
}

/* Footer */
.footer_section {
  background: #0f0f1a;
  color: rgba(255, 255, 255, 0.6);
  padding: 1.5rem 0;
  text-align: center;
}

.footer_section p {
  margin-bottom: 0.25rem;
}

.footer_section small {
  opacity: 0.7;
}

/* Floating Button */
.ts_floating_button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.ts_floating_link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow-hover);
  transition: var(--transition);
}

.ts_floating_link:hover,
.ts_floating_link:focus {
  background: var(--primary-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
  .hero_grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero_box {
    order: -1;
  }
  
  .cards_3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .info_grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .menu_toggle {
    display: flex;
  }
  
  .menu {
    display: none;
    position: relative;  /* ← Korrektur! */
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    padding: 1rem;
  }
  
  .menu.is-open {
    display: block;
  }
  
  .menu ul {
    flex-direction: column;
    gap: 0;
  }
  
  .menu a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hero_text h1 {
    font-size: 2rem;
  }
  
  .cards_3,
  .cards_2 {
    grid-template-columns: 1fr;
  }
  
  .about_box {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .about_box img {
    margin: 0 auto;
  }
  
  .info_grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero_buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .ts_floating_button {
    bottom: 1rem;
    right: 1rem;
  }
  
  .ts_floating_link {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.5rem 0;
  }
  
  .hero_content {
    padding: 2rem 0;
  }
  
  .seo_box,
  .cta_box {
    padding: 1.5rem;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .hero_area,
  .menu,
  .menu_toggle,
  .ts_floating_button,
  .btn {
    display: none !important;
  }
  
  body {
    color: black;
    background: white;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
}
