/* ============================================================
   Dählmann Erdbau & Transport — Stylesheet
   Design: Taste-Skill v2 | VARIANCE:5 MOTION:3 DENSITY:5
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --accent:    #C8001A;
  --accent-dk: #9e0015;
  --dark:      #1A2234;
  --dark-mid:  #2D3748;
  --mid:       #64748B;
  --light:     #F7F6F4;
  --white:     #ffffff;
  --border:    #E2E1DF;

  --ff:        'Outfit', sans-serif;
  --fs-xs:     0.75rem;
  --fs-sm:     0.875rem;
  --fs-base:   1rem;
  --fs-lg:     1.125rem;
  --fs-xl:     1.375rem;
  --fs-2xl:    1.75rem;
  --fs-3xl:    2.25rem;
  --fs-4xl:    3rem;
  --fs-5xl:    4rem;

  --radius:    4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);

  --nav-h:     72px;
  --max-w:     1200px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--dark-mid);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }
ul { list-style: none; }
button { font-family: var(--ff); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--ff); }

/* ─── Layout helpers ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--dark { background: var(--dark); color: var(--white); }
.section--mid { background: #EFF0F3; }

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
  transition: filter .3s;
}
.nav.scrolled .nav__logo img { filter: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__links a {
  padding: 8px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.nav.scrolled .nav__links a { color: var(--dark-mid); }
.nav__links a:hover { color: var(--accent); background: rgba(200,0,26,.06); }
.nav__links a.active { color: var(--accent); }
.nav.scrolled .nav__links a.active { color: var(--accent); }

.nav__cta {
  padding: 8px 20px !important;
  background: var(--accent) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
}
.nav__cta:hover { background: var(--accent-dk) !important; color: var(--white) !important; }

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav.scrolled .nav__toggle span { background: var(--dark); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.03);
  transition: transform 8s ease-out;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26,34,52,.70) 0%,
    rgba(26,34,52,.40) 50%,
    rgba(26,34,52,.65) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 660px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200,0,26,.12);
  border: 1px solid rgba(200,0,26,.3);
  border-radius: var(--radius);
  padding: 4px 12px;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, var(--fs-5xl));
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero__title span { color: var(--accent); }
.hero__sub {
  font-size: var(--fs-xl);
  font-weight: 300;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--accent-dk);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(200,0,26,.35);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn--outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.btn--outline-dark {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}
.btn--outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Section header ─────────────────────────────────────── */
.sec-head { margin-bottom: 56px; }
.sec-head--center { text-align: center; }
.sec-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.sec-title {
  font-size: clamp(1.75rem, 3.5vw, var(--fs-4xl));
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -.02em;
}
.section--dark .sec-title { color: var(--white); }
.sec-sub {
  margin-top: 14px;
  font-size: var(--fs-lg);
  color: var(--mid);
  max-width: 580px;
  line-height: 1.6;
}
.section--dark .sec-sub { color: rgba(255,255,255,.6); }
.sec-head--center .sec-sub { margin-left: auto; margin-right: auto; }

/* ─── Services overview (home) ───────────────────────────── */
.services-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.services-split__intro .sec-title { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.services-split__intro p {
  margin-top: 20px;
  font-size: var(--fs-lg);
  color: var(--mid);
  line-height: 1.7;
}
.services-split__intro .btn { margin-top: 32px; }

.service-cards {
  display: grid;
  gap: 16px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.service-card__icon {
  width: 44px; height: 44px;
  background: rgba(200,0,26,.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.25rem;
}
.service-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.service-card__desc {
  font-size: var(--fs-sm);
  color: var(--mid);
  line-height: 1.6;
}

/* ─── Leistungen detail ──────────────────────────────────── */
.leistung-section {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 80px;
  align-items: start;
}
.leistung-section--rev { direction: rtl; }
.leistung-section--rev > * { direction: ltr; }

.leistung__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.leistung__title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.leistung__desc {
  font-size: var(--fs-lg);
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 28px;
}
.leistung__list {
  display: grid;
  gap: 10px;
}
.leistung__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-base);
  color: var(--dark-mid);
}
.leistung__list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 9px;
}

.leistung__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark);
}
.leistung__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.leistung__visual:hover img { transform: scale(1.04); }
.leistung__visual-label {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(26,34,52,.85);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
}

