/* ==========================================================================
   Base
   ========================================================================== */

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

:root {
  --color-bg: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-accent: #0d7377;
  --color-accent-dark: #095456;
  --color-border: #e5e5e5;
  --color-bg-alt: #f8f9fa;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: 48px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header-badge {
  display: flex;
  align-items: center;
}

.header-badge img {
  height: 40px;
  width: auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 80px;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.hero-region {
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

/* ==========================================================================
   Profil
   ========================================================================== */

.section-profil {
  background: var(--color-bg-alt);
}

.profil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.profil-card {
  background: var(--color-bg);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.profil-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.profil-highlight {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.profil-card p:last-child {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ==========================================================================
   Leistungen
   ========================================================================== */

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.leistung-card {
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.leistung-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.08);
}

.leistung-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 10px;
  margin-bottom: 20px;
}

.leistung-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.leistung-card p {
  color: var(--color-text-light);
  line-height: 1.7;
}

.leistung-detail {
  padding: 40px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  margin-bottom: 24px;
}

.leistung-detail:last-child {
  margin-bottom: 0;
}

.leistung-detail h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.leistung-detail p {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.leistung-detail p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Technologien
   ========================================================================== */

.section-tech {
  background: var(--color-bg-alt);
}

.tech-content > p {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 800px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tech-item {
  padding: 24px;
  border-left: 3px solid var(--color-accent);
}

.tech-item h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tech-item p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

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

.kontakt-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.kontakt-info address {
  font-style: normal;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.kontakt-info p {
  color: var(--color-text-light);
  line-height: 1.7;
}

.kontakt-social {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-top: 8px;
}

.social-link {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.kontakt-cta {
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

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

.footer-impressum {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.footer-links a:hover {
  color: var(--color-text);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .leistungen-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .header-badge {
    display: none;
  }

  .logo-img {
    height: 32px;
  }

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

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .profil-grid {
    grid-template-columns: 1fr;
  }

  .leistungen-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    text-align: center;
  }

  .profil-card {
    padding: 24px;
  }

  .leistung-card {
    padding: 24px;
  }

  .leistung-detail {
    padding: 24px;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .header,
  .nav-toggle,
  .hero-cta,
  .kontakt-cta {
    display: none;
  }

  .hero {
    padding-top: 0;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
  }

  .section {
    padding: 24px 0;
  }
}
