/* Ingenieurbüro Schwaben – landing styles */

:root {
  --ink: #0c1210;
  --ink-soft: #1c2824;
  --muted: #5a6b66;
  --line: rgba(12, 18, 16, 0.12);
  --surface: #f3f1ec;
  --surface-2: #e8e6e0;
  --accent: #c24e28;
  --accent-hover: #a64120;
  --accent-glow: rgba(194, 78, 40, 0.35);
  --mint: #1a3d36;
  --mint-soft: #234d45;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px rgba(12, 18, 16, 0.12);
  --shadow-soft: 0 8px 30px rgba(12, 18, 16, 0.08);
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.35rem);
  margin: 0 0 1rem;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shell {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(243, 241, 236, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.brand__logo {
  width: auto;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.brand__tag {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

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

.nav-toggle__bars {
  width: 20px;
  height: 14px;
  border-block: 2px solid var(--ink);
  position: relative;
}

.nav-toggle__bars::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-top: 2px solid var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

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

.nav__cta {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(243, 241, 236, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav__list a {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

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

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn--ghost:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: var(--surface);
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: clip;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(194, 78, 40, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(26, 61, 54, 0.08), transparent 50%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1.05fr;
  }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-soft);
  margin: 0 0 0.75rem;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero__stats strong {
  color: var(--ink);
  display: block;
  font-weight: 600;
}

.hero__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-2);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero__caption {
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section--surface {
  background: #fff;
  border-block: 1px solid var(--line);
}

.section--dark {
  background: linear-gradient(165deg, var(--mint) 0%, #0f1f1b 100%);
  color: #e8f0ed;
}

.section__head {
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.section__intro {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

.section__intro--on-dark {
  color: rgba(232, 240, 237, 0.82);
}

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.5rem 1.5rem 1.65rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card h3 {
  color: var(--ink);
}

/* Split + steps */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1.2fr 0.85fr;
    gap: 3rem;
  }
}

.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.steps__n {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}

.steps p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.callout {
  padding: 1.75rem;
  background: linear-gradient(145deg, #fff 0%, var(--surface) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.callout__title {
  font-size: 1.15rem;
}

.callout p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout__meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Contact */
.contact {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.contact__text h2 {
  color: #fff;
}

.contact__address {
  font-style: normal;
  margin: 1.5rem 0;
  line-height: 1.7;
  color: rgba(232, 240, 237, 0.92);
}

.contact__channels {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.contact__channels li {
  margin-bottom: 0.85rem;
}

.contact__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 240, 237, 0.55);
  margin-bottom: 0.2rem;
}

.contact__channels a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.contact__channels a:hover {
  text-decoration: underline;
}

.quick-form {
  margin: 1.25rem 0 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.quick-form__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #fff;
}

.quick-form__hint {
  margin: 0 0 0.75rem;
  color: rgba(232, 240, 237, 0.75);
  font-size: 0.92rem;
}

.quick-form__grid {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

@media (min-width: 640px) {
  .quick-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-form__grid label:last-child {
    grid-column: 1 / -1;
  }
}

.quick-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: rgba(232, 240, 237, 0.9);
}

.quick-form input,
.quick-form select,
.quick-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(12, 18, 16, 0.35);
  color: #fff;
  padding: 0.6rem 0.65rem;
  font: inherit;
}

.quick-form textarea {
  resize: vertical;
  min-height: 86px;
}

.quick-form input:focus,
.quick-form select:focus,
.quick-form textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 1px;
}

.quick-form__check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.7rem 0 0.6rem;
}

.quick-form__check input {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
}

.quick-form__check a {
  color: #fff;
}

.quick-form__feedback {
  min-height: 1.2rem;
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: #ffd2c4;
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  filter: saturate(0.85) contrast(1.05);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr auto;
  }
}

.footer__fine {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  max-width: 40ch;
}

.footer__h {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.75rem;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__copy {
  text-align: center;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Legal pages */
.legal-page {
  min-height: 60vh;
}

.page-hero {
  padding: clamp(2rem, 5vw, 3rem) 0;
  background:
    radial-gradient(ellipse 75% 70% at 80% -20%, rgba(194, 78, 40, 0.14), transparent 55%),
    linear-gradient(180deg, #f7f5f0 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero--compact h1 {
  margin-bottom: 0.6rem;
}

.legal {
  max-width: 78ch;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.nav__list a[aria-current="page"] {
  color: var(--accent);
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.85rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

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

/* 404 */
.not-found {
  max-width: 54ch;
  text-align: center;
  padding-block: 2rem 1rem;
}
