/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background-color: #71a976;
  overflow-x: hidden;
}

/* Komplett neue CSS-Variablen für Premium-Design */
:root {
  --primary-color: #0f172a;
  --secondary-color: #3bf64e;
  --accent-color: #06b6d4;
  --background-color: #ffffff;
  --surface-color: #f8fafc;
  --card-background: #ffffff;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;

  /* Premium Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    #0f242a 0%,
    #1e293b 50%,
    #334155 100%
  );
  --gradient-secondary: #00ff1a;
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --gradient-surface: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);

  /* Premium Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Premium Borders */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-2xl: 32px;
}

/* Premium Typography mit Inter Font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
}
h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 600;
}

p {
  font-family: "Inter", sans-serif;
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}

/* Komplett neue Premium Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.2);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-family: "Inter", sans-serif;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}

.nav-link::before {
  content: "";
  position: relative;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: green;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: var(--border-radius-lg);
}

.nav-link:hover::before {
  left: 0;
}

.nav-link:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-link.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.nav-link.cta {
  background: var(--gradient-secondary);
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  margin-left: 0.5rem;
}

.nav-link.cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Verbesserte Mobile Navigation */
/* From Uiverse.io by NAKAMOZ */
/* Hide the default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.container {
  display: block;
  position: relative;
  cursor: pointer;
  font-size: 20px;
  user-select: none;
}

.checkmark {
  position: relative;
  top: 0;
  left: 0;
  height: 1.3em;
  width: 1.3em;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  .checkmark span {
    width: 32px;
    height: 2px;
    background-color: black;
    position: absolute;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
  }
}

.checkmark span:nth-child(1) {
  top: 10%;
}

.checkmark span:nth-child(2) {
  top: 50%;
}

.checkmark span:nth-child(3) {
  top: 90%;
}

.container input:checked + .checkmark span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  -webkit-transform: translateY(-50%) rotate(45deg);
  -moz-transform: translateY(-50%) rotate(45deg);
  -ms-transform: translateY(-50%) rotate(45deg);
  -o-transform: translateY(-50%) rotate(45deg);
}

.container input:checked + .checkmark span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  -webkit-transform: translateY(-50%) rotate(-45deg);
  -moz-transform: translateY(-50%) rotate(-45deg);
  -ms-transform: translateY(-50%) rotate(-45deg);
  -o-transform: translateY(-50%) rotate(-45deg);
}

.container input:checked + .checkmark span:nth-child(3) {
  transform: translateX(-50px);
  -webkit-transform: translateX(-50px);
  -moz-transform: translateX(-50px);
  -ms-transform: translateX(-50px);
  -o-transform: translateX(-50px);
  opacity: 0;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(226, 232, 240, 0.2);
  padding: 1.5rem 0;
  box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
  display: block;
  animation: slideDownFade 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu .nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 2rem;
}

.mobile-menu .nav-link {
  display: block;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
}

/* Komplett neuer Hero mit wechselnden Hintergrundbildern */
.hero {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgb(255, 255, 255);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("img/unnamed.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  animation: backgroundSlideshow 24s infinite;
}

@keyframes backgroundSlideshow {
  0%,
  20% {
    background-image: url("img/unnamed.jpg");
    opacity: 0.45;
  }
  25%,
  45% {
    background-image: url("img/unnamed.jpg");
    opacity: 0.45;
  }
  50%,
  70% {
    background-image: url("img/unnamed.jpg");
    opacity: 0.45;
  }
  75%,
  95% {
    background-image: url("img/unnamed.jpg");
    opacity: 0.45;
  }
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(15, 23, 42, 0.4) 0%,
    rgba(15, 23, 42, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 0 2rem;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 800;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: heroSlideUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  animation: heroSlideUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroSlideUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

/* Premium Button Styles mit besseren Hover-Effekten */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  border-radius: var(--border-radius-xl);
  text-decoration: none;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-secondary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: rgb(0, 0, 0);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: rgb(0, 195, 255);
  color: var(--primary-color);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

/* Verbesserte Section Layouts */
.section {
  padding: 8rem 0;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section-header h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #ffffff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.section-header p {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Bessere Grid-Layouts - 3x2 statt 4+2 */
.grid {
  display: grid;
  gap: 2.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Premium Card Design mit besseren Hover-Effekten */
.card {
  background: var(--gradient-primary);
  padding: 3rem 2.5rem;
  border-radius: var(--border-radius-2xl);
  border: 1px solid #0f242a;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.05) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover::before {
  transform: scaleX(1);
}

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

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(59, 130, 246, 0.2);
}

.card-icon {
  font-size: 4rem;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card h3 {
  margin-bottom: 1rem;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.card p {
  color: #9b9b9b;
  line-height: 1.7;
}

/* Individuelle Farben für Cards */
.card-kaelte {
  background: linear-gradient(135deg, #383838 0%, #3d7549 100%);
  border-color: #000000;
}
.card-klima {
  background: linear-gradient(135deg, #383838 0%, #3d7549 100%);
  border-color: #000000;
}
.card-wartung {
  background: linear-gradient(135deg, #383838 0%, #3d7549 100%);
  border-color: #000000;
}
.card-installation {
  background: linear-gradient(135deg, #383838 0%, #3d7549 100%);
  border-color: #000000;
}
.card-energie {
  background: linear-gradient(135deg, #383838 0%, #3d7549 100%);
  border-color: #000000;
}
.card-service24 {
  background: linear-gradient(135deg, #383838 0%, #3d7549 100%);
  border-color: #000000;
}
.card-industrie {
  background: linear-gradient(135deg, #383838 0%, #3d7549 100%);
  border-color: #000000;
}

.card-buero {
  background: linear-gradient(135deg, #383838 0%, #3d7549 100%);
  border-color: #000000;
}
.card-krankenhaus {
  background: linear-gradient(135deg, #383838 0%, #3d7549 100%);
  border-color: #000000;
}
.card-wartung-service {
  background: linear-gradient(135deg, #f1f5f9 0%, #65a30d 100%);
  border-color: #65a30d;
}
.card-notdienst {
  background: linear-gradient(135deg, #fee2e2 0%, #0051ff 100%);
  border-color: #00ffff;
}
.card-prozess {
  background: linear-gradient(135deg, #383838 0%, #3d7549 100%);
  border-color: #000000;
}
.card-anrufen {
  background: linear-gradient(135deg, #383838 0%, #3d7549 100%);
  border-color: #000000;
}
.card-mail {
  background: linear-gradient(135deg, #383838 0%, #3d7549 100%);
  border-color: #000000;
}
.card-besuchen {
  background: linear-gradient(135deg, #383838 0%, #3d7549 100%);
  border-color: #000000;
}

/* Individuelle Farben für Card-Überschriften und Texte */

/* Industrielle Kältetechnik */
.card-kaelte h3 {
  color: #ffffff;
} /* Überschrift */
.card-kaelte p {
  color: #b5b5b5;
} /* Text */

/* Premium Klimatechnik */
.card-klima h3 {
  color: #ffffff;
}
.card-klima p {
  color: #b5b5b5;
}

/* Proaktive Wartung */
.card-wartung h3 {
  color: #ffffff;
}
.card-wartung p {
  color: #b5b5b5;
}

/* Fachgerechte Installation */
.card-installation h3 {
  color: #ffffff;
}
.card-installation p {
  color: #b5b5b5;
}

/* Energieoptimierung */
.card-energie h3 {
  color: #ffffff;
}
.card-energie p {
  color: #b5b5b5;
}

/* 24/7 Premium Service */
.card-service24 h3 {
  color: #ffffff;
}
.card-service24 p {
  color: #b5b5b5;
}

/* Industriekomplex Kältesystem */
.card-industrie h3 {
  color: #ffffff;
}
.card-industrie p {
  color: #b5b5b5;
}

/* Bürogebäude Klimatechnik */
.card-buero h3 {
  color: #ffffff;
}
.card-buero p {
  color: #b5b5b5;
}

/* Krankenhaus Reinraumtechnik */
.card-krankenhaus h3 {
  color: #ffffff;
}
.card-krankenhaus p {
  color: #b5b5b5;
}

/* Wartung & Service */
.card-wartung-service h3 {
  color: #000000;
}
.card-wartung-service p {
  color: #2d2d2d;
}

/* 24/7 Notdienst */
.card-notdienst h3 {
  color: #000000;
}
.card-notdienst p {
  color: #2d2d2d;
}

/* Unser Service-Prozess */
.card-prozess h3 {
  color: #ffffff;
}
.card-prozess p {
  color: #b5b5b5;
}

/* Sofort anrufen */
.card-anrufen h3 {
  color: #ffffff;
}
.card-anrufen p {
  color: #b5b5b5;
}

/* E-Mail senden */
.card-mail h3 {
  color: #ffffff;
}
.card-mail p {
  color: #b5b5b5;
}

/* Besuchen Sie uns */
.card-besuchen h3 {
  color: #ffffff;
}
.card-besuchen p {
  color: #b5b5b5;
}

/* Individuelle Farben für die Prozess-Schritte in Unser Service-Prozess */
.card-prozess .grid .text-center h4 {
  color: #ffffff; /* Beispiel: Gelb für Überschrift */
}
.card-prozess .grid .text-center p {
  color: #b5b5b5; /* Beispiel: Blau für Text */
}

/* Premium Stats Section */
.stats {
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/placeholder.svg?height=600&width=1920&text=Premium+Stats+Background")
    center / cover;
  opacity: 0.1;
}

.stats .container {
  position: relative;
  z-index: 2;
}

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

.stat-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #ffffff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Inter", sans-serif;
}

.stat-label {
  font-size: 1.25rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Premium Footer */
.footer {
  background: var(--gradient-primary);
  color: white;
  padding: 5rem 0 2rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-secondary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer a:hover {
  color: #3b82f6;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.8;
}

/* Animation für den CodeVision-Link im Footer */
.codevision-link {
  position: relative;
  color: #3b82f6;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.codevision-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.codevision-link:hover,
.codevision-link:focus {
  color: #0891b2;
}

.codevision-link:hover::after,
.codevision-link:focus::after {
  transform: scaleX(1);
}

/* Verbesserte Animationen */
@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

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

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  font-family: "Inter", sans-serif;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--card-background);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

/* Verbesserte Responsive Design */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
  }

  .section {
    padding: 5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .card {
    padding: 2rem 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

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

  .section {
    padding: 4rem 0;
  }

  .card {
    padding: 1.5rem;
  }

  .btn {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }
}

/* Utility Classes */
.text-center {
  margin-top: 4px;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.bg-primary {
  background: var(--primary-color);
}
.bg-secondary {
  background: var(--secondary-color);
}
.bg-muted {
  background: white;
}
.bg-gradient {
  background: var(--gradient-primary);
}

.text-primary {
  color: var(--primary-color);
}
.text-secondary {
  color: var(--secondary-color);
}
.text-muted {
  color: var(--text-muted);
}
.text-white {
  color: white;
}

.hidden {
  display: none;
}
.visible {
  display: block;
}

/* DSGVO und Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gradient-primary);
  color: white;
  padding: 1.5rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.cookie-btn.accept {
  background: var(--gradient-secondary);
  color: white;
}

.cookie-btn.decline {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Project Gallery Styles für Projekte-Seite */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--card-background);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-info {
  padding: 2rem;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.project-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  background: var(--gradient-secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Modernes FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: #f9fafb;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  background: #f9fafb;
}

.faq-question:hover {
  background: #ecfdf5;
  color: #065f46;
}

.faq-question h3 {
  font-size: 1.2rem;
  color: #1f2937;
  font-weight: 600;
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.faq-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-arrow::before {
  content: "▼";
  color: #059669;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow::before {
  content: "▲";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f9fafb;
  padding: 0 2rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

.faq-answer-content {
  color: #4b5563;
  line-height: 1.6;
  font-size: 1rem;
  padding-top: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.faq-item:not(.active) .faq-answer-content {
  opacity: 0;
  transform: translateY(-10px);
  transition-delay: 0s;
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px) scale(1.02);
}

.gradient-text {
  color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
  -webkit-background-clip: text;
  background-clip: text;
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.particle {
  position: absolute;
  background: rgba(132, 204, 22, 0.6);
  border-radius: 50%;
  pointer-events: none;
  animation: particle-float 8s infinite linear;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Enhanced Navbar Styles - VERBESSERT */
#navbar {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  background-color: #71a976;
}

#navbar.scrolled {
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background-color: rgba(101, 163, 13, 0.9) !important; /* Grün statt Blau */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Mobile menu enhanced animations */
#mobile-menu {
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease-out;
}

#mobile-menu:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}

/* Hamburger icon animation */
.hamburger-line {
  transition: all 0.3s ease;
  transform-origin: center;
  display: block;
  width: 24px;
  height: 3px;
  background-color: #4d7c0f;
  margin: 5px 0;
  border-radius: 2px;
}

.hamburger-line.open:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  animation: hamburgerBounce 0.5s ease forwards;
}

.hamburger-line.open:nth-child(2) {
  opacity: 0;
  animation: hamburgerFade 0.5s ease forwards;
}

.hamburger-line.open:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  animation: hamburgerBounce 0.5s ease forwards;
}

@keyframes hamburgerBounce {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }
  50% {
    transform: rotate(10deg) translate(2px, 2px);
  }
  100% {
    transform: rotate(45deg) translate(5px, 5px);
  }
}

@keyframes hamburgerFade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* VERBESSERTE FAQ-Styles */
.faq-container {
  max-width: 4xl;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  background-color: #f9fafb;
}

.faq-question:hover {
  background-color: #ecfdf5;
  color: #065f46;
}

.faq-question h4 {
  flex: 1;
  margin: 0;
  font-weight: 600;
  font-size: 1.125rem;
  color: #1f2937;
}

.faq-icon {
  transition: transform 0.3s ease;
  color: #059669;
  font-size: 1.25rem;
  margin-left: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    padding 0.3s ease;
  color: #4b5563;
  background-color: #f9fafb;
}

.faq-answer.open {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-question {
  background-color: #d1fae5;
  color: #065f46;
}

@media (max-width: 640px) {
  /* Buttons kleiner und weniger Abstand */
  #home .px-8 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  #home .py-4 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
  #home .text-5xl {
    font-size: 2rem !important;
  }
  #home .mb-8 {
    margin-bottom: 1.5rem !important;
  }
  #home .mt-12 {
    margin-top: 1.5rem !important;
  }
  /* Feature-Icons ausblenden (siehe oben, hidden md:flex) */
}

@media (max-width: 640px) {
  #long-card {
    width: 320px !important;
  }

  #typing-text {
    font-size: 26px;
    height: 1.5rem;
    line-height: 1.5rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  #typing-text {
    font-size: 1.25rem;
    height: 1.75rem;
    line-height: 1.75rem;
  }
}

#typing-text {
  border-right: 2px solid #00ff1a;
  animation: blink 0.75s step-end infinite;
  overflow: visible !important;
}

@keyframes blink {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #767676;
  }
}

/* Team Section Styles */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.team-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.team-info {
  padding: 1.5rem;
}

.team-name {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.team-role {
  color: #059669;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.team-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Team Filter Buttons Styling */
.team-filter-btn {
  background-color: #f3f4f6;
  color: #1f2937;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.team-filter-btn:hover {
  border-color: #6aa31b;
  color: #6aa31b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 163, 27, 0.2);
}

.team-filter-btn.active {
  background: linear-gradient(135deg, #6aa31b 0%, #5a8e16 100%);
  color: white;
  border-color: #6aa31b;
  box-shadow: 0 4px 15px rgba(106, 163, 27, 0.4);
}

/* Team Card Filter Animation */
.team-card {
  transition: all 0.3s ease;
  opacity: 1;
  visibility: visible;
}

.team-card.hidden {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  height: 0;
  width: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .team-img {
    width: auto;
    height: auto;
  }

  .faq-container {
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  .faq-question {
    padding: 1.25rem 1rem;
  }
  .faq-answer {
    padding: 0 1rem;
  }
}

@media (min-width: 640px) {
  #home .px-8 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  #home .py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  #home .text-5xl {
    font-size: 0.5rem !important;
  }
  #home .mb-8 {
    margin-bottom: 2rem !important;
  }
  #home .mt-12 {
    margin-top: 2rem !important;
  }
}

@media (min-width: 768px) {
  #home .text-5xl {
    font-size: 3rem !important;
  }
}

@media (min-width: 1024px) {
  #home .text-5xl {
    font-size: 3.5rem !important;
  }
}
