/* 1. CSS Variables */
:root {
  --color-brand: #1b4372;
  --color-text: #1a1c1e;
  --color-text-muted: #44474e;
  --color-background: #f8f9fa;
  --color-surface: #ffffff;
  --color-border: #dfe3e8;
  --color-brand-soft: #e8f0f8;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;

  --shadow-sm: 0 0.25rem 1rem rgba(26, 28, 30, 0.08);
  --shadow-md: 0 0.75rem 2rem rgba(26, 28, 30, 0.1);
}

/* 2. Reset / Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

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

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
}

hr {
  display: none;
}

/* 3. Typography */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-text);
  line-height: 1.15;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  margin-bottom: var(--space-md);
  font-size: clamp(2rem, 8vw, 4rem);
  letter-spacing: 0;
}

p {
  color: var(--color-text-muted);
  overflow-wrap: break-word;
}

.material-symbols-outlined {
  font-size: 1.25rem;
  line-height: 1;
  vertical-align: middle;
}

/* 4. Layout Helpers */
main > section {
  padding: 2.5rem var(--space-md);
  scroll-margin-top: 4.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  flex-direction: column;

  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.section-header p {
  margin-bottom: 0;
}

/* 5. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.375rem var(--space-md);
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 0.25rem 1rem rgba(26, 28, 30, 0.04);
  max-height: 20vh;
}

.menu-toggle {
  position: relative;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--color-brand);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  background-color: currentColor;
  transition: transform 160ms ease;
}

.menu-toggle-icon {
  position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle-icon::before {
  transform: translateY(-0.42rem);
}

.menu-toggle-icon::after {
  transform: translateY(0.42rem);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
  transform: rotate(-45deg);
}

.header-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 11;
  display: grid;
  align-content: start;
  gap: var(--space-md);
  width: min(20rem, 88vw);
  height: 100dvh;
  padding: 4.75rem var(--space-lg) var(--space-lg);
  overflow-y: auto;
  visibility: hidden;
  background-color: var(--color-surface);
  border-left: 1px solid var(--color-border);
  box-shadow: -0.75rem 0 2rem rgba(26, 28, 30, 0.16);
  transform: translateX(100%);
  transition:
    transform 220ms ease,
    visibility 220ms;
}

.header-menu.is-open {
  visibility: visible;
  transform: translateX(0);
}

.site-logo {
  position: relative;
  display: block;
  width: 9.5rem;
  height: 2.75rem;
  overflow: hidden;
}

.site-logo img {
  position: absolute;
  top: -1.9rem;
  left: 0;
  max-width: 170px;
}

.main-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
  width: 100%;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
}

.main-nav a:hover {
  color: var(--color-brand);
  background-color: var(--color-brand-soft);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  color: var(--color-surface);
  background-color: var(--color-brand);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.header-cta:hover {
  background-color: #14365c;
}

/* 6. Hero */
.hero {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 249, 250, 1)),
    var(--color-background);
}

.hero-content {
  max-width: 42rem;
}

