/* =====================================================================
   S² Hauswartung — Production stylesheet
   Plain CSS, no preprocessor, no CDN. Self-hosted Work Sans via fonts/.
   Brand palette and tokens follow farben/farben.txt.
   ===================================================================== */

:root {
  --display: "Helvetica Neue", "Helvetica", "Arial", system-ui, sans-serif;
  --body: "Work Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;

  --blue-500: #38b6ff;
  --blue-700: #005EE9;
  --blue-100: #C8EBFF;
  --surface:  #FAFAFA;
  --white:    #FFFFFF;
  --ink:      #0E1422;
  --ink-2:    #323848;
  --ink-3:    #6B7280;
  --line:     #E6E8EE;
  --line-2:   #EEF1F5;
  --accent:   var(--blue-500);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  padding-top: 130px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Container */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 720px) { .wrap { padding: 0 20px; } }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* =====================================================================
   Header / Navigation
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: var(--blue-100);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(0, 94, 233, 0.12);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  position: relative;
}
.nav-spacer { display: none; }
.nav-logo {
  display: inline-flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .15s ease, transform .2s ease;
}
.nav-logo:hover { opacity: 0.85; transform: scale(0.97); }
.nav-logo-img {
  height: 128px;
  width: auto;
  display: block;
}
.desktop-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  position: relative;
  font-size: 17px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  background: transparent;
  transition: all .16s ease;
  white-space: nowrap;
}
.nav-link.is-active { color: var(--ink); background: rgba(0, 94, 233, 0.1); }
.nav-link.is-home { color: var(--blue-500); font-weight: 700; }
.nav-link:hover { background: rgba(0, 94, 233, 0.08); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
  transform-origin: center;
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 94, 233, 0.14);
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.burger-icon {
  width: 20px;
  height: 14px;
  position: relative;
}
.burger-icon span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .22s ease, top .22s ease, opacity .15s ease, background .2s ease;
}
.burger-icon span:nth-child(1) { top: 0; }
.burger-icon span:nth-child(2) { top: 6px; }
.burger-icon span:nth-child(3) { top: 12px; }
.burger.is-open { background: var(--ink); }
.burger.is-open .burger-icon span { background: #fff; }
.burger.is-open .burger-icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger.is-open .burger-icon span:nth-child(2) { opacity: 0; }
.burger.is-open .burger-icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(88vw, 380px);
  background: var(--white);
  box-shadow: -24px 0 60px rgba(14, 20, 34, 0.18);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.16, 1, .3, 1);
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 86px 28px 28px;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu-nav a {
  text-align: left;
  display: block;
  padding: 18px 16px;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 12px;
  border-bottom: 1px solid var(--line);
  transition: background .16s ease;
}
.mobile-menu-nav a.is-active { color: var(--ink); background: var(--surface); }
.mobile-menu-nav a.is-home { color: var(--blue-500); font-weight: 700; }
.mobile-menu-nav a:hover { background: var(--surface); }
.mobile-menu-cta { margin-top: 32px; }
.mobile-menu-foot {
  margin-top: auto;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-3);
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 20, 34, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 45;
}
.menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 960px) {
  .desktop-nav, .desktop-cta { display: none; }
  .burger { display: inline-flex; }
  .nav-wrap { padding: 8px 20px; min-height: 130px; }
  .nav-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .nav-logo:hover { transform: translate(-50%, -50%) scale(0.97); }
  .nav-logo-img { height: 112px; }
  .nav-spacer { display: block; width: 46px; }
  body { padding-top: 130px; }
}
@media (max-width: 420px) {
  .nav-logo-img { height: 88px; }
  .nav-wrap { min-height: 110px; }
  body { padding-top: 110px; }
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: all .16s ease, transform .16s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn--lg { font-size: 16px; padding: 14px 22px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--blue-700); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn .icon-arrow { width: 16px; height: 16px; }
.btn--lg .icon-arrow { width: 18px; height: 18px; }

/* =====================================================================
   Eyebrow / Section header
   ===================================================================== */
.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.section-header { max-width: 780px; margin-bottom: 48px; }
.section-header.center { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-header__eye { margin-bottom: 18px; }
.section-header h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.section-header__intro {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 640px;
}
.section-header.center .section-header__intro { margin: 0 auto; }

/* =====================================================================
   Hero (centered variant — production default)
   ===================================================================== */
.hero {
  background: var(--blue-100);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.hero__inner {
  padding: 100px 28px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(32px, 7.2vw, 100px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 auto 28px;
  max-width: 1000px;
}
.hero h1 .accent { color: var(--accent); }
.hero__lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.hero__cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__illu {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}
.hero__illu img {
  width: 520px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 94, 233, 0.12));
}

/* Subpage hero (about / services / contact / refs / legal) */
.subhero {
  background: var(--blue-100);
  padding: 88px 0 72px;
  min-height: 340px;
  border-radius: 0 0 28px 28px;
  margin-bottom: 2px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb [aria-current="page"] { color: var(--ink); }
.subhero__center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.subhero--wide .subhero__center { max-width: 1000px; }
.subhero h1 {
  font-size: clamp(30px, 6.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.subhero--legal h1 { font-size: clamp(40px, 5.5vw, 80px); }
.subhero__lead {
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 540px;
  margin: 0 auto;
}

/* =====================================================================
   Sections
   ===================================================================== */
section { background: var(--white); }
.section { padding: 120px 0; border-bottom: 1px solid var(--line); }
.section--surface { background: var(--surface); }

/* Values — three numbered cards */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: 56px;
  row-gap: 48px;
}
.value-card {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  position: relative;
}
.value-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
}
.value-card__nr {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.value-card h3 {
  font-size: clamp(26px, 2.4vw, 32px);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.value-card p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 360px;
}

/* Stats */
.stats-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 72px;
}
.stats-head h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stats-cell {
  padding: 8px 40px 4px;
  border-left: 1px solid var(--line);
  transition: transform .25s ease, background .25s ease;
}
.stats-cell:last-child { border-right: 1px solid var(--line); }
.stats-cell:hover {
  transform: translateY(-4px);
  background: var(--surface);
}
.stats-num {
  font-family: var(--display);
  font-size: clamp(72px, 9vw, 128px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.045em;
  line-height: 0.9;
  margin: 32px 0 24px;
}
.stats-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.stats-sub {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .stats-head { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-cell {
    border-left: none;
    border-right: none !important;
    border-top: 1px solid var(--line);
    padding: 40px 0;
  }
  .stats-cell:last-child { border-bottom: 1px solid var(--line); }
}

/* Services preview grid (5-column on home/services) */
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 32px;
  flex-wrap: wrap;
}
.services-head__copy { max-width: 620px; }
.services-head h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.srv-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.srv-preview-card {
  background: var(--white);
  padding: 36px 30px 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: background .18s ease, transform .22s cubic-bezier(.16, 1, .3, 1), box-shadow .22s ease;
  cursor: pointer;
}
.srv-preview-card:hover {
  background: var(--surface);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 94, 233, 0.1);
  z-index: 1;
}
.srv-preview-card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  height: 72px;
  display: flex;
  align-items: flex-end;
  margin: 0;
}
.srv-preview-card__sep {
  height: 1px;
  background: var(--line);
  margin: 12px 0 14px;
}
.srv-preview-card p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  flex: 1;
}
.srv-preview-card__more {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
@media (max-width: 1100px) { .srv-preview-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .srv-preview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .srv-preview-grid { grid-template-columns: 1fr; } }

/* Service detail rows */
.srv-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--white);
}
.srv-row + .srv-row { margin-top: 24px; }
.srv-row.flip { grid-template-columns: 1fr 1.25fr; }
.srv-row__text {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.srv-row.flip .srv-row__text { order: 2; }
.srv-row__text h2,
.srv-row__text h3 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.srv-row__text p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 440px;
}
.srv-row__bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.srv-row__bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 15px;
}
.srv-row__bullets svg { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.srv-row__img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  background: var(--blue-100);
}
.srv-row.flip .srv-row__img {
  background: var(--blue-700);
  order: 1;
}
.srv-row__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(0, 94, 233, 0.04) 22px 23px);
  pointer-events: none;
}
.srv-row.flip .srv-row__img::after {
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, 0.03) 22px 23px);
}
.srv-row__img img {
  width: 110%;
  max-width: 820px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 94, 233, 0.18));
}
.srv-row.flip .srv-row__img img {
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.3)) brightness(1.08);
}
@media (max-width: 860px) {
  .srv-row, .srv-row.flip { grid-template-columns: 1fr; }
  .srv-row__text, .srv-row.flip .srv-row__text { order: 2; padding: 36px 28px; }
  .srv-row__img, .srv-row.flip .srv-row__img { order: 1; min-height: 340px; padding: 24px; }
  .srv-row__img img { max-width: 300px; width: 90%; }
}

