/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #C8001A;
  --red-dark:  #9e0015;
  --black:     #1a1a1a;
  --dark:      #222222;
  --mid:       #444;
  --gray:      #f5f5f5;
  --white:     #ffffff;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* WordPress Admin Bar Offset */
body.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar nav { top: 46px; }
}

/* WordPress Custom Logo */
.custom-logo-link { display: block; }
.custom-logo { height: 50px; width: auto; display: block; }

/* ── TOPBAR ── */
.topbar {
  background: var(--black);
  color: #aaa;
  font-size: 13px;
  padding: 8px 0;
  font-family: var(--font-body);
}
.topbar-inner {
  max-width: 1248px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.topbar a { color: #aaa; text-decoration: none; }
.topbar .top-phone {
  font-size: 15px; font-weight: 700; color: var(--red);
  letter-spacing: .5px;
}
.topbar .top-phone svg { vertical-align: middle; margin-right: 5px; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
}
.nav-inner {
  max-width: 1248px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  height: 68px;
}
.nav-logo a { display: block; }
.nav-logo img,
.nav-logo .custom-logo { height: 50px; width: auto; display: block; }

/* WordPress Nav Menu */
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links li { list-style: none; }
.nav-links a {
  font-family: var(--font-head); font-size: 14px; font-weight: 500; letter-spacing: .8px;
  text-transform: uppercase; color: var(--dark); text-decoration: none;
  padding: 8px 14px; border-radius: 3px;
  transition: color .2s, background .2s;
  display: block;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--red); background: rgba(200,0,26,.05); }

/* CTA-Menüpunkt: im Menü-Editor CSS-Klasse "nav-cta" vergeben */
.nav-links .nav-cta > a,
.nav-links li > a.nav-cta {
  background: var(--red); color: var(--white) !important;
  padding: 10px 20px; border-radius: 3px;
}
.nav-links .nav-cta > a:hover,
.nav-links li > a.nav-cta:hover {
  background: var(--red-dark) !important;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background: var(--black);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.82) 0%, rgba(20,0,3,.6) 60%, rgba(200,0,26,.15) 100%);
  z-index: 1;
}
.hero-pattern {
  position: absolute; inset: 0; z-index: 0;
  opacity: .07;
  background-image: repeating-linear-gradient(-45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
  background-size: 32px 32px;
}
.hero-roof {
  position: absolute; bottom: 0; right: -40px; z-index: 0;
  width: 60%; max-width: 900px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  font-family: var(--font-head); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 16px;
  border-radius: 2px; margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(42px, 7vw, 88px);
  font-weight: 700; color: var(--white);
  line-height: 1.0; letter-spacing: -1px;
  text-wrap: balance;
  margin-bottom: 24px;
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero-sub {
  font-size: 18px; color: rgba(255,255,255,.72);
  max-width: 560px; line-height: 1.7;
  margin-bottom: 44px;
  font-weight: 300;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  background: var(--red); color: var(--white);
  font-family: var(--font-head); font-size: 16px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 16px 36px; border-radius: 3px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); color: var(--white); }
.btn-secondary {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
  font-family: var(--font-head); font-size: 16px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 14px 32px; border-radius: 3px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,.07); color: var(--white); }
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 60px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num {
  font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--red);
  line-height: 1;
}
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* ── SECTION BASICS ── */
section { padding: 90px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--font-head); font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 14px; display: block;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(30px, 4vw, 50px);
  font-weight: 700; color: var(--black); line-height: 1.1;
  margin-bottom: 18px; text-wrap: balance;
}
.section-title-white { color: var(--white); }
.section-sub {
  font-size: 17px; color: #666; line-height: 1.75;
  max-width: 600px; font-weight: 400;
}
.section-head { margin-bottom: 56px; }

/* ── LEISTUNGSSTREIFEN ── */
.leistungsstreifen { background: var(--red); padding: 0; }
.leistungsstreifen-inner {
  width: 100%; padding: 0;
  display: flex; flex-wrap: nowrap; justify-content: stretch; align-items: stretch;
}
.ls-item {
  font-family: var(--font-head); font-size: 13px; font-weight: 500; letter-spacing: .8px;
  text-transform: uppercase; color: rgba(255,255,255,.9);
  padding: 20px 0;
  flex: 1; text-align: center;
  border-right: 1px solid rgba(255,255,255,.2);
  white-space: nowrap;
}
.ls-item:last-child { border-right: none; }

/* ── LEISTUNGEN ── */
.leistungen { background: var(--gray); }
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}
.leistung-card {
  background: var(--white); position: relative; overflow: hidden;
  cursor: default;
  transition: box-shadow .25s;
}
.leistung-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,.15); z-index: 1; }
.leistung-card:hover .leistung-icon-wrap { background: var(--red); }
.leistung-card:hover .leistung-icon-wrap svg { color: var(--white); }
.leistung-visual { height: 180px; overflow: hidden; position: relative; background: var(--black); }

