/*!
 * DigitalCraft GmbH - Main Stylesheet
 * Copyright 2025 DigitalCraft GmbH
 */

/* ============================================
   BASE STYLES
   ============================================ */

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   ACCESSIBILITY - FOCUS STYLES
   ============================================ */

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #3182ce;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: #3182ce;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-image {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.tagline {
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #90cdf4;
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  background: transparent;
  border: none;
}

.burger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Burger Animation */
.burger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.burger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, rgba(44, 82, 130, 0.85) 0%, rgba(49, 130, 206, 0.85) 100%),
              url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80&auto=format&fit=crop') center center / cover no-repeat;
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button - Universal Style */
.cta-button,
button[type="submit"] {
  background: #e53e3e;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover,
button[type="submit"]:hover {
  background: #c53030;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(229, 62, 62, 0.3);
}

.cta-button:active,
button[type="submit"]:active {
  transform: translateY(0);
}

.cta-button:disabled,
button[type="submit"]:disabled {
  background: #a0aec0;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
  padding: 4rem 0;
  background: white;
}

.services h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: #1a365d;
}

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

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 2rem;
}

.service-card:last-child {
  margin-bottom: 0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
  color: #2c5282;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.service-card p {
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  margin: 1rem 0;
}

.service-card li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #48bb78;
  font-weight: bold;
}

/* ============================================
   CHALLENGES SECTION
   ============================================ */

.challenges {
  padding: 4rem 0;
  background: #f7fafc;
}

/* ============================================
   PACKAGES SECTION
   ============================================ */

.packages {
  padding: 4rem 0;
  background: white;
}

.packages h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #1a365d;
}

.packages .section-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.package-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #3182ce;
}

.package-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.package-header h3 {
  color: #1a365d;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.package-subtitle {
  color: #4a5568;
  font-size: 1rem;
  font-style: italic;
  margin: 0;
}

.package-price {
  margin-bottom: 1rem;
}

.price-main {
  font-size: 2.5rem;
  font-weight: 700;
  color: #3182ce;
  display: block;
  line-height: 1.2;
}

.price-note {
  font-size: 0.9rem;
  color: #718096;
  display: block;
  margin-top: 0.25rem;
}

.package-duration {
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: #f7fafc;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
  color: #4a5568;
  font-weight: 500;
}

.package-description {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.package-description p {
  color: #2d3748;
  line-height: 1.7;
  margin: 0;
}

.package-includes {
  margin-bottom: 1.5rem;
}

.package-includes h4 {
  color: #1a365d;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.package-includes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.package-includes li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #2d3748;
  line-height: 1.6;
}

.package-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #48bb78;
  font-weight: bold;
}

.package-suitable {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
  border-left: 4px solid #3182ce;
}

.package-suitable h4 {
  color: #1a365d;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.package-suitable p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.5;
}

.package-cta {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.package-cta .cta-button {
  width: 100%;
  text-align: center;
  display: block;
  margin-bottom: 0.75rem;
}

.package-availability {
  text-align: center;
  font-size: 0.85rem;
  color: #718096;
  font-style: italic;
  margin: 0;
}

@media (max-width: 768px) {
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .package-card {
    padding: 2rem;
  }

  .price-main {
    font-size: 2rem;
  }
}

.challenges h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #1a365d;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 700;
  line-height: 1.3;
}

.challenges .intro-text {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  color: #4a5568;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.challenges .result-block,
.challenges .approach-block {
  max-width: 700px;
  margin: 2.5rem auto;
  padding: 2.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #3182ce;
}

.challenges .result-block h4,
.challenges .approach-block h4 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #3182ce;
  font-weight: 700;
  margin-top: 0;
}

.challenges .result-block p,
.challenges .approach-block p {
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 0;
  color: #4a5568;
  line-height: 1.8;
  max-width: none;
}

.challenges p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #4a5568;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.challenge-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #e53e3e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.challenge-item h3 {
  color: #1a365d;
  margin-bottom: 0.5rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  padding: 4rem 0;
  background: white;
}

.contact h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #1a365d;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #f7fafc;
  padding: 2rem;
  border-radius: 12px;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2d3748;
}

.form-group input,
.form-group textarea,
.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-control:focus {
  border-color: #3182ce;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* Checkbox layout */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.3rem;
  cursor: pointer;
}

.form-check-label {
  line-height: 1.4;
  color: #2d3748;
  font-weight: 600;
}

.form-check-label a {
  color: #3182ce;
  text-decoration: underline;
}

.form-check-label a:hover {
  color: #2c5282;
}

/* Form Validation Styles */
.invalid-feedback {
  display: none;
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
  display: block;
}

.form-control:invalid {
  border-color: #e53e3e;
}

.form-control:valid {
  border-color: #48bb78;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: #1a365d;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1000px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 300px;
    background: #1a365d;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .burger {
    display: flex;
    z-index: 1000;
  }
}

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

  .hero p {
    font-size: 1rem;
  }

  .nav-menu {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .challenge-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .cta-button,
  button[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ============================================
   FLYOVER NAVIGATION (sticky header)
   ============================================ */

.flyover-header {
  position: sticky;
  top: 16px;
  z-index: 900;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.flyover-nav {
  background: rgba(26, 38, 93, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.flyover-nav.scrolled {
  background: rgba(26, 38, 93, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.flyover-nav .nav-menu a {
  color: #fff;
}

.flyover-nav .nav-menu a:hover {
  color: #90cdf4;
}

.flyover-nav .burger span {
  background: #fff;
}

.cta-pill {
  background: #5b3bf3;
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
}

/* Abstand für Anker-Ziele, damit Header nichts verdeckt */
[id] {
  scroll-margin-top: 96px;
}

/* kleiner Abstand oben, da Header schwebt */
.hero {
  margin-top: 12px;
}
