/* =========================================================================
   REInvest Services – Stylesheet
   Markenfarben aus dem Original übernommen:
   Blau #1E73BE · Navy #002F6C · Text #333 · Muted #737373
   Hellgrau #F2F2F2 · Dunkelgrau #484848
   Schrift: Montserrat
   ========================================================================= */

:root {
  --blue: #1e73be;
  --navy: #002f6c;
  --text: #333333;
  --muted: #737373;
  --light: #f2f2f2;
  --dark: #484848;
  --white: #ffffff;
  --container: 1200px;
  --radius: 4px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px;
  width: auto; height: auto; clip: auto;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: var(--radius); z-index: 1000;
}

/* ----------------------------- Typografie ----------------------------- */
.section__title {
  font-size: clamp(1.6rem, 1rem + 1.9vw, 2.4rem);
  font-weight: 700;
  line-height: 1.22;
  color: #2b2b2b;
  margin: 0 0 26px;
  letter-spacing: -0.005em;
  text-align: center;
}
/* Ausnahme: zweispaltiger Asset-Management-Block bleibt linksbündig */
.am .section__title,
.feature .section__title { text-align: left; }
.eyebrow {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 14px;
  text-align: center;
}
/* Ausnahme: zweispaltiger Asset-Management-Block bleibt linksbündig */
.am .eyebrow { text-align: left; }
.eyebrow--light { color: rgba(255, 255, 255, 0.75); }

p { margin: 0 0 1.1em; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 38px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  line-height: 1.2;
  background: none;
}
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--solid { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--solid:hover { background: var(--blue); border-color: var(--blue); }
.btn--blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--blue:hover { background: var(--navy); border-color: var(--navy); }
.btn--text { border: none; color: var(--navy); text-decoration: underline; padding: 15px 12px; }
.btn--sm { padding: 12px 26px; }

/* ----------------------------- Header / Hero ----------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: var(--hero-img, url("img/home-stage.jpg"));
  background-position: center; background-size: cover; background-repeat: no-repeat;
  transform: scale(1.02);
  filter: saturate(0.8) brightness(0.8);
}
/* Kürzerer Hero für Unterseiten */
.hero--sub { min-height: 70vh; }
.hero--sub .hero__content { margin-block: auto; }
.nav-menu a.is-active { color: #fff; }
.nav-menu a.is-active::after { width: 100%; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 100% at 50% 40%, rgba(12, 18, 26, 0.28) 0%, rgba(12, 18, 26, 0.62) 100%),
    linear-gradient(180deg, rgba(12, 18, 26, 0.55) 0%, rgba(12, 18, 26, 0.48) 45%, rgba(12, 18, 26, 0.66) 100%);
}

/* Fixierte Navigationsleiste: transparent über dem Hero, beim Scrollen mit Navy-Hintergrund */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-nav.is-solid {
  background: var(--navy);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.nav-bar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-top: 26px; padding-bottom: 26px;
  transition: padding 0.3s var(--ease);
}
.site-nav.is-solid .nav-bar { padding-top: 15px; padding-bottom: 15px; }
.site-nav.is-solid .brand img { width: 165px; transition: width 0.3s var(--ease); }
/* Platzhalter für die fixierte Leiste auf Seiten ohne Hero (Rechtstexte) */
.imprint-page { min-height: 112px; }
.brand img { width: 190px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.nav-menu {
  display: flex; gap: 32px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
  color: #fff; font-weight: 500; font-size: 0.98rem;
  padding-bottom: 4px; position: relative;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: #fff; transition: width 0.25s var(--ease);
}
.nav-menu a:hover::after { width: 100%; }

.lang-switch { display: flex; gap: 4px; align-items: center; }
.lang-switch button {
  background: none; border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff; font-family: inherit; font-weight: 600; font-size: 0.78rem;
  padding: 6px 9px; border-radius: var(--radius); cursor: pointer;
  transition: all 0.2s var(--ease);
}
.lang-switch button:hover { border-color: #fff; }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero__content {
  position: relative; z-index: 4;
  margin-block: auto;
  max-width: 860px; margin-inline: auto;
  text-align: center;
}
.hero__title {
  font-size: clamp(2.2rem, 1rem + 3.6vw, 3.6rem);
  font-weight: 800; line-height: 1.14; margin: 0 0 22px;
  letter-spacing: -0.015em;
}
.hero__subtitle {
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem);
  font-weight: 300; margin: 0 auto 34px; max-width: 620px;
}

/* ----------------------------- Sections ----------------------------- */
.section { padding: 92px 0; }
.intro__text, .services__intro, .goal__text { max-width: 880px; margin: 0 auto 34px; }
.intro__text p, .goal__text p, .services__intro p { color: var(--dark); }

/* Zentrierte Kopfbereiche (wie im Original) */
.intro .container,
.services .container,
.stats .container,
.goal .container,
.career .container { text-align: center; }
.tiles { text-align: left; } /* Kachel-Beschriftungen bleiben linksbündig */

/* Video banner – zentriert, in Container-Breite (nicht randlos) */
.banner { background: #fff; padding: 0 24px; }
.banner__video {
  width: 100%; max-width: 1160px; aspect-ratio: 16 / 9; object-fit: cover;
  display: block; margin: 0 auto; border-radius: 6px;
}

/* ----------------------------- Leistungen Tiles ----------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 44px 0;
}
.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  display: flex; align-items: flex-end;
  background: var(--navy);
}
.tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
  filter: brightness(0.72);
}
.tile:hover img { transform: scale(1.06); filter: brightness(0.55); }
.tile__label {
  position: relative; z-index: 2;
  color: #fff; font-weight: 700; font-size: 1.25rem;
  padding: 26px; line-height: 1.25;
}

/* ----------------------------- Stats ----------------------------- */
.stats { background: var(--light); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 26px; margin-top: 50px;
}
.stat {
  text-align: center;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 38px 18px 30px;
  box-shadow: 0 2px 10px rgba(0, 22, 55, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 22, 55, 0.1); }
.stat__num {
  display: block; font-size: clamp(2.6rem, 2rem + 2.4vw, 3.8rem);
  font-weight: 800; color: var(--navy); line-height: 1;
}
.stat__rule { display: block; width: 40px; height: 3px; background: var(--blue); margin: 14px auto; }
.stat__label {
  text-transform: uppercase; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.06em; color: var(--dark); margin: 0;
}

/* ----------------------------- Asset Management ----------------------------- */
.am__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.am__logo img { max-width: 360px; margin-inline: auto; }
.am__text p { color: var(--dark); }

.divider { border: none; border-top: 1px solid #e3e3e3; margin: 0; max-width: var(--container); margin-inline: auto; }

/* ----------------------------- Career ----------------------------- */
.career__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; }
.career-card {
  position: relative; min-height: 320px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 22px; text-align: center; padding: 40px;
  border-radius: var(--radius); overflow: hidden; color: #fff;
  background-image: linear-gradient(rgba(0, 22, 55, 0.62), rgba(0, 22, 55, 0.62)), var(--card-img);
  background-size: cover; background-position: center;
}
.career-card h3 { font-size: 1.7rem; font-weight: 700; margin: 0; }

/* ----------------------------- Quote ----------------------------- */
.quote { text-align: center; }
.quote__inner { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.quote__photo img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; }
.quote__body { max-width: 760px; margin: 0; }
.quote__body p {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem);
  font-weight: 300; font-style: italic; color: var(--navy); line-height: 1.5;
}
.quote__body cite { font-style: normal; font-weight: 600; color: var(--muted); font-size: 0.95rem; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.85); padding-top: 80px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer__contact { padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); text-align: center; }
.footer__heading { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); font-weight: 700; max-width: 720px; margin: 0 auto 46px; line-height: 1.35; }

