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

:root {
  --red: #841618;
  --red-light: #a01c1e;
  --gray-dark: #222;
  --gray-mid: #555;
  --gray-light: #b4b4b4;
  --gray-bg: #f5f5f5;
  --border: #b4b4b4;
  --white: #fff;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--gray-dark);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ── HEADER / NAV ── */
header {
  border-bottom: 2px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--gray-dark);
  text-decoration: none;
}

nav a {
  text-decoration: none;
  color: var(--gray-mid);
  margin-left: 2rem;
  font-size: .95rem;
  transition: color .2s;
}

nav a:hover { color: var(--gray-dark); }

nav a.active {
  background: var(--red);
  color: var(--white);
  padding: .3rem .75rem;
  border-radius: 3px;
}

/* ── HERO BANNER ── */
.hero-banner {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 3rem;
}

.hero-text span {
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: .04em;
  font-weight: 300;
  opacity: .95;
}

@media (max-width: 600px) {
  .hero-banner { height: 220px; }
  .hero-text span { font-size: .95rem; }
}

/* ── SERVICE IMAGES ── */
.service-imgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.service-imgs figure {
  border-radius: 4px;
  overflow: hidden;
}

.service-imgs img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.service-imgs figure:hover img { transform: scale(1.04); }

.service-imgs figcaption {
  padding: .5rem .75rem;
  font-size: .85rem;
  color: var(--gray-mid);
  background: var(--gray-bg);
  text-align: center;
}

@media (max-width: 600px) {
  .service-imgs { grid-template-columns: 1fr; }
}

/* ── HOME ── */
.home-hero {
  max-width: 860px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.home-hero h1 {
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: .5rem;
}

.company-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: .5rem;
}

.company-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gray-dark);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.welcome-text {
  margin-bottom: 2rem;
}

.welcome-text p {
  color: var(--gray-mid);
  margin-bottom: 1rem;
  max-width: 660px;
}

.welcome-text a {
  color: var(--red);
  text-decoration: none;
}

.welcome-text a:hover {
  text-decoration: underline;
}

.karriere-hint {
  font-weight: 600;
  text-decoration: underline;
}

.karriere-hint a {
  color: var(--gray-dark) !important;
}

.home-hero p {
  color: var(--gray-mid);
  margin-bottom: 1rem;
  max-width: 640px;
}

.company-meta {
  margin: 2rem 0;
  color: var(--gray-mid);
  font-size: .9rem;
  line-height: 1.9;
}

.offices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  max-width: 400px;
}

@media (max-width: 600px) {
  .home-hero h1 { font-size: 1.8rem; }
}

.office h4 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
}

.office address {
  font-style: normal;
  line-height: 2;
  color: var(--gray-mid);
  font-size: .95rem;
}

.office address a {
  color: var(--red);
  text-decoration: none;
}

/* ── KARRIERE HINTERGRUND ── */
body.page-karriere main {
  position: relative;
}

body.page-karriere main::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('fluchtplan.webp') center / cover no-repeat;
  opacity: .07;
  z-index: 0;
  pointer-events: none;
}

body.page-karriere .karriere-wrap {
  position: relative;
  z-index: 1;
}

/* ── KARRIERE ── */
.karriere-wrap {
  max-width: 860px;
  margin: 4rem auto;
  padding: 0 2rem 4rem;
}

.job-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.job-header {
  background: var(--red);
  color: var(--white);
  padding: 2.5rem 2rem 2rem;
}

.job-header .kicker {
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: .5rem;
}

.job-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
}

.job-header p {
  margin-top: 1rem;
  opacity: .9;
  max-width: 580px;
  line-height: 1.6;
}

.job-body {
  padding: 2rem;
  background: var(--white);
}

.job-section {
  margin-bottom: 2rem;
}

.job-section h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .9rem;
}

.job-section ul {
  list-style: none;
  padding: 0;
}

.job-section ul li {
  padding: .35rem 0 .35rem 1.4rem;
  position: relative;
  color: var(--gray-dark);
}

.job-section ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: .6rem;
  top: .55rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem 2rem;
}

@media (max-width: 500px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ── JOB SPLIT ── */
.job-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  position: relative;
  border-top: 1px solid var(--border);
}

.job-split-photo {
  overflow: hidden;
  min-height: 300px;
}

.job-split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.job-split-benefits {
  padding: 2rem;
  background: var(--white);
  display: flex;
  align-items: center;
}

.job-split-benefits .job-section {
  margin-bottom: 0;
  width: 100%;
}

@media (max-width: 640px) {
  .job-split {
    grid-template-columns: 1fr;
  }
}

/* ── JOB CTA ── */
.job-cta {
  background: var(--red);
  color: var(--white);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.job-cta strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: .4rem;
}

.job-cta p {
  font-size: .9rem;
  opacity: .85;
  margin-bottom: 1.25rem;
}

.btn-light {
  background: var(--white);
  color: var(--red);
}

.btn-light:hover {
  background: var(--gray-light);
}


.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: .7rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s;
}

.btn:hover { background: var(--red-light); }


/* ── LEGAL (Impressum / Datenschutz) ── */
.legal-wrap {
  max-width: 700px;
  margin: 4rem auto;
  padding: 0 2rem 4rem;
}

.legal-wrap h1 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.legal-wrap h2 {
  font-size: 1.1rem;
  margin: 1.75rem 0 .5rem;
}

.legal-wrap p,
.legal-wrap address {
  color: var(--gray-mid);
  font-style: normal;
  line-height: 1.8;
}

.legal-wrap a { color: var(--red); text-decoration: none; }

/* ── FOOTER ── */
footer {
  background: var(--gray-dark);
  color: #aaa;
  font-size: .85rem;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

footer .footer-brand { color: var(--white); font-weight: 500; }
footer a { color: #aaa; text-decoration: none; }
footer a:hover { color: var(--white); }
