/* ===================================================================
   CSYS — static rebuild
   Palette (from live csys.de): navy #01053f / #010f3f, red #fc3d3d, white
   Font: Poppins
   =================================================================== */

:root {
  --navy: #01053f;
  --navy2: #010f3f;
  --red: #fc3d3d;
  /* --red only reaches 3.57:1 against white/black — enough for large text and for
     large-luminance-gap pairs (e.g. on --navy), not for normal-size text on white.
     Darker, same hue, for exactly those contexts (WCAG AA 4.5:1, symmetric so it
     works both as text-on-white and as a background behind white text). */
  --red-a11y: #d23333;
  --white: #ffffff;
  --grey: #666;
  --light: #f7f7fa;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* long German words ("Datenschutzerklärung", "IT-Systemadministrator") are wider than a
   phone at heading sizes: hyphenate them there (lang="de"), and as a last resort break
   the word rather than make the page wider than the screen */
h1, h2, h3, .section-label, .leistungen-label, .ansatz-label, .feature-label, .karriere-label { overflow-wrap: break-word; }
@media (max-width: 47.9375em) { /* only on phones: on wider screens it split words like "Lösungen" for no need */
  h1, h2, h3, .section-label, .leistungen-label, .ansatz-label, .feature-label, .karriere-label { hyphens: auto; }
}
p, li, blockquote, cite, a { overflow-wrap: break-word; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  font-size: 0.875rem;
  font-weight: 500;
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-a11y); text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.red { color: var(--red) !important; }

/* ─── Top contact bar ─── */
#top-bar {
  position: fixed; top: 0; left: 0; width: 100%; height: 31px;
  background: var(--red-a11y); z-index: 10000; display: flex; align-items: center;
}
.top-bar-inner {
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  display: flex; gap: 30px; justify-content: center; align-items: center;
}
.tb-item { color: #fff !important; font-size: 0.84375rem; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.tb-item:hover { opacity: .85; }
.tb-icon { width: 15px; height: 15px; flex-shrink: 0; fill: #fff; color: #fff; }

/* ─── Header ─── */
#main-header {
  position: fixed; top: 31px; left: 0; width: 100%; height: 80px;
  background: #fff8f1; z-index: 9999;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  transition: height .3s ease;
}
#main-header.shrunk { height: 60px; } /* toggled by script.js past 50px of scrolling */
.header-inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.logo img { height: 49px; width: auto; }
#main-nav ul { list-style: none; display: flex; gap: 30px; }
#main-nav a {
  color: var(--navy2); font-weight: 500; font-size: 0.9375rem;
  transition: color .2s;
}
#main-nav a:hover { color: var(--red); }

/* LinkedIn / Xing — circular icon badges */
#main-nav .nav-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  transition: opacity .2s, transform .2s;
}
#main-nav .nav-linkedin a { background: #0a66c2; color: #fff; }
#main-nav .nav-xing a { background: #026466; color: #fff; }
#main-nav .nav-social a:hover { opacity: .85; transform: translateY(-1px); }

.hamburger { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 24px; position: relative; z-index: 10000; }
.hamburger span { display: block; height: 3px; background: var(--navy2); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ─── Buttons ─── */
.btn {
  display: inline-block; font-weight: 600; font-size: 1.0625rem;
  padding: 12px 30px; border-radius: 3px; cursor: pointer;
  transition: all .25s ease; position: relative; overflow: hidden;
}
/* Primary: solid red, navy text, arrow slides in on hover */
.btn-primary {
  background: var(--red); color: var(--navy2);
  border: 2px solid var(--red);
  padding-right: 30px;
}
.btn-primary::after {
  content: '→'; position: absolute; right: -22px; top: 50%;
  transform: translateY(-50%); opacity: 0;
  transition: all .25s ease; font-weight: 700; font-size: 1.125rem;
}
.btn-primary:hover { padding-left: 20px; padding-right: 42px; }
.btn-primary:hover::after { right: 14px; opacity: 1; }

/* Outline: transparent bg, red border and text. Text color is --red-a11y (17px doesn't
   qualify as "large text"); the border can stay --red, contrast rules don't apply to
   decorative borders. */
.btn-outline {
  background: transparent; color: var(--red-a11y);
  border: 2px solid var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--navy2); }

