:root {
  --primary-color: #FC8124;
  --primary-hover: #e0701d;
  --bg-dark: #0f1115;
  --bg-darker: #08090a;
  --bg-card: rgba(25, 27, 33, 0.6);
  --text-main: #f0f0f0;
  --text-muted: #a0a5b0;
  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

img, video {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Glassmorphism Utilities */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: var(--shadow-glass);
}

.hover-lift {
  transition: var(--transition);
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(252, 129, 36, 0.15);
  border-color: rgba(252, 129, 36, 0.3);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(252, 129, 36, 0.3);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-glass);
}

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

.logo {
  margin-right: 20px;
}

.logo img {
  height: 40px;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-links a:not(.btn-primary) {
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  white-space: nowrap;
}

.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15,17,21,0.9) 0%, rgba(15,17,21,0.4) 100%);
  z-index: 2;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 5s ease-out;
  transform: scale(1.05);
}

.hero-img.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
}

.hero-glass {
  padding: 3rem;
  max-width: 600px;
  border-left: 4px solid var(--primary-color);
}

.hero-glass h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-glass p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.slider-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.slide-dot.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-color);
}

/* Sections Common */
.section {
  padding: 100px 0;
}

.dark-section {
  background-color: var(--bg-darker);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.divider {
  height: 3px;
  width: 60px;
  background-color: var(--primary-color);
  margin: 0 auto 20px;
  border-radius: 3px;
}

.subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 30px;
}

/* Leistungen */
.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card {
  padding: 30px;
  text-align: center;
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  background: rgba(252, 129, 36, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  border: 1px solid rgba(252, 129, 36, 0.2);
  transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Fuhrpark */
.vehicle-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.vehicle-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  transition: var(--transition);
}

.vehicle-card:hover {
  transform: translateY(-10px);
  border-color: rgba(252, 129, 36, 0.3);
  box-shadow: var(--shadow-glass), 0 10px 30px rgba(252, 129, 36, 0.1);
}

.img-wrapper {
  height: 200px;
  overflow: hidden;
  background: #fff; /* Some of the original images have white backgrounds */
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.vehicle-info {
  padding: 20px;
  text-align: center;
}

.vehicle-info h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.vehicle-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Klassen */
.classes-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.class-card {
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.class-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.class-badge {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin: 0 auto 20px;
  transform: rotate(-5deg);
  box-shadow: 0 5px 15px rgba(252, 129, 36, 0.4);
}

.class-card h3 {
  margin-bottom: 20px;
}

.class-details h4 {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-top: 15px;
  margin-bottom: 5px;
}

.class-details p, .class-details li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.class-details ul {
  list-style: none;
  padding: 0;
}

/* Kontakt */
.contact-section {
  background: url('https://fahrschule-gianni.de/wp-content/uploads/2019/06/IMG_9367.jpg') no-resize center/cover;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15,17,21,0.9);
}

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

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.full-width {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.glass-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  color: white;
  font-family: inherit;
  transition: var(--transition);
}

.glass-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.4);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group label {
  font-size: 0.85rem;
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-links h3 {
  margin-bottom: 20px;
}

.footer-links p {
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Subpages */
.sub-hero {
  position: relative;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15,17,21,0.9) 0%, rgba(15,17,21,0.7) 100%), url('https://fahrschule-gianni.de/wp-content/uploads/2019/06/IMG_9367.jpg') center/cover;
}

.sub-hero h1 {
  font-size: 3.5rem;
  color: white;
  z-index: 3;
  margin-top: 50px;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.team-card {
  text-align: center;
  padding: 30px;
}

.team-card img {
  border-radius: 50%;
  width: 160px;
  height: 160px;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--primary-color);
  transition: var(--transition);
}

.team-card:hover img {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(252, 129, 36, 0.4);
}

.team-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.team-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Animations & Responsiveness */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(16px);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-glass);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .sub-hero h1 {
    font-size: 2.2rem;
  }
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    margin-top: 80px;
  }
  .hero-glass {
    padding: 1.5rem;
    border-left: none;
    border-top: 4px solid var(--primary-color);
  }
  .hero-glass h1 {
    font-size: 2rem;
  }
  .hero-glass p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .slider-controls {
    flex-direction: row;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .contact-wrapper {
    padding: 20px;
  }
}

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

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