/* Reset und Grundlagen */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Farb- und Schriftvariablen */
:root {
  --color-background: #f2f2f2;
  --color-secondary: #0e8aa6;
  --color-primary: #236e8d;
  --color-dark: #2f3b3e;
  --font-main: 'Helvetica Neue', Arial, sans-serif;
}

/* Body */
body {
  background: var(--color-background);
  color: var(--color-dark);
  font-family: var(--font-main);
  line-height: 1.6;
}

/* Header */
header {
  background: var(--color-dark);
  color: var(--color-background);
  padding: 4rem 1rem 3rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(47,59,62,0.05);
}

header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

header p {
  font-size: 1.3rem;
  opacity: 0.9;
}

/* Logo */
.logo {
  max-width: 320px;
  height: auto;
  display: block;
  margin: 1rem auto;
}

@media (min-width: 768px) {
  .logo {
    max-width: 500px;
  }
}

@media (min-width: 1200px) {
  .logo {
    max-width: 700px;
  }
}

/* Teaser Section */
.teaser-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  background: var(--color-secondary);
  color: var(--color-background);
  padding: 3rem 1rem;
}

.teaser-block {
  flex: 1 1 220px;
  max-width: 260px;
  background: var(--color-primary);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(47,59,62,0.08);
  text-align: center;
}

/* Bild-Sektion */
.image-section {
  padding: 2rem 1rem;
  background: var(--color-background);
  text-align: center;
}
.section-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-width: 800px;
}
.image-caption {
  text-align: center;
  margin-top: 0.5rem;
  color: var(--color-dark);
  font-style: italic;
  font-size: 0.9rem;
}

/* Services Section */
.services-section {
  background: var(--color-secondary);
  padding: 3rem 1rem;
}

.services-title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-background);
  margin-bottom: 2rem;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.service-item {
  flex: 1 1 180px;
  max-width: 220px;
  background: var(--color-primary);
  color: var(--color-background);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  font-size: 1.08rem;
}

/* CTA Section */
.cta-section {
  background: var(--color-primary);
  color: var(--color-background);
  padding: 3rem 1rem;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-form input,
.cta-form textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

.cta-form input[type="submit"] {
  background: var(--color-secondary);
  color: var(--color-background);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.cta-form input[type="submit"]:hover {
  background: var(--color-dark);
}

/* Footer */
footer {
  background: var(--color-dark);
  color: var(--color-background);
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  font-size: 0.98rem;
}

footer a {
  color: var(--color-background);
  margin: 0 0.5rem;
  text-decoration: underline;
}

/* Spectral-ähnlicher Underline/Overline-Effekt */
header h1 {
  display: inline-block;
  position: relative;
  padding: 0.5rem 0;
}

header h1::before,
header h1::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-background);
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(.77,0,.18,1), opacity 0.6s;
}

header h1::before {
  top: 0; /* Overline */
}

header h1::after {
  bottom: 0; /* Underline */
}

header h1.loaded::before,
header h1.loaded::after {
  opacity: 1;
  transform: scaleX(1);
}

header h1:hover::before,
header h1:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Responsive */
@media (max-width: 900px) {
  .teaser-section,
  .services-list {
    flex-direction: column;
    align-items: center;
  }
  .teaser-block,
  .service-item {
    max-width: 100%;
    width: 100%;
  }
  header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  header {
    padding: 2.5rem 0.5rem 2rem 0.5rem;
  }
  .teaser-section,
  .services-section,
  .cta-section,
  .image-section {
    padding: 1rem 0.5rem;
  }
  .section-image {
    max-width: 100%;
  }
}