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

:root {
  --primary: #1e3a5f;
  --secondary: #ffd700;
  --accent: #ffd700;
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --white: #ffffff;
  --light-gray: #b0b0b0;
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Falling Leaves Animation */
.leaves-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.leaf {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50% 0;
  opacity: 0.6;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0.6;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Header */
header {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo span {
  white-space: nowrap;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.5rem;
}

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

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.button_header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  align-items: center;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 500px;
  height: 600px;
  background: linear-gradient(135deg, var(--primary) 0%, #2a4a6b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("Schulfoto_imgupscaler.ai_Beta_2K.jpg") center/cover;
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  width: 100%;
}

.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: inherit;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  color: var(--light-gray);
}

.hero p[style*="font-size: 1.1rem"] {
  font-size: 1.1rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--secondary);
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  word-wrap: break-word;
  max-width: 100%;
  min-width: 60%;
}

.gewerbeundprivat {
  margin-top: -30px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  background: #ffed4e;
}

/* Sections */
section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 2;
  width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--light-gray);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  min-height: 350px;
  display: flex;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Services Section */
.services {
  background: var(--light);
}

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

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px var(--shadow);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), #2a4a6b);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card.featured {
  border: 3px solid var(--secondary);
  background: linear-gradient(
    135deg,
    rgba(30, 58, 95, 0.05),
    rgba(255, 215, 0, 0.05)
  );
}

/* Partnership Section */
.partnership {
  background: var(--primary);
  color: var(--white);
}

.partnership h2 {
  color: var(--white);
}

.partnership-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.partnership-logo {
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.partnership-logo h3 {
  color: var(--primary);
  font-size: 2rem;
}

.partnership-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  transition: transform 0.3s;
  height: 250px;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partnership-link {
  text-decoration: none;
  color: #1e3a5f;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 2rem 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  z-index: 2;
}

.footer-content {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--secondary);
}

.footer-section p,
.footer-section a {
  color: var(--light-gray);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--light-gray);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  text-align: left;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.modal li {
  text-decoration: none;
}

.modal-content {
  background: var(--white);
  margin: 3% auto;
  padding: 3rem;
  max-width: 800px;
  width: 90%;
  border-radius: 15px;
  position: relative;
  box-sizing: border-box;
}

.close {
  position: absolute;
  right: 2rem;
  top: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--light-gray);
}

.close:hover {
  color: var(--primary);
}

.impressum-content h3 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.impressum-content p {
  margin-bottom: 0.5rem;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .hero {
    height: 550px;
    min-height: 450px;
  }

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

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

  .about-content,
  .partnership-content {
    gap: 2rem;
  }

  .logo span {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 5px 10px var(--shadow);
    gap: 0.5rem;
    z-index: 1001;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero p[style*="font-size: 1.1rem"] {
    font-size: 1rem !important;
  }

  .about-image {
    min-height: 280px;
  }
  nav {
    padding: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero {
    height: 500px;
    min-height: 400px;
    padding: 2rem 1rem;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

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

  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .container {
    padding: 0;
  }

  h2 {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .about-content,
  .partnership-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }

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

  .service-card {
    padding: 2rem 1.5rem;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .partnership-logo {
    padding: 2rem 1.5rem;
  }

  .partnership-logo h3 {
    font-size: 1.5rem;
  }

  .partnership-text {
    font-size: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .modal-content {
    margin: 5% auto;
    padding: 2rem 1.5rem;
    width: 95%;
  }

  .close {
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 580px) {
  .hero {
    padding: 2.5rem 0.75rem;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.75rem;
  }

  .logo {
    font-size: 1rem;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .hero {
    height: auto;
    min-height: 520px;
    padding: 2rem 0.75rem;
  }

  .hero-content {
    padding: 1.5rem 0.75rem;
  }

  .hero h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }

  .hero h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .hero p[style*="font-size: 1.1rem"] {
    font-size: 0.8rem !important;
    margin-top: -0.25rem !important;
    margin-bottom: 1.25rem !important;
  }

  .button_header {
    gap: 0.75rem;
  }

  .button_header {
    gap: 0.75rem;
  }

  .about-image {
    min-height: 250px;
  }

  .cta-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    display: block;
    margin: 0 auto;
    max-width: 95%;
    min-width: auto;
  }

  section {
    padding: 2.5rem 1rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .about-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .about-text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .service-card ul {
    font-size: 0.85rem;
    padding-left: 1.25rem;
  }

  .partnership-logo {
    padding: 1.5rem 1rem;
  }

  .partnership-logo h3 {
    font-size: 1.3rem;
  }

  .partnership-text p {
    font-size: 0.95rem;
  }

  .partnership-text ul {
    font-size: 0.9rem;
    padding-left: 1.25rem;
  }

  footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-section h3 {
    font-size: 1.1rem;
  }

  .footer-section p,
  .footer-section a {
    font-size: 0.9rem;
  }

  .modal-content {
    margin: 10% auto;
    padding: 1.5rem 1rem;
    width: 98%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .impressum-content h2 {
    font-size: 1.5rem;
  }

  .impressum-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
  }

  .impressum-content p {
    font-size: 0.9rem;
  }

  .close {
    right: 0.75rem;
    top: 0.75rem;
    font-size: 1.25rem;
  }
}

@media (max-width: 390px) {
  .hero {
    min-height: 500px;
    padding: 2.5rem 0.75rem;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
  }

  .hero h2 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
  }

  .hero p {
    font-size: 0.82rem;
    margin-bottom: 0.6rem;
  }

  .hero p[style*="font-size: 1.1rem"] {
    font-size: 0.78rem !important;
    margin-bottom: 1rem !important;
  }

  .cta-button {
    padding: 0.65rem 1.4rem;
    font-size: 0.82rem;
    min-width: auto;
    max-width: 92%;
  }

  .button_header {
    gap: 0.6rem;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
  }

  .hero h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

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

  .about-image {
    min-height: 200px;
  }

  .cta-button {
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
    max-width: 100%;
  }

  h2 {
    font-size: 1.5rem;
  }
}
