/* BETTEN & RESCH – site stylesheet.
   Breakpoints: 480 / 768 / 992 / 1200 px (desktop navigation from 1200 px). */

@font-face { font-family: 'TTNormsPro'; font-weight: 300; font-display: swap; src: url('/fonts/TTNormsPro-Light.woff2') format('woff2'); }
@font-face { font-family: 'TTNormsPro'; font-weight: 400; font-display: swap; src: url('/fonts/TTNormsPro-Regular.woff2') format('woff2'); }
@font-face { font-family: 'TTNormsPro'; font-weight: 500; font-display: swap; src: url('/fonts/TTNormsPro-Medium.woff2') format('woff2'); }
@font-face { font-family: 'TTNormsPro'; font-weight: 700; font-display: swap; src: url('/fonts/TTNormsPro-Bold.woff2') format('woff2'); }

:root {
  --blue: #659fc1;
  --orange: #fa4625;
  --brown: #846435;
  --text: #555;
  --dark: #333;
  --nav: #444;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.5 'TTNormsPro', sans-serif; color: var(--text); background: #fff; }
::selection { background: var(--blue); color: #fff; }
:focus { outline: none; }
img { max-width: 100%; vertical-align: middle; border: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #222; }
p { margin: 0 0 30px; line-height: 1.8; }
ul { margin: 0 0 30px; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 30px; color: var(--dark); font-weight: 600; line-height: 1.5; }
h5 { margin-bottom: 14px; font-size: 14px; font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }

/* The ::before/::after pair matters for spacing: it stops child margins from collapsing
   and, inside flex containers, adds one extra gap at each end. */
.container, .team-grid-inner { width: 100%; margin: 0 auto; padding: 0 20px; }
.container::before, .container::after { content: ''; display: table; }
.container::after { clear: both; }
@media (min-width: 480px) { .container, .team-grid-inner { width: 470px; } }
@media (min-width: 768px) { .container, .team-grid-inner { width: 750px; } }
@media (min-width: 992px) { .container, .team-grid-inner { width: 970px; } }
@media (min-width: 1200px) { .container, .team-grid-inner { width: 1170px; } }

.content { position: relative; padding-bottom: 60px; }
.content > *, .content > section > * { scroll-margin-top: 100px; }

/* title with orange rule, used by several blocks */
.titled { display: flex; align-items: center; gap: 10px; }
.titled > :first-child { flex: 0 0 auto; }
.titled .rule { flex: 1; height: 2px; background: var(--orange); }
@media (min-width: 768px) { .titled { gap: 15px; } }

/* ---------- header ---------- */
.header { position: relative; height: 80px; z-index: 200; }
.header-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 199; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .1); }
.nav { position: relative; height: 80px; margin: 0 auto; text-align: center; }
.logo { display: block; width: fit-content; margin: 0 auto; }
.logo img { display: block; width: 138.39px; height: 80px; }
.nav-toggle { position: absolute; top: 15px; left: 0; width: 50px; height: 50px; color: var(--dark); }
.nav-toggle svg { display: block; margin: 0 auto; }
.nav-menu { display: none; margin: 0 8px; list-style: none; text-align: left; background: #fff; }
.nav-menu.open { display: block; }
.nav-menu li + li { border-top: 1px solid #eee; }
.nav-menu a { display: block; padding: 0 15px; line-height: 50px; color: var(--nav); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.nav-menu a:hover, .nav-menu a.active { color: var(--orange); }

.lang { position: absolute; top: 15px; right: 30px; width: 50px; height: 50px; text-align: left; }
.lang-current { display: block; height: 50px; margin-left: 8px; padding: 0 15px; line-height: 50px; color: var(--nav); font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.lang-current svg { margin: -2px 0 0 4px; vertical-align: middle; }
.lang { background: #fff; }
.lang ul { display: none; width: 50px; margin: 0 0 0 8px; list-style: none; background: #fff; border-top: 1px solid #eee; }
.lang:hover ul, .lang.open ul { display: block; }
.lang li:first-child { width: 40px; margin: 0 5px; border-bottom: thin solid lightgrey; }
.lang li + li { border-top: 1px solid #eee; }
.lang ul a { display: block; height: 44px; padding: 0 5px; line-height: 44px; text-align: center; color: #666; font-size: 13px; text-transform: uppercase; transition: all .2s ease-in-out; }
.lang ul a:hover, .lang ul a.current { color: var(--orange); }

@media (min-width: 768px) { .nav-toggle { left: 15px; } }
@media (min-width: 992px) {
  .nav { width: 970px; }
  .nav-toggle { left: 30px; }
  .lang { right: 45px; }
}
@media (min-width: 1200px) {
  .nav { width: 1140px; padding: 0 20px; text-align: left; }
  .logo { float: left; margin: 0 50px 0 0; }
  .nav-toggle { display: none; }
  .nav-menu, .nav-menu.open { display: block; float: left; margin: 0; background: none; }
  .nav-menu li { float: left; margin: 0 8px; }
  .nav-menu li:first-child { margin-left: 0; }
  .nav-menu li + li { border-top: 0; }
  .nav-menu a { line-height: 80px; }
  .lang { top: 0; right: 0; width: 58px; height: 80px; }
  .lang-current { height: 80px; margin-left: 0; line-height: 80px; }
  .lang ul { position: absolute; top: 100%; left: 0; z-index: 199; margin: 0; border: 1px solid #eee; box-shadow: 0 13px 42px 11px rgba(0, 0, 0, .05); }
  .lang li + li { border-top: 0; }
  .lang ul a { height: 42px; line-height: 42px; font-size: 12px; }
}

/* ---------- headings ---------- */
.heading { display: flex; align-items: center; padding-bottom: 25px; }
.heading h1, .heading h2 { flex: 0 0 auto; margin: 0; font-size: 20px; line-height: 30px; letter-spacing: 1px; text-transform: uppercase; }
.heading h1 { font-weight: 700; }
.heading h2 { font-weight: 400; }
.heading .rule { flex: 1; height: 2px; margin-left: 10px; background: var(--orange); }
@media (min-width: 768px) {
  .heading { padding-bottom: 50px; }
  .heading .rule { margin-left: 15px; }
}

.text { color: var(--text); }
.text ul { padding-left: 15px; }

/* ---------- hero (video / image with text box) ---------- */
.hero { position: relative; aspect-ratio: 390 / 260; }
.hero-media { position: relative; width: 100%; height: 100%; }
.hero-media video, .hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gradient-blue, .gradient-ocker { position: absolute; inset: 0; }
.gradient-blue { background-image: linear-gradient(269deg, rgba(255, 255, 255, .1) 22%, rgba(101, 159, 193, .8) 100%); }
.gradient-ocker { background-image: linear-gradient(269deg, rgba(186, 157, 101, .1) 39%, rgba(132, 100, 53, 1) 100%); }
.hero-text { padding: 25px 20px 50px; }
.hero-title { margin: 0; font-size: 20px; font-weight: 400; }
.hero-subtitle { margin: 10px 0 0; font-size: 14px; font-weight: 400; }
.hero-back { padding: 15px 30px; font-size: 14px; line-height: 21px; }
.hero-back > div { width: fit-content; height: 16px; }
.hero-back a { display: flex; gap: 5px; width: fit-content; color: #000; }
.hero-back a:hover { border-bottom: 2px solid var(--orange); }
.hero-back .on-dark { display: none; }

/* ---------- text over image (career teaser) ---------- */
.teaser { position: relative; aspect-ratio: 390 / 260; margin-bottom: 100px; }
.teaser-text { padding: 25px 20px; }
.teaser-text a { color: #000; }
.teaser-title { margin: 0; font-size: 20px; font-weight: 400; }
.teaser-subtitle { margin: 25px 0; font-size: 14px; font-weight: 400; }
.teaser-link { display: flex; gap: 5px; width: fit-content; font-size: 14px; }
.teaser-link:hover { border-bottom: 2px solid var(--orange); }
.teaser-link .on-dark { display: none; }

@media (min-width: 768px) {
  .hero, .teaser { aspect-ratio: 1920 / 735; }
  .hero { margin-bottom: 100px; }
  .hero-title, .teaser-title { font-size: 25px; color: #fff; }
  .hero-subtitle { font-size: 20px; color: #fff; }
  .teaser-subtitle, .teaser-link { font-size: 12.5px; }
  .teaser-subtitle, .teaser-text a { color: #fff; }
  .teaser-title-row { display: block; }
  .teaser-title-row .rule { display: none; }
  .hero-back .on-dark, .teaser-link .on-dark { display: inline; }
  .hero-back .on-light, .teaser-link .on-light { display: none; }

  /* text box with orange corner, aligned to the container */
  .hero-text, .teaser-text {
    position: absolute; padding: 20px;
    width: calc((100% - (100% - 750px) / 2) * .5);
    height: calc((100% - (100% * 1920 / 735 - 750px) / 2));
    top: calc((100% * 1920 / 735 - 750px) / 4);
    left: calc((100% - 750px) / 4);
  }
  .hero-text.below-back {
    height: calc((100% - (100% * 1920 / 735 - 750px) / 2) - 46px);
    top: calc((100% * 1920 / 735 - 750px) / 4 + 46px);
  }
  .hero-text::before, .teaser-text::before {
    content: ''; position: absolute; top: 0; left: 0; width: 160px; height: 160px;
    border-top: 2px solid var(--orange); border-left: 2px solid var(--orange);
  }
  .hero-back {
    position: absolute; z-index: 10; padding: 0; top: 30px;
    width: calc((100% - (100% - 750px) / 2) * .5);
    left: calc((100% - 750px) / 4);
  }
  .hero-back a { color: #fff; }
}
@media (min-width: 992px) {
  .hero-title, .teaser-title { font-size: 30px; }
  .hero-subtitle { font-size: 25px; }
  .teaser-subtitle, .teaser-link { font-size: 15px; }
  .hero-text, .teaser-text {
    padding: 40px;
    width: calc((100% - (100% - 970px) / 2) * .5);
    height: calc((100% - (100% * 1920 / 735 - 970px) / 2));
    top: calc((100% * 1920 / 735 - 970px) / 4);
    left: calc((100% - 970px) / 4);
  }
  .hero-text.below-back {
    height: calc((100% - (100% * 1920 / 735 - 970px) / 2) - 46px);
    top: calc((100% * 1920 / 735 - 970px) / 4 + 46px);
  }
  .hero-back { width: calc((100% - (100% - 970px) / 2) * .5); left: calc((100% - 970px) / 4); }
}
@media (min-width: 1200px) {
  .hero-title, .teaser-title { font-size: 40px; }
  .hero-subtitle { font-size: 30px; }
  .teaser-subtitle, .teaser-link { font-size: 20px; }
  .hero-text, .teaser-text {
    padding: 55px;
    width: calc((100% - (100% - 1170px) / 2) * .5);
    height: calc((100% - (100% * 1920 / 735 - 1170px) / 2));
    top: calc((100% * 1920 / 735 - 1170px) / 4);
    left: calc((100% - 1170px) / 4);
  }
  .hero-text.below-back {
    height: calc((100% - (100% * 1920 / 735 - 1170px) / 2) - 46px);
    top: calc((100% * 1920 / 735 - 1170px) / 4 + 46px);
  }
  .hero-back { width: calc((100% - (100% - 1170px) / 2) * .5); left: calc((100% - 1170px) / 4); }
}

/* ---------- blue bands: "why us" counters and technologies ---------- */
.band { display: flex; justify-content: center; margin: 25px 0; padding: 50px 20px; color: #fff; background: var(--blue); }
.band-inner { display: flex; flex-direction: column; gap: 30px; }
.band-title { font-size: 20px; text-transform: uppercase; }
.band-items { display: flex; flex-direction: column; overflow: hidden; hyphens: auto; }

.why-us .titled { gap: 15px; }
.why-us .band-items { gap: 20px; justify-content: space-between; }
.why-us-item { display: flex; flex-direction: column; gap: 13px; }
.counter { display: flex; align-items: center; justify-content: center; width: fit-content; height: 35px; font-size: 30px; }
.counter::after { content: '+'; }
.counter.bar { background: linear-gradient(rgba(0, 0, 0, 0) 50%, var(--orange) 50%); }
.counter.shadow { text-shadow: 2px -4.5px 0 var(--orange); }
.why-us-label, .tech-text { font-size: 14px; line-height: 1.5; }

.tech .band-items { gap: 25px; }
.tech-item { flex: 1 1 0; display: flex; flex-direction: column; gap: 13px; }
.tech-item img { width: 40px; height: 40px; }

@media (min-width: 768px) {
  .band { padding: 55px 0; }
  .band-inner { width: 100%; padding: 0 calc((100% - 750px) / 2); }
  .band-items { flex-direction: row; }
  .why-us { margin: 84px 0 100px; }
  .why-us .band-inner { gap: 50px; }
  .why-us-item { flex: 1; gap: 20px; align-items: center; }
  .counter { height: 45px; font-size: 35px; }
  .why-us-label, .tech-text { font-size: 18px; }
  .tech { margin: 50px 0; }
  .tech .band-inner { gap: 45px; }
  .tech-item { gap: 20px; width: 0; }
  .tech-item img { width: 72px; height: 72px; }
}
@media (min-width: 992px) {
  .band-inner { padding: 0 calc((100% - 970px) / 2); }
  .counter { height: 60px; font-size: 50px; }
}
@media (min-width: 1200px) {
  .band-inner { padding: 0 calc((100% - 1170px) / 2); }
  .why-us .band-items { gap: 25px; }
  .counter { height: 70px; font-size: 60px; }
}

/* ---------- team grid ---------- */
.team-grid { position: relative; }
.team-grid-inner { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.team-cell { display: flex; justify-content: center; margin-bottom: 80px; }
.team-card { position: relative; display: flex; flex-direction: column; width: 140px; margin: 0 15px; cursor: pointer; }
.team-card::after { content: ''; position: absolute; z-index: 0; top: 0; left: 15px; right: 15px; bottom: -2px; background: var(--brown); transition: all .5s; }
.team-card:hover::after { left: 0; right: -4px; bottom: -4px; }
.team-photo { position: relative; z-index: 2; display: block; }
.team-photo img { display: block; width: 100%; height: 180px; object-fit: cover; }
.team-desc { position: relative; z-index: 2; flex: 1; padding: 0 15px; background: #fff; }
.team-title { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 12px; }
.team-title h6 { margin: 0; color: var(--text); font-size: 20px; font-weight: 300; line-height: 1.5; word-break: break-word; hyphens: auto; }
.team-title span { display: block; color: var(--text); font-size: 14px; line-height: 1.5; }
@media (max-width: 479px) { .team-grid-inner { width: 100%; } }
@media (max-width: 768px) { .team-desc { padding: 0; } }
@media (min-width: 479px) { .team-card { width: 165px; } .team-photo img { height: 212px; } }
@media (min-width: 769px) and (max-width: 989px) { .team-card { width: 315px; } .team-photo img { height: 405px; } }
@media (min-width: 990px) { .team-card { width: 350px; margin: 0 7px; } .team-photo img { height: 450px; } }

/* ---------- accordion ---------- */
.accordion-section { overflow: hidden; }
.accordion-block { display: flex; flex-direction: column; margin-top: 100px; margin-bottom: 100px; }
.accordion-block > .titled { margin-bottom: 50px; }
.accordion-block > .titled > :first-child { color: var(--dark); font-size: 20px; text-transform: uppercase; }
.accordion { margin-bottom: 20px; }
.acc-item { border-top: 1px dotted #ddd; }
.acc-item:first-child { border-top: 0; }
.acc-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0 10px 15px; color: var(--nav); font-size: 14px; font-weight: 700; }
.acc-head img { width: auto; height: 20px; }
.acc-title { display: flex; align-items: center; justify-content: space-between; width: 88%; color: var(--dark); font-size: 14px; font-weight: 400; line-height: 24px; }
.acc-title::after { content: '+'; font-size: 25px; line-height: 35px; transition: transform .3s ease; }
.acc-item.open .acc-title::after { transform: rotate(45deg); }
.acc-body[hidden] { display: none; }
.acc-body .text { padding: 0 0 15px 15px; }
.acc-body ul { padding-left: 15px; }
@media (min-width: 480px) { .acc-title { width: 92%; } }
/* the old site gave these a fixed 470px container width in this range */
@media (min-width: 480px) and (max-width: 767px) { .acc-head, .acc-body .text { width: 470px; } }
@media (min-width: 768px) { .acc-title { width: 95%; font-size: 18px; } }
@media (min-width: 992px) { .acc-title { width: 96%; } }
@media (min-width: 1200px) { .acc-title { width: 97%; } }

/* ---------- two columns (contact, imprint, privacy) ---------- */
.col { position: relative; margin-bottom: 50px; }
.col p { margin-bottom: 30px; }
@media (min-width: 768px) {
  .col { float: left; width: 48%; margin-right: 4%; }
  .col:last-child { margin-right: 0; }
}
.credits { margin-bottom: 50px; text-align: center; }
.credits span { font-size: 10px; line-height: 15px; }
.credits-line { margin-bottom: 30px; border-top: 1px solid #ddd; }

/* ---------- team member details ---------- */
.member { display: flex; flex-direction: column-reverse; gap: 50px; margin-bottom: 50px; }
.member-left { display: flex; flex-direction: column; gap: 50px; }
.member-block { display: flex; flex-direction: column; gap: 10px; }
.member-label { display: flex; gap: 10px; color: var(--dark); font-size: 14px; line-height: 1.5; }
.tags { display: flex; }
.tag { width: fit-content; margin: 0 5px; padding: 5px 12px; border: 1px solid var(--blue); border-radius: 25px; font-size: 14px; white-space: nowrap; }
.member-address p { margin: 0; }
.member-right .accordion-block { margin: 0; padding: 0 20px; }
.member-right .acc-title { width: 87%; }
@media (min-width: 480px) { .member-right .acc-title { width: 92%; } }
@media (min-width: 768px) {
  .member { flex-direction: row; gap: 0; margin-top: 25px; }
  .member-left, .member-right { width: 50%; }
  .member-label { font-size: 18px; }
  .member-right .acc-title { width: 89%; }
}
@media (min-width: 992px) { .member-right .acc-title { width: 92%; } }
@media (min-width: 1200px) { .member-right .acc-title { width: 93%; } }

/* ---------- map ---------- */
.map { aspect-ratio: 390 / 260; margin: 140px 0 60px; }
@media (min-width: 992px) { .map { margin-top: 100px; } }
.map > div { width: 100%; height: 100%; }
.map img { max-width: none; }
@media (min-width: 768px) { .map { aspect-ratio: 1920 / 735; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid #ddd; padding: 50px 0; font-size: 14px; line-height: 1.8; text-align: center; }
.footer p { margin-bottom: 50px; }
@media (min-width: 768px) { .footer .container { width: 100%; } }
@media (min-width: 992px) {
  .footer { width: 940px; margin: 0 auto; }
  .footer .container { padding: 0; }
}
@media (min-width: 1200px) { .footer { width: 1140px; } }

/* ---------- back to top ---------- */
.to-top { display: none; position: fixed; right: 30px; bottom: 30px; z-index: 299; width: 40px; height: 40px; border-radius: 2px; color: #fff; background: rgba(0, 0, 0, .3); opacity: 0; transition: opacity .4s, background-color .2s linear; }
.to-top:hover { color: #fff; background: var(--blue); }
.to-top svg { display: block; margin: 12px auto 0; }
.to-top.visible { opacity: 1; }
@media (min-width: 768px) { .to-top { display: block; pointer-events: none; } .to-top.visible { pointer-events: auto; } }

/* cookie banner (GlowCookies) */
.prebanner { min-width: fit-content !important; padding-right: 10px !important; }