/* ─── Gallery grid ───────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-grid__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--dark);
  cursor: pointer;
}
.gallery-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s;
  aspect-ratio: 4/3;
}
.gallery-grid__item:hover img { transform: scale(1.06); opacity: .9; }
.gallery-grid__item--wide { grid-column: span 2; }
.gallery-grid__item--wide img { aspect-ratio: 16/7; }
.gallery-grid__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,34,52,0);
  transition: background .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-grid__item:hover .gallery-grid__overlay { background: rgba(26,34,52,.2); }

/* ─── Page hero (inner pages) ────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 64px;
  background: var(--dark);
}
.page-hero__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero__sub {
  font-size: var(--fs-xl);
  color: rgba(255,255,255,.6);
  max-width: 560px;
  line-height: 1.5;
}

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  margin-bottom: 24px;
}
.breadcrumb a { color: rgba(255,255,255,.5); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.3); }
.breadcrumb strong { color: rgba(255,255,255,.8); font-weight: 500; }

/* ─── Contact ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.contact-info__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.contact-info__sub {
  font-size: var(--fs-lg);
  color: var(--mid);
  margin-bottom: 40px;
  line-height: 1.5;
}
.contact-block { margin-bottom: 32px; }
.contact-block__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}
.contact-block__value {
  font-size: var(--fs-lg);
  color: var(--dark);
  font-weight: 500;
  line-height: 1.6;
}
.contact-block__value a { color: var(--accent); }
.contact-block__value a:hover { color: var(--accent-dk); }

/* Contact Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--dark);
}
.form-input,
.form-textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-base);
  color: var(--dark-mid);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,0,26,.1);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.form-check input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.form-check label {
  font-size: var(--fs-sm);
  color: var(--mid);
  line-height: 1.5;
}
.form-check label a { color: var(--accent); }

/* ─── CTA strip ──────────────────────────────────────────── */
.cta-strip {
  background: var(--accent);
  padding: 64px 0;
  text-align: center;
}
.cta-strip__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.cta-strip__sub {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
}
.cta-strip .btn--outline {
  border-color: rgba(255,255,255,.7);
}

/* ─── Preview strip (3 images) ───────────────────────────── */
.preview-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.preview-strip__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.preview-strip__item img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}
.preview-strip__item:hover img { transform: scale(1.05); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}
.footer__brand img { height: 36px; margin-bottom: 16px; filter: brightness(0) invert(1) opacity(.8); }
.footer__brand p { font-size: var(--fs-sm); line-height: 1.7; }
.footer__col-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer__links a:hover { color: var(--white); }
.footer__contact-line {
  font-size: var(--fs-sm);
  margin-bottom: 8px;
  line-height: 1.5;
}
.footer__contact-line a { color: rgba(255,255,255,.7); }
.footer__contact-line a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--fs-xs);
}
.footer__bottom a { color: rgba(255,255,255,.4); }
.footer__bottom a:hover { color: rgba(255,255,255,.8); }

/* ─── Dividers ───────────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── Legal page ─────────────────────────────────────────── */
.legal-content {
  max-width: 780px;
}
.legal-content h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--dark);
  margin: 40px 0 12px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content p {
  margin-bottom: 16px;
  color: var(--mid);
  line-height: 1.8;
}
.legal-content a { color: var(--accent); }
.legal-info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}
.legal-info-box dt {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}
.legal-info-box dd {
  font-size: var(--fs-base);
  color: var(--mid);
  margin-bottom: 12px;
  margin-left: 0;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-split { grid-template-columns: 1fr; gap: 48px; }
  .leistung-section { grid-template-columns: 1fr; gap: 40px; }
  .leistung-section--rev { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 64px 0; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--dark);
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
  }
  .nav__links.open a {
    color: var(--white);
    font-size: var(--fs-xl);
  }
  .nav__links.open .nav__cta { background: var(--accent) !important; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid__item--wide { grid-column: span 2; }
  .preview-strip { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 100dvh; padding: 96px 0 56px; }
  .hero__title { font-size: clamp(2rem, 9vw, 3rem); }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid__item--wide { grid-column: span 1; }
  .gallery-grid__item--wide img { aspect-ratio: 4/3; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ─── Motion preference ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