.hero-content > p {
  max-width: 36rem;
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 100%;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.hero-contact a:first-child {
  color: var(--color-surface);
  background-color: var(--color-brand);
  box-shadow: var(--shadow-sm);
}

.hero-contact a:last-child {
  color: var(--color-brand);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}

.hero-areaOfFocus {
  padding: var(--space-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hero-areaOfFocus > p {
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  font-weight: 700;
}

.hero-areaOfFocus ul {
  display: grid;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-areaOfFocus li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-muted);
  font-weight: 600;
}

.hero-areaOfFocus .material-symbols-outlined {
  color: var(--color-brand);
}

.hero-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 7. Leistungen */
.leistungen {
  background-color: var(--color-surface);
}

.services-grid {
  display: grid;
  gap: var(--space-md);
}

.service-card {
  padding: var(--space-lg);
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.service-card:hover {
  transform: translateY(-0.15rem);
  border-color: rgba(27, 67, 114, 0.28);
  box-shadow: var(--shadow-md);
}

.material-symbols-outlined.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-md);
  background-color: var(--color-brand-soft);
  border-radius: var(--radius-md);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.15rem;
}

.service-card p {
  margin-bottom: 0;
}

/* 8. Warum Vitija */
.warum-vitija {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  background-color: var(--color-background);
}

.warum-image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.warum-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.warum-text h2 {
  margin-bottom: var(--space-lg);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.warum-text-punkte {
  display: grid;
  gap: var(--space-md);
}

.warum-text-punkte > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--space-sm);
  padding: var(--space-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.warum-icon {
  display: inline-flex;
  grid-row: span 2;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--color-brand);
  background-color: var(--color-brand-soft);
  border-radius: 50%;
}

.warum-icon::before {
  content: "check_circle";
  font-family: "Material Symbols Outlined";
  font-size: 1.15rem;
  line-height: 1;
}

.warum-text-punkte p {
  margin-bottom: 0;
}

.warum-text-punkte p:first-of-type {
  color: var(--color-text);
  font-weight: 700;
}

.warum-text-punkte p:last-of-type {
  font-size: 0.95rem;
}

/* 9. Standort */
.standort {
  background-color: var(--color-surface);
}

.standort > h2 {
  max-width: 42rem;
  margin-bottom: var(--space-sm);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.standort > p {
  max-width: 42rem;
  margin-bottom: var(--space-xl);
}

.standort-info-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.standort-teile {
  display: grid;
  gap: var(--space-lg);
}

.standort-info {
  display: grid;
  gap: var(--space-md);
}

.standort-info-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--space-sm);
  padding: var(--space-lg);
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.standort-info-card > .material-symbols-outlined {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-brand);
  background-color: var(--color-brand-soft);
  border-radius: var(--radius-md);
}

.standort-info-card-headline {
  margin-bottom: var(--space-xs);
  color: var(--color-text);
  font-weight: 700;
}

.standort-info-text p,
.standort-info-card-zeiten p {
  margin-bottom: 0.2rem;
}

.standort-info-text p:first-child {
  color: var(--color-text);
  font-weight: 700;
}

.standort-info-card-zeiten {
  display: grid;
  grid-template-columns: minmax(3.5rem, auto) minmax(0, 1fr);
  gap: var(--space-sm);
}

.standort-info-card-zeiten-text p {
  color: var(--color-text);
  font-weight: 700;
}

.routePlanen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.65rem 0.95rem;
  color: var(--color-surface);
  background-color: var(--color-brand);
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.routePlanen:hover {
  background-color: #14365c;
}

.standort-card {
  min-height: 18rem;
  overflow: hidden;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.standort-card iframe {
  display: block;
  width: 100%;
  min-height: 18rem;
  height: 100%;
  border: 0;
}

/* 10. Kontakt */
.kontakt {
  background-color: var(--color-background);
  justify-content: center;
  display: flex;
}

.kontakt-info {
  max-width: 42rem;
}

.kontakt-info h2 {
  margin-bottom: var(--space-sm);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.kontakt-info > p {
  max-width: 38rem;
  margin-bottom: var(--space-xl);
}

.kontakt-info-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--space-sm);
  margin-bottom: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.kontakt-info-card > .material-symbols-outlined {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-brand);
  background-color: var(--color-brand-soft);
  border-radius: var(--radius-md);
}

.kontakt-info-card p {
  margin-bottom: var(--space-xs);
  color: var(--color-text);
  font-weight: 700;
}