.contact__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contact__item { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.contact__icon {
  color: var(--blue); flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.contact__item p { margin: 0; }
.contact__item a:hover { color: #fff; text-decoration: underline; }

.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 56px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer__col h3 { font-size: 1.2rem; margin: 0 0 16px; }
.footer__col p { color: rgba(255, 255, 255, 0.75); }
.footer__news { list-style: none; margin: 0 0 16px; padding: 0; }
.footer__news a { color: rgba(255, 255, 255, 0.9); }
.footer__news a:hover { color: #fff; }
.footer__link { color: var(--blue); font-weight: 600; }
.footer__link:hover { color: #fff; }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 40px 0; flex-wrap: wrap; }
.footer__brand img { width: 160px; margin-bottom: 14px; }
.footer__copy { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin: 0 0 10px; }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.footer__legal a:hover { color: #fff; text-decoration: underline; }
.footer__inrev img { height: 48px; width: auto; opacity: 0.9; }
.footer__social { display: flex; align-items: center; gap: 14px; font-size: 0.85rem; }
.footer__social a { display: inline-flex; padding: 8px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; transition: 0.2s var(--ease); }
.footer__social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ----------------------------- Back to top ----------------------------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }

/* ============================ Unterseiten ============================ */
/* Lead-/Fließtext-Bereich */
.lead { max-width: 880px; margin: 0 auto; text-align: center; }
.lead p { color: var(--dark); font-size: 1.05rem; }
.prose-center { max-width: 820px; margin: 0 auto 30px; text-align: center; color: var(--dark); }

/* Team-Übersicht */
.team__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 48px;
}
.team-member { text-align: center; }
.team-member img {
  width: 100%; max-width: 280px; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 50%; margin: 0 auto 18px;
}
.team-member h3 { font-size: 1.3rem; color: var(--navy); margin: 0 0 4px; }
.team-member p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* Detaillierte Profile */
.profiles { margin-top: 60px; display: grid; gap: 40px; }
.profile {
  display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start;
  text-align: left; max-width: 960px; margin-inline: auto;
}
.profile img { width: 200px; height: 200px; object-fit: cover; border-radius: 8px; }
.profile h3 { font-size: 1.35rem; color: var(--navy); margin: 0 0 2px; }
.profile .profile__role { color: var(--blue); font-weight: 600; margin: 0 0 16px; font-size: 0.95rem; }
.profile p { color: var(--dark); margin: 0 0 0.8em; }

/* Leistungs-Detailblöcke (Bild + Text im Wechsel) */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  max-width: 1080px; margin: 0 auto 64px; text-align: left;
}
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media img { width: 100%; border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; }
.feature h3 { font-size: 1.5rem; color: var(--navy); margin: 0 0 16px; }
.feature p { color: var(--dark); margin: 0; }

/* Zwei-Spalten Leistungsbereiche (AM vs. Services) */
.divisions { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; text-align: left; }
.division { background: var(--light); border-radius: 10px; padding: 38px 34px; }
.division img { height: 46px; width: auto; margin-bottom: 18px; }
.division h3 { font-size: 1.4rem; color: var(--navy); margin: 0 0 8px; }
.division > p { color: var(--dark); }
.division ul { list-style: none; padding: 0; margin: 18px 0 0; columns: 1; }
.division li { padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid #e2e2e2; color: var(--dark); font-size: 0.95rem; }
.division li::before {
  content: ""; position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.diagram { max-width: 1000px; margin: 30px auto 0; }
.diagram img { width: 100%; border-radius: 8px; }

/* Kontaktseite – Methodenkarten */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.contact-card {
  background: #fff; border: 1px solid #e6e6e6; border-radius: 10px;
  padding: 38px 28px; text-align: center;
  box-shadow: 0 2px 10px rgba(0, 22, 55, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 22, 55, 0.1); }
.contact-card__icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.contact-card h3 { font-size: 1.2rem; color: var(--navy); margin: 0; }
.contact-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.contact-card .contact-card__value { color: var(--text); font-weight: 600; font-size: 1rem; }
.contact-card .btn { margin-top: 12px; }
.contact-map { max-width: 1000px; margin: 50px auto 0; }
.contact-map img { width: 100%; border-radius: 10px; }

/* Karriere / Stellen */
.jobs { max-width: 720px; margin: 30px auto 0; text-align: left; }
.job {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 24px; border: 1px solid #e2e2e2; border-radius: 8px; margin-bottom: 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.job:hover { border-color: var(--blue); background: #fafcff; }
.job span { font-weight: 600; color: var(--navy); }
.job a { color: var(--blue); font-weight: 600; white-space: nowrap; }

/* Rechtstexte / Prosa-Seiten */
.legal { padding: 60px 0 90px; }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(1.8rem, 1rem + 2vw, 2.6rem); color: var(--navy); margin: 0 0 8px; }
.legal .legal__updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 36px; }
.legal h2 { font-size: 1.3rem; color: var(--navy); margin: 36px 0 12px; }
.legal h3 { font-size: 1.05rem; color: var(--dark); margin: 24px 0 8px; }
.legal p, .legal li { color: var(--dark); }
.legal ul { padding-left: 22px; }
.legal address { font-style: normal; line-height: 1.8; }
.legal .placeholder {
  background: #fff7e6; border: 1px solid #f0d28a; border-radius: 8px;
  padding: 16px 20px; color: #7a5b00; font-size: 0.9rem; margin: 20px 0;
}
.subhero-eyebrow { color: rgba(255,255,255,0.8); }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; right: 24px; left: 24px;
    flex-direction: column; gap: 4px;
    background: rgba(0, 28, 66, 0.97); border-radius: 8px; padding: 14px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 0.25s var(--ease);
  }
  .nav-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { display: block; padding: 12px 10px; }
  .main-nav { gap: 14px; }
  .am__inner { grid-template-columns: 1fr; }
  .am__logo { order: -1; }
  .contact__items, .footer__cols { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .career__cards { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
}

@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

@media (max-width: 900px) {
  .team__grid { grid-template-columns: 1fr 1fr; }
  .divisions, .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .contact-cards { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .profile img { margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .team__grid { grid-template-columns: 1fr; }
  .job { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