/* ── LEISTUNGEN SLIDER ── */
.leistung-slider { overflow: hidden; }
.slider-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.4,0,.2,1); will-change: transform; }
.slider-slide { min-width: 100%; height: 100%; flex-shrink: 0; }

.slider-prev,
.slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff;
  border: none; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; z-index: 2;
  padding: 0; transition: background .2s;
}
.slider-prev { left: 8px; }
.slider-next { right: 8px; }
.slider-prev:hover,
.slider-next:hover { background: var(--red); }

.slider-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.slider-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45); border: none; cursor: pointer;
  padding: 0; transition: background .2s, transform .2s;
}
.slider-dot.active { background: #fff; transform: scale(1.25); }
.leistung-body { padding: 28px 28px 32px; }
.leistung-icon-wrap {
  width: 52px; height: 52px; background: var(--gray);
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background .2s;
}
.leistung-icon-wrap svg { width: 26px; height: 26px; color: var(--red); transition: color .2s; }
.leistung-card h3 {
  font-family: var(--font-head); font-size: 22px; font-weight: 600;
  color: var(--black); margin-bottom: 10px; line-height: 1.2;
}
.leistung-card p { font-size: 15px; color: #666; line-height: 1.7; }
.leistung-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-family: var(--font-head); font-size: 14px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase; color: var(--red);
  text-decoration: none;
  transition: gap .2s;
}
.leistung-link:hover { gap: 10px; color: var(--red-dark); }

/* ── WARUM WIR ── */
.warum { background: var(--dark); }
.warum .section-sub { color: rgba(255,255,255,.6); }
.warum-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
}
.warum-card {
  padding: 36px 32px;
  border: 1px solid rgba(255,255,255,.07);
  transition: background .2s;
}
.warum-card:hover { background: rgba(255,255,255,.04); }
.warum-num {
  font-family: var(--font-head); font-size: 54px; font-weight: 700;
  color: rgba(200,0,26,.3); line-height: 1; margin-bottom: 14px;
}
.warum-card h3 {
  font-family: var(--font-head); font-size: 20px; color: var(--white);
  margin-bottom: 10px;
}
.warum-card p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.7; }

/* ── PROZESS ── */
.prozess { background: var(--white); }
.prozess-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative;
}
.prozess-steps::before {
  content: '';
  position: absolute; top: 40px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 100%);
  opacity: .15;
}
.prozess-step { padding: 0 24px 0 0; text-align: left; }
.prozess-step-num {
  width: 80px; height: 80px; background: var(--red);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--white);
  margin-bottom: 24px; position: relative; z-index: 1;
}
.prozess-step h3 {
  font-family: var(--font-head); font-size: 19px; color: var(--black); margin-bottom: 10px;
}
.prozess-step p { font-size: 14px; color: #777; line-height: 1.7; }

/* ── KARRIERE ── */
.karriere-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px; margin-bottom: 48px;
}
.karriere-card {
  background: var(--white); border: 1.5px solid #e8e8e8; border-radius: 4px; padding: 32px;
  transition: box-shadow .25s;
}
.karriere-card:hover { box-shadow: 0 6px 30px rgba(0,0,0,.10); }
.karriere-card-icon { color: var(--red); margin-bottom: 14px; }
.karriere-card h3 {
  font-family: var(--font-head); font-size: 20px; color: var(--black); margin-bottom: 8px;
}
.karriere-card p { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 16px; }
.karriere-benefits {
  background: var(--dark); border-radius: 4px; padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.karriere-benefits-title {
  font-family: var(--font-head); font-size: 22px; color: var(--white); margin-bottom: 6px;
}
.karriere-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.karriere-tag {
  background: rgba(200,0,26,.2); color: var(--red);
  font-family: var(--font-head); font-size: 13px;
  padding: 6px 14px; border-radius: 2px;
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--red); padding: 70px 24px;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-head); font-size: clamp(28px, 4vw, 52px);
  color: var(--white); font-weight: 700; margin-bottom: 14px;
}
.cta-band p { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 36px; }
.btn-white {
  background: var(--white); color: var(--red);
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 16px 40px; border-radius: 3px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .2s, color .2s;
}
.btn-white:hover { background: var(--black); color: var(--white); }