.kontakt-info-card a {
  color: var(--color-brand);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.kontakt-info-card a:hover {
  text-decoration: underline;
}

/* 11. FAQ */
.faq {
  background-color: var(--color-surface);
}

.faq h2 {
  max-width: 42rem;
  margin-bottom: var(--space-xl);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.faq-card {
  max-width: 52rem;
  margin-bottom: var(--space-md);
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.faq-card[open] {
  border-color: rgba(27, 67, 114, 0.28);
}

.faq-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 3.5rem;
  padding: var(--space-md) var(--space-lg);
  color: var(--color-text);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::after {
  content: "expand_more";
  flex: 0 0 auto;
  color: var(--color-brand);
  font-family: "Material Symbols Outlined";
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.faq-card[open] summary::after {
  transform: rotate(180deg);
}

.faq-card summary:hover {
  color: var(--color-brand);
}

.faq-card summary:focus-visible {
  border-radius: var(--radius-md);
}

.faq-card p {
  margin: 0;
  padding: 0 var(--space-lg) var(--space-lg);
}

/* 12. Footer */
.site-footer {
  display: grid;
  gap: var(--space-xl);
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  color: var(--color-surface);
  background-color: var(--color-text);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer-heading {
  margin-bottom: var(--space-sm);
  color: var(--color-surface);
  font-weight: 700;
}

.footer-logo {
  position: relative;
  display: block;
  width: 13rem;
  height: 5rem;
  margin-bottom: var(--space-md);
  overflow: hidden;
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
}

.footer-logo img {
  position: relative;
  top: -1.75rem;
  width: 13rem;
  max-width: none;
}

.site-footer-info p:last-child {
  max-width: 28rem;
  margin-bottom: 0;
}

.site-footer-leistungen ul,
.site-footer-rechtliches ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  list-style: none;
}

.site-footer-kontakt {
  display: grid;
  gap: var(--space-sm);
}

.site-footer-kontakt p {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.site-footer-kontakt .material-symbols-outlined {
  color: #9fbce0;
}

.site-footer a {
  color: var(--color-surface);
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer > p:last-child {
  margin-bottom: 0;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

.social-media-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  width: fit-content;
  font-weight: 600;
}

.social-media-link img {
  flex: 0 0 auto;
}

/* 13. Responsive Media Queries */
@media (max-width: 26.25rem) {
  html {
    scroll-padding-top: 4rem;
  }

  .site-header {
    gap: var(--space-xs);
    padding: 0.25rem var(--space-sm);
  }

  .site-logo {
    width: 8rem;
    height: 2.5rem;
  }

  .site-logo img {
    top: -1.6rem;
    width: 8rem;
  }

  .header-cta {
    padding: 0.65rem;
    font-size: 0.85rem;
  }

  main > section {
    scroll-margin-top: 4rem;
  }

  .main-nav {
    gap: 0.35rem;
  }

  .main-nav a {
    min-height: 2.25rem;
    padding: 0.4rem 0.45rem;
    font-size: 0.86rem;
  }

  main > section {
    padding: 2rem var(--space-sm);
  }

  .hero-areaOfFocus,
  .service-card,
  .standort-info-card,
  .kontakt-info-card,
  .faq-card summary,
  .faq-card p {
    padding-inline: var(--space-md);
  }

  .site-footer {
    padding-inline: var(--space-sm);
  }
}

@media (min-width: 30rem) {
  .hero-contact a {
    flex-basis: auto;
  }

  .routePlanen {
    width: fit-content;
  }
}

@media (min-width: 48rem) {
  html {
    scroll-padding-top: 5.5rem;
  }

  .site-header {
    display: flex;
    flex-wrap: nowrap;
    padding-inline: var(--space-xl);
  }

  .menu-toggle {
    display: none;
  }

  .header-menu,
  .header-menu.is-open {
    position: static;
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
    margin-left: auto;
    padding: 0;
    overflow: visible;
    visibility: visible;
    background-color: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .main-nav {
    display: flex;
    width: auto;
  }

  .header-cta {
    margin-left: 0;
  }

  main > section {
    padding-inline: var(--space-xl);
    scroll-margin-top: 5.5rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    padding-block: 4rem;
  }

  .hero-areaOfFocus ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warum-vitija {
    grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.1fr);
  }

  .warum-text-punkte {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standort-teile {
    grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
    align-items: stretch;
  }

  .standort-card {
    min-height: 100%;
  }

  .faq h2,
  .faq-card {
    margin-inline: auto;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: var(--space-xl);
  }

  .site-footer > p:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns:
      minmax(0, 1.3fr) minmax(10rem, 0.7fr) minmax(12rem, 0.8fr)
      minmax(9rem, 0.6fr);
  }
}

@media (min-width: 72rem) {
  .site-header,
  main > section,
  .site-footer {
    padding-inline: max(var(--space-xl), calc((100vw - 72rem) / 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-menu {
    transition: none;
  }
}
