/* ============================================================
   RUBIKON PLAN PROJEKT GMBH — Base Stylesheet
   Brand: Navy #142744 | Accent: #1F3D6E | White: #F5F6F8
   Font: Inter (display + body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --navy:         #132743;
  --navy-deep:    #0C1D33;
  --navy-mid:     #1A3355;
  --accent:       #2563EB;
  --accent-light: #3B82F6;
  --white:        #FFFFFF;
  --off-white:    #F4F6F9;
  --grey-light:   #E8ECF2;
  --grey-mid:     #99A5B5;
  --grey-text:    #64748B;
  --text-dark:    #0F1923;

  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    7rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Font */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.25s;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Layout Helpers ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--grey {
  background: var(--off-white);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(19, 39, 67, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
}

.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav__logo svg {
  height: 36px;
  width: auto;
}

.nav__logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.nav__logo-text {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  transition: color var(--dur) var(--ease);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-light);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
  transform-origin: left;
}

.nav__link:hover { color: var(--white); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.active { color: var(--white); }
.nav__link.active::after { transform: scaleX(1); }

.nav__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  padding: var(--space-2) var(--space-5);
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: var(--space-3) var(--space-6);
  border-radius: 4px;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}

.btn--outline {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn--outline-dark {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn--outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Page Header (inner pages) ──────────────────────────────── */
.page-header {
  padding-top: calc(var(--nav-h) + clamp(var(--space-16), 6vw, var(--space-24)));
  padding-bottom: clamp(var(--space-12), 5vw, var(--space-20));
  background: var(--navy);
  color: var(--white);
}

.page-header__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-3);
}

.page-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-header__sub {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  color: rgba(255,255,255,0.65);
  max-width: 52ch;
  line-height: 1.7;
}

/* ── Section Header ─────────────────────────────────────────── */
.section-header {
  margin-bottom: clamp(var(--space-10), 4vw, var(--space-16));
}

.section-header__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section-header__label--light {
  color: var(--accent-light);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.section-header__title--light {
  color: var(--white);
}

.section-header__body {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  color: var(--grey-text);
  max-width: 52ch;
  line-height: 1.75;
}

.section-header__body--light {
  color: rgba(255,255,255,0.65);
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-top: var(--space-4);
  border-radius: 2px;
}

.divider--light { background: var(--accent-light); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  padding-block: clamp(var(--space-12), 5vw, var(--space-20));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand svg {
  height: 32px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer__logo-img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  margin-bottom: var(--space-4);
}

.footer__brand-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.footer__tagline {
  font-size: var(--text-xs);
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 28ch;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--dur) var(--ease);
  line-height: 1.5;
}

.footer__links a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  transition: color var(--dur) var(--ease);
}

.footer__legal a:hover { color: var(--white); }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__hamburger { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--navy-deep);
    padding: var(--space-8) var(--space-6);
    gap: var(--space-5);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav__links.open .nav__cta-mobile {
    display: inline-flex;
    margin-top: var(--space-4);
  }

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

  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

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

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
