:root {
  --primary-color: #4682b4;
  --secondary-color: #5a9bd8;
  --accent-color: #e6b800;
  --bg-color: #fff;
  --text-color: #333;
  --light-bg: #f5f5f5;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  height: 100%;
}

html {
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

section {
  min-height: calc(100vh - 80px);
  scroll-margin-top: 80px;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: var(--light-bg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: var(--shadow);
  transition: background-color 0.3s, padding 0.3s;
}

header.scrolled {
  background-color: var(--bg-color);
  padding: 0.5rem 2rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

nav.menu {
  display: flex;
  gap: 1rem;
}

.button {
  background-color: var(--primary-color);
  color: var(--bg-color);
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
  font-size: 1rem;
  font-weight: 600;
}

.button:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav.menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity 0.3s;
  }
  nav.menu.active {
    display: flex;
    opacity: 1;
  }
  .button {
    display: block;
    text-align: center;
    padding: 0.5rem;
    margin: 0.25rem 1rem;
  }
}

/* HERO-BEREICH */
.hero-section {
  position: relative;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('hero1.jpg') center center / cover no-repeat;
  opacity: 0.3;
  z-index: 1;
  transition: transform 0.1s ease-out;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.section-content {
  padding-top: 80px;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 800px;
  animation: fadeInUp 0.5s ease;
}

.hero-card h1 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.hero-subtext {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.cta-btn {
  font-size: 1.2rem;
  padding: 1rem 2rem;
  background-color: var(--accent-color);
  color: var(--text-color);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.cta-btn:hover {
  background-color: #ffd700;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

/* ÜBER UNS */
#about {
  background-color: var(--light-bg);
  padding: 2rem 0;
}

.card {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

#about .card > p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #666;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-text p {
  font-size: 1rem;
  color: #666;
}

.about-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 1rem 0;
}

.about-list li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.about-list li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.about-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.image-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.image-container:hover {
  transform: scale(1.02);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: #fff;
  background-color: rgba(0,0,0,0.5);
  transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
  opacity: 0;
}

/* DIENSTLEISTUNGEN */
#services {
  background-color: var(--light-bg);
  padding: 2rem 0;
}

#services .card > p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #666;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  margin-bottom: 2rem;
}

.service-card {
  padding: 1.5rem;
  background-color: var(--bg-color);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.middle-card {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

.middle-card h3,
.middle-card p {
  color: inherit;
}

.service-icon {
  font-size: 2rem;
  margin: 0 auto 1rem;
  display: block;
}

/* FAQ SECTION */
.faq-section {
  margin-top: 2rem;
  text-align: left;
}

.faq-section h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.faq-question:hover {
  background: #f9f9f9;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  background: #f9f9f9;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1rem 1.5rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: #666;
}

/* KONTAKT */
#contact {
  position: relative;
  background: url('hero1.jpg') center center / cover no-repeat;
  padding: 2rem 0;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 1;
}

#contact .card {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.contact-form-container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-left,
.form-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  color: #444;
}

.form-group input,
.form-group textarea {
  padding: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(70,130,180,0.3);
  outline: none;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #d9534f;
}

textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 200px;
}

.form-submit {
  text-align: center;
}

.submit-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-color);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  font-size: 1rem;
  font-weight: 600;
}

.submit-btn:hover {
  background: linear-gradient(45deg, var(--accent-color), #ffd700);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.form-success {
  text-align: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-top: 20px;
  display: none;
}

.success-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.form-error {
  text-align: center;
  color: #d9534f;
  font-size: 1rem;
  display: none;
}

.form-error a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* PIKETT-SEITE */
.pikett-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: calc(100vh - 120px);
  padding: 2rem;
}

.pikett-hero {
  text-align: center;
  padding: 1.5rem;
  background: var(--primary-color);
  color: var(--bg-color);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.5s ease;
}

.pikett-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.pikett-subtext {
  font-size: 1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.pikett-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}

.pikett-card {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pikett-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.pikett-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.pikett-services {
  display: grid;
  gap: 0.75rem;
}

.service-item {
  background: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-3px);
}

.service-item .service-icon {
  font-size: 2rem;
  margin: 0 auto 0.5rem;
}

.service-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.service-item p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.2;
}

.notfall-kontakt {
  text-align: center;
}

.notfall-kontakt h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.notfall-kontakt p {
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.notfall-kontakt a {
  color: var(--accent-color);
  text-decoration: none;
}

.notfall-kontakt .cta-btn {
  background: var(--accent-color);
  color: var(--text-color);
  margin-top: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

.notfall-kontakt .cta-btn:hover {
  background: #ffd700;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--primary-color);
  color: var(--bg-color);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Ladeanimation */
.loading-spinner {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-spinner p {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--primary-color);
}

/* RESPONSIVITÄT */
@media (max-width: 768px) {
  .form-columns {
    grid-template-columns: 1fr;
  }
  .hero-card {
    padding: 2rem;
  }
  .hero-card h1 {
    font-size: 2rem;
  }
  .hero-subtext {
    font-size: 1.2rem;
  }
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
  .about-container {
    grid-template-columns: 1fr;
  }
  .services-cards {
    grid-template-columns: 1fr;
  }
  .pikett-content {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .pikett-hero {
    padding: 1.5rem 1rem;
  }
  .pikett-hero h1 {
    font-size: 1.5rem;
  }
  .pikett-subtext {
    font-size: 0.9rem;
  }
  .pikett-card {
    padding: 1rem;
  }
  .pikett-card h2 {
    font-size: 1rem;
  }
  .faq-question {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
}

/* ANIMATIONEN */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}