/* A+T Bau — site styles
   Colors and layout are based on the original WordPress/Elementor site. */

:root {
  --color-red: #e30613;
  --color-dark: #1a191b;
  --color-light-bg: #f7f7f7;
  --color-text: #333333;
  --color-white: #ffffff;
  --font-main: "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3 {
  margin: 0 0 16px;
  font-weight: 700;
}

.eyebrow {
  display: block;
  color: var(--color-red);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.btn {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #b8050f;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 3px solid var(--color-red);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header .logo img {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-dark);
  font-size: 1.8rem;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--color-dark);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: rgba(227, 6, 19, 0.1);
  color: var(--color-red);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 25, 27, 0.55) 0%,
    rgba(26, 25, 27, 0.35) 40%,
    rgba(26, 25, 27, 0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 24px;
}

.hero-content .logo img {
  height: 70px;
  margin: 0 auto 24px;
}

.hero-content .eyebrow {
  color: var(--color-white);
  text-align: center;
}

.hero-content p {
  font-size: 1.3rem;
  font-weight: 300;
}

.scroll-down {
  position: relative;
  z-index: 2;
  margin-top: 32px;
  display: inline-block;
}

.scroll-down img {
  width: 32px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ---------- Generic section ---------- */

section {
  padding: 96px 0;
}

/* Team and Contact are both white with no color break between them,
   so the same 96+96 padding as elsewhere reads as extra-large. */
.team {
  padding-bottom: 64px;
}

.contact {
  padding-top: 64px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

/* ---------- About ---------- */

.about {
  background: var(--color-white);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
}

.about img {
  border-radius: 6px;
}

/* ---------- Services ---------- */

.services {
  position: relative;
  background-image: url("../images/services-bg.jpg");
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 25, 27, 0.82);
}

.services .container {
  position: relative;
}

.services .section-header .eyebrow {
  color: var(--color-white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.service-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 32px 24px;
}

.service-card h3 {
  color: var(--color-white);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Team ---------- */

.team {
  background: var(--color-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 720px;
  margin: 0 auto;
}

.team-member {
  background: var(--color-white);
  border-top: 4px solid var(--color-red);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-member .info {
  padding: 20px;
}

.team-member h3 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.team-member .role {
  color: var(--color-red);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.team-member .phone {
  font-size: 0.9rem;
  color: #666;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 96px;
  align-items: center;
  justify-content: center;
}

.contact-details .eyebrow {
  margin-bottom: 16px;
}

.contact-details address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.9;
}

.contact-details a {
  color: var(--color-red);
  font-weight: 700;
}

.contact-map iframe {
  width: 560px;
  max-width: 100%;
  height: 360px;
  border: 0;
  border-radius: 6px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-dark);
  border-top: 4px solid var(--color-red);
  color: var(--color-white);
  padding: 56px 0 32px;
  text-align: center;
}

.site-footer .logo img {
  height: 44px;
  margin: 0 auto 20px;
}

.site-footer p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: #cccccc;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--color-red);
}

.copyright {
  color: #777777;
  font-size: 0.8rem;
  margin: 0;
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */

.legal-page {
  padding-top: 160px;
  padding-bottom: 96px;
}

.legal-page .logo {
  text-align: center;
  margin-bottom: 40px;
}

.legal-page .logo img {
  height: 60px;
  margin: 0 auto;
}

.legal-page h1 {
  text-align: center;
  margin-bottom: 56px;
}

.legal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.legal-columns h2 {
  font-size: 1.1rem;
  margin-top: 32px;
}

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

.legal-columns p {
  margin: 0 0 16px;
}

.back-link {
  display: inline-block;
  margin-top: 48px;
  color: var(--color-red);
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about .container,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-columns {
    grid-template-columns: 1fr;
  }
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 3px solid var(--color-red);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

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

  .main-nav ul {
    flex-direction: column;
    padding: 8px 16px 16px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 64px 0;
  }
}
