/* ==========================================================================
   ASU Dienstleistungs GmbH — Stylesheet
   ========================================================================== */

:root {
  /* Color tokens */
  --color-ink: #14213D;
  --color-navy-soft: #1F3358;
  --color-accent: #2F8F76;
  --color-accent-dark: #206352;
  --color-bg: #FAFAF7;
  --color-bg-alt: #F1F0E9;
  --color-line: #E3E1D6;
  --color-text: #2A2E35;
  --color-text-muted: #5B6270;
  --color-white: #FFFFFF;

  /* Type */
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --container-w: 1180px;
  --radius-s: 6px;
  --radius-m: 10px;
  --shadow-card: 0 1px 2px rgba(20, 33, 61, 0.06), 0 8px 24px rgba(20, 33, 61, 0.06);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, figure, blockquote, address { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.15;
  font-weight: 700;
}

h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

p { color: var(--color-text-muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(47, 143, 118, 0.28);
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-line);
}
.btn-ghost:hover { border-color: var(--color-ink); background: var(--color-white); }
.btn-small { padding: 9px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-color: var(--color-line);
  box-shadow: 0 2px 16px rgba(20, 33, 61, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
  flex-shrink: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.brand-name { font-size: 1.02rem; }
.brand-suffix { color: var(--color-text-muted); font-weight: 500; }

.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero { padding: 76px 0 88px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-bottom: 14px;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 20px;
  max-width: 16ch;
}
.hero-lead {
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  max-width: 40ch;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

.hero-visual { animation: rise 0.7s ease both; animation-delay: 0.1s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.visual-tile {
  aspect-ratio: 1 / 0.85;
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}
.visual-tile svg { width: 26px; height: 26px; fill: currentColor; opacity: 0.9; }
.visual-tile span { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.tile-a { background: var(--color-ink); }
.tile-b { background: var(--color-accent); }
.tile-c { background: var(--color-navy-soft); }
.tile-d { background: #3F7D63; }

.visual-caption {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}
.visual-caption strong { color: var(--color-ink); }

/* ---------- Sections (shared) ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-head { max-width: 56ch; margin-bottom: 44px; }
.section-head p { margin-top: 12px; font-size: 1.02rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: start;
}
.about-copy h2 { margin-bottom: 20px; max-width: 20ch; }
.about-copy p { margin-bottom: 16px; max-width: 52ch; }
.about-points { margin-top: 20px; }
.about-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--color-accent);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  padding: 24px 20px;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-ink);
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-s);
  background: rgba(47, 143, 118, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 22px; height: 22px; fill: var(--color-accent-dark); }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.93rem; }

/* ---------- Why Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.why-head { margin-bottom: 0; }
.why-head p { margin-top: 12px; }

.why-list { display: flex; flex-direction: column; gap: 26px; margin-bottom: 30px; }
.why-item { display: flex; gap: 18px; }
.why-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-accent);
  flex-shrink: 0;
  width: 34px;
}
.why-item h3 { margin-bottom: 6px; }
.why-item p { font-size: 0.94rem; }

.testimonial {
  grid-column: 2;
  border-left: 3px solid var(--color-accent);
  padding-left: 22px;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.5;
  margin-bottom: 12px;
}
.testimonial footer { font-size: 0.88rem; color: var(--color-text-muted); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.contact-info h2 { margin-bottom: 14px; max-width: 18ch; }
.contact-info > p { margin-bottom: 30px; max-width: 42ch; }

address { font-style: normal; display: flex; flex-direction: column; gap: 18px; }
.info-row { display: flex; align-items: flex-start; gap: 14px; font-size: 0.95rem; }
.info-row svg { width: 20px; height: 20px; fill: var(--color-accent-dark); flex-shrink: 0; margin-top: 2px; }
.info-row a:hover { color: var(--color-accent-dark); }

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}
.form-field .optional { font-weight: 400; color: var(--color-text-muted); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-s);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(47, 143, 118, 0.15);
}
.form-field textarea { resize: vertical; min-height: 100px; }

.field-error {
  display: block;
  min-height: 18px;
  font-size: 0.8rem;
  color: #C0392B;
  margin-top: 4px;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #C0392B;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  min-height: 20px;
}
.form-status.success { color: var(--color-accent-dark); }
.form-status.error { color: #C0392B; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: #C9CFDA; padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand-mark { margin-bottom: 16px; }
.footer-brand p { color: #9CA5B6; font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-display);
  color: var(--color-white);
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #9CA5B6; font-size: 0.9rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--color-white); }
.footer-col li { color: #9CA5B6; font-size: 0.9rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: #8891A3; font-size: 0.84rem; }
.legal-links { display: flex; gap: 20px; }
.legal-links a { color: #8891A3; font-size: 0.84rem; }
.legal-links a:hover { color: var(--color-white); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .testimonial { grid-column: 1; border-left: none; border-top: 3px solid var(--color-accent); padding-left: 0; padding-top: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--color-bg);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--color-line); }
  .nav-toggle { display: flex; }
  .header-actions .btn-small { display: none; }

  .about-stats { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
