/* ==========================================================================
   Zeitsprung Infotainment GmbH - static site
   Vanilla CSS, no dependencies. Sections:
   1. Tokens   2. Fonts   3. Reset/base   4. Grid   5. Header/nav
   6. Sections (start, unternehmen, produkte, referenzen, jobs, csr)
   7. Timeline   8. Accordion   9. Impressum/Datenschutz   10. Footer
   11. Animations   12. Responsive
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --text: #333333;
  --link: #e7412d;
  --link-hover: #333335;
  --brand: #e8422c;
  --brand-dark: #e03426;
  --footer-bg: #e9422c;
  --pink: #fad9d5;
  --pink-hover: #f2978b;
  --grey-head: #999999;
  --grey-light: #a6a6a6;
  --line: #cccccc;
  --tl-event: #e6e6e6;
  --tl-year: #858585;
  --totop-line: #818181;

  --font: "Century Gothic", "Questrial", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* The original design renders b/strong/h2 at regular weight. Set to bold to emphasise them. */
  --strong-weight: 400;

  --header-h: 165px;
  --header-h-reduced: 125px;
  --anchor-offset: 125px;
}

/* 2. Fonts ----------------------------------------------------------------
   Century Gothic is a commercial font. If you have a license, copy the files
   into site/fonts/ and uncomment this block (see README.md).

@font-face {
  font-family: "Century Gothic";
  src: url("../fonts/GOTHIC.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Century Gothic";
  src: url("../fonts/GOTHICB.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*/

/* 3. Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.42857;
  color: var(--text);
  background: #fff;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; border: 0; }
svg { flex: none; }
button { font: inherit; color: inherit; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

h2 {
  margin: 20px 0 10px;
  font-size: 18px;
  font-weight: var(--strong-weight);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--grey-head);
}
h3 { margin: 20px 0 10px; font-size: 14px; font-weight: 700; line-height: 1.1; }
h4 { margin: 10px 0; font-size: 14px; font-weight: 700; line-height: 1.1; }
p { margin: 0 0 10px; }
b, strong { font-weight: var(--strong-weight); }

:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }

/* 4. Grid ---------------------------------------------------------------- */
.container { width: 100%; margin: 0 auto; padding: 0 15px; }
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }

.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { width: 100%; padding: 0 15px; }
@media (min-width: 768px) {
  .col-4 { width: 33.33333%; }
  .col-6 { width: 50%; }
  .col-8 { width: 66.66667%; }
  .col-offset-8 { margin-left: 66.66667%; }
}

/* Two cells side by side, cells are aligned like table cells */
.row-table { display: flex; margin: 0 -15px; }
@media (max-width: 767px) { .row-table { display: block; } }

/* 5. Header / navigation ------------------------------------------------- */
#top-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 99;
  background: #fff;
  transition: height 0.5s;
}
body.reduced #top-elements { height: var(--header-h-reduced); }

.header-row { display: flex; justify-content: space-between; height: 100%; }
.logo-cell { flex: none; width: 250px; align-self: flex-start; }
.logo-cell img {
  width: var(--logo-w, 100%);
  max-width: 100%;
  margin-top: 15px;
  transition: width 0.5s;
}
.nav-cell { align-self: flex-end; padding-bottom: 10px; text-align: right; }

.mainNavi ul { display: flex; justify-content: flex-end; }
.mainNavi a {
  display: inline-block;
  margin-left: 20px;
  padding-bottom: 3px;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 2px solid transparent;
}
.mainNavi a:hover { color: var(--brand); text-decoration: none; }
.mainNavi a.current { border-bottom-color: var(--brand); }

.navbar-toggle, .button-tel, .nav-close, .info-close { display: none; }

/* Phone / e-mail strip */
.top-info {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}
.top-info .container { display: flex; justify-content: flex-end; padding-top: 10px; padding-right: 60px; }
.top-info-inner { display: flex; align-items: center; pointer-events: auto; }
.top-info a { color: var(--grey-light); text-decoration: none; }
.top-info a:hover { color: var(--link-hover); }
.top-info .icon { width: 22px; height: 22px; margin-right: 4px; vertical-align: middle; }
.top-info .top-mail { margin-left: 25px; }
.top-info .icon-mail { width: 18px; height: 18px; }

