/* =========================
   BASE
========================= */

:root {
  --navy: #314559;
  --blue: #3496d8;
  --blue-dark: #1f6fa8;
  --text: #4a4a4a;
  --nav-height: 70px;
}

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

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

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1.25rem;
}

a {
  color: var(--blue-dark);
  transition: color 0.2s ease, background 0.2s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--navy);
  font-weight: bold;
}

.skip-link:focus {
  top: 1rem;
}

/* =========================
   LAYOUT
========================= */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 80px 0;
}

.text-primary {
  color: var(--blue);
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 40px;
}

@media (min-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   NAVBAR
========================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(49, 69, 89, 0.92);
  backdrop-filter: blur(6px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
}

.navbar-brand img {
  display: block;
  height: 45px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.75rem;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 16px;
    right: 16px;
    flex-direction: column;
    padding: 12px;
    background: var(--navy);
    border-radius: 6px;
  }

  .nav-list.open {
    display: flex;
  }
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--nav-height) 16px 120px;
  color: #fff;
  text-align: center;
  background: linear-gradient(rgba(20, 30, 45, 0.55), rgba(20, 30, 45, 0.55)),
    url("../img/background-image.jpg") center / cover no-repeat;
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
}

.hero-next {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 1.75rem;
  color: var(--navy);
  background: #fff;
  border-radius: 50%;
}

.hero-next:hover {
  color: #fff;
  background: var(--blue);
}

/* =========================
   INTRO / LEISTUNGEN
========================= */

.section-title {
  font-size: 2rem;
}

.intro-img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.services {
  padding-top: 80px;
}

.service {
  text-align: center;
}

.service p {
  text-align: left;
}

.service-icon {
  font-size: 4rem;
  color: var(--blue);
  margin-bottom: 20px;
}

.service h3 {
  font-size: 1.5rem;
  color: var(--blue-dark);
}

/* =========================
   KONTAKT & IMPRESSUM
========================= */

.contact {
  color: #fff;
  background: linear-gradient(rgba(20, 30, 45, 0.7), rgba(20, 30, 45, 0.7)),
    url("../img/contact.jpg") center / cover no-repeat;
}

.contact a {
  color: #fff;
}

.underline {
  width: 80px;
  height: 3px;
  margin-bottom: 2rem;
  background: var(--blue);
}

.contact-items {
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .contact-items {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-item .icon {
  font-size: 3rem;
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-item p {
  margin: 0;
}

/* =========================
   FOOTER
========================= */

.footer {
  padding: 24px 0;
  background: var(--navy);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #fff;
  margin: 0 0.5rem;
}

/* =========================
   UNTERSEITEN (Datenschutz)
========================= */

.page {
  padding: calc(var(--nav-height) + 40px) 0 60px;
  max-width: 820px;
}

.page h1 {
  font-size: 2rem;
  color: var(--navy);
}

.page h2 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-top: 2rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }

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

  .section,
  .services {
    padding-top: 60px;
  }

  .service h3 {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