/* ── KONTAKT ── */
.kontakt { background: var(--gray); }
.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.kontakt-info h2 {
  font-family: var(--font-head); font-size: 40px; font-weight: 700;
  color: var(--black); margin-bottom: 20px;
}
.kontakt-info p { font-size: 16px; color: #555; line-height: 1.75; margin-bottom: 36px; }
.kontakt-details { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.kontakt-detail { display: flex; align-items: flex-start; gap: 16px; }
.kd-icon {
  width: 44px; height: 44px; background: var(--red); border-radius: 3px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.kd-icon svg { width: 20px; height: 20px; color: var(--white); }
.kd-label { font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.kd-value { font-weight: 600; font-size: 16px; }
.kd-value a { color: var(--dark); text-decoration: none; }
.kd-value a:hover { color: var(--red); }

/* Formular-Layout */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.form-title { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--black); margin-bottom: 24px; }
.form-note { font-size: 12px; color: #aaa; margin-top: 12px; text-align: center; }

/* CF7 Formular-Wrapper */
.kontakt-form {
  background: var(--white); padding: 40px; border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0,0,0,.07);
}
.kontakt-form .wpcf7 { width: 100%; }
.kontakt-form .wpcf7-form { display: flex; flex-direction: column; gap: 18px; }
.kontakt-form .wpcf7-form-control-wrap { display: block; }
.kontakt-form input[type="text"],
.kontakt-form input[type="email"],
.kontakt-form input[type="tel"],
.kontakt-form select,
.kontakt-form textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid #e0e0e0; border-radius: 3px;
  font-family: var(--font-body); font-size: 15px; color: var(--dark);
  background: #fafafa;
  transition: border-color .2s, background .2s;
  outline: none;
}
.kontakt-form input[type="text"]:focus,
.kontakt-form input[type="email"]:focus,
.kontakt-form input[type="tel"]:focus,
.kontakt-form select:focus,
.kontakt-form textarea:focus { border-color: var(--red); background: var(--white); }
.kontakt-form textarea { resize: vertical; min-height: 120px; }
.kontakt-form input[type="submit"],
.kontakt-form .wpcf7-submit {
  width: 100%; padding: 16px;
  background: var(--red); color: var(--white);
  font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; border: none; border-radius: 3px; cursor: pointer;
  transition: background .2s;
}
.kontakt-form input[type="submit"]:hover,
.kontakt-form .wpcf7-submit:hover { background: var(--red-dark); }
.kontakt-form .wpcf7-not-valid-tip { font-size: 12px; color: var(--red); margin-top: 4px; display: block; }
.kontakt-form .wpcf7-response-output { margin-top: 16px; padding: 12px 16px; border-radius: 3px; font-size: 14px; }

/* ── PAGE-CONTENT (Impressum / Datenschutz) ── */
.page-content-section { padding: 80px 24px; background: var(--white); }
.page-article-title {
  font-family: var(--font-head); font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; color: var(--black); margin-bottom: 40px;
  padding-bottom: 20px; border-bottom: 2px solid var(--gray);
}
.page-article-body { max-width: 800px; font-size: 16px; line-height: 1.8; color: #444; }
.page-article-body h2 { font-family: var(--font-head); font-size: 24px; color: var(--black); margin: 36px 0 12px; }
.page-article-body h3 { font-family: var(--font-head); font-size: 20px; color: var(--black); margin: 28px 0 10px; }
.page-article-body p { margin-bottom: 16px; }
.page-article-body a { color: var(--red); }
.page-article-body a:hover { color: var(--red-dark); }
.page-article-body ul, .page-article-body ol { margin: 0 0 16px 24px; }
.page-article-body li { margin-bottom: 6px; }

/* ── FOOTER ── */
footer { background: #111; color: rgba(255,255,255,.5); padding: 50px 24px 30px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
}
.footer-logo { margin-bottom: 16px; }
.footer-logo a { display: block; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col li { list-style: none; }
.footer-col a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--red); }

/* Footer-Col-Menü (Spalte "Rechtliches") */
.footer-col-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col-menu li { list-style: none; }
.footer-col-menu a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col-menu a:hover { color: var(--red); }

/* Footer-Bottom-Links (Impressum / Datenschutz in einer Zeile) */
.footer-bottom-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.footer-bottom-links li { list-style: none; }
.footer-bottom-links a { color: rgba(255,255,255,.4); text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--red); }

.footer-bottom {
  max-width: 1200px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.07);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--red); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── MOBILE: 900px ── */
@media (max-width: 900px) {
  .topbar-inner { flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px 24px; }

  nav { position: sticky; }
  .hamburger { display: block; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white);
    padding: 12px 16px 20px;
    gap: 0;
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    z-index: 999;
  }
  .nav-links.open li { border-bottom: 1px solid #f0f0f0; }
  .nav-links.open li:last-child { border-bottom: none; margin-top: 12px; }
  .nav-links.open a { display: block; padding: 14px 12px; font-size: 15px; }
  .nav-links.open .nav-cta > a,
  .nav-links.open li > a.nav-cta { text-align: center; padding: 14px 12px; }

  .prozess-steps { grid-template-columns: 1fr 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  body.admin-bar .nav-links.open { top: calc(68px + 46px); }
}

@media (max-width: 600px) {
  section { padding: 60px 20px; }
  .topbar-inner { gap: 2px; }
  .topbar-inner span { font-size: 12px; color: #777; }
  .prozess-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .karriere-benefits { padding: 28px 24px; }

  .leistungsstreifen-inner { flex-wrap: wrap; }
  .ls-item {
    flex: 0 0 50%; white-space: normal; border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.15); padding: 16px 8px;
  }
  .ls-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.15); }

  .kontakt-form { padding: 28px 20px; }
}

@media screen and (max-width: 782px) {
  body.admin-bar .nav-links.open { top: calc(68px + 46px); }
}
@media screen and (min-width: 783px) {
  body.admin-bar .nav-links.open { top: calc(68px + 32px); }
}