/* Anchor offset below the fixed header */
main > section, footer { scroll-margin-top: var(--anchor-offset); }

/* 6. Sections ------------------------------------------------------------ */
#startseite { padding-top: var(--header-h); }

.hero { margin: 0 0 15px; }
.hero img { width: 100%; border-top: 1px solid var(--line); border-bottom: 3px solid var(--brand); }
@media (min-width: 1043px) and (max-width: 1199px), (min-width: 1280px) {
  .hero { margin: 0 -50px 15px; }
}

.teasers { display: flex; flex-wrap: wrap; margin: 0 -15px; text-align: center; }
.teaser { width: 100%; padding: 0 15px; }
@media (min-width: 768px) { .teaser { width: 33.33333%; } }
.teaser img, .content-img { width: 100%; }
.teaser p { font-weight: lighter; }
.teaser .more { margin-top: 10px; }

/* Unternehmen */
.row-table .cell { width: 100%; padding: 0 15px; }
@media (min-width: 768px) { .row-table .cell { width: 50%; } }
.row-table .cell-img { align-self: flex-end; }
.col-text p { hyphens: auto; }

/* Product boxes */
.products { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.product-box { width: 100%; padding: 20px 15px 0; text-align: center; }
@media (min-width: 768px) { .product-box { width: 33.33333%; padding-top: 0; } }
.product-box h3 { margin: 20px 0 10px; }
.product-circle {
  display: block;
  width: 190px;
  height: 20px;
  margin: 0 auto;
  padding: 85px 0 105px;
  line-height: 20px;
  border-radius: 95px;
  font-size: 18px;
  font-weight: var(--strong-weight);
  text-align: center;
  background: var(--pink);
  color: var(--brand-dark);
  transition: all 500ms;
}
.product-circle:hover { background: var(--pink-hover); color: #fff; text-decoration: none; }
.product-box p { hyphens: auto; }

/* Logo grids (Referenzen / CSR) */
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 -15px; }
@media (min-width: 768px) { .logo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.logo-grid li { display: flex; align-items: center; justify-content: center; min-height: 150px; padding: 0 15px; }
.logo-grid a { display: block; width: 100%; }
.logo-grid img { width: 100%; }

.illu-right { display: flex; margin: 0 -15px; }
.illu-right figure { width: 100%; padding: 0 15px; }
@media (min-width: 768px) { .illu-right figure { width: 33.33333%; margin-left: auto; } }

.intro-line { margin-bottom: 10px; }

/* Back to top */
.div-totop { position: relative; height: 1px; border-top: 1px solid var(--totop-line); margin: 25px 0 10px; }
.a-totop {
  position: absolute;
  right: 50px;
  top: -27px;
  display: block;
  width: 56px;
  height: 52px;
  padding-top: 8px;
  text-align: center;
  background: #fff;
  color: var(--totop-line);
  line-height: 1;
}
.a-totop:hover { color: var(--brand); text-decoration: none; }
.a-totop .icon { width: 36px; height: 36px; vertical-align: top; }

/* 7. Timeline ------------------------------------------------------------ */
.timeline-outer { padding-bottom: 50px; }
.timeline-head { text-align: center; }
.timeline-head h3 {
  margin: 20px 0 10px;
  font-size: 14px;
  font-weight: var(--strong-weight);
  text-transform: uppercase;
  color: var(--grey-head);
}
.timeline-toggle {
  display: block;
  margin: 0 auto;
  padding: 0;
  font-size: 4em;
  line-height: 1;
  color: #e8422e;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  animation: pulsate 1.4s ease-out infinite;
}
.timeline-toggle .icon { width: 1em; height: 1em; display: block; }
.timeline-toggle .icon-up { display: none; }
.timeline-toggle[aria-expanded="true"] .icon-up { display: block; }
.timeline-toggle[aria-expanded="true"] .icon-down { display: none; }
html:not(.js) .timeline-toggle { display: none; }

/* Height transition without JS measuring: grid rows 0fr -> 1fr */
.timeline-wrap { display: grid; grid-template-rows: 1fr; }
.js .timeline-wrap {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.6s ease, visibility 0s 0.6s;
}
.js .timeline-wrap.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.6s ease, visibility 0s; }
.timeline-clip { min-height: 0; overflow: hidden; }

.timeline {
  position: relative;
  max-width: 758px;
  margin: -4px auto 0;
  padding-top: 20px;
}
/* Center line */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: #000;
}
.tl-row { position: relative; display: flex; padding-bottom: 40px; }
.tl-row:last-child { padding-bottom: 0; }
/* Dot: grey 29.6px circle with a red 20.4px circle inside */
.tl-row::before, .tl-row::after { content: ""; position: absolute; left: 50%; border-radius: 50%; }
.tl-row::before { top: 13.4px; width: 29.6px; height: 29.6px; margin-left: -14.8px; background: var(--tl-event); }
.tl-row::after  { top: 17.6px; width: 20.4px; height: 20.4px; margin-left: -10.2px; background: #e8432c; }
.tl-row:first-child { margin-top: 0; }

.tl-col { width: 50%; }
.tl-col--left  { padding: 0 40px 0 0; }
.tl-col--right { padding: 0 0 0 40px; }

.div-event, .div-year { position: relative; padding: 20px; }
.div-event { background: var(--tl-event); }
.div-event p { margin: 0; }
.div-year { width: 50%; background: var(--tl-year); color: #fff; }
.div-year h4, .div-year time { margin: 0; font-size: 16px; font-weight: normal; }
.tl-col--left .div-year { margin-left: auto; }
.div-event .tl-year-m { display: none; margin: 0 0 10px; font-size: 20px; }

/* Speech-bubble arrows pointing to the center line */
.div-event::after, .div-year::after { content: ""; position: absolute; top: 16px; width: 0; height: 0; border: 12px solid transparent; }
.tl-col--left .div-event::after, .tl-col--left .div-year::after { left: 100%; border-right-width: 0; }
.tl-col--right .div-event::after, .tl-col--right .div-year::after { right: 100%; border-left-width: 0; }
.tl-col--left .div-event::after  { border-left-color: var(--tl-event); }
.tl-col--right .div-event::after { border-right-color: var(--tl-event); }
.tl-col--left .div-year::after   { border-left-color: var(--tl-year); }
.tl-col--right .div-year::after  { border-right-color: var(--tl-year); }

/* 8. Accordion (jobs) ---------------------------------------------------- */
.accordion > li { padding: 8px 0 10px; border-top: 1px solid var(--line); }
.accordion > li:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary h3 {
  display: inline;
  margin: 10px 0;
  font-size: 1em;
  color: var(--brand-dark);
  text-decoration: underline;
}
.accordion summary { margin: 10px 0; }
.accordion summary:hover h3 { color: var(--link-hover); }
.job-body { padding-top: 5px; }
.job-body p { margin-bottom: 10px; }
.teaser-header { display: block; padding: 10px 0; font-size: 17px; font-weight: 700; }
.job-body ul { margin: 0 0 10px; }
.job-body ul li::before { content: "\25AA\00A0"; }
.job-body address { margin-bottom: 10px; }

/* 9. Impressum / Datenschutz --------------------------------------------- */
#impressum .col-4 a, #impressum .a-plain { color: var(--text); }
#impressum .col-4 a:hover { color: var(--link-hover); }
#impressum .icon { margin-right: 4px; }
#impressum .a-phone { margin-left: 20px; }
#impressum .a-email { display: block; margin-top: 5px; }
#impressum address a { display: inline-block; padding: 3px 0; }
#impressum .a-email { display: flex; align-items: center; }
#impressum .txt-block { margin-bottom: 15px; }
#impressum .txt-block strong { display: block; }
#impressum .impressum-illu { margin-top: 20px; }
#impressum .impressum-illu img { width: auto; }
#datenschutz b, #datenschutz strong, #datenschutz h3 { font-weight: 700; font-size: 14px; }
#datenschutz p { overflow-wrap: anywhere; }
#notfound h1 { margin: 20px 0 10px; font-size: 18px; font-weight: var(--strong-weight); text-transform: uppercase; color: var(--grey-head); }

.page-sub main { padding-top: var(--header-h); }
.page-sub #impressum, .page-sub #datenschutz { scroll-margin-top: var(--anchor-offset); }

/* 10. Footer ------------------------------------------------------------- */
.footer-box {
  display: flex;
  margin: 0 -15px;
  padding: 120px 40px 100px 80px;
  font-size: 0.9em;
  color: #fff;
  background: var(--footer-bg) url("../img/logo-footer.png") no-repeat 60px 40px;
  background-size: 70px auto;
}
.footer-box a { color: #fff; }
.footer-col { width: 50%; }
.footer-col--right { align-self: flex-end; }
.footer-box .footer-phone { margin-left: 20px; }
.footer-box .footer-mail { display: block; margin-top: 5px; }
.footer-box .footer-links { margin-top: 10px; }
.footer-box .footer-links a::before, .nav-footer a::before { content: ">\00A0"; }
.footer-links a { display: block; padding: 3px 0; }
.footer-box address + p a { display: inline-block; padding: 3px 0; }
.nav-footer a {
  display: block;
  padding: 5px 0;
  line-height: 1.2em;
  text-transform: uppercase;
  border-bottom: 1px solid #fff;
}
.nav-footer a:hover, .footer-box a:hover { text-decoration: none; opacity: 0.85; }
.social { display: flex; justify-content: flex-end; padding-top: 30px; }
.social li { margin-left: 9px; }
.social a {
  display: block;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  transition: all 500ms;
}
.social a:hover { background: #fff; color: var(--footer-bg); opacity: 1; }
.social .icon { width: 16px; height: 16px; display: block; }
.footer-box :focus-visible { outline-color: #fff; }
footer .spacer { height: 30px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 11. Animations --------------------------------------------------------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translate3d(0, -20px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
@keyframes pulsate {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
@keyframes bounceInRight {
  0%   { opacity: 0; transform: translate3d(2000px, 0, 0); }
  60%  { opacity: 1; transform: translate3d(-30px, 0, 0); }
  80%  { transform: translate3d(10px, 0, 0); }
  100% { transform: none; }
}
@keyframes bounceInLeft {
  0%   { opacity: 0; transform: translate3d(-2000px, 0, 0); }
  60%  { opacity: 1; transform: translate3d(30px, 0, 0); }
  80%  { transform: translate3d(-10px, 0, 0); }
  100% { transform: none; }
}

details[open] .teaser-header b { display: block; animation: fadeInDown 1s linear both; font-weight: 700; }

/* Scroll-in animations: desktop only, only when JS is active */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .js img.anim { opacity: 0; }
  .js img.anim.is-visible { opacity: 1; animation: fadeInDown 1s linear both; }
  .js img.anim.is-shown { opacity: 1; }
  a:hover > img.anim.is-shown { animation: pulse 0.6s linear; }

  .product-circle.is-visible { animation: pulse 1s linear both; }

  .js .div-event { visibility: hidden; }
  .js .div-event.is-visible { visibility: visible; }
  .js .tl-col--right .div-event.is-visible { animation: bounceInRight 1s linear both; }
  .js .tl-col--left .div-event.is-visible { animation: bounceInLeft 1s linear both; }
}
@media (max-width: 767px) { .timeline-toggle { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  .timeline-toggle { animation: none; }
  .js .timeline-wrap, #top-elements, .logo-cell img, .product-circle { transition: none; }
  details[open] .teaser-header b { animation: none; }
}

/* 12. Responsive --------------------------------------------------------- */
@media (max-width: 1042px) {
  .top-info { position: absolute; }
}

@media (max-width: 991px) {
  :root { --header-h: 120px; --header-h-reduced: 120px; }
  .logo-cell { width: 180px; }
}

@media (max-width: 767px) {
  h2 { margin-top: 20px; }

  /* Hamburger */
  .navbar-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 35px;
    width: 44px;
    height: 36px;
    padding: 8px 8px;
    background: #fff;
    border: 3px solid var(--brand);
    border-radius: 4px;
    cursor: pointer;
  }
  .navbar-toggle .icon-bar { display: block; width: 100%; height: 3px; margin-bottom: 3px; background: var(--brand); }
  .navbar-toggle .icon-bar:last-of-type { margin-bottom: 0; }

  /* Dropdown */
  .js #navbar { display: none; }
  .js #navbar.is-open { display: block; }
  #navbar {
    position: absolute;
    top: 90px;
    right: 20px;
    width: 160px;
    z-index: 101;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid var(--brand);
    border-radius: 5px;
    text-align: left;
  }
  .nav-cell { padding: 0; }
  .mainNavi ul { display: block; }
  .mainNavi a { display: block; margin: 0; padding: 7px 1.4em; border-bottom: 0; }
  .mainNavi a:hover, .mainNavi a.act { background: var(--brand); color: #fff; }
  .mainNavi a.current { border-bottom: 0; }
  .nav-close, .info-close {
    display: block;
    margin: 4px 4px 0 auto;
    padding: 0;
    width: 26px;
    height: 26px;
    font-size: 26px;
    line-height: 1;
    color: var(--brand);
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-close .icon, .info-close .icon { width: 26px; height: 26px; display: block; }
  .info-close { display: none; }

  /* No-JS fallback: nav stays inline under the logo */
  html:not(.js) .navbar-toggle { display: none; }
  html:not(.js) .nav-close { display: none; }
  html:not(.js) #top-elements { position: absolute; height: auto; padding-bottom: 10px; }
  html:not(.js) .header-row { flex-direction: column; }
  html:not(.js) #navbar { position: static; width: auto; border: 0; background: none; }
  html:not(.js) .mainNavi ul { display: flex; flex-wrap: wrap; }
  html:not(.js) #startseite { padding-top: 220px; }

  /* Timeline: line at the left edge, only event boxes */
  .timeline { margin: -5px 20px 50px 20px; max-width: none; }
  .timeline::before { left: 14.8px; transform: none; }
  .tl-row::before { left: 0; margin-left: 0; }
  .tl-row::after { left: 0; margin-left: 4.6px; }
  .tl-row { display: block; }
  .tl-col { width: 100%; padding: 0 0 0 50px; }
  .tl-col--year { display: none; }
  .tl-col--left .div-event::after, .tl-col--right .div-event::after {
    left: auto;
    right: 100%;
    border-left-width: 0;
    border-right-width: 12px;
    border-left-color: transparent;
    border-right-color: var(--tl-event);
  }
  .div-event .tl-year-m { display: block; }
  .timeline-head { text-align: left; }
  .timeline-toggle { margin: 0; }
  .timeline-outer { padding: 0 15px 20px; }
}

@media (max-width: 540px) {
  #top-elements .navbar-toggle { top: 15px; }
  #navbar { top: 70px; }

  .button-tel {
    display: block;
    position: absolute;
    right: 100px;
    top: 22px;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--brand);
    background: #fff;
    border: 3px solid var(--brand);
    border-radius: 4px;
    cursor: pointer;
  }
  .button-tel .icon { width: 24px; height: 24px; margin: 0 auto; display: block; }
  html:not(.js) .button-tel { display: none; }

  /* Contact strip becomes a popup */
  .js .top-info { display: none; }
  .js .top-info.is-open { display: block; }
  .top-info .container { padding: 0; }
  .top-info-inner {
    position: absolute;
    right: 40px;
    top: 70px;
    width: 260px;
    display: block;
    padding: 10px 15px;
    background: #fff;
    border: 3px solid var(--brand);
    border-radius: 4px;
    font-size: 13px;
  }
  .top-info a { display: block; color: var(--text); }
  .top-info .top-mail { margin: 5px 0 0; }
  .top-info .icon { width: 18px; height: 18px; }
  .info-close { display: block; margin: 0 0 4px auto; }
  html:not(.js) .info-close { display: none; }

  .footer-box { padding: 120px 10px; background-position: 20px 35px; }
}

@media (max-width: 767px) {
  .footer-box { display: block; margin: 0 -15px; }
  .footer-col { width: 100%; }
  .footer-col--right { margin-top: 20px; }
  .social { justify-content: flex-start; }
}
