/* Cunning static site — main styles */

:root {
  --color-text: #48484a;
  --color-text-light: #77737f;
  --color-bg: #ffffff;
  --color-bg-alt: #f3f6ff;
  --color-accent: #2aa9df;
  --color-accent-dark: #1a7a9e;
  --color-footer-bg: #4a4a4d;
  --color-footer-bottom: #202027;
  --color-footer-text: #f0f0f0;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Nunito", sans-serif;
  --max-width: 1180px;
  --header-height: 82px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: clip;
}

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

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

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  transition: box-shadow 0.2s;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 54px;
  width: auto;
}

.logo-sticky {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header.is-scrolled .logo-default {
  display: none;
}

.site-header.is-scrolled .logo-sticky {
  display: block;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 38px;
}

.primary-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 12px;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--color-accent);
}

.language-switcher {
  position: relative;
  font-family: var(--font-heading);
  font-size: 12px;
}

.language-switcher summary {
  min-height: 44px;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 2px 0 1px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.language-switcher[open] summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.language-flag,
.language-switcher a img {
  width: 24px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.language-switcher ul {
  position: absolute;
  z-index: 110;
  top: calc(100% + 4px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #e6e9f0;
  border-radius: 5px;
  background: var(--color-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.language-switcher li {
  margin: 0;
}

.language-switcher a {
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 3px;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: 0;
}

.language-switcher a:hover,
.language-switcher a[aria-current="page"] {
  background: var(--color-bg-alt);
  color: var(--color-accent-dark);
}

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

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

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
}

.hero-image {
  width: min(100%, 760px);
  margin: 0 auto;
  max-height: none;
  object-fit: contain;
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 26px;
}

.hero-text h1 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-text p {
  font-size: 1rem;
  color: var(--color-text-light);
  margin: 0 0 10px;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  padding: 11px 21px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.button-primary {
  background: var(--color-accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: var(--color-accent-dark);
}

.button-secondary:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent-dark);
}

/* Shared content sections */
.content-section {
  padding: 72px 24px;
}

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

.section-inner,
.section-heading {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-inner-narrow {
  max-width: 850px;
}

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.section-heading h2,
.content-section h2,
.delivery-section > .section-inner > h2,
.contact-cta h2 {
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 400;
}

.section-heading p {
  margin: 0;
  color: var(--color-text-light);
}

.section-copy {
  max-width: 820px;
}

.section-copy p,
.contact-cta p {
  margin: 0 0 14px;
  color: var(--color-text-light);
}

.fit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  max-width: 920px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.fit-list li {
  position: relative;
  padding-left: 23px;
}

.fit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* Services */
.services {
  padding: 72px 24px;
  background: var(--color-bg);
}

.services-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  text-align: center;
  min-height: 248px;
  padding: 28px 22px 24px;
  border: 1px solid #e6e9f0;
  border-radius: 5px;
  color: var(--color-text);
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(42, 169, 223, 0.65);
  color: var(--color-text);
  transform: translateY(-2px);
}

.service-card img {
  margin: 0 auto 12px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--color-text);
}

.service-card p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Services page */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 24px 62px;
  background:
    radial-gradient(circle at 18% 82%, rgba(206, 220, 255, 0.58) 0 42px, transparent 43px),
    radial-gradient(circle at 78% 28%, rgba(206, 220, 255, 0.58) 0 62px, transparent 63px),
    #eef3ff;
}

.page-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 400;
}

.page-intro {
  max-width: 780px;
  font-size: 1.05rem;
  color: var(--color-text-light);
}

.page-intro p {
  margin: 0 0 12px;
}

.service-detail {
  padding: 66px 24px;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.service-detail:nth-child(even) {
  background: var(--color-bg-alt);
}

.service-detail h2 {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  font-weight: 400;
}

.service-detail p {
  max-width: 800px;
  margin: 0 0 14px;
  color: var(--color-text-light);
}

.service-detail ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 34px;
  margin: 18px 0 22px;
  padding-left: 20px;
  color: var(--color-text-light);
}

.delivery-section {
  padding: 72px 24px;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.delivery-grid article {
  padding: 26px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-alt);
}

.delivery-grid h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.delivery-grid p {
  margin: 0;
  color: var(--color-text-light);
}

.contact-cta {
  padding: 70px 24px;
  background: var(--color-bg-alt);
  text-align: center;
}

.contact-cta p {
  max-width: 660px;
  margin: 0 auto 24px;
}

/* Page content (Impressum) */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 32px;
}

