/* RZT Feinwerk GmbH – zentrales Stylesheet
   Farben und Typografie entsprechen dem Original-Design (Divi-Rebuild) */

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto_400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto_500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto_700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy-dark: #0a254a;
  --navy: #193961;
  --text: #666;
  --heading: #333;
  --white: #fff;
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-heading: 'Roboto', sans-serif;
  --gradient-navy: linear-gradient(90deg, #0a254a 0%, #193961 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
}

a { color: var(--navy); text-decoration: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gradient-navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  padding: 18px 34px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity .3s ease, transform .3s ease;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }

/* ---------- Top-Bar ---------- */
.top-bar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 14px;
  padding: 8px 0;
}
.top-bar .container { display: flex; gap: 24px; }
.top-bar a { color: var(--white); font-weight: 600; letter-spacing: 1px; }
.top-bar svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; fill: currentColor; }

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  position: relative;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.site-header .logo img { width: 140px; }
.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: opacity .3s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { opacity: .65; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-dark) url('../img/hero-blueprint.jpg') center / cover no-repeat;
  background-attachment: fixed; /* Parallax wie im Original (mobil ignoriert, dort statisch) */
  color: var(--white);
  text-align: center;
  padding: 110px 0 260px;
  overflow: hidden;
}
.hero .kicker {
  font-size: 24px;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 80px;
  color: var(--white);
  margin-bottom: 30px;
}
.hero p {
  font-size: 20px;
  font-weight: 300;
  line-height: 2;
  max-width: 700px;
  margin: 0 auto 36px;
}
.hero .btn { background: rgba(10, 37, 74, .8); }

/* Kurven-Divider (Original-SVG aus dem Divi-Design).
   Spiegelungen wie im Original: Heros scale(-1,1) — Ausnahme Leistungen
   (.divider-noflip) ungespiegelt; CTA-Top scale(1,-1). */
.divider-bottom::after,
.divider-top::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 250px;
  background-size: 100% 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNmZmZmZmYiPjxwYXRoIGQ9Ik0wIDE0MGgxMjgwQzU3My4wOCAxNDAgMCAwIDAgMHoiIGZpbGwtb3BhY2l0eT0iLjMiLz48cGF0aCBkPSJNMCAxNDBoMTI4MEM1NzMuMDggMTQwIDAgMzAgMCAzMHoiIGZpbGwtb3BhY2l0eT0iLjUiLz48cGF0aCBkPSJNMCAxNDBoMTI4MEM1NzMuMDggMTQwIDAgNjAgMCA2MHoiLz48L2c+PC9zdmc+");
}
.divider-bottom::after {
  bottom: -1px;
  transform: scale(-1, 1);
}
.divider-bottom.divider-noflip::after { transform: scale(1, 1); }
.divider-top::before {
  top: -1px;
  transform: scale(1, -1);
}
@media (max-width: 980px) {
  .divider-bottom::after, .divider-top::before { height: 150px; }
}
@media (max-width: 767px) {
  .divider-bottom::after, .divider-top::before { height: 110px; }
}

/* ---------- Allgemeine Sektionen ---------- */
section { position: relative; }
.section { padding: 60px 0; }
.section-title {
  font-size: 45px;
  text-align: center;
  margin-bottom: 48px;
}

