@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #e9eff5;
  --bg-alt: #dbe7ef;
  --ink: #0c1723;
  --muted: #51606f;
  --accent: #0c9795;
  --accent-dark: #087b79;
  --accent-soft: rgba(12, 151, 149, 0.12);
  --title: #064067;
  --card: #ffffff;
  --line: #e1ecf2;
  --shadow: 0 18px 50px rgba(12, 23, 35, 0.12);
  --font-display: "Noto Sans", "Inter", "Arial", sans-serif;
  --font-body: "Noto Sans", "Inter", "Arial", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, #e6edf4 0%, #eef3f7 60%, #f7fafc 100%);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 6vw;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.logo img {
  width: auto;
  height: 60px;
  max-width: 200px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--title);
}

.brand-tag {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1.8rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.site-nav a.is-active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.btn-header {
  white-space: nowrap;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  box-shadow: none;
}

.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-toggle-line {
  width: 16px;
  height: 2px;
  background: var(--title);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-menu-open .mobile-menu-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-menu-open .mobile-menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .mobile-menu-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.language-switch {
  position: relative;
}

.header-language-switch-trigger {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.header-language-switch-trigger img {
  width: 20px;
  height: 20px;
  display: block;
}

.header-action-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(12, 23, 35, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  min-width: 150px;
  z-index: 20;
}

.language-switch.is-open .header-action-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-switch-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
}

.language-switch-list li {
  margin: 0;
}

.language-switch-list button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.language-switch-list li.active button {
  background: var(--bg-alt);
  color: var(--title);
}

.language-switch-list button:hover,
.language-switch-list button:focus-visible {
  background: #eef4f8;
  color: var(--title);
  transform: translateX(2px);
}

main {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

body[data-page^="service-"] main {
  gap: 3.5rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 6rem 6vw 2rem;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin: 0.5rem 0 1.2rem;
  font-weight: 700;
  color: var(--title);
}

.hero-text {
  color: var(--muted);
  max-width: 35rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.stat-label {
  display: block;
  color: var(--muted);
}

.hero-card .card {
  background: var(--card);
  padding: 2rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-illustration {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

.hero-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.card li {
  padding-left: 1.6rem;
  position: relative;
}

.card li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.section-title {
  padding: 0 6vw;
  max-width: 44rem;
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin: 0.4rem 0 0.8rem;
  color: var(--title);
}

.section-title p {
  color: var(--muted);
}

.services,
.contact,
.imprint {
  padding-bottom: 2rem;
}

.service-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 6vw 2rem;
  align-items: center;
}

.service-hero-media {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  overflow: visible;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}

.service-hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

.service-grid,
.imprint-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
  padding: 0 6vw;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.service-card,
.info-card,
.contact-form {
  background: var(--card);
  padding: 1.8rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(11, 27, 43, 0.08);
}

.service-detail-hero {
  display: grid;
  gap: 0.85rem;
  padding: 4rem 6vw 1rem;
}

.service-detail-hero p {
  max-width: 52rem;
}

.detail-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--title);
  margin: 0.6rem 0 0.2rem;
}

.detail-grid {
  display: grid;
  gap: 1.5rem;
  padding: 0 6vw;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.detail-card {
  background: var(--card);
  padding: 1.8rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(11, 27, 43, 0.08);
}

.detail-card h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--title);
}

.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

.faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--title);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--accent-dark);
  font-weight: 600;
  transition: transform 0.2s ease, color 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--title);
  transform: translateY(-1px);
}

.cta-section {
  padding: 0 6vw 4rem;
}

.cta-card .btn {
  display: inline-flex;
  margin-top: 1.4rem;
}

.btn-block {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.service-card h3 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--title);
  text-align: center;
}

.service-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  border-radius: 14px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.service-card-link {
  display: block;
  color: inherit;
}

.service-card-link:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 4px;
}

.service-card-link .service-card {
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card-link:hover .service-card,
.service-card-link:focus-visible .service-card {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(11, 27, 43, 0.12);
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.contact-form .hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 1.2em;
}

.form-status.is-success {
  color: #0c7f6b;
}

.form-status.is-error {
  color: #b42318;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  margin-top: 0.4rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.info-card h3 {
  margin-top: 0;
  color: var(--title);
}

.imprint-grid {
  margin-top: 1.5rem;
}

.imprint-block {
  white-space: pre-line;
  line-height: 1.8;
  color: var(--ink);
  margin-top: 0.75rem;
}

.site-footer {
  padding: 2rem 6vw 3rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 4rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-link-button {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: var(--title);
}

.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-consent-card {
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(135deg, #ffffff 0%, #f4f9fd 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 45px rgba(12, 23, 35, 0.18);
  padding: 1.25rem 1.4rem;
}

.cookie-badge {
  margin: 0 0 0.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
}

.cookie-consent h3 {
  margin: 0.15rem 0 0.5rem;
  color: var(--title);
}

.cookie-text {
  margin: 0;
  color: var(--muted);
}

.cookie-options {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.1rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 500;
}

.cookie-option input {
  width: auto;
  margin-top: 0.2rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    top: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.85rem 1rem;
    padding: 1rem 5vw;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.6rem;
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem 1.2rem;
    font-size: 0.95rem;
    padding-top: 0.2rem;
  }

  .btn-header {
    padding: 0.52rem 0.9rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    top: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.85rem 1rem;
    padding: 1rem 5vw;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.6rem;
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem 1.2rem;
    font-size: 0.95rem;
    padding-top: 0.2rem;
  }

  .btn-header {
    padding: 0.52rem 0.9rem;
    font-size: 0.85rem;
  }

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

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 3rem;
  }

  body[data-page^="service-"] main {
    gap: 2.5rem;
  }

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

  .site-header {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.65rem 0.75rem;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .logo img {
    height: 46px;
  }

  .site-nav {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 0.35rem;
    grid-row: 3;
  }

  .header-actions {
    display: contents;
  }

  .site-header.is-menu-open .site-nav {
    display: flex;
  }

  .btn-header {
    display: inline-flex;
    justify-content: center;
    padding: 0.48rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 8px;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .header-language-switch-trigger {
    width: 30px;
    height: 30px;
  }

  .header-language-switch-trigger img {
    width: 18px;
    height: 18px;
  }

  .language-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .site-nav a {
    display: inline-flex;
    width: max-content;
  }
}