.legal-content h1 {
  position: relative;
  margin: 0 0 36px;
  padding: 24px 0 28px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 400;
  isolation: isolate;
}

.legal-content h1::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto;
  left: 50%;
  width: 100vw;
  background:
    radial-gradient(circle at 24% 75%, rgba(206, 220, 255, 0.55) 0 30px, transparent 31px),
    radial-gradient(circle at 63% 40%, rgba(206, 220, 255, 0.55) 0 46px, transparent 47px),
    #eef3ff;
  transform: translateX(-50%);
}

.legal-content h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  margin: 16px 0 2px;
}

.legal-content h2:first-of-type {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.2vw, 2.75rem);
  margin: 0 0 12px;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  margin: 12px 0 6px;
}

.legal-content p {
  margin: 0 0 10px;
  color: var(--color-text-light);
}

/* Footer */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-top: 66px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 220px;
  padding: 0 24px 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 18px;
}

.footer-col p {
  margin: 0 0 8px;
  font-size: 13px;
}

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

.footer-col a:hover {
  color: var(--color-accent);
}

.site-footer a:focus-visible {
  outline-color: #fff;
}

.footer-linkedin {
  display: flex;
  width: 36px;
  height: 36px;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
}

.footer-linkedin::after {
  content: "in";
  color: #34343a;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.footer-bottom {
  background: var(--color-footer-bottom);
  border-top: 0;
  padding: 25px 24px;
  text-align: center;
  font-size: 11px;
}

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

/* Responsive */
@media (min-width: 769px) {
  .hero {
    margin-top: calc(-1 * var(--header-height));
  }
}

@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 52px;
  }

  body {
    font-size: 14px;
  }

  .header-inner {
    padding: 0 15px;
  }

  .logo img {
    height: 27px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-actions {
    gap: 8px;
  }

  .language-current {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .language-switcher summary {
    padding-inline: 5px;
  }

  .language-switcher summary::after {
    margin-left: 0;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .primary-nav ul {
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 0;
  }

  .primary-nav li {
    border-bottom: 1px solid #eee;
  }

  .primary-nav a {
    display: block;
    padding: 14px 0;
  }

  .hero-image {
    width: min(100%, 520px);
  }

  .hero-text {
    max-width: 520px;
    padding: 10px 18px 34px;
  }

  .hero-text h1 {
    font-size: 1.55rem;
  }

  .services {
    padding: 50px 20px;
  }

  .content-section,
  .delivery-section,
  .contact-cta {
    padding: 50px 20px;
  }

  .service-card {
    min-height: 230px;
    padding: 24px 18px 20px;
  }

  .fit-list {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 42px 20px 46px;
  }

  .service-detail {
    padding: 48px 20px;
  }

  .service-detail ul {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .values {
    padding: 0 18px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer {
    padding-top: 40px;
  }

  .footer-grid {
    padding: 0 20px 36px;
  }

  .legal-content h1 {
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .button-group {
    align-items: stretch;
    flex-direction: column;
  }

  .button-group .button {
    width: 100%;
  }

  .content-section,
  .services,
  .delivery-section,
  .contact-cta {
    padding-block: 42px;
  }

  .delivery-grid article {
    padding: 22px 20px;
  }

  .page-content {
    padding-inline: 18px;
  }

  .legal-content h2 {
    font-size: 1rem;
  }

  .legal-content h2:first-of-type {
    font-size: 1.55rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .service-card:hover,
  .service-card:focus-visible {
    transform: none;
  }
}