/* ---------- Leistungs-Karten (Startseite) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  box-shadow: 0 2px 18px rgba(0,0,0,.08);
  border-radius: 4px;
  padding: 26px 24px;
  text-align: center;
}
.service-card .card-head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.service-card .card-head h4 { font-size: 18px; line-height: 1.7; flex: 1; text-align: center; }
.service-card .icon,
.icon-list li .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(25, 57, 97, .3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.service-card .icon svg,
.icon-list li .icon svg { width: 17px; height: 17px; fill: var(--navy-dark); }

/* ---------- Bild + Text (Tradition / Unternehmen) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split h2 { font-size: 45px; margin-bottom: 24px; }
.split p { font-size: 16px; line-height: 2; }
.split .btn { margin-top: 28px; }
.split img { border-radius: 4px; }

/* ---------- Kundenlogos ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: center;
}
.client-card {
  background: var(--white);
  border: 1px solid #e2e2e2;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-card img { max-height: 64px; width: auto; }

/* ---------- CTA-Sektion ---------- */
.cta {
  background: var(--navy-dark) url('../img/hero-blueprint.jpg') center / cover no-repeat;
  background-attachment: fixed; /* Parallax wie im Original */
  color: var(--white);
  text-align: center;
  padding: 240px 0 120px;
}
.cta .kicker {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.cta h2 { font-size: 50px; line-height: 1.4; color: var(--white); margin-bottom: 36px; }
.cta .btn { background: rgba(10, 37, 74, .75); border: 1px solid rgba(255,255,255,.25); }

/* ---------- Leistungen-Detailseite (2-spaltiges Karten-Raster) ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 60px;
}
.detail-card img { border-radius: 10px; margin-bottom: 24px; }
.detail-card h4 { font-size: 18px; margin-bottom: 4px; }
.detail-card h5 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 12px;
}
.detail-card p { font-size: 16px; line-height: 2; }

/* ---------- Unternehmen ---------- */
.about-intro { padding-top: 0; }
.about-intro img {
  border-radius: 10px;
  margin: -112px 0 40px; /* ragt wie im Original in den Hero-Divider hinein */
  width: 100%;
  position: relative;
}
.about-intro h3 { font-family: 'Titillium Web', sans-serif; font-size: 22px; font-weight: 500; line-height: 38px; margin-bottom: 22px; }
.about-intro p { font-size: 16px; line-height: 2; margin-bottom: 14px; }
.section-rule { border: none; border-top: 1px solid #e2e2e2; margin: 40px 0 56px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 44px;
}
.section-head h2 { font-size: 45px; }
.list-media {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: center;
}
.list-media img { border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.15); }

/* ---------- Icon-Liste (Unternehmen) ---------- */
.icon-list { list-style: none; }
.icon-list li {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
/* Icon-Kreis: gemeinsame Regel bei den Leistungs-Karten */

/* ---------- Kontakt ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}
.info-card h4 { font-size: 18px; margin-bottom: 10px; }

.contact-form { max-width: 900px; margin: 0 auto; }
.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=tel],
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border: none;
  background: rgba(110, 130, 208, .04);
  border-radius: 3px;
  font-family: var(--font-heading);
  font-size: 16px;
  color: #999;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form .dsgvo { margin: 14px 0 24px; font-size: 13px; }
.contact-form .error { outline: 2px solid #c0392b; }
.form-message { margin: 0 0 18px; font-weight: 600; color: var(--navy); }

/* ---------- Textseiten (Impressum / Datenschutz) ---------- */
.legal { max-width: 860px; margin: 0 auto; padding: 60px 0; }
.legal h1 { font-size: 40px; margin-bottom: 32px; }
.legal h2 { font-size: 26px; margin: 36px 0 14px; }
.legal h3 { font-size: 19px; margin: 26px 0 10px; }
.legal p, .legal ul { margin-bottom: 14px; }
.legal ul { padding-left: 22px; }
.legal a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: #222;
  color: #666;
  font-size: 14px;
  font-weight: 500;
}
.site-footer .footer-bottom {
  background: rgba(0,0,0,.32);
  padding: 18px 0;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer a { color: #bbb; }
.site-footer a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; }
  .list-media { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 34px; }
}

@media (max-width: 980px) {
  .hero h1 { font-size: 48px; }
  .hero .kicker { font-size: 18px; letter-spacing: 6px; }
  .section-title, .split h2 { font-size: 34px; }
  .services-grid, .info-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .split, .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .feature-img { order: 0; }
}

@media (max-width: 680px) {
  .hero { padding: 70px 0 200px; }
  .hero h1 { font-size: 36px; }
  .services-grid, .info-grid { grid-template-columns: 1fr; }
  .contact-form .form-grid { grid-template-columns: 1fr; }
  .top-bar .container { flex-direction: column; gap: 2px; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px 5%; }
  .main-nav li { border-bottom: 1px solid #eee; }
  .main-nav a { display: block; padding: 12px 0; }
}
