/* Arealconsult – minimales Gerüst (One-Pager + Unterseiten) */

:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f4f4f5;
  --color-text: #171717;
  --color-text-muted: #525252;
  --color-accent: #2c2c2c;
  --font-sans: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --space-section: clamp(3rem, 8vw, 5rem);
  --header-h: 4.75rem;
  --max-w: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  text-wrap: balance;
  text-transform: uppercase;
}

h1 {
  font-weight: 700;
  letter-spacing: 0.09em;
}

h2 {
  font-weight: 700;
  letter-spacing: 0.07em;
}

h3 {
  font-weight: 600;
  letter-spacing: 0.06em;
}

h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: 0.05em;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

a:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(72vw, 22rem);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  display: block;
  height: 2.4rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  display: none;
  padding: 0.5rem 0.65rem;
  border: 1px solid #ccc;
  background: var(--color-bg);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-primary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.nav-primary a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  text-decoration: underline;
}

@media (max-width: 52rem) {
  .nav-toggle {
    display: block;
  }

  .nav-primary {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid #e8e8e8;
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

  .nav-primary.is-open {
    display: block;
  }

  .nav-primary ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* —— Hero (Karussell) —— */
.hero-slider {
  position: relative;
  color: #fff;
}

.hero-slider__bgs {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #2a2a2a;
}

.hero-slider__bg {
  position: absolute;
  inset: 0;
  background-color: #2a2a2a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.15s ease-in-out;
}

.hero-slider__bg.is-active {
  opacity: 1;
}

.hero-slider .hero__overlay {
  position: relative;
  z-index: 2;
  min-height: min(70vh, 36rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.12));
  padding: clamp(2rem, 6vw, 3.5rem) 1.25rem;
}

.hero-slider .hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: min(62vh, 32rem);
}

.hero-slider__captions {
  position: relative;
  width: 100%;
  min-height: clamp(14rem, 38vh, 26rem);
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  bottom: auto;
  opacity: 0;
  transform: translateY(calc(-50% + 2.25rem));
  transition:
    opacity 0.78s ease,
    transform 0.78s ease;
  pointer-events: none;
  visibility: hidden;
}

.hero-caption.is-active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
  visibility: visible;
}

.hero-caption.is-exiting {
  opacity: 0;
  transform: translateY(calc(-50% - 1.35rem));
  transition:
    opacity 0.88s ease,
    transform 0.88s ease;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__bg {
    transition: none;
  }

  .hero-caption,
  .hero-caption.is-exiting {
    transition: none;
  }
}

.hero-caption h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1.2;
}

.hero-caption p.lead {
  margin: 0 0 1.25rem;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  opacity: 0.95;
  max-width: 44rem;
}

.hero-caption__action {
  margin: 0;
}

.hero-caption__action .btn {
  margin-top: 0.25rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn:hover {
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
}

.btn--dark {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

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

/* —— Sections —— */
main > section {
  padding: var(--space-section) 1.25rem;
}

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

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
}

section h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.lead-text {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 48rem;
}

.grid-3 {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 40rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-3 h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.grid-3 p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.grid-2 {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

@media (min-width: 48rem) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.services-list h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.services-list p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

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

/* Referenzen */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.logo-strip a {
  display: block;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.logo-strip a:hover {
  opacity: 1;
}

.logo-strip img {
  max-height: 3rem;
  width: auto;
}

/* Kontakt-Teaser */
.contact-teaser {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 40rem) {
  .contact-teaser {
    grid-template-columns: min(18rem, 40%) 1fr;
  }
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--color-bg-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

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

.site-footer nav a {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

/* —— Unterseiten —— */
.page-main {
  padding: 2rem 1.25rem 4rem;
  max-width: 48rem;
  margin: 0 auto;
}

.page-main h1 {
  margin-top: 0;
  font-size: 1.85rem;
  line-height: 1.25;
}

.page-main h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.page-main ul {
  padding-left: 1.25rem;
}

.page-main li {
  margin-bottom: 0.5rem;
}

.page-main figure {
  margin: 1.5rem 0;
}

.page-main figure img {
  display: block;
  border: 1px solid #e0e0e0;
}

.subtle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.form-placeholder {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px dashed #bbb;
  border-radius: 4px;
  background: #fafafa;
}

.contact-form {
  margin-top: 1.5rem;
}

/* Web3Forms Honeypot – nicht sichtbar */
.botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  max-width: 28rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
}

.form-actions {
  margin-top: 1rem;
}

button[type="submit"] {
  padding: 0.65rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
}

button[type="submit"]:hover {
  filter: brightness(1.08);
}