/* ─── Sections ─── */
/* fluid like live Divi (8% 0) below 1350px; fixed 108px only on large monitors */
.section { padding: 8% 0; position: relative; scroll-margin-top: 111px; }
@media (min-width: 84.375em) {
  .section { padding: 108px 0; }
}
.section-navy { background: var(--navy); color: #fff; }
.section-navy .section-title,
.section-navy h3, .section-navy h4 { color: #fff; }
/* plain links here (e.g. the mailto in wir-suchen-section) need the brighter --red —
   the default --red-a11y is darker and actually fails against navy (not enough
   luminance gap). :not(.btn) so this doesn't fight .btn-primary's own navy-on-red. */
.section-navy a:not(.btn) { color: var(--red); }

.section-title { font-size: 2rem; font-weight: 700; color: var(--navy2); margin-bottom: 18px; }
.section-title.light { color: #fff; }
.section-intro { font-size: 0.875rem; color: var(--grey); max-width: 820px; margin-bottom: 10px; }
.section-navy .section-intro { color: rgba(255,255,255,.85); }
/* General section label (e.g. "it-beratung vom feinsten.") */
.section-label { color: var(--red); font-weight: 600; font-size: 1.25rem; margin: 6px 0 30px; }

/* swoosh decorations (red "C") */
.swoosh-tr { background-image: url('assets/images/swoosh-tr.png'); background-repeat: no-repeat; background-position: top right; }
.swoosh-bl { background-image: url('assets/images/swoosh-bl.png'); background-repeat: no-repeat; background-position: bottom left; }

/* ─── Hero ─── */
#hero {
  /* capped so very tall viewports (a portrait-oriented monitor) don't stretch the
     hero — and the navy space around the vertically-centered content — far beyond
     what the content actually needs */
  min-height: min(130vh, 1170px);
  background: var(--navy);
  color: #fff;
  position: relative;
  /* 111px = the fixed top-bar (31px) + header (80px), hidden behind them; the 40px on
     top of that match the bottom padding, so the content is centered in what's visible */
  padding-top: calc(111px + 40px);
  padding-bottom: 40px;
}
/* Same centered width as every other section (.container, header, footer) — without
   this, #hero's flex children spread to the literal viewport edges on wide screens
   instead of staying within the site's usual content column. */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100%;
}
.hero-content {
  flex: 1;
  margin: 0;
  padding: 0 24px;
  width: 100%;
}
.hero-animations {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* four Cs stacked: 140px each on tall screens, smaller on short ones so the column
     always fits the visible hero (100vh minus header and padding) */
  --c-gap: clamp(16px, 3vh, 40px);
  --c-size: clamp(72px, calc((100vh - 191px - 3 * var(--c-gap)) / 4), 140px);
  gap: var(--c-gap);
  max-width: 500px;
  height: auto;
}
.hero-anim-layer {
  width: var(--c-size);
  height: var(--c-size);
}
.hero-anim-icon { width: 100%; height: 100%; display: block; }
/* run.json's animation is nothing but this shape rotating — reproduced as plain CSS
   instead of loading lottie-player for it, see the comment in script.js. Keyframe %,
   degrees and per-segment easing are taken directly from the source file; the pivot
   (0 0) matches the SVG <g> it's nested in, which already carries the anchor-point
   offset via its own (static) transform. */
.hero-anim-spin {
  transform-box: view-box;
  transform-origin: 0 0;
  animation: hero-c-rotate 9.309s linear infinite;
}
@keyframes hero-c-rotate {
  0% { transform: rotate(270deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  5.371% { transform: rotate(317deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  7.161% { transform: rotate(315deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  12.532% { transform: rotate(315deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  17.903% { transform: rotate(362deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  19.694% { transform: rotate(360deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  25.065% { transform: rotate(360deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  30.435% { transform: rotate(407deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  32.226% { transform: rotate(405deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  37.597% { transform: rotate(405deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  42.968% { transform: rotate(452deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  44.758% { transform: rotate(450deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  50.129% { transform: rotate(450deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  55.500% { transform: rotate(497deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  57.290% { transform: rotate(495deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  62.661% { transform: rotate(495deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  68.032% { transform: rotate(542deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  69.823% { transform: rotate(540deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  75.194% { transform: rotate(540deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  80.565% { transform: rotate(587deg); animation-timing-function: cubic-bezier(0.333,0,0.667,1); }
  82.355% { transform: rotate(585deg); animation-timing-function: cubic-bezier(0.171,0,0.837,1); }
  87.726% { transform: rotate(585deg); animation-timing-function: cubic-bezier(0.171,0,0.833,1); }
  93.097% { transform: rotate(632deg); }
  94.887% { transform: rotate(630deg); }
  100% { transform: rotate(630deg); }
}
.hero-anim-0 { opacity: 1; }
.hero-anim-1 { opacity: 1; transform: rotate(180deg); }
.hero-anim-2 { opacity: 1; }
.hero-anim-3 { opacity: 1; transform: rotate(180deg); }
#hero h1 { font-size: 3rem; line-height: 1.18; font-weight: 700; color: #fff; margin-bottom: 26px; max-width: 720px; }
#hero h1 .red { color: var(--red); }
.hero-sub { font-size: 1.125rem; color: #fff; margin-bottom: 18px; font-weight: 400; }
.hero-list { list-style: none; margin: 0 0 34px; max-width: 660px; }
.hero-list li { color: #fff; font-size: 1.0625rem; line-height: 1.55; margin-bottom: 8px; padding-left: 4px; }
.hero-list .hero-num { color: var(--red); font-weight: 700; margin-right: 4px; }
.hero-list .red { color: var(--red); }
#hero .btn-primary { font-size: 1.125rem; }
.hero-scroll-indicator {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.hero-scroll-indicator svg:first-child { width: 15px; height: 24px; }
.scroll-chevron { width: 10px; animation: scrollBounce 1.4s ease-in-out infinite; }
@keyframes scrollBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* Divi row padding simulation — each "row" inside a section has 40px padding top/bottom */
.section-header-block { padding: 40px 0; }
.section-row { padding: 40px 0; }
.section-row-cards { padding: 15px 0; }

/* ─── shared by the 4 big section rows below (leistungen/ansatz/feature/karriere) ─── */
.leistungen-header-row, .ansatz-row-1, .feature-intro-row, .karriere-row-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.leistungen-label, .ansatz-label, .feature-label, .karriere-label {
  font-weight: 700;
  font-size: 2.625rem;
  line-height: 1.285;
}

/* ─── Leistungen header: 2-column layout matching live (title+intro left | label right) ─── */
.leistungen-header-row { padding: 40px 0; align-items: start; position: relative; }
.leistungen-header-right { display: flex; align-items: center; justify-content: center; }
.leistungen-label { color: var(--navy); text-align: center; }

/* ─── Services grid ─── */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  row-gap: 0; column-gap: 0; padding: 15px 0;
}
/* Each service card has 30px padding on all sides — matches live Divi blurb module */
.service-card { text-align: center; padding: 30px; }
.service-card img { width: 46px; height: 46px; margin: 0 auto 18px; filter: invert(38%) sepia(89%) saturate(3000%) hue-rotate(335deg) brightness(101%) contrast(98%); }
.service-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--navy2); margin-bottom: 10px; }
.service-card p { color: var(--grey); font-size: 0.875rem; }
.hashtags { color: var(--red-a11y); font-weight: 600; font-size: 0.875rem; display: inline-block; margin-top: 8px; }

/* ─── plan / build / run ─── */
#planbuildrun { background: var(--navy); color: #fff; }
.pbr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 50px; padding: 40px 0 80px; }
.pbr-card { text-align: center; }
.pbr-icon { width: 160px; height: 160px; margin: 0 auto 24px; }
.pbr-icon svg { width: 100%; height: 100%; }
.pbr-card h3 { font-size: 1.625rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.pbr-card p { color: rgba(255,255,255,.82); font-size: 0.875rem; line-height: 1.65; }
/* "Lesen ist Silber. Schreiben ist Gold." */
.pbr-lesen {
  text-align: center; font-size: 1.875rem; font-weight: 700;
  color: #fff; margin-bottom: 30px; line-height: 1.3;
}
.pbr-lesen .red { color: var(--red); }

/* ─── Partners carousel ─── */
.partner-title { font-size: 2.125rem; font-weight: 700; color: var(--navy2); }
.partner-carousel-wrap {
  display: flex; align-items: center; gap: 0;
  position: relative; margin-top: 50px;
  /* same width as the page content (.container), arrows included — full window width
     left huge gaps between the logos on wide screens */
  max-width: var(--maxw); margin-left: auto; margin-right: auto;
}
.partner-arrow {
  flex-shrink: 0; width: 50px; height: 50px;
  background: none; border: none; cursor: pointer;
  color: var(--red); font-size: 2.875rem; line-height: 1;
  font-weight: 300; transition: opacity .2s; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.partner-arrow:hover { opacity: .65; }
.partner-carousel-viewport { flex: 1; overflow: hidden; }
.partner-track {
  display: flex; gap: 32px; align-items: center;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  padding: 20px 0;
}
.partner-slide {
  flex: 0 0 calc((100% - 96px) / 4); /* 4 visible, 3 gaps of 32px; 3 below 980px */
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.partner-slide img {
  max-height: 140px; max-width: min(360px, 100%); /* never wider than its slot */ width: auto; height: auto;
  object-fit: contain; display: block;
  /* full color, no grayscale — matches live site */
}
/* univention.png is a solid-red full-bleed badge (fills its whole canvas), unlike the
   other logos (a glyph + label on a mostly-empty canvas) — same max-height reads as
   much heavier/larger next to them, so it gets a smaller cap */
.partner-slide img[src$="univention.png"] { max-height: 100px; }

/* ─── Testimonials section (navy) ─── */
.testimonials-section { padding: 80px 0; }
.testimonials-list { display: flex; flex-direction: column; gap: 50px; max-width: 900px; margin: 0 auto; text-align: center; }
.testimonial-slide blockquote {
  font-size: 1.0625rem; font-style: italic; color: rgba(255,255,255,.9);
  line-height: 1.75; margin-bottom: 20px; quotes: "\201E" "\201C";
}
.testimonial-slide blockquote::before { content: open-quote; }
.testimonial-slide blockquote::after { content: close-quote; }
/* always inside .section-navy — the original --red already passes here (large
   luminance gap against navy); --red-a11y would actually be worse (3.89:1, still
   under 4.5) since it's darker, cutting the gap against the dark background */
.testimonial-slide cite { color: var(--red); font-weight: 600; font-style: normal; font-size: 0.9375rem; }

/* ─── Ansatz (white + swoosh) ─── */
#unseransatz { background-color: #fff; }
/* Row 1: 2 equal columns */
.ansatz-row-1 { padding: 27px 0; align-items: start; }
.ansatz-intro-col {}
.ansatz-label-col { display: flex; align-items: center; justify-content: flex-start; }
.ansatz-label { color: var(--navy2); position: relative; z-index: 1; }
/* Card rows: 2 cards per row */
.ansatz-row-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 40px 0; }
.ansatz-card h3 { color: var(--red); font-size: 1.6875rem; font-weight: 700; margin-bottom: 10px; }
.ansatz-card p { color: var(--grey); font-size: 0.875rem; font-weight: 500; }

/* ─── feature (navy) ─── */
/* same layout for ecoCube (#outofthebox), but white (.feature-light): sections alternate white / navy */
.feature-section { background: var(--navy); color: #fff; }
.feature-section .section-intro { color: rgba(255,255,255,.85); }
.feature-light { background: #fff; color: inherit; }
.feature-light .section-intro, .feature-light .feature-card p { color: var(--grey); }
/* the card headings are small text: --red is too light on white */
.feature-light .feature-card h3 { color: var(--red-a11y); }
/* Row 1: title row */
.feature-title-row { padding: 31.5px 0; }
/* Row 2: intro text (left) | image label (right) */
.feature-intro-row { padding: 35px 0; align-items: center; }
.feature-intro-right { display: flex; align-items: center; justify-content: flex-start; }
.feature-label { color: var(--red); }
/* Row 3: features (left, fluid) | image (right, fixed 510px matching live column width) */
.feature-layout { display: grid; grid-template-columns: 1fr 510px; gap: 30px; align-items: center; padding: 40px 0; }
.feature-right { text-align: center; }
/* feature image has navy background + red circle baked in; ecocube.png is transparent — display at live column width */
.feature-image-wrap { display: block; }
.feature-image-wrap img { width: 510px; max-width: 100%; display: block; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.feature-card h3 { color: var(--red); font-size: 1.125rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { color: rgba(255,255,255,.82); font-size: 0.875rem; }

/* ─── Karriere (white + swoosh) ─── */
#karriere { background-color: #fff; }
#karriere .section-title { color: var(--navy2); }
#karriere .section-intro { color: var(--grey); }
/* Row 1: intro (left 50%) | label (right 50%) */
.karriere-row-1 { padding: 34.5px 0; align-items: start; }
.karriere-label { color: var(--red); text-align: right; }
/* Row 2: two list columns */
.karriere-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 40px 0; }
.karriere-col h3 { color: var(--red); font-size: 1.375rem; font-weight: 700; margin-bottom: 16px; }
.karriere-col ul { list-style: none; }
.karriere-col li { padding: 0; margin: 0; display: flex; gap: 8px; align-items: flex-start; color: var(--grey); font-size: 0.875rem; font-weight: 500; }
.karriere-col li::before { content: '•'; color: var(--red); font-size: 1.25rem; line-height: 1.4; flex-shrink: 0; }
/* Row 3: full-width datenhighway subtitle */
.karriere-full-row { padding: 74px 0; }
.karriere-subtitle { color: var(--navy2); font-size: 1.5rem; font-weight: 700; }
/* Row 4: 5 equal columns — gap: 45px gives ~190px columns matching live width */
.process-steps-5col { display: grid; grid-template-columns: repeat(5, 1fr); gap: 45px; padding: 40px 0; }
/* Step cards: navy bg, white text */
.step { text-align: center; background: var(--navy2); color: #fff; padding: 20px 10px; border: 0; border-radius: 0; }
/* Large red step number (46px matches live) */
.step-number { font-size: 2.875rem; line-height: 1.2; font-weight: 700; color: var(--red); margin: 0 0 8px; display: block; }
.step h4 { color: #fff; font-size: 0.875rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,.9); font-size: 0.875rem; line-height: 1.6; }
.step p strong { color: #fff; font-weight: 700; }
/* Fetz: 5th column — light background, large bold text with top padding */
.step-fetz { background: var(--red); text-align: center; padding: 20px 10px; display: flex; align-items: center; justify-content: center; }
.step-fetz .lets-fetz { font-size: 1.375rem; line-height: 1.3; font-weight: 700; color: #fff; }
.step-fetz .lets-fetz .red { color: var(--navy2) !important; }

.jobs-list { max-width: 760px; margin: 0 auto 24px; }
.job-item {
  display: block; background: var(--navy); color: #fff; padding: 18px 26px;
  border-radius: 6px; margin-bottom: 14px; font-weight: 600; transition: .25s;
}
.job-item:hover { background: var(--red); color: var(--navy2); transform: translateX(6px); }
.initiativ { text-align: center; color: var(--grey); font-size: 0.875rem; max-width: 700px; margin: 0 auto 20px; }
/* a plain-color link inline in running text needs a non-color cue too (WCAG 1.4.1) */
.initiativ a { text-decoration: underline; }
.wir-suchen-section { background: var(--navy); }
.wir-suchen-section .karriere-subtitle { text-align: left; color: #fff; margin-bottom: 30px; }
.wir-suchen-section .initiativ { color: rgba(255,255,255,.8); text-align: center; }
.wir-suchen-section .job-item { background: rgba(255,255,255,.06); color: #fff; }
.wir-suchen-section .job-item:hover { background: var(--red); color: var(--navy2); }

/* ─── Kontakt ─── */
#kontakt { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; margin-top: 30px; }
.contact-grid > *, .services-grid > *, .pbr-grid > *, .ansatz-row-cards > *, .feature-grid > *,
.process-steps-5col > *, .karriere-columns > *, .leistungen-header-row > *, .ansatz-row-1 > *,
.feature-intro-row > *, .feature-layout > *, .karriere-row-1 > * {
  min-width: 0; /* grid columns otherwise never get narrower than their longest word or form field */
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  padding: 14px 16px; border: 1px solid #ddd; border-radius: 5px;
  font-family: inherit; font-size: 0.875rem;
  /* fill the column instead of the browser's built-in field width, which alone made
     the page wider than small phones */
  width: 100%; min-width: 0;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); }
.contact-form button { align-self: flex-start; }
/* honeypot — off-screen, not display:none (some bots skip hidden fields specifically) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form-status { font-size: 0.875rem; min-height: 1.2em; margin: -4px 0 0; }
.contact-form-status.success { color: #1a7f37; }
.contact-form-status.error { color: var(--red-a11y); }
.contact-form-privacy { font-size: 0.75rem; color: var(--grey); margin: 0; }
.contact-form-privacy a { color: inherit; text-decoration: underline; }
.contact-locations { display: flex; flex-direction: column; gap: 30px; }
.location h2 { color: var(--red); font-size: 1.375rem; margin-bottom: 6px; }
.location h3 { color: var(--navy2); font-size: 1rem; margin-bottom: 6px; }
.location p { color: var(--grey); font-size: 0.875rem; }

/* Self-hosted, zoomable OpenStreetMap (Leaflet + local tiles) — no third-party requests at runtime */
.contact-map { margin-top: 40px; }
.contact-map-caption { color: var(--navy2); font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.map-leaflet {
  width: 100%; max-width: 700px; height: 420px;
  border-radius: 6px; border: 1px solid #ddd; background: #eef1f5;
}
.map-marker-pin {
  width: 16px; height: 16px;
  background: var(--red); border: 2px solid #fff; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--navy2); color: #fff; }

/* ─── Klaro accessibility overrides ───
   klaro.css (vendored) reads --green1 for both the "Bestätigen" button background
   (white text on it) and its generic link color — but those need opposite
   corrections: the button needs a darker green (contrast against white text), while
   the "Einstellungen" link sits on the banner's dark (#333) background and needs a
   lighter one instead. One variable can't satisfy both, so --green1 covers the
   (more common) light-background/button case, and the link gets its own override. */
:root {
  --green1: #0f6b50;
}
.klaro .cookie-notice .cm-link,
.klaro .cookie-notice .cn-learn-more {
  color: #24cc9a; /* klaro's own --green2 fallback — already light enough for #333 */
  text-decoration: underline;
}
.leaflet-popup-content { font-family: 'Poppins', Helvetica, Arial, sans-serif; font-size: 0.8125rem; line-height: 1.5; }
.leaflet-popup-close-button { color: rgba(255,255,255,.7) !important; }
.map-attribution { font-size: 0.75rem; color: var(--grey); margin-top: 8px; }

@media (max-width: 40em) { .map-leaflet { height: 320px; } }
.map-attribution a { color: var(--grey); text-decoration: underline; }

/* ─── Footer ─── */
#main-footer { background: var(--navy); color: #fff; padding: 40px 0; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { height: 34px; width: auto; }
#main-footer p { font-size: 0.875rem; color: rgba(255,255,255,.7); }
.footer-credits { font-size: 0.75rem; margin-top: 6px; color: rgba(255,255,255,.5); }
#main-footer a { color: rgba(255,255,255,.8); }
#main-footer a:hover { color: var(--red); }

/* ─── Fade-in (enhancement only; visible by default for no-JS / screenshots) ─── */
.fade-in { opacity: 1; transform: none; }
.js-anim .fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js-anim .fade-in.visible { opacity: 1; transform: none; }

/* The visitor asked their system for less motion: no transitions or CSS animations.
   script.js does the rest (no autoplaying Lottie, no auto-advancing carousel). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Responsive ─── */
@media (max-width: 61.25em) {
  #main-nav { position: fixed; top: 111px; right: 0; width: 70%; max-width: 320px; height: calc(100vh - 111px); background: #fff; flex-direction: column; transform: translateX(100%); transition: .3s; box-shadow: -4px 0 20px rgba(0,0,0,.1); }
  #main-nav.active { transform: translateX(0); visibility: visible; }
  /* closed: off screen AND hidden, so its links can't be tabbed to or read out */
  #main-nav:not(.active) { visibility: hidden; transition: transform .3s, visibility 0s .3s; }
  #main-nav ul { flex-direction: column; padding: 30px; gap: 0; }
  #main-nav li { border-bottom: 1px solid #eee; }
  #main-nav a { display: block; padding: 14px 0; }
  /* 44x44 to tap (the icon itself stays 30x24); negative margin keeps the icon where it was */
  .hamburger { display: block; width: 44px; height: 44px; padding: 10px 7px; margin-right: -7px; box-sizing: border-box; }
  #hero {
    min-height: auto;
    text-align: center;
    /* not centered in the full height here, so it needs its own gap below the header */
    padding-top: calc(111px + 56px);
    padding-bottom: 64px;
  }
  .hero-inner {
    flex-direction: column;
    justify-content: center;
  }
  .hero-animations {
    display: none;
  }
  .hero-list {
    margin: 0 auto 34px;
  }
  .partner-slide { flex-basis: calc((100% - 64px) / 3); }
  .services-grid, .ansatz-row-cards, .feature-grid, .process-steps-5col, .pbr-grid { grid-template-columns: repeat(2, 1fr); }
  .karriere-columns, .contact-grid { grid-template-columns: 1fr; }
  .feature-layout { grid-template-columns: 1fr; gap: 40px; }
  #hero h1 { font-size: 2.375rem; }
}
@media (max-width: 47.9375em) {
  .services-grid, .ansatz-row-cards, .feature-grid, .process-steps-5col, .pbr-grid { grid-template-columns: 1fr; }
  /* title|label rows: side by side they need ~470px and made the whole page wider than
     a phone (tests/e2e.spec.js "mobile" checks this) */
  .leistungen-header-row, .ansatz-row-1, .feature-intro-row, .karriere-row-1 { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .leistungen-label, .ansatz-label, .feature-label, .karriere-label { font-size: 1.75rem; text-align: left; }
  .leistungen-header-right { justify-content: flex-start; }
  /* one card per row: the container already has side padding */
  .service-card { padding: 24px 0; }
  /* the red corner shapes are sized for desktop and covered the text here */
  .swoosh-tr, .swoosh-bl { background-size: 140px auto; }
  /* desktop row spacing left big empty gaps once everything is one column */
  .ansatz-row-cards { gap: 24px; padding: 12px 0; }
  .feature-layout { padding: 16px 0; }
  .karriere-columns { gap: 24px; padding: 20px 0; }
  /* iOS zooms the whole page into any form field with text under 16px */
  .contact-form input, .contact-form textarea { font-size: 1rem; }
  /* tap targets of at least 24px (WCAG 2.5.8) */
  .tb-item, #main-footer a { display: inline-flex; align-items: center; min-height: 24px; }
  #hero h1 { font-size: 2.125rem; }
}
@media (max-width: 40em) {
  .services-grid, .ansatz-row-cards, .feature-grid, .feature-layout, .pbr-grid, .process-steps-5col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* scales down on very narrow phones (280px: 24px) instead of hyphenating every word */
  #hero h1 { font-size: clamp(1.5rem, 8.5vw, 2rem); hyphens: manual; }
  #hero { padding-top: calc(111px + 40px); padding-bottom: 56px; }
  /* phone number and e-mail on one line each, even at 280px (the bar is 31px high) */
  .top-bar-inner { gap: 14px; padding: 0 8px; }
  .tb-item { white-space: nowrap; font-size: clamp(0.6875rem, 3.6vw, 0.84375rem); gap: 4px; }
  /* icon-only here — phone/email text already fills the 280px budget on their own;
     the label is still the accessible name via aria-label on the link. min-width
     keeps the tap target at 24px even though the icon itself is only 15px wide. */
  .tb-teamviewer .tb-label { display: none; }
  .tb-teamviewer { min-width: 24px; justify-content: center; }
  .partner-slide { flex-basis: calc((100% - 32px) / 2); }
  .section { padding: 60px 0; }
}
@media (max-width: 300px) {
  /* phone + e-mail alone already fill this width (the layout was tuned for exactly
     those two at 280px) — drop the third item rather than crowd or shrink further */
  .tb-teamviewer { display: none; }
}

/* ─── Forced colours (Windows high contrast) ───
   The browser replaces all colours and drops backgrounds and shadows. Everything that
   is drawn only with a background colour disappears, so draw it with system colours. */
@media (forced-colors: active) {
  .hamburger span { background: CanvasText; } /* the three lines of the menu button */
  #main-header, #top-bar { border-bottom: 1px solid CanvasText; }
  /* !important: klaro.css sets border: 0 on these with more specific selectors */
  .klaro .cookie-notice, .klaro .cookie-modal .cm-modal { border: 1px solid CanvasText !important; }
  .klaro .cm-btn { border: 1px solid ButtonText !important; }
  .job-item { border: 1px solid CanvasText; }
}

/* ─── Print (mainly the legal pages and job postings) ─── */
@media print {
  @page { margin: 2cm; }
  /* browsers don't print background colours: white text would be invisible */
  body, body * { color: #000 !important; background: transparent !important; box-shadow: none !important; transition: none !important; }
  /* screen-only parts: fixed bars would repeat on every page */
  #top-bar, #main-nav, .hamburger, #klaro, #main-footer, .hero-animations, .hero-scroll-indicator,
  .partner-arrow, .contact-form, .contact-map, lottie-player { display: none !important; }
  #main-header { position: static; height: auto; padding: 0 0 1cm; }
  .section, #hero { padding: 0 0 1cm !important; min-height: 0 !important; } /* legal pages set padding-top inline */
  .swoosh-tr, .swoosh-bl { background-image: none !important; }
  .fade-in { opacity: 1 !important; transform: none !important; }
  /* link targets on paper */
  #page-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  h1, h2, h3 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  .btn { border: 1px solid #000; }
}