/* Manifest section */
.manifest h2 {
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}
.manifest h2 .accent { color: var(--accent); }
.manifest__cta {
  margin-top: 44px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Über uns intro + team */
.about-intro {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.about-intro p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 640px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 320px;
  margin: 0 auto;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.team-card__photo {
  aspect-ratio: 1 / 1;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--blue-700);
  position: relative;
}
.team-card__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0, 94, 233, 0.04) 14px 15px);
}
.team-card__body { padding: 22px 22px 24px; }
.team-card__name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.team-card__role {
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 4px;
}

/* References — testimonials + gallery */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.testimonial__stars {
  display: flex;
  gap: 3px;
  color: #FBBC04;
}
.testimonial__source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: ui-monospace, Menlo, monospace;
}
.testimonial__quote {
  font-size: 16.5px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}
.testimonial__cite {
  margin-top: auto;
  font-size: 13px;
  color: var(--ink-3);
  font-family: ui-monospace, Menlo, monospace;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-style: normal;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, var(--blue-100) 0 12px, #dff0ff 12px 24px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.gallery-item__placeholder {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--blue-700);
  opacity: 0.7;
}
.gallery-item__label {
  font-size: 12px;
  color: var(--ink-3);
}
@media (max-width: 720px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Contact form
   ===================================================================== */
.contact-section { padding: 72px 0 80px; background: var(--surface); }
.contact-section .wrap { max-width: 860px; }
.contact-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  overflow: hidden;
}
.contact-card__head {
  padding: 40px 44px 32px;
  border-bottom: 1px solid var(--line);
}
.contact-card__head h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.contact-card__head p {
  color: var(--ink-3);
  font-size: 14px;
}
.contact-card__body {
  padding: 32px 44px;
  display: grid;
  gap: 20px;
}
.contact-card__foot {
  padding: 24px 44px 36px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-label__txt {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-input,
.form-textarea,
.form-select {
  font: inherit;
  font-size: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  outline: none;
  width: 100%;
  transition: border-color .15s ease;
}
.form-textarea { resize: vertical; min-height: 132px; }
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: var(--blue-700); }
.form-input.is-invalid,
.form-textarea.is-invalid { border-color: #e34; }
.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pill.is-selected {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: #fff;
}
.contact-success {
  padding: 72px 44px;
  text-align: center;
}
.contact-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.contact-success h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.contact-success p {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 420px;
  margin: 0 auto 28px;
  line-height: 1.55;
}
.contact-success button {
  font-size: 14px;
  color: var(--blue-700);
  font-weight: 500;
}

/* Coordinates strip */
.coords {
  background: var(--surface);
  padding-bottom: 64px;
}
.ct-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .ct-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .ct-strip { grid-template-columns: 1fr; } }
.ct-card {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ct-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ct-card__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.ct-card__value {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  white-space: pre-line;
}
.ct-card__value a { color: var(--blue-700); white-space: nowrap; }

/* =====================================================================
   Legal pages (impressum / datenschutz)
   ===================================================================== */
.legal-section { padding: 80px 0 120px; }
.legal-section .wrap { max-width: 780px; }
.legal-info {
  background: var(--blue-100);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 56px;
}
.legal-info__name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 14px;
}
.legal-info__lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.legal-info__lines > div {
  font-size: 15px;
  color: var(--ink-2);
}
.legal-info__lines strong {
  color: var(--ink);
  font-weight: 500;
}
.legal-blocks {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.legal-block {
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.legal-block__head {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 16px;
}
.legal-block__nr {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--ink-3);
  flex-shrink: 0;
}
.legal-block h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.legal-block p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 14px;
}
.legal-block__sub {
  margin-bottom: 20px;
}
.legal-block__sub-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}
.legal-stand {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 14px;
  color: var(--ink-3);
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  background: var(--blue-700);
  color: #fff;
}
.site-footer .wrap { padding: 52px 28px 28px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-logo img {
  height: 56px;
  width: auto;
}
.foot-col__title {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue-500);
  margin-bottom: 18px;
}
.foot-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-col a,
.foot-col span {
  color: #fff;
  font-size: 15px;
  opacity: 0.9;
  transition: color .15s ease, opacity .15s ease;
}
.foot-col a:hover { color: #fff; opacity: 1; text-decoration: underline; }
.foot-col span.muted { color: rgba(255, 255, 255, 0.75); }
.foot-meta {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.foot-meta__legal {
  display: flex;
  gap: 20px;
}
.foot-meta__legal a:hover { color: #fff; text-decoration: underline; }

/* =====================================================================
   Animations
   ===================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(48px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
.anim-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.75s cubic-bezier(.16, 1, .3, 1),
              transform 0.75s cubic-bezier(.16, 1, .3, 1);
}
.anim-reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.anim-stagger > * {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(.16, 1, .3, 1),
              transform 0.65s cubic-bezier(.16, 1, .3, 1);
}
.anim-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.anim-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 100ms; }
.anim-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 200ms; }
.anim-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 300ms; }
.anim-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 400ms; }
.anim-stagger.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 480ms; }
.anim-stagger.is-visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 560ms; }
.anim-stagger.is-visible > *:nth-child(8) { opacity: 1; transform: none; transition-delay: 640ms; }
.anim-stagger.is-visible > *:nth-child(n+9) { opacity: 1; transform: none; transition-delay: 720ms; }
.anim-eyebrow { opacity: 0; }
.anim-eyebrow.is-visible {
  animation: slideRight 0.7s cubic-bezier(.16, 1, .3, 1) 0.05s both;
}
main { animation: fadeIn 0.4s ease both; }
button:active, .btn:active { transform: scale(0.97) !important; }
.card-hover {
  transition: transform .25s cubic-bezier(.16, 1, .3, 1),
              box-shadow .25s ease;
}
.card-hover:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 94, 233, 0.13);
}
.hero h1 { animation: fadeUp 0.9s cubic-bezier(.16, 1, .3, 1) 0.1s both; }
.hero__lead { animation: fadeUp 0.9s cubic-bezier(.16, 1, .3, 1) 0.25s both; }
.hero__cta { animation: fadeUp 0.9s cubic-bezier(.16, 1, .3, 1) 0.4s both; }
.hero__illu { animation: fadeUp 0.9s cubic-bezier(.16, 1, .3, 1) 0.55s both; }

.subhero .breadcrumb { animation: fadeUp 0.9s cubic-bezier(.16, 1, .3, 1) 0.05s both; }
.subhero h1 { animation: fadeUp 0.9s cubic-bezier(.16, 1, .3, 1) 0.2s both; }
.subhero__lead { animation: fadeUp 0.9s cubic-bezier(.16, 1, .3, 1) 0.35s both; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .anim-reveal, .anim-stagger > *, .anim-eyebrow { opacity: 1 !important; transform: none !important; }
  section > .wrap.anim-reveal > * { opacity: 1 !important; transform: none !important; }
  .card-hover:hover { transform: none !important; }
}

/* =====================================================================
   Responsive utilities
   ===================================================================== */
@media (max-width: 720px) {
  h1 { font-size: clamp(34px, 9vw, 56px); }
  h2 { font-size: clamp(28px, 7vw, 44px); }
  h3 { font-size: 19px; }
  .section { padding: 64px 0; }
  .hero__inner { padding: 64px 20px; }
  .subhero { padding: 56px 0 48px; min-height: 0; }
  .contact-card__head, .contact-card__body, .contact-card__foot { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  .section { padding: 48px 0; }
}
