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

:root {
  --primary: #1e3a5f;
  --primary-light: #2c5282;
  --accent: #3b82f6;
  --text-dark: #1a202c;
  --text-light: #4a5568;
  --bg-light: #f7fafc;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Für scharfe Bilder */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Header & Navigation */

.header-center {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}

.header-center img {
  width: auto;
  max-height: 48px;
  height: 48px;
  display: block;
  vertical-align: middle;
  opacity: 0.95;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.header-center img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 56px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
  height: 100%;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0.25rem 0;
}

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

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

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

/* Hero Section */
.hero {
  margin-top: 80px;
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

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

.hero-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 95, 0.1),
    rgba(44, 82, 130, 0.7)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
  /* Abstand nach oben, damit der Knopf etwas weiter unter dem Text sitzt */
  margin-top: 1rem;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

/* Sections */
section {
  padding: 3rem 2rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.section-title p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.about-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

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

.about-card p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

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

.about-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.about-image {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

.about-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.about-logo {
  margin-bottom: 2rem;
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: 15px;
}

.about-logo img {
  max-width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-image:hover .about-logo img {
  transform: scale(1.05);
}

.about-badge {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  color: var(--white);
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

/* Services Section */
.services {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.services-intro {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
  line-height: 1.8;
}

.services-intro p {
  font-size: 1.1rem;
  color: #555;
}

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

.service-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

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

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #333;
}

.service-card > p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

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

.service-card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: #555;
  line-height: 1.6;
}

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

/* Contact Section */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(380px, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 0;
}

/* Wenn das Kontakt-Formular entfernt wurde und nur noch die Kontakt-Info übrig ist,
   soll die Box zentriert und breiter dargestellt werden, damit sie nicht so einseitig wirkt. */
.contact-wrapper > .contact-info:only-child {
  grid-column: 1 / -1;
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem;
}

.contact-info {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1.5rem;
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  grid-column: 1 / -1;
}

.info-item {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--bg-light);
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(59, 130, 246, 0.05);
  transform: translateX(5px);
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 1.5rem;
  margin-bottom: 0;
}

.info-item h4 {
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.info-item p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.05rem;
}

.info-item p strong {
  color: var(--text-dark);
  font-weight: 500;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.submit-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 2rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  width: 200px;
  flex-shrink: 0;
}

.footer-logo img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-logo img:hover {
  opacity: 1;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-center {
  width: 300px;
  flex-shrink: 0;
}

.p {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}
.footer-center img {
  width: 100%;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-center img:hover {
  opacity: 1;
}

/* Impressum / Legal Pages */
.impressum {
  padding: 120px 0 80px;
}

.impressum-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.impressum-content .about-card {
  margin-bottom: 0;
}

.impressum-content .about-card a {
  color: inherit;
  text-decoration: underline;
}

.impressum-content .about-card a:hover {
  opacity: 0.8;
}

/* Legal Pages (Impressum, Datenschutz, AGB) */
.legal-page {
  padding: 120px 0 80px;
  min-height: 60vh;
}

.legal-page h1 {
  margin-bottom: 30px;
}

.legal-page p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-page a {
  color: inherit;
  text-decoration: underline;
}

.legal-page a:hover {
  opacity: 0.7;
}

/* Contact Options (wie im Bild) */
.contact-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 0;
  padding: 28px 24px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.contact-option-card {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-option-card p {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.contact-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(30, 58, 95, 0.3);
}

/* Contact Info Links */
.contact-info a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    align-items: center;
  }

  .logo {
    font-size: 1.25rem;
    height: auto;
    padding: 0.25rem 0;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    height: auto;
    padding: 0.35rem 0.5rem;
    font-size: 0.95rem;
  }

  header {
    padding-bottom: 0.25rem;
  }

  .hero {
    margin-top: 72px;
    height: 60vh;
    padding: 1rem;
    background-size: cover;
    background-position: center;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.1;
  }

  .hero p {
    font-size: 0.98rem;
    max-width: 36rem;
    margin: 0.6rem auto;
  }

  .cta-button {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    /* Auf kleinen Bildschirmen etwas weniger Abstand oben */
    margin-top: 0.6rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .about-image-wrapper {
    order: -1; /* Bild oberhalb des Textes (falls gewünscht), sonst entfernen */
    display: flex;
    justify-content: center;
  }

  .about-logo img {
    max-width: 180px;
    height: auto;
  }

  .about-card {
    padding: 1rem;
    border-radius: 14px;
  }

  .contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

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

  .contact-info,
  .contact-form {
    width: 100%;
  }

  .contact-info {
    padding: 0.9rem;
    border-radius: 12px;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .info-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    font-size: 0.95rem;
  }

  footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    padding: 1rem;
  }

  .footer-logo,
  .footer-center,
  .footer-right {
    width: 100%;
  }

  .footer-right p {
    margin-bottom: 0.25rem;
  }

  .footer-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.95;
    font-size: 0.95rem;
  }

  .contact-options {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .contact-option-card {
    text-align: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero {
    height: 52vh;
  }

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

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

  .logo {
    font-size: 1.05rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 0.25rem 0.4rem;
  }

  .about-logo img {
    max-width: 140px;
  }

  .about-card {
    padding: 0.85rem;
  }

  .contact-info {
    padding: 0.75rem;
  }
}
