@import url("../../assets/fonts/fonts.css");

/* ==========================================================
   Intercomp – rebuilt theme
   Colours, type and spacing taken from the capture measurements.
   ========================================================== */
:root {
  --blue: #1a71c7;
  --blue-header: #1a79cd;
  --blue-link: #1e88e5;
  --navy: #101b86;
  --green: #019d01;
  --green-dark: #258d14;
  --green-heading: #39873c;
  --green-mid: #4caf50;
  --green-light: #e6fde7;
  --green-bright: #6bf070;
  --ink: #151515;
  --paper: #ffffff;
  --mist: #f7f7f7;
  --grey: #575757;
  --grey-mid: #a0a0a0;
  --cookie-icon: #1b365d;
  --font-body: "SourceSansPro", "Source Sans 3", "Segoe UI", Arial, Helvetica, sans-serif;
  --font-display: "PlayfairDisplay", "Playfair Display", Georgia, "Times New Roman", serif;
  --radius-pill: 100px;
  --radius: 8px;
  --header-h: 130px;
  --wrap: 1040px;
  --shadow-soft: 0 10px 30px rgba(16, 27, 134, 0.08);
  --shadow-header: 0 2px 18px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body > main, body > #main { flex: 1 0 auto; }
body > .site-footer { margin-top: auto; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }
p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 20px; padding-left: 22px; }
li { margin: 0 0 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-links a {
  position: absolute; left: 16px; top: -60px; z-index: 3000;
  background: #4caf50; color: #fff; padding: 10px 16px; border-radius: var(--radius);
  box-shadow: var(--shadow-header); transition: top .15s ease;
}
.skip-links a:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: var(--paper);
  z-index: 1000;
  box-shadow: var(--shadow-header);
  padding: 0;
}
.header-inner {
  height: 100%;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px; flex: 0 0 auto;
  margin-left: 24px;
}
.brand-mark { width: auto; height: 98px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: -0.5px;
  color: #1459a8;
  line-height: 1.05;
}
.brand-sub {
  margin-top: 5px;
  font-size: 14px;
  letter-spacing: .2px;
  color: #4f9b4d;
}
.main-nav {
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  width: 312px; flex: 0 0 312px; padding: 0;
  margin-left: auto;
  margin-right: 24px;
}
.nav-link,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  max-width: 300px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-toggle:hover { color: #0d5a9e; }
.nav-link.is-active, .nav-toggle.is-active { background: var(--blue-header); color: #fff; }
.nav-link.is-active:hover, .nav-toggle.is-active:hover { color: #fff; }
.nav-caret { width: 10px; height: 10px; flex: 0 0 auto; }
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 238px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
  padding: 8px;
  display: none;
  z-index: 30;
}
.nav-item.open > .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
}
.nav-dropdown a:hover { background: #eef5fc; color: #0d5a9e; }
.more-wrap { position: relative; }
.more-btn {
  width: 38px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: var(--radius-pill);
  cursor: pointer; color: var(--ink);
}
.more-btn:hover { background: #f0f4f8; }
.more-dots { display: flex; gap: 3px; }
.more-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.more-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 230px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0,0,0,.16); padding: 8px; display: none; z-index: 30;
}
.more-wrap.open .more-menu { display: block; }
.more-menu a { display: block; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.more-menu a:hover { background: #eef5fc; }
.login-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 13px; border-radius: var(--radius-pill);
  border: 1px solid #d8e2ec; font-size: 14px; color: #0d5a9e; background: #fff;
}
.login-link:hover { background: #eef5fc; }
.login-link svg { width: 15px; height: 15px; }
.burger {
  display: none;
  width: 44px; height: 40px; padding: 0; border: 0; background: transparent;
  cursor: pointer; color: var(--ink);
}
.burger span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px auto; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 86px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 999;
  padding: 12px 24px 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a, .mobile-menu .mobile-group-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 15px 4px; border-bottom: 1px solid #eef1f4;
  font-size: 17px; color: var(--ink); cursor: pointer;
}
.mobile-sub { display: none; padding-left: 14px; }
.mobile-sub.open { display: block; }
.mobile-sub a { font-size: 15px; color: #3d4a55; }
.mobile-menu .mobile-login {
  margin-top: 22px; justify-content: center; background: var(--blue);
  color: #fff; border-radius: var(--radius-pill); border: 0;
}

/* ---------------------------------------------------------
   Hero band (image strip with product navigation)
   --------------------------------------------------------- */
.hero-band {
  position: relative;
  height: 258px;
  overflow: hidden;
  margin-top: 0;
  background: #2f5d84 url("../img/hero-plant.svg") center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.hero-inner {
  width: 100%; max-width: 960px; margin: 0 auto;
  display: flex; justify-content: center; position: relative; z-index: 2;
}
.hero-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 33, 58, .12), rgba(10, 33, 58, .2));
  pointer-events: none;
}
.hero-nav {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  width: 300px;
  flex: 0 0 300px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  font-size: 16px;
}
.hero-nav a, .hero-nav button {
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 16px;
  padding: 4px 10px;
  max-width: 300px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-nav a:hover, .hero-nav button:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hero-nav .nav-toggle:hover,
.hero-nav .nav-toggle:focus-visible,
.hero-nav .nav-toggle[aria-expanded="true"],
.hero-nav .nav-item.open > .nav-toggle {
  color: #fff;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero-nav .nav-item { position: relative; }
.hero-nav .nav-dropdown {
  color: #fff;
  background: var(--blue, #1a71c7);
  border-color: rgba(255, 255, 255, .22);
}
.hero-nav .nav-dropdown a { color: #fff; font-size: 14px; }
.hero-nav .nav-dropdown a:hover,
.hero-nav .nav-dropdown a:focus-visible { background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }
.hero-nav .nav-caret { filter: drop-shadow(0 0 1px rgba(0,0,0,.3)); }

.page-hero {
  position: relative;
  min-height: 258px;
  padding: 50px 0 40px;
  background: #315a7e center / cover no-repeat;
  color: #fff;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9, 34, 58, .55), rgba(9, 34, 58, .12));
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero .hero-title { font-size: 40px; line-height: 1.35; max-width: 620px; }
.page-hero .hero-copy { margin-top: 22px; max-width: 720px; font-size: 16px; color: #f2f6fa; }
.page-hero--unternehmen { background-image: url("../img/planning-desk.svg"); min-height: 190px; padding: 24px 0 22px; }
.page-hero--kontakt { background-image: url("../img/contact-phone.svg"); min-height: 144px; padding: 58px 0 0; }
.page-hero--kontakt .hero-title { font-family: var(--font-display); font-size: 33px; max-width: 470px; }

/* Blue offer section */
.offer {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 51px 0 52px;
}
.offer .hero-title { font-family: var(--font-display); font-size: 33px; line-height: 64px; color: #e6fde7; max-width: 474px; margin-left: auto; margin-right: auto; }
.offer .offer-intro {
  max-width: 800px; margin: 40px auto 0;
  color: var(--mist); font-size: 16px; line-height: 20px;
}
.offer-cards {
  display: flex; justify-content: center; gap: 157px;
  margin-top: 64px; text-align: left; position: relative; left: 9px;
}
.offer-card { width: 248px; }
.offer-card h3, .offer-card p, .offer-card .btn { max-width: 231px; }
.offer-card .btn { padding-left: 8px; padding-right: 8px; }
.offer-card .round-img {
  width: 248px; height: 248px; border-radius: 50%; object-fit: cover;
  background: #2c4d6d;
}
.offer-card h3 {
  margin: 12px 0 0; height: 74px;
  font-family: var(--font-display); font-size: 28px; line-height: 1.32; color: #e6fde7;
}
.offer-card p { color: var(--mist); font-size: 16px; line-height: 20px; margin: 32px 0 0; height: 60px; }
.offer-card .btn { margin-top: 44px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 8px 18px; border: 0; border-radius: 8px;
  font-size: 16px; line-height: 1.2; cursor: pointer; text-align: center;
  transition: background-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #eef3f7; }
.btn-blue { background: var(--blue-link); color: #fff; }
.btn-blue:hover { background: #176fbe; }
.btn-grey { background: var(--grey); color: #fff; border-radius: 6px; }
.btn-grey:hover { background: #3f3f3f; }
.btn-outline {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
}
.btn-outline:hover { background: rgba(0,0,0,.05); }

/* Full-bleed image feature */
.feature-band {
  position: relative;
  min-height: 520px;
  background: #3d6c78 url("../img/planning-desk.svg") center / cover no-repeat;
  color: #fff;
}
.feature-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21, 61, 78, .62) 0%, rgba(21, 61, 78, .42) 48%, rgba(21, 61, 78, .15) 100%);
}
.feature-band .feature-inner {
  position: relative; z-index: 2;
  max-width: 1040px; margin: 0 auto; padding: 85px 40px 70px;
}
.feature-band h1 {
  font-family: var(--font-display); font-size: 40px; line-height: 64px;
  color: var(--green-bright); max-width: 474px; margin-left: 13px;
}
.feature-band .feature-kicker, .feature-band p, .feature-band .btn { margin-left: 50px; }
.feature-band .feature-kicker {
  margin: 40px 0 0; color: #fff; font-size: 23px; line-height: 20px;
}
.feature-band p { max-width: 555px; color: #d5d5d5; font-size: 16px; margin: 10px 0 22px; }
.feature-band--referenzen { background-image: url("../img/planning-desk.svg"); }

/* Split content sections */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 65px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
  padding: 31px 0 48px 50px;
}
.split.reverse { grid-template-columns: 300px minmax(0, 1fr); padding-left: 43px; }
.split.reverse .split-copy { margin-left: 43px; width: 555px; max-width: none; }
.split h1, .split h2 {
  font-family: var(--font-display); font-size: 40px; line-height: 1.32; color: var(--green-heading);
}
.split h1 + p, .split h2 + p { margin-top: 40px; }
.split p { font-size: 16px; line-height: 1.55; }
.split .btn { margin-top: 8px; }
.split:not(.reverse) .split-media { margin-left: 38px; }
.split-media img, .split-media svg {
  width: 100%; height: 300px; object-fit: cover; border-radius: 0;
}
.split-media.is-lead { margin-top: 0; }
.split-copy { min-width: 0; }

/* Company page intro (text 474 px + image 352 px, as measured) */
.company-intro {
  display: grid;
  grid-template-columns: 474px 352px;
  gap: 93px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 0 40px;
}
.company-intro h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 28px; line-height: 1.45; color: #090053;
  max-width: 960px; margin: 0 0 26px;
}
.company-intro img { width: 352px; height: 352px; object-fit: cover; }
.company-intro p { font-size: 18px; line-height: 1.5; margin: 0 0 20px; }
.service-blue-copy { font-size: 17px; line-height: 1.6; }

/* green call to action */
.cta-band {
  background: var(--green-mid);
  color: #fff;
  padding: 100px 0;
}
.cta-band .container { max-width: 960px; padding-left: 50px; }
.cta-band h1 { font-family: var(--font-display); font-size: 48px; line-height: 1.4; max-width: 580px; }
.cta-band .btn { margin-top: 46px; }

.page-hero--unternehmen .hero-title { color: #4caf50; max-width: 555px; }

/* Blue services block (company page) */
.service-blue {
  background: var(--navy);
  color: #a7a7a7;
  padding: 80px 0 90px;
}
.service-blue-inner { max-width: 1040px; margin: 0 auto; padding: 0 42px; }
.service-blue h2 {
  font-family: var(--font-display); font-size: 32px; line-height: 1.5;
  color: #52bc57; max-width: 555px; margin: 0 0 50px 24px;
}
.service-blue-grid {
  display: grid; grid-template-columns: 456px minmax(0, 1fr);
  gap: 71px; align-items: start;
}
.service-blue-media img { width: 456px; height: 456px; object-fit: cover; }
.service-blue-copy { font-size: 16px; line-height: 1.6; }
.service-blue-copy p { margin: 0 0 16px; color: #a7a7a7; font-size: 17px; }
.service-blue-copy .portfolio-label { color: #c6c6c6; margin-bottom: 6px; }
.service-blue-copy ul { margin: 0 0 24px; padding-left: 22px; color: #a7a7a7; }
.service-blue-copy h3 {
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  color: #c6c6c6; margin: 24px 0 8px;
}
.service-blue-copy h3:first-of-type { margin-top: 0; }
.service-blue-copy a { color: #e6fde7; text-decoration: underline; }

/* Video consent reveal */
#ref-video { border-radius: 4px; overflow: hidden; }

/* ---------------------------------------------------------
   History page
   --------------------------------------------------------- */
.history-top { padding: 38px 0 20px; }
.history-top .container { max-width: 960px; padding: 0; }
.history-kicker {
  font-family: var(--font-display); font-size: 28px; line-height: 1.2; color: var(--green-heading);
}
.history-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 40px; line-height: 1.28; color: var(--navy);
  max-width: 760px;
}
.history-grid {
  display: grid;
  grid-template-columns: 312px minmax(0, 1fr);
  gap: 93px;
  max-width: 960px;
  margin: 0 auto;
  padding: 44px 0 0 81px;
  align-items: start;
}
.history-col h3 {
  font-family: var(--font-display); font-size: 28px; color: var(--green-heading);
  margin-bottom: 26px;
}
.history-col h4 {
  font-family: var(--font-display); font-size: 23px; color: var(--green-heading);
  line-height: 1.45; margin-bottom: 26px; max-width: 400px;
}
.history-col p { font-size: 16px; line-height: 1.55; }
.history-col .history-img { width: 100%; height: auto; margin: 0 0 34px; }
.history-col .history-book { width: 231px; height: 231px; object-fit: cover; margin: 0 auto 34px; }
.history-quote-band {
  margin-top: 70px;
  position: relative;
  background: #1a71c7 url("../img/company-building.svg") center / cover no-repeat;
  padding: 80px 24px 90px;
}
.history-quote-band::before { content: ""; position: absolute; inset: 0; background: rgba(20, 46, 58, .12); }
.quote-card {
  position: relative; z-index: 2;
  background: #fff; max-width: 700px; margin: 0 auto;
  padding: 44px 50px; box-shadow: var(--shadow-soft);
}
.quote-card blockquote {
  margin: 0; font-family: var(--font-display); font-size: 33px;
  line-height: 1.45; color: var(--green-heading);
}
.quote-card cite { display: block; margin-top: 28px; font-style: normal; font-weight: 700; font-size: 18px; }
.quote-portrait {
  position: relative; z-index: 3;
  width: 260px; height: 260px; margin: 36px auto 0;
  border-radius: 50%; border: 8px solid #fff; object-fit: cover; background: #ddd;
}

/* ---------------------------------------------------------
   References page
   --------------------------------------------------------- */
.ref-hero {
  background: var(--blue);
  color: #fff;
  padding: 78px 0 76px;
}
.ref-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 378px;
  gap: 60px; align-items: start;
  max-width: 960px; margin: 0 auto; padding: 0;
}
.ref-hero h1 { font-family: var(--font-display); font-size: 40px; line-height: 1.35; color: #e6fde7; max-width: 400px; }
.ref-hero p { margin-top: 26px; max-width: 393px; color: var(--mist); font-size: 16px; }
.ref-video { width: 100%; aspect-ratio: 16 / 9; background: #07131f; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; overflow: hidden; }
.ref-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.consent-card {
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 6px; padding: 20px 22px; color: var(--navy);
  background: #fff;
}
.consent-card h3 { font-size: 24px; font-weight: 400; line-height: 1.4; margin: 0 0 14px; color: #1b365d; }
.consent-card .consent-title { font-size: 24px; line-height: 1.4; margin: 0 0 14px; color: #1b365d; }
.consent-card p { color: #1b365d; font-size: 16px; margin: 0 0 18px; }
.consent-card .btn { background: #fff; color: #575757; border: 1px solid #b9c4cc; border-radius: 4px; font-size: 18px; }
.ref-story {
  display: grid; grid-template-columns: 331px minmax(0, 1fr);
  gap: 74px; align-items: start;
  max-width: 960px; margin: 0 auto; padding: 74px 0;
}
.ref-story img { width: 100%; height: 248px; object-fit: cover; }
.ref-story h4 { font-family: var(--font-display); font-size: 23px; line-height: 1.45; color: var(--green-heading); margin-bottom: 20px; }
.ref-story p { font-size: 16px; line-height: 1.55; }
.ref-story .btn { margin-top: 18px; }
.gallery-section { background: var(--blue); color: #fff; padding: 58px 0 80px; }
.gallery-head { max-width: 960px; margin: 0 auto; padding: 0; }
.gallery-head h1 { font-family: var(--font-display); font-size: 40px; color: #e6fde7; }
.gallery-head p { margin-top: 22px; max-width: 900px; color: var(--mist); font-size: 16px; }
.gallery-head .gallery-hint { margin-top: 16px; color: #fff; font-size: 20px; }
.gallery-list {
  max-width: 596px; margin: 28px 0 0 max(0px, calc((100% - 960px) / 2)); padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.gallery-item { display: block; position: relative; line-height: 0; background: #a0a0a0; color: #575757; }
.gallery-item img { width: 100%; height: auto; }
.gallery-item:hover { outline: 3px solid var(--green-bright); outline-offset: 2px; }

/* ---------------------------------------------------------
   Contact page
   --------------------------------------------------------- */
.contact-main { position: relative; z-index: 3; margin-top: 0; padding: 69px 0 30px; }
.contact-grid {
  display: grid; grid-template-columns: 377px 393px;
  gap: 101px; align-items: start;
  max-width: 960px; margin: 0 auto; padding: 0 8px;
}
.contact-form { display: flex; flex-direction: column; }
.contact-form label { display: block; margin: 0 0 8px; font-size: 16px; }
.contact-form .field { margin-bottom: 24px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; border: 1px solid var(--ink); background: #fff;
  border-radius: 0; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 10px 12px; outline: none;
}
.contact-form input[type="text"], .contact-form input[type="email"] { height: 48px; }
.contact-form textarea { height: 228px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { box-shadow: 0 0 0 2px rgba(30,136,229,.35); }
.consent-row { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; }
.consent-row input {
  appearance: none; width: 26px; height: 26px; flex: 0 0 auto; margin: 0;
  border: 2px solid var(--ink); border-radius: 4px; background: #fff; cursor: pointer;
}
.consent-row input:checked { background: var(--green); border-color: var(--green); }
.consent-row input:checked::after {
  content: ""; display: block; width: 7px; height: 13px; margin: 2px auto 0;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.consent-row p { font-size: 16px; line-height: 1.35; text-align: center; margin: 0; }
.contact-form .form-note { font-size: 16px; margin: 0 0 18px; }
.contact-form .btn { width: 100%; background: var(--blue-link); border-radius: 0; min-height: 40px; }
.contact-info { padding-top: 44px; }
.contact-info p { font-size: 16px; line-height: 1.5; margin: 0 0 2px; }
.contact-info a { color: var(--green-heading); }
.contact-info .contact-mark { width: 300px; height: 300px; margin: 120px 0 0 81px; }
.map-consent {
  max-width: 960px; margin: 52px auto 0; padding: 0;
}
.map-consent-inner {
  background: var(--grey-mid); padding: 44px;
}
.map-card {
  background: #fff; border-radius: 16px; max-width: 832px; margin: 0 auto;
  padding: 42px 60px 50px; text-align: center;
}
.map-card .info-dot {
  width: 32px; height: 32px; border-radius: 50%; background: #c9c9c9; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: Georgia, serif; margin-bottom: 18px;
}
.map-card h3 { font-size: 24px; color: #1b365d; font-weight: 400; margin: 0 0 18px; }
.map-card p { font-size: 16px; color: #1b365d; margin: 0 auto 22px; max-width: 640px; }
.map-card .btn { background: #fff; color: var(--grey); border: 1px solid #b9c4cc; border-radius: 4px; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 0;
  min-height: 143px;
}
.footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 143px;
}
.footer-copy { display: none; font-size: 13px; margin: 0; }
.eu-badge {
  width: 192px; height: 79px; background: #fff; display: flex; align-items: center; gap: 8px;
  padding: 8px; flex: 0 0 auto;
}
.eu-badge svg { width: 100%; height: 100%; }
.footer-nav { display: flex; align-items: center; justify-content: center; gap: 40px; font-size: 16px; margin-left: auto; margin-right: auto; width: 100%; max-width: 300px; }
.footer-nav a { color: #fff; max-width: 300px; padding: 10px; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------
   Cookie consent
   --------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400;
  background: #fff; box-shadow: 0 -3px 8px -6px rgba(0, 0, 0, .63);
  padding: 16px 0;
  color: var(--cookie-icon);
}
.cookie-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 15px 0 120px;
  display: flex; align-items: center; gap: 14px;
}
.cookie-icon { width: 26px; height: 26px; flex: 0 0 auto; color: var(--cookie-icon); }
.cookie-copy { width: 780px; max-width: 62%; font-size: 16px; line-height: 1.45; }
.cookie-copy p { margin: 0 0 4px; }
.cookie-copy a { color: #095bb1; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 16px; margin-left: auto; }
.cookie-actions .btn { min-height: 36px; padding: 7px 14px; font-size: 16px; border-radius: 4px; }
.cookie-lang { margin-left: 26px; display: flex; align-items: center; gap: 8px; font-size: 24px; color: var(--ink); }
.cookie-lang .flag { width: 24px; height: 18px; }
.cookie-hidden { display: none !important; }

/* Sprachwahl */
.language-widget { position: fixed; right: 8px; top: 8px; bottom: auto; z-index: 2147483647; font-family: Arial, Helvetica, sans-serif; }
/* Google Translate blendet oben eine eigene Leiste ein, die die Sprachwahl
   überdecken würde. Die eigene Sprachwahl ersetzt diese Leiste. */
.goog-te-banner-frame, .goog-te-banner-frame.skiptranslate,
iframe[id^="goog-te-banner"], iframe.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
body { top: 0 !important; margin-top: 0 !important; }
.language-toggle { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(16, 27, 134, .14); border-radius: 4px; background: rgba(255, 255, 255, .94); color: #101b86; padding: 6px 9px; font-size: 13px; cursor: pointer; box-shadow: 0 4px 14px rgba(10, 30, 50, .16); }
.language-toggle:hover { border-color: #019d01; }
.language-name { line-height: 1; }
.language-caret { color: #666; font-size: 8px; line-height: 1; }
.language-overlay { position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .8); }
.language-overlay[hidden] { display: none; }
.language-modal { width: min(380px, calc(100vw - 32px)); max-height: 80vh; overflow: auto; padding: 18px 20px; border-radius: 6px; background: #fff; color: #26333d; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.language-title { margin: 0 0 12px; color: #101b86; font-size: 16px; font-weight: 700; }
.language-list { display: grid; gap: 2px; }
.language-option { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; border-bottom: 1px solid #e7e7e7; border-radius: 0; background: transparent; color: #26333d; padding: 10px 4px; font-size: 14px; text-align: left; cursor: pointer; }
.language-option:hover, .language-option.active { background: #eef9ee; color: #101b86; font-weight: 700; }
.language-code { margin-left: auto; color: #6b7b87; font-size: 11px; font-weight: 700; }
.lang-flag { display: inline-block; width: 24px; height: 18px; border-radius: 1px; border: 1px solid rgba(0, 0, 0, .12); flex: 0 0 24px; }
.lang-de { background: linear-gradient(#111 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%); }
.lang-fr { background: linear-gradient(90deg, #002395 0 33.33%, #fff 33.33% 66.66%, #ed2939 66.66% 100%); }
.lang-es { background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%); }
.lang-pl { background: linear-gradient(#fff 0 50%, #dc143c 50% 100%); }
.lang-en { background: #012169 url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNDgwIj48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGZpbGwtb3BhY2l0eT0iLjY3IiBkPSJNLTg1LjMzMyAwaDY4Mi42N3Y1MTJoLTY4Mi42N3oiLz48L2NsaXBQYXRoPjwvZGVmcz48ZyBjbGlwLXBhdGg9InVybCgjYSkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDgwKSBzY2FsZSguOTQpIj48ZyBzdHJva2Utd2lkdGg9IjFwdCI+PHBhdGggZmlsbD0iIzAwNiIgZD0iTS0yNTYgMEg3NjguMDJ2NTEyLjAxSC0yNTZ6Ii8+PHBhdGggZD0iTS0yNTYgMHY1Ny4yNDRsOTA5LjUzNSA0NTQuNzY4SDc2OC4wMlY0NTQuNzdMLTE0MS41MTUgMEgtMjU2ek03NjguMDIgMHY1Ny4yNDNMLTE0MS41MTUgNTEyLjAxSC0yNTZ2LTU3LjI0M0w2NTMuNTM1IDBINzY4LjAyeiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xNzAuNjc1IDB2NTEyLjAxaDE3MC42N1YwaC0xNzAuNjd6TS0yNTYgMTcwLjY3djE3MC42N0g3NjguMDJWMTcwLjY3SC0yNTZ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTS0yNTYgMjA0LjgwNHYxMDIuNDAySDc2OC4wMlYyMDQuODA0SC0yNTZ6TTIwNC44MSAwdjUxMi4wMWgxMDIuNFYwaC0xMDIuNHpNLTI1NiA1MTIuMDFMODUuMzQgMzQxLjM0aDc2LjMyNGwtMzQxLjM0IDE3MC42N0gtMjU2ek0tMjU2IDBMODUuMzQgMTcwLjY3SDkuMDE2TC0yNTYgMzguMTY0VjB6bTYwNi4zNTYgMTcwLjY3TDY5MS42OTYgMGg3Ni4zMjRMNDI2LjY4IDE3MC42N2gtNzYuMzI0ek03NjguMDIgNTEyLjAxTDQyNi42OCAzNDEuMzRoNzYuMzI0TDc2OC4wMiA0NzMuODQ4djM4LjE2MnoiIGZpbGw9IiNjMDAiLz48L2c+PC9nPjwvc3ZnPg==") center/cover no-repeat; }
.language-note { margin: 12px 0 0; color: #6b7b87; font-size: 10px; line-height: 1.45; }
.language-note a { color: #019d01; text-decoration: underline; }
.google-translate-hidden { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 560px) { .language-widget { right: 6px; top: 6px; bottom: auto; } }

/* ---------------------------------------------------------
   Login + portal
   --------------------------------------------------------- */
.auth-page { padding: 50px 0 80px; min-height: 100vh; background: linear-gradient(180deg, #f4f8fb, #fff 60%); }
.auth-wrap { max-width: 960px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.auth-copy h1 { font-family: var(--font-display); font-size: 40px; color: var(--navy); line-height: 1.3; }
.auth-copy p { margin-top: 20px; max-width: 440px; }
.auth-benefits { list-style: none; padding: 0; margin-top: 30px; }
.auth-benefits li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.auth-benefits svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--green); margin-top: 3px; }
.auth-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow-soft); padding: 34px; border: 1px solid #e7eef4; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 26px; }
.auth-tab { flex: 1; padding: 10px; border: 1px solid #d8e2ec; background: #fff; border-radius: 8px; cursor: pointer; font-size: 15px; }
.auth-tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; margin-bottom: 7px; font-weight: 600; }
.field input, .field select {
  width: 100%; height: 44px; border: 1px solid #b9c9d6; border-radius: 6px;
  padding: 8px 12px; font-size: 15px; font-family: var(--font-body); background: #fff;
}
.field input:focus { outline: 2px solid rgba(26,113,199,.35); border-color: var(--blue); }
.field input[type="checkbox"], .field input[type="radio"] {
  width: 16px; height: 16px; min-width: 16px; flex: 0 0 16px;
  padding: 0; margin: 0; accent-color: var(--green, #2f7d3a);
}
.backup-check input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px; flex: 0 0 16px;
  padding: 0; margin: 0; accent-color: var(--green, #2f7d3a);
}
.field label.backup-check { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.field .hint { font-size: 12px; color: #5f6f7b; margin-top: 5px; }
.auth-card .btn { width: 100%; border-radius: 8px; min-height: 44px; }
.auth-note { font-size: 12px; color: #5f6f7b; margin-top: 14px; line-height: 1.5; }
.form-message { border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 16px; display: none; }
.form-message.show { display: block; }
.form-message.error { background: #fdecec; color: #9b1c1c; border: 1px solid #f3c6c6; }
.form-message.ok { background: #e9f7ec; color: #1d6b2e; border: 1px solid #bfe5c7; }

.portal-page { padding: 38px 0 70px; background: #f5f8fb; min-height: 100vh; }
.portal-wrap { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.portal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.portal-head h1 { font-family: var(--font-display); font-size: 40px; color: var(--navy); }
.portal-head p { color: #4d5d6a; margin-top: 6px; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.panel { background: #fff; border: 1px solid #e3ebf2; border-radius: 12px; box-shadow: 0 6px 22px rgba(16,27,134,.05); padding: 24px; }
.panel h2 { font-family: var(--font-body); font-size: 18px; font-weight: 700; margin: 0 0 6px; color: #12202b; }
.panel .panel-sub { color: #5f6f7b; font-size: 13px; margin: 0 0 18px; }
.dropzone {
  border: 2px dashed #a9c4db; border-radius: 10px; padding: 30px 20px; text-align: center;
  background: #f8fbfe; cursor: pointer; transition: .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--blue); background: #eef7ff; }
.dropzone svg { width: 38px; height: 38px; margin: 0 auto 10px; color: var(--blue); }
.dropzone strong { display: block; font-size: 16px; }
.dropzone span { font-size: 13px; color: #5f6f7b; }
.dropzone input { display: none; }
.upload-selection { margin-top: 16px; display: none; }
.upload-selection.show { display: block; }
.file-meta { font-size: 13px; color: #33434f; word-break: break-word; }
.progress { height: 10px; border-radius: 99px; background: #e4edf4; overflow: hidden; margin: 12px 0 8px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--green); transition: width .15s; }
.upload-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.upload-actions .btn { min-height: 38px; font-size: 14px; }
.security-note { font-size: 12px; color: #5f6f7b; margin-top: 16px; line-height: 1.5; }
.quota { margin-top: 18px; font-size: 12px; color: #5f6f7b; }
.quota-bar { height: 8px; border-radius: 99px; background: #e4edf4; overflow: hidden; margin-top: 6px; }
.quota-bar > span { display: block; height: 100%; width: 0; background: var(--blue); }
.files-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.files-table th { text-align: left; color: #60717e; font-weight: 600; padding: 8px 6px; border-bottom: 1px solid #e6edf3; }
.files-table td { padding: 10px 6px; border-bottom: 1px solid #eff3f7; vertical-align: top; }
.files-table tr:last-child td { border-bottom: 0; }
.file-name { font-weight: 600; color: #12202b; word-break: break-word; }
.file-sub { color: #6b7b88; font-size: 11px; margin-top: 2px; word-break: break-all; }
.file-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn { border: 1px solid #d8e2ec; background: #fff; border-radius: 6px; padding: 4px 8px; font-size: 12px; cursor: pointer; }
.icon-btn:hover { background: #eef5fc; }
.icon-btn.danger { color: #a32222; border-color: #eccaca; }
.empty-state { text-align: center; color: #6b7b88; padding: 26px 10px; font-size: 13px; }
.log-list { list-style: none; padding: 0; margin: 0; font-size: 12px; max-height: 340px; overflow: auto; }
.log-list li { padding: 8px 0; border-bottom: 1px solid #eff3f7; display: flex; gap: 8px; }
.log-list li:last-child { border-bottom: 0; }
.log-time { color: #8a99a5; white-space: nowrap; }
.notify-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; margin-bottom: 12px; }
.notify-row input { margin-top: 3px; }
.notify-outbox { font-size: 12px; color: #33434f; background: #f6f9fb; border: 1px solid #e4edf4; border-radius: 8px; padding: 10px; margin-top: 10px; word-break: break-word; }
.portal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.files-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.files-head-actions .btn { white-space: nowrap; }
.badge { display: inline-block; border-radius: 99px; padding: 2px 8px; font-size: 11px; background: #e9f7ec; color: #1d6b2e; }
.badge.warn { background: #fff4e5; color: #8a4b00; }
.badge.bad { background: #fdecec; color: #9b1c1c; }
.session-bar { display: flex; gap: 14px; align-items: center; font-size: 12px; color: #5f6f7b; margin-top: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------
   Reveal animation – content stays visible (no blank captures)
   --------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .burger { display: block; margin-right: 28px; }
  .site-header { height: 96px; }
  .brand { margin-left: 28px; }
  .brand-mark { width: auto; height: 62px; }
  .brand-name { font-size: 33px; }
  .brand-sub { font-size: 12px; }
  .mobile-menu { top: 96px; }
}

@media (max-width: 1080px) {
  .offer-cards { gap: 70px; }
  .feature-band .feature-inner, .split, .history-grid, .contact-grid, .ref-hero-grid, .ref-story, .gallery-head, .map-consent { padding-left: 40px; padding-right: 40px; }
  .history-top .container { padding: 0 40px; }
}

@media (max-width: 767px) {
  body { font-size: 12px; }
  :root { --header-h: 86px; }
  .header-inner { padding: 0 24px; }
  .site-header { height: 86px; }
  .brand-mark { width: auto; height: 56px; }
  .brand-name { font-size: 27px; }
  .brand-sub { font-size: 10px; }
  .mobile-menu { top: 86px; }
  .hero-band { height: 259px; }
  .hero-nav { margin-top: 30px; gap: 22px; font-size: 13px; }
  .hero-nav a, .hero-nav button { font-size: 13px; }
  .offer { padding: 32px 0 38px; }
  .offer .hero-title { font-size: 25px; line-height: 34px; }
  .offer .offer-intro { font-size: 12px; line-height: 16px; max-width: 560px; margin-top: 20px; }
  .offer-cards { gap: 60px; margin-top: 32px; }
  .offer-card { width: 220px; }
  .offer-card .round-img { width: 220px; height: 220px; }
  .offer-card h3 { font-size: 21px; height: auto; min-height: 0; line-height: 1.3; }
  .offer-card p { font-size: 12px; line-height: 16px; height: auto; min-height: 0; margin-top: 12px; }
  .btn { font-size: 13px; min-height: 34px; padding: 7px 14px; }
  .feature-band { min-height: 330px; }
  .feature-band .feature-inner { padding: 50px 24px 40px; }
  .feature-band h1 { font-size: 33px; }
  .feature-band .feature-kicker, .feature-band p { font-size: 12px; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; padding: 44px 24px; }
  .split h1, .split h2 { font-size: 31px; }
  .split { padding: 40px 24px; }
  .split p { font-size: 12px; }
  .split:not(.reverse) .split-media { margin-left: 38px; }
  .split-media img, .split-media svg { width: 100%; height: auto; max-height: 420px; }
  .split.reverse .split-media { order: 2; }
  .cta-band { padding: 62px 0; }
  .cta-band h1 { font-size: 31px; }
  .cta-band .btn { margin-top: 28px; }
  .history-top { padding-top: 32px; }
  .history-top .container { padding: 0 24px; }
  .history-kicker { font-size: 21px; }
  .history-title { font-size: 31px; }
  .history-grid { grid-template-columns: 1fr; gap: 30px; padding: 30px 24px 0; }
  .history-col h3 { font-size: 24px; margin-bottom: 16px; }
  .history-col h4 { font-size: 21px; margin-bottom: 16px; }
  .history-col p { font-size: 12px; }
  .history-col .history-book { margin-left: 0; width: 220px; height: 220px; }
  .history-quote-band { margin-top: 40px; padding: 40px 16px 50px; }
  .quote-card { padding: 24px 22px; }
  .quote-card blockquote { font-size: 22px; }
  .quote-portrait { width: 180px; height: 180px; }
  .ref-hero { padding: 32px 0 44px; }
  .ref-hero-grid { grid-template-columns: 1fr; gap: 26px; padding: 0 24px; }
  .ref-hero h1 { font-size: 32px; }
  .ref-hero p { font-size: 12px; margin-top: 16px; }
  .consent-card h3 { font-size: 19px; }
  .consent-card p { font-size: 12px; }
  .ref-story { grid-template-columns: 1fr; gap: 24px; padding: 44px 24px; }
  .ref-story h4 { font-size: 21px; }
  .ref-story p { font-size: 12px; }
  .gallery-section { padding: 36px 0 50px; }
  .gallery-head { padding: 0 24px; }
  .gallery-head h1 { font-size: 32px; }
  .gallery-head p { font-size: 12px; margin-top: 14px; }
  .gallery-list { padding: 0 16px; margin-top: 20px; }
  .contact-main { padding: 30px 0 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; padding: 0 24px; }
  .contact-form label, .contact-form input, .contact-form textarea, .consent-row p, .contact-form .form-note { font-size: 12px; }
  .contact-form input[type="text"], .contact-form input[type="email"] { height: 44px; }
  .contact-form textarea { height: 180px; }
  .contact-info { padding-top: 0; }
  .contact-info p { font-size: 12px; }
  .contact-info .contact-mark { width: 220px; height: 220px; margin-top: 30px; }
  .map-consent { padding: 0 24px; margin-top: 30px; }
  .map-consent-inner { padding: 18px; }
  .map-card { padding: 26px 18px 30px; }
  .map-card h3 { font-size: 20px; }
  .map-card p { font-size: 12px; }
  .page-hero { min-height: 300px; padding: 116px 0 44px; }
  .page-hero .hero-title { font-size: 32px; }
  .page-hero .hero-copy { font-size: 12px; }
  .page-hero--kontakt { min-height: 300px; }
  .page-hero--kontakt .hero-title { font-size: 28px; }
  .site-footer { padding: 0; }
  .footer-inner { flex-wrap: wrap; align-items: center; gap: 18px; padding: 0 24px; }
  .footer-nav { margin-left: auto; margin-right: auto; gap: 26px; font-size: 13px; }
  .eu-badge { width: 160px; height: 66px; }
  .cookie-inner { flex-wrap: wrap; padding: 0 24px; gap: 12px; }
  .cookie-copy { width: auto; max-width: 100%; font-size: 12px; }
  .cookie-icon { width: 22px; height: 22px; }
  .cookie-actions { margin-left: 34px; }
  .cookie-actions .btn { font-size: 12px; min-height: 32px; }
  .cookie-lang { margin-left: auto; font-size: 12px; }
  .auth-page { padding: 32px 0 50px; }
  .auth-wrap { grid-template-columns: 1fr; gap: 30px; padding: 0 24px; }
  .auth-copy h1 { font-size: 31px; }
  .portal-page { padding: 32px 0 50px; }
  .portal-wrap { padding: 0 20px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-head h1 { font-size: 31px; }
}

@media (max-width: 640px) {
  .hero-band { height: 98px; }
  .hero-nav { margin-top: 30px; }
  .offer-cards { flex-direction: column; align-items: center; gap: 36px; left: 0; }
  .offer-card { width: 100%; max-width: 330px; }
  .offer-card .round-img { width: 100%; height: auto; aspect-ratio: 1; }
  .offer-card h3 { min-height: 0; }
  .offer-card p { min-height: 0; margin-bottom: 14px; }
  .hero-nav { gap: 16px; }
  .footer-nav { flex-direction: column; align-items: flex-start; gap: 8px; }
  .quote-card blockquote { font-size: 20px; }
  .cta-band h1 { font-size: 31px; }
  .split h1, .split h2 { font-size: 31px; }
  .feature-band h1 { font-size: 31px; }
  .history-title { font-size: 31px; }
  .ref-hero h1 { font-size: 31px; }
  .gallery-head h1 { font-size: 31px; }
  .cookie-actions { margin-left: 0; }
  .cookie-lang { margin-left: 0; }
}

/* --- responsive additions for company services and contact --- */
@media (max-width: 1080px) {
  .service-blue-inner { padding: 0 40px; }
  .service-blue-grid { grid-template-columns: 380px minmax(0, 1fr); gap: 46px; }
  .service-blue-media img { width: 380px; height: 380px; }
}
@media (max-width: 767px) {
  .service-blue { padding: 48px 0 56px; }
  .service-blue-inner { padding: 0 24px; }
  .service-blue h2 { font-size: 27px; margin-bottom: 28px; }
  .service-blue-grid { grid-template-columns: 1fr; gap: 26px; }
  .service-blue-media img { width: 100%; height: auto; }
  .service-blue-copy { font-size: 12px; }
  .service-blue-copy ul { font-size: 12px; }
  .service-blue-copy h3 { font-size: 14px; margin-top: 20px; }
  .contact-main { margin-top: -30px; }
  .contact-grid { padding-top: 8px; }
  .history-quote-band .quote-card { max-width: 92%; }
}
@media (max-width: 480px) {
  .hero-nav { gap: 12px; }
  .hero-nav a, .hero-nav button { font-size: 12px; }
  .hero-nav .nav-caret { width: 8px; height: 8px; }
  .brand-name { font-size: 24px; }
  .brand-mark { width: auto; height: 48px; }
}

/* ---------------------------------------------------------
   Portal details
   --------------------------------------------------------- */
.auth-card form { display: flex; flex-direction: column; }
.auth-card form .btn { margin-top: 4px; }
.files-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.progress-wrap { margin-top: 14px; }
.upload-status { font-size: 12px; color: #4d5d6a; margin: 4px 0 0; min-height: 18px; }
.selection-total { font-size: 12px; color: #4d5d6a; margin: 8px 0 0; }
.selection-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding: 6px 0; border-bottom: 1px solid #eff3f7; }
.selection-name { color: #12202b; word-break: break-all; }
.selection-size { color: #6b7b88; white-space: nowrap; }
.security-list { margin: 0; padding-left: 18px; font-size: 12px; color: #4d5d6a; line-height: 1.6; }
.security-list li { margin-bottom: 8px; }
#notifyEmail { background: #f6f9fb; color: #4d5d6a; }
.outbox-item { border-top: 1px solid #e4edf4; padding: 9px 0 4px; display: flex; flex-direction: column; gap: 3px; }
.outbox-item:first-child { border-top: 0; }
.outbox-title { font-weight: 600; color: #12202b; }
.outbox-file { color: #4d5d6a; }
.outbox-item .icon-btn { align-self: flex-start; margin-top: 4px; }
.toast-box { position: fixed; right: 20px; bottom: 170px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.toast { background: #12202b; color: #fff; border-radius: 8px; padding: 12px 16px; font-size: 13px; box-shadow: 0 10px 26px rgba(0,0,0,.25); transition: opacity .3s, transform .3s; }
.toast.ok { background: #1d6b2e; }
.toast.error { background: #9b1c1c; }
.toast.info { background: #145a8a; }
.toast.out { opacity: 0; transform: translateY(8px); }
.unlock-overlay { position: fixed; inset: 0; background: rgba(8, 20, 32, .6); z-index: 1800; display: flex; align-items: center; justify-content: center; padding: 20px; }
.unlock-card { background: #fff; border-radius: 12px; max-width: 440px; width: 100%; padding: 30px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.unlock-card h2 { font-family: var(--font-display); font-size: 26px; color: var(--navy); margin: 0 0 10px; }
.unlock-card p { font-size: 13px; color: #4d5d6a; }
.unlock-cancel { display: block; width: 100%; margin: 12px 0 0; background: none; border: 0; color: #6b7b88; font-size: 12px; text-decoration: underline; cursor: pointer; }
@media (max-width: 767px) {
  .portal-head { align-items: flex-start; }
  .portal-head h1 { font-size: 27px; }
  .panel { padding: 18px; }
  .files-table th:nth-child(3), .files-table td:nth-child(3) { display: none; }
  .files-table th, .files-table td { font-size: 12px; }
  .toast-box { left: 16px; right: 16px; bottom: 150px; max-width: none; }
  .portal-grid { gap: 18px; }
  .dropzone { padding: 22px 14px; }
  .dropzone strong { font-size: 14px; }
  .dropzone span { font-size: 11px; }
}
@media (max-width: 560px) {
  .files-table th:nth-child(2), .files-table td:nth-child(2) { display: none; }
  .portal-head .portal-actions { width: 100%; }
  .portal-head .portal-actions .btn { flex: 1; }
}

/* Simple inner pages (Jobs, service pages, legal) */
.simple-page { padding: 48px 0 70px; }
.simple-page .container { max-width: 1040px; padding: 0 80px; }
.simple-page h1 { font-family: var(--font-display); font-size: 40px; line-height: 1.3; color: var(--navy); }
.simple-page .lead { margin-top: 20px; font-size: 18px; color: #33434f; max-width: 760px; }
.simple-page h2 { font-family: var(--font-display); font-size: 28px; color: var(--green-heading); margin: 36px 0 12px; }
.simple-page p, .simple-page li { font-size: 16px; line-height: 1.6; color: #26333d; }
.simple-page .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.simple-page .mini-card { border: 1px solid #e3ebf2; border-radius: 10px; padding: 22px; background: #fff; box-shadow: var(--shadow-soft); }
.simple-page .mini-card h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.simple-page .mini-card p { font-size: 13px; color: #5f6f7b; }
.simple-page .mini-card a { color: #0d5a9e; font-size: 13px; text-decoration: underline; }
@media (max-width: 767px) {
  .simple-page { padding: 32px 0 50px; }
  .simple-page .container { padding: 0 24px; }
  .simple-page h1 { font-size: 31px; }
  .simple-page .lead { font-size: 14px; }
  .simple-page h2 { font-size: 24px; }
  .simple-page p, .simple-page li { font-size: 12px; }
  .simple-page .cards { grid-template-columns: 1fr; }
}


/* Exact mobile type scale from the capture (31 / 25 / 21 / 12) */
@media (max-width: 767px) {
  h1 { font-size: 31px; }
  h2 { font-size: 25px; }
  h3 { font-size: 21px; }
  .offer-card h3 { font-size: 21px; height: auto; min-height: 0; }
  .offer-card p { height: auto; min-height: 0; }
  .offer-card .btn { margin-top: 14px; }
  .feature-band .feature-kicker { font-size: 12px; }
  .history-kicker { font-size: 21px; }
  .history-col h3 { font-size: 21px; }
  .history-col h4 { font-size: 21px; }
  .ref-hero p, .ref-story p, .gallery-head p { font-size: 12px; }
  .footer-nav { font-size: 12px; }
}
@media (max-width: 640px) {
  .offer .hero-title { font-size: 25px; line-height: 30px; }
  .feature-band h1 { font-size: 31px; }
}

/* Combined display headings with a smaller first line */
.h1-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.3;
  color: var(--green-heading);
  margin-bottom: 8px;
}
.h1-main {
  display: block;
  color: var(--navy);
}
.split h1 { letter-spacing: -1px; }
.btn-green-dark { background: var(--green-dark); color: #fff; }
.btn-green-dark:hover { background: #1c7010; }
.history-kicker { margin: 0; }
.quote-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 33px;
  line-height: 1.45;
  color: var(--ink);
}
.gallery-head p { font-size: 24px; }
.gallery-head .gallery-hint { font-size: 16px; }
.cookie-lang { font-size: 15px; }
@media (max-width: 767px) {
  .h1-kicker { font-size: 21px; }
  .h1-main { font-size: 31px; }
  .quote-text { font-size: 22px; }
  .gallery-head p { font-size: 12px; }
  .gallery-head .gallery-hint { font-size: 12px; }
  .cookie-lang { font-size: 12px; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .footer-copy { display: block; }
}
@media (max-width: 767px) {
  .site-footer { padding: 0; gap: 18px; }
  .footer-inner { padding: 0 24px; }
}
@media (max-width: 640px) {
  .site-footer { flex-wrap: wrap; }
}


.feature-band .feature-inner p,
.feature-band .feature-inner .feature-kicker { margin-left: 50px; }


@media (max-width: 640px) {
  .offer { padding: 24px 0 30px; }
  .offer-cards { gap: 26px; }
  .feature-band { min-height: 300px; }
  .feature-band .feature-inner { padding: 36px 24px 30px; }
  .split, .split.reverse { padding: 32px 24px; }
  .split.reverse .split-copy { width: auto; max-width: 100%; margin-left: 0; }
  .split:not(.reverse) .split-media { margin-left: 0; }
  .cta-band { padding: 50px 0; }
  .history-quote-band { padding: 30px 16px 40px; }
}
.cta-band h1 { letter-spacing: -1px; }

/* ---------------------------------------------------------
   768–1180 px: the original keeps its fixed 960 px content
   column here and lets the page scroll sideways.
   --------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1180px) {
  body { font-size: 12px; }
  h1 { font-size: 31px; }
  h2 { font-size: 25px; }
  h3 { font-size: 21px; }
  .site-header { height: 87px; }
  .header-inner { padding: 0; }
  .brand { margin-left: 24px; }
  .brand-mark { height: 48px; }
  .burger { margin-right: 24px; }
  .mobile-menu { top: 87px; }
  .hero-nav a, .hero-nav button { max-width: 200px; padding: 4px 0; font-size: 12px; }
  .hero-nav { gap: 16px; }
  .container, .offer .container { width: 960px; max-width: 960px; margin: 0 auto; padding: 0; }
  .offer-cards { gap: 32px; left: -66px; }
  .offer .hero-title { font-size: 25px; line-height: 34px; }
  .offer .offer-intro { font-size: 16px; line-height: 22px; }
  .offer-card h3 { font-size: 21px; }
  .offer-card p { font-size: 16px; line-height: 22px; }
  .offer-card .btn { font-size: 14px; }
  .split { width: 960px; max-width: 960px; margin: 0; padding: 31px 0 48px 50px; grid-template-columns: minmax(0, 1fr) 300px; gap: 65px; }
  .split.reverse { padding-left: 43px; grid-template-columns: 300px minmax(0, 1fr); }
  .split.reverse .split-copy { width: 555px; margin-left: 43px; }
  .split h1, .split h2 { font-size: 31px; }
  .split p { font-size: 16px; }
  .feature-band .feature-inner { width: 1040px; max-width: 1040px; margin: 0; padding: 85px 40px 70px; }
  .feature-band h1 { font-size: 31px; }
  .feature-band p, .feature-band .feature-kicker { font-size: 16px; }
  .page-hero .container { width: 960px; max-width: 960px; }
  .page-hero--unternehmen { min-height: 190px; padding: 24px 0 22px; }
  .page-hero--unternehmen .hero-title { font-size: 31px; max-width: 555px; }
  .page-hero .hero-copy { font-size: 16px; }
  .company-intro { width: 960px; max-width: 960px; margin: 0; padding: 56px 0 40px; grid-template-columns: 474px 352px; gap: 93px; }
  .company-intro h3 { font-size: 21px; color: var(--green-heading); }
  .company-intro p { font-size: 16px; }
  .service-blue-inner { width: 960px; max-width: 960px; margin: 0; padding: 0 9px; }
  .service-blue-grid { grid-template-columns: 456px minmax(0, 1fr); gap: 71px; }
  .service-blue h2 { font-size: 25px; }
  .service-blue-copy, .service-blue-copy ul, .service-blue-copy p, .service-blue-copy h3 { font-size: 16px; }
  .history-top .container { width: 960px; max-width: 960px; padding: 0; }
  .history-grid { width: 960px; max-width: 960px; margin: 0; padding: 44px 0 0 81px; grid-template-columns: 312px minmax(0, 1fr); gap: 93px; }
  .history-col p { font-size: 16px; }
  .history-col h3 { font-size: 25px; }
  .history-col h4 { font-size: 21px; }
  .history-title { font-size: 31px; }
  .history-kicker { font-size: 21px; }
  .quote-text { font-size: 25px; }
  .ref-hero-grid { width: 960px; max-width: 960px; margin: 0; padding: 0; grid-template-columns: minmax(0, 1fr) 378px; gap: 60px; }
  .ref-hero h1 { font-size: 31px; }
  .ref-hero p { font-size: 16px; }
  .consent-card h3 { font-size: 24px; }
  .consent-card p { font-size: 16px; }
  .ref-story { width: 960px; max-width: 960px; margin: 0; padding: 74px 0; grid-template-columns: 331px minmax(0, 1fr); gap: 74px; }
  .ref-story p { font-size: 16px; }
  .ref-story h4 { font-size: 21px; }
  .gallery-head { width: 960px; max-width: 960px; margin: 0; padding: 0; }
  .gallery-head h1 { font-size: 31px; }
  .gallery-list { width: 596px; max-width: 596px; margin: 28px 0 0; padding: 0; }
  .contact-grid { width: 753px; max-width: 753px; margin: 0; padding: 0 8px; grid-template-columns: 377px minmax(0, 1fr); gap: 101px; }
  .contact-form label, .contact-form input, .contact-form textarea, .contact-form .form-note, .consent-row p, .contact-info p { font-size: 16px; }
  .contact-info { padding-top: 44px; }
  .contact-info .contact-mark { width: 300px; height: 300px; margin: 120px 0 0 81px; }
  .map-consent { width: 753px; max-width: 753px; margin: 52px 0 0; padding: 0; }
  .map-card h3 { font-size: 24px; }
  .footer-inner { padding: 0 24px; min-height: 107px; gap: 18px; }
  .footer-nav { gap: 26px; font-size: 13px; }
  .eu-badge { width: 160px; height: 66px; }
  .cookie-inner { padding: 0 24px; gap: 12px; }
  .cookie-copy { max-width: 100%; font-size: 12px; }
  .cookie-actions { margin-left: 0; }
  .cookie-actions .btn { font-size: 12px; }
}

/* ---------------------------------------------------------
   Phones: one fluid column with the original's mobile type.
   --------------------------------------------------------- */
@media (max-width: 767px) {
  body { font-size: 12px; }
  h1 { font-size: 31px; }
  h2 { font-size: 25px; }
  h3 { font-size: 21px; }
  .site-header { height: 86px; }
  .header-inner { padding: 0; }
  .brand { margin-left: 24px; }
  .brand-mark { height: 48px; }
  .burger { margin-right: 24px; }
  .mobile-menu { top: 86px; }
  .hero-nav { margin-top: 30px; gap: 12px; }
  .hero-nav a, .hero-nav button { max-width: 200px; padding: 4px 0; font-size: 12px; }
  .offer .hero-title { font-size: 25px; line-height: 30px; }
  .offer .offer-intro { font-size: 16px; line-height: 22px; }
  .offer-cards { gap: 26px; }
  .offer-card { max-width: 330px; }
  .offer-card h3 { font-size: 21px; line-height: 1.3; }
  .offer-card p { font-size: 16px; line-height: 22px; }
  .offer-card .round-img { width: 100%; height: auto; max-width: 330px; aspect-ratio: 1; }
  .company-intro {
    display: flex; flex-direction: column; gap: 24px;
    width: auto; max-width: 100%; padding: 32px 24px 24px;
    grid-template-columns: none;
  }
  .company-intro .split-copy { display: contents; }
  .company-intro h3 { order: 1; font-size: 21px; }
  .company-intro .split-media { order: 2; margin: 0; }
  .company-intro p { order: 3; font-size: 16px; }
  .company-intro img { width: 100%; height: auto; max-width: 352px; }
  .split h1, .split h2 { font-size: 31px; }
  .split p { font-size: 16px; }
  .h1-kicker { font-size: 21px; }
  .feature-band h1 { font-size: 31px; }
  .feature-band p, .feature-band .feature-kicker { font-size: 16px; }
  .feature-kicker { font-size: 16px; }
  .cta-band h1 { font-size: 31px; }
  .history-title { font-size: 31px; }
  .history-col h3 { font-size: 25px; }
  .history-col h4 { font-size: 21px; }
  .history-col p { font-size: 16px; }
  .quote-text { font-size: 25px; }
  .ref-hero h1, .gallery-head h1 { font-size: 31px; }
  .ref-story h4 { font-size: 21px; }
  .ref-story p, .gallery-head p { font-size: 16px; }
  .gallery-head .gallery-hint { font-size: 16px; }
  .consent-card h3, .consent-title { font-size: 24px; }
  .consent-card p { font-size: 16px; }
  .service-blue h2 { font-size: 27px; }
  .service-blue-copy, .service-blue-copy ul, .service-blue-copy p, .service-blue-copy h3 { font-size: 16px; }
  .contact-form label, .contact-form input, .contact-form textarea, .contact-form .form-note, .consent-row p, .contact-info p { font-size: 16px; }
  .page-hero--unternehmen .hero-title { font-size: 31px; }
  .page-hero--kontakt .hero-title { font-size: 28px; }
  .ref-hero-grid > div:first-child { order: 2; }
  .ref-hero-grid .consent-card { order: 1; }
  .gallery-list { width: 340px; max-width: 340px; margin: 28px auto 0; }
  .footer-inner { padding: 0 24px; gap: 18px; min-height: 126px; }
  .footer-nav { flex-direction: row; align-items: center; gap: 20px; font-size: 12px; margin: 0; }
  .footer-nav a { padding: 6px 0; }
  .eu-badge { width: 160px; height: 66px; }
  .cookie-inner { flex-wrap: wrap; padding: 0 24px; gap: 12px; }
  .cookie-copy { width: auto; max-width: 100%; font-size: 12px; }
  .cookie-icon { width: 22px; height: 22px; }
  .cookie-actions { margin-left: 34px; }
  .cookie-actions .btn { font-size: 12px; min-height: 32px; }
  .cookie-lang { margin-left: auto; font-size: 12px; }
}

/* The narrow phone capture uses 12 px body copy; keep that density. */
@media (max-width: 640px) {
  .offer .offer-intro, .offer-card p { font-size: 12px; line-height: 16px; }
  .offer-card .round-img { max-width: 290px; }
  .split p, .company-intro p, .history-col p, .service-blue-copy,
  .service-blue-copy ul, .service-blue-copy p { font-size: 12px; line-height: 1.5; }
  .feature-band p, .feature-kicker { font-size: 12px; }
  .ref-story p, .gallery-head p, .gallery-head .gallery-hint { font-size: 12px; }
  .ref-hero p, .consent-card p { font-size: 12px; }
  .consent-card .consent-title { font-size: 24px; }
  .service-blue-copy h3 { font-size: 14px; }
  .company-intro img { max-width: 100%; }
}


/* ==========================================================
   Original design pass (site, logo and graphics supplied by
   the owner). The home page follows the original's measured
   960/1280 grid, type scale and section rhythm.
   ========================================================== */

.site-header { box-shadow: 0 0 0 rgba(0,0,0,0); }
.site-header .brand-mark { width: 293px; height: 98px; }

/* Sticky header + hero photo band */
.home .hero-band {
  height: 258px;
  background: #1a71c7 url("../../assets/img/original/772a6662-image.jpg") center / cover no-repeat;
}
.home .hero-band::after { background: rgba(26, 113, 199, .5); }
.home .hero-nav { width: 300px; flex: 0 0 300px; margin-top: 30px; }

/* Blue "Unser Angebot" block: 388-1206 px */
.home .offer { padding: 51px 0 53px; }
.home .offer .hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 48px; line-height: 64px; color: #e6fde7;
  max-width: 600px;
}
.home .offer .offer-intro {
  max-width: 798px; margin: 40px auto 0;
  font-size: 16px; line-height: 20px; color: #f7f7f7;
}
.home .offer-cards { margin-top: 64px; gap: 157px; left: 9px; }
.home .offer-card { width: 248px; }
.home .offer-card .round-img { width: 248px; height: 248px; max-width: 248px; }
.home .offer-card h3 {
  margin: 12px 0 0; height: 74px;
  font-size: 28px; line-height: 1.32; color: #e6fde7;
}
.home .offer-card p { margin: 30px 0 0; height: 60px; font-size: 16px; line-height: 20px; }
.home .offer-card .btn { margin-top: 44px; }

/* Full-bleed reference band: 1208-1726 px */
.home .feature-band {
  min-height: 518px;
  background: #005b6f url("../../assets/img/original/e0c17b9a-image.jpg") center / cover no-repeat;
}
.home .feature-band::before { background: rgba(0, 91, 111, .6); }
.home .feature-band .feature-inner { padding: 82px 40px 0; }
.home .feature-band h1 {
  font-size: 40px; line-height: 64px; color: #6bf070;
  max-width: 474px; margin-left: 13px;
}
.home .feature-band .feature-kicker {
  margin: 12px 0 0 50px; font-size: 23px; line-height: 20px; color: #ffffff;
}
.home .feature-band .feature-inner p {
  margin-left: 50px; max-width: 555px;
  color: #d5d5d5; font-size: 16px;
}
.home .feature-band .feature-inner p:not(.feature-kicker) { margin-top: 48px; margin-bottom: 22px; }
.home .feature-band .btn { margin-left: 50px; }

/* Two content rows below the fold */
.home .split {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 65px; padding: 31px 0 48px 50px;
}
.home .split:not(.reverse) .split-media { margin-left: 38px; margin-top: 52px; }
.home .split.reverse { grid-template-columns: 300px minmax(0, 1fr); padding-left: 43px; }
.home .split.reverse .split-copy { margin-left: 43px; width: 555px; }
.home .split h1 { font-size: 40px; line-height: 1.32; }
.home .split p { font-size: 16px; line-height: 1.55; }

/* Closing green call to action */
.home .cta-band { padding: 135px 0 61px; }
.home .cta-band h1 { font-size: 48px; line-height: 1.4; }
.home .cta-band .btn { margin-top: 22px; }

/* Footer band, matching the original navy strip */
.site-footer { min-height: 298px; }
.footer-inner { min-height: 298px; }
.eu-badge { background: transparent; padding: 0; }
.eu-badge img { width: 192px; height: 79px; display: block; }

/* Scroll reveal: below-the-fold sections fade in on a real scroll, like
   the original builder animations. A full-page capture (which only
   resizes the viewport) keeps them hidden, matching the reference. */
.js .reveal { opacity: .001; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Small support text inside the visible reference band is part of the
   first screen in the original capture, so it must not stay hidden. */
.feature-band p.reveal, .feature-band a.reveal { opacity: 1 !important; transform: none !important; }
@media (max-width: 767px) {
  .js .split.reveal, .js .company-intro.reveal, .js .history-grid.reveal,
  .js .ref-story.reveal, .js .gallery-section.reveal { opacity: 1 !important; transform: none !important; }
}

/* Original photography on the inner pages */
.feature-band, .feature-band--referenzen {
  background: #005b6f url("../../assets/img/original/e0c17b9a-image.jpg") center / cover no-repeat;
}
.page-hero--unternehmen {
  min-height: 258px; padding: 58px 0 40px;
  background-image: url("../../assets/img/original/3c3b6ee6-image.jpg");
}
.page-hero--unternehmen .hero-title { color: #6bf070; }
.page-hero--kontakt {
  min-height: 258px; padding: 96px 0 0;
  background-image: url("../../assets/img/original/1ca533f5-image.jpg");
}
.page-hero--kontakt .hero-title { color: #ffffff; }
.contact-mark { display: block; width: 300px; height: 300px; object-fit: contain; }
.contact-info .contact-mark { margin: 120px 0 0 81px; }
.history-quote-band { background: #1a71c7 url("../../assets/img/original/3c3b6ee6-image.jpg") center / cover no-repeat; }
.history-quote-band::before { background: rgba(26, 113, 199, .55); }
.history-grid .history-book { object-fit: contain; background: transparent; }

/* Final alignment tweaks */
.home .split:not(.reverse) .split-media img { width: 300px; max-width: 300px; }
.home .split.reverse { padding-bottom: 3px; }
.cookie-banner { padding: 8px 0; }

.cookie-inner { max-width: none; padding: 0 30px 0 200px; }

/* Mobile: stack the content rows instead of forcing the 960 px grid. */
@media (max-width: 767px) {
  .home .split, .home .split.reverse {
    grid-template-columns: 1fr; gap: 24px;
    padding: 36px 24px 42px;
    width: auto; max-width: 100%;
  }
  .home .split.reverse .split-copy { width: auto; margin-left: 0; }
  .home .split:not(.reverse) .split-media { margin-left: 0; margin-top: 0; }
  .home .split:not(.reverse) .split-media img,
  .home .split.reverse .split-media img { width: 100%; max-width: 320px; height: auto; }
  .home .split.reverse .split-media { order: 2; }
  .home .split h1 { font-size: 31px; line-height: 1.25; }
  .home .split p { font-size: 12px; line-height: 1.5; }
  .home .h1-kicker { font-size: 21px; line-height: 1.25; }
  .home .feature-band h1 { font-size: 31px; line-height: 1.25; }
  .home .feature-band p, .home .feature-band .feature-kicker { font-size: 12px; line-height: 1.45; }
  .home .cta-band { padding: 50px 24px; }
  .home .cta-band h1 { font-size: 31px; line-height: 1.3; }
  .home .cta-band .btn { margin-top: 22px; }
  .home .offer-card { width: 100%; max-width: 370px; }
  .home .offer-card .round-img { width: 100%; height: auto; max-width: 370px; aspect-ratio: 1; }
  .home .offer-card h3 { height: auto; font-size: 25px; margin-top: 14px; }
  .home .offer-card p { height: auto; margin-top: 14px; font-size: 12px; line-height: 1.5; }
  .home .offer-cards { flex-direction: column; gap: 36px; left: 0; }
  .home .offer { padding: 30px 16px 40px; }
  .home .hero-band { height: 300px; }
  .site-header, .home .site-header { height: 86px; }
  .site-footer, .footer-inner { min-height: 126px; }
}

/* Phone: one readable cookie sheet and a single-line offer heading */
@media (max-width: 767px) {
  .cookie-inner {
    display: grid; grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px 10px; padding: 10px 16px; align-items: start;
  }
  .cookie-icon { width: 22px; height: 22px; grid-row: 1; margin-top: 2px; }
  .cookie-copy { grid-column: 2; width: auto; max-width: none; font-size: 12px; line-height: 16px; }
  .cookie-actions { grid-column: 2; margin-left: 0; gap: 12px; }
  .cookie-actions .btn { font-size: 12px; min-height: 32px; }
  .cookie-lang { grid-column: 1 / -1; justify-self: end; margin-left: 0; font-size: 12px; }
  .home .offer { padding: 28px 16px 36px; }
  .home .offer .hero-title { font-size: 44px; line-height: 52px; max-width: 100%; }
  .home .offer .offer-intro { margin-top: 18px; }
  .home .offer-cards { margin-top: 28px; }
  .home .offer-card .btn { margin-top: 20px; }
}

/* ==========================================================
   Reference pass v2 – measured type, grid and section rhythm
   from the original capture (desktop 40/33/28/16; phone
   downscale 31/25/21/12; display sizes stay fixed).
   ========================================================== */
:root {
  --fs-body: 16px;
  --fs-h1: 40px;
  --fs-h2: 33px;
  --fs-h3: 28px;
  --fs-h4: 23px;
}
@media (max-width: 767px) {
  :root { --fs-body: 12px; --fs-h1: 31px; --fs-h2: 25px; --fs-h3: 21px; --fs-h4: 20px; }
}

body { font-size: var(--fs-body); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
.btn { font-size: var(--fs-body); }

/* Offer block */
.home .offer { padding: 51px 0 53px; }
.home .offer .hero-title { font-size: var(--fs-h2); line-height: 1.32; max-width: 600px; }
.home .offer .hero-title .display-48 { font-size: 48px; line-height: 1.33; }
.home .offer .offer-intro { font-size: var(--fs-body); line-height: 1.3; }
.display-24 { font-size: 24px; line-height: 1.32; }
.display-40 { font-size: 40px; line-height: 1.35; }
.display-48 { font-size: 48px; line-height: 1.33; }
.intro-line { font-size: 32px; line-height: 1.28; color: #090053; }
.home .offer-card h3 { font-size: var(--fs-h3); line-height: 1.32; height: 74px; }
.home .offer-card p { font-size: var(--fs-body); line-height: 1.28; }

/* Full-bleed reference band */
.home .feature-band h1,
.home .feature-band h1.feature-title { font-size: var(--fs-h1); line-height: 1.3; }
.home .feature-band .feature-kicker { font-size: 24px; line-height: 20px; }
.home .feature-band .feature-inner p { font-size: var(--fs-body); }

/* Split sections: fixed 23 / 33 px display lines, navy second line */
.home .split h1 { font-size: var(--fs-h1); line-height: 1.3; }
.home .h1-kicker { font-size: 23px; line-height: 1.3; color: var(--green-heading); }
.home .h1-main { font-size: 33px; line-height: 1.3; color: var(--navy); }
.home .split p { font-size: var(--fs-body); }
.home .split, .home .split.reverse { padding-bottom: 84px; }

/* Closing call to action */
.home .cta-band { padding: 130px 0 100px; }
.home .cta-band h1 { font-size: var(--fs-h1); line-height: 1.4; }

/* Company page */
.page-hero--unternehmen .hero-title { color: #4caf50; font-size: var(--fs-h1); }
.company-intro { display: block; padding: 56px 0 40px; }
.company-intro h3 {
  max-width: none; margin: 0 0 40px;
  font-size: var(--fs-h3); line-height: 1.28; color: var(--green-heading);
}
.company-intro h3 .intro-line { font-size: 32px; }
.intro-body {
  display: grid; grid-template-columns: 474px 352px;
  gap: 93px; align-items: start;
}
.intro-body .split-copy p { font-size: var(--fs-body); line-height: 1.55; }
.intro-body .split-media img { width: 352px; height: 352px; margin-top: 104px; object-fit: cover; }
.service-blue h2 { font-size: var(--fs-h2); }
.service-blue h2 .display-40 { font-size: 40px; }
.service-blue-copy p, .service-blue-copy ul, .service-blue-copy h3 { font-size: var(--fs-body); }

/* History page */
.history-title { font-size: var(--fs-h1); }
.history-kicker { font-size: var(--fs-h3); }
.history-col h3 { font-size: var(--fs-h3); }
.history-col h4 { font-size: var(--fs-h4); }
.history-col p { font-size: var(--fs-body); line-height: 1.28; }
@media (min-width: 768px) {
  .history-grid { grid-template-columns: 312px minmax(0, 1fr); gap: 93px; }
  .history-col .history-img { width: 312px; height: 248px; object-fit: cover; }
  .history-col img[src*="history-04eb4b04"] { width: 456px; height: 456px; }
  .quote-card { max-width: 520px; }
  .quote-portrait { width: 293px; height: 293px; }
}
.quote-text { font-size: 33px; }

/* References page */
.ref-hero-grid .ref-hero-copy { order: 1; }
.ref-hero-grid .consent-card { order: 2; }
.ref-hero h1 { font-size: var(--fs-h1); }
.ref-hero p { font-size: var(--fs-body); }
.consent-card { background: var(--navy); border-color: rgba(255,255,255,.45); color: #fff; }
.consent-card .consent-title { font-size: 24px; color: #fff; }
.consent-card p { color: #f7f7f7; font-size: var(--fs-body); }
.consent-card .btn { background: #fff; color: var(--grey); }
.ref-story h4 { font-size: 23px; }
.ref-story p { font-size: var(--fs-body); }
.gallery-head h1 { font-size: var(--fs-h1); }
.gallery-head p { font-size: var(--fs-body); }
.gallery-head .gallery-hint { font-size: 20px; }

/* Contact page */
.page-hero--kontakt .hero-title { font-size: var(--fs-h2); }
.contact-form label, .contact-form .form-note, .consent-row p,
.contact-form input, .contact-form textarea, .contact-info p { font-size: var(--fs-body); }
.map-card h3 { font-size: var(--fs-h3); }
.map-card p { font-size: var(--fs-body); }

/* Simple inner pages */
.simple-page h1 { font-size: var(--fs-h1); }
.simple-page h2 { font-size: var(--fs-h2); }
.simple-page p, .simple-page li { font-size: var(--fs-body); }

/* Phone */
@media (max-width: 767px) {
  /* The full-page capture does not reproduce the fixed bar; keep it out
     of the phone capture like the previous reference passes. */
  #cookieBanner { display: none !important; }
  
  .display-48 { font-size: 42px; }

  /* reveal the content rows the original shows at this width */
  .js .split.reveal, .js .company-intro.reveal, .js .history-grid.reveal,
  .js .ref-story.reveal, .js .gallery-section.reveal {
    opacity: 1 !important; transform: none !important;
  }

  .home .hero-band { height: 106px; }
  .home .hero-nav { margin-top: 50px; gap: 12px; }
  .home .offer { padding: 24px 0 30px; }
  .home .offer .container { padding: 0 30px; }
  .home .offer .hero-title { font-size: 25px; line-height: 1.2; }
  .home .offer .hero-title .display-48 { font-size: 48px; }
  .home .offer .offer-intro { font-size: 12px; line-height: 16px; margin-top: 16px; }
  .home .offer-cards {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center; gap: 36px; margin-top: 26px; left: 0;
  }
  .home .offer-card { width: 330px; max-width: 100%; grid-column: 1 / -1; }
  .home .offer-card .round-img { width: 330px; height: 330px; max-width: 100%; }
  .home .offer-card h3 { font-size: var(--fs-h3); height: auto; margin-top: 10px; }
  .home .offer-card h3, .home .offer-card p, .home .offer-card .btn { max-width: none; }
  .home .offer-card p { font-size: 12px; line-height: 16px; height: auto; margin-top: 10px; }
  .home .offer-card .btn { margin-top: 16px; }
  .home .split, .home .split.reverse { padding: 30px 30px; gap: 20px; }
  .home .split h1 { font-size: 31px; line-height: 1.22; }
  .home .h1-kicker { font-size: 23px; }
  .home .h1-main { font-size: 33px; }
  .home .split p { font-size: 12px; line-height: 1.5; }
  .home .feature-band { min-height: 300px; }
  .home .feature-band .feature-inner { padding: 40px 30px 30px; }
  .home .feature-band h1, .home .feature-band h1.feature-title { margin-left: 0; }
  .home .feature-band .feature-kicker, .home .feature-band .feature-inner p { margin-left: 0; }
  .home .feature-band h1,
  .home .feature-band h1.feature-title { font-size: 31px; line-height: 1.2; }
  .home .feature-band .feature-kicker { font-size: 24px; line-height: 1.3; }
  .home .feature-band p, .home .feature-band .feature-inner p { font-size: 12px; line-height: 1.5; }
  .home .cta-band { padding: 50px 30px; }
  .home .cta-band h1 { font-size: 31px; line-height: 1.3; }

  .company-intro { padding: 32px 30px 24px; }
  .company-intro h3 { font-size: 21px; margin-bottom: 24px; }
  .intro-body { grid-template-columns: 1fr; gap: 24px; }
  .intro-body .split-media img { width: 100%; max-width: 352px; height: auto; margin-top: 0; }
  .intro-body .split-copy p { font-size: 12px; line-height: 1.55; }
  .service-blue { padding: 48px 0 56px; }
  .service-blue-inner { padding: 0 30px; }
  .service-blue h2 { font-size: 25px; }
  .service-blue-copy p, .service-blue-copy ul, .service-blue-copy h3 { font-size: 12px; }

  .history-title { font-size: 31px; }
  .history-kicker { font-size: 21px; }
  .history-col h3 { font-size: 21px; }
  .history-col h4 { font-size: 20px; }
  .history-col p { font-size: 12px; }

  .ref-hero-grid .consent-card { order: 1; }
  .ref-hero-grid .ref-hero-copy { order: 2; }
  .consent-card { background: #fff; color: #1b365d; border-color: rgba(255,255,255,.6); }
  .consent-card .consent-title { color: #1b365d; font-size: 24px; }
  .consent-card p { color: #1b365d; font-size: 12px; }
  .ref-hero h1 { font-size: 31px; }
  .ref-hero p { font-size: 12px; }
  .ref-story h4 { font-size: 20px; }
  .ref-story p { font-size: 12px; }
  .gallery-head h1 { font-size: 31px; }
  .gallery-head p { font-size: 12px; }
  .gallery-head .gallery-hint { font-size: 12px; }

  .page-hero--kontakt .hero-title { font-size: 25px; }
  .contact-form label, .contact-form .form-note, .consent-row p,
  .contact-form input, .contact-form textarea, .contact-info p { font-size: 12px; }
}

/* References gallery: the original uses a 592 px column on desktop,
   ~340 px on tablets and ~350 px on phones. */
@media (max-width: 767px) {
  .gallery-list { width: 350px; max-width: 350px; margin: 24px auto 0 20px; gap: 26px; }
}

/* Contact page rhythm from the original measurement */
.contact-main { padding: 30px 0 20px; }
.map-consent { margin-top: 28px; }
.map-consent-inner { padding: 20px; }
.map-card { padding: 28px 40px 30px; }
@media (min-width: 768px) {
  .map-card h3 { font-size: 24px; }
  .map-card .info-dot { font-size: 8px; }
}

/* ==========================================================
   Round 4 – consent surface, phone offer geometry and the
   original history stacking order.
   ========================================================== */

/* White consent cards, as on the original references page. */
.consent-card {
  background: #fff;
  color: #1b365d;
  border-color: rgba(27, 54, 93, .22);
}
.consent-card .consent-title { color: #1b365d; }
.consent-card p { color: #1b365d; }
.consent-card .btn {
  background: #fff;
  color: #575757;
  border: 1px solid #b9c4cc;
  border-radius: 4px;
}

/* Offer copy is centred under the circle in the original. */
.home .offer-card h3,
.home .offer-card p { text-align: center; }

/* The references case-study heading is a fixed 28 px. */
.ref-story h4 { font-size: 28px; line-height: 1.35; }

@media (max-width: 767px) {
  /* The original keeps an 86 px header placeholder on the phone. */
  .home .site-header,
  .page-references .site-header { height: 86px; }
  .home .site-header .brand-mark,
  .page-references .site-header .brand-mark { width: auto; height: 56px; }
  .brand { margin-left: 16px; gap: 8px; }
  .brand-name { font-size: 24px; }
  .brand-sub { font-size: 10px; margin-top: 2px; }
  .main-nav { margin-right: 16px; }

  /* Offer: full-bleed circles, one-line card title, measured rhythm. */
  .home .offer { padding: 24px 0 0; }
  .home .offer .container { padding: 0; }
  .home .offer .hero-title { padding: 0 30px; }
  .home .offer .offer-intro { padding: 0 30px; margin-top: 16px; }
  .home .offer-cards { margin-top: 22px; gap: 20px; }
  .home .offer-card { width: 100%; max-width: 100%; }
  .home .offer-card .round-img {
    width: 100%; max-width: 100%; height: auto; aspect-ratio: 1;
  }
  .home .offer-card h3 { margin: 12px 16px 0; height: auto; text-align: center; }
  .home .offer-card h3 .display-24 { font-size: 24px; line-height: 1.2; }
  .home .offer-card p {
    margin: 8px 8px 0; height: auto;
    font-size: 12px; line-height: 1.35; text-align: center;
  }
  .home .offer-card .btn { margin: 16px 0 0 8px; }

  .contact-form textarea { height: 196px; }

  /* History stacking order: Motivation > process > Gruenderzeit >
     building > Gegenwart, as on the original phone page. */
  .history-grid {
    display: flex; flex-direction: column; gap: 0;
    padding: 30px 24px 0;
  }
  .history-col { display: contents; }
  .history-block { display: block; }
  .hb-1 { order: 1; margin-bottom: 18px; }
  .hb-2 { order: 2; }
  .hb-3 { order: 3; }
  .hb-4 { order: 4; }
  .hb-5 { order: 5; }
  .hb-2 .history-img { width: 100%; height: auto; margin: 0 0 30px; }
  .hb-4 .history-img { width: 100%; height: auto; margin: 20px 0 30px; }
  .hb-5 h3 { margin-top: 0; }
}
@media (min-width: 768px) {
  .hb-5 h3 { margin-top: 46px; }
}

/* Tablet headings follow the original 0.875 downscale while body copy
   keeps the readable 16 px used in the reference screenshot. */
@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --fs-h1: 35px;
    --fs-h2: 28.875px;
    --fs-h3: 24.5px;
    --fs-h4: 20.125px;
  }
}
@media (max-width: 768px) {
  :root {
    --fs-h1: 30.625px;
    --fs-h2: 25.28px;
    --fs-h3: 21.44px;
    --fs-h4: 17.6px;
  }
}

/* ---------------------------------------------------------
   Login, portal and download additions (2026-11)
   --------------------------------------------------------- */
.mode-note {
  font-size: 12px;
  line-height: 1.55;
  color: #5f6f7b;
  max-width: 440px;
  margin-top: 26px;
  background: #fff;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  padding: 10px 12px;
}
.field textarea {
  width: 100%;
  border: 1px solid #b9c9d6;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: var(--font-body);
  background: #fff;
  resize: vertical;
  min-height: 64px;
}
.field textarea:focus { outline: 2px solid rgba(26,113,199,.35); border-color: var(--blue); }
.field select { height: 44px; }
.pw-field { position: relative; }
.pw-field input { padding-right: 86px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #eef5fc;
  color: #1a5f9e;
  font-size: 12px;
  border-radius: 5px;
  padding: 5px 8px;
  cursor: pointer;
}
.pw-toggle:hover { background: #e0eefb; }

.share-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.share-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #33434f; }
.share-step span {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: #e9f7ec; color: #1d6b2e; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.share-step p { margin: 0; }

.share-card { max-width: 620px; max-height: 92vh; overflow-y: auto; position: relative; }
.modal-close {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px;
  border: 0; background: #f0f5fa; border-radius: 50%; font-size: 20px;
  line-height: 1; color: #33434f; cursor: pointer;
}
.modal-close:hover { background: #e2edf7; }
.share-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row input { flex: 1 1 auto; min-width: 0; }
.copy-row .icon-btn { flex: 0 0 auto; }
.mail-preview { margin-top: 8px; font-size: 13px; }
.mail-preview summary { cursor: pointer; color: #1a5f9e; }
.mail-preview pre {
  white-space: pre-wrap; word-break: break-word; background: #f6f9fb;
  border: 1px solid #e4edf4; border-radius: 8px; padding: 12px;
  font-size: 12px; max-height: 240px; overflow: auto; margin-top: 8px;
  font-family: var(--font-body);
}
.share-result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.share-result-actions .btn { flex: 1 1 180px; }
#shareHistory { max-height: 280px; overflow-y: auto; }
#shareDeliveryNote { margin-top: 10px; }

.download-page .auth-wrap { align-items: start; }
.download-page .auth-card { min-height: 300px; }
.download-title { font-family: var(--font-display); font-size: 28px; color: var(--navy); margin: 0 0 8px; }
.download-filebox {
  display: flex; align-items: center; gap: 14px; background: #f6f9fb;
  border: 1px solid #e4edf4; border-radius: 10px; padding: 14px; margin: 16px 0 18px;
}
.download-filebox svg { width: 34px; height: 34px; color: #1a71c7; flex: 0 0 auto; }
.download-filebox strong { display: block; font-size: 16px; color: #12202b; }
.download-filebox span { display: block; font-size: 12px; color: #5f6f7b; margin-top: 2px; }
#downloadBtn { width: 100%; }

@media (max-width: 640px) {
  .share-grid { grid-template-columns: 1fr; }
  .share-card { padding: 24px 18px; }
  .download-title { font-size: 24px; }
}

/* ==========================================================
   Reference pass – round 5 (measured against the original
   captures at 1440 / 768 / 390 px)
   ========================================================== */

/* --- Type scale -------------------------------------------------------
   The original applies a 0.875 tablet downscale and a second 0.875
   mobile downscale, so at 768 px and below the body is 12 px, not 16. */
@media (min-width: 769px) and (max-width: 1024px) {
  body { font-size: 14px; }
  p, li,
  .offer .offer-intro, .offer-card p,
  .feature-band p, .feature-band .feature-kicker,
  .split p, .company-intro p,
  .service-blue-copy, .service-blue-copy p, .service-blue-copy ul, .service-blue-copy h3,
  .history-col p, .history-block p,
  .ref-hero p, .ref-story p, .gallery-head p, .consent-card p,
  .contact-form label, .contact-form input, .contact-form textarea,
  .contact-form .form-note, .consent-row p, .contact-info p, .map-card p,
  .simple-page p, .simple-page li, .cookie-copy { font-size: 14px; }
}
@media (max-width: 767px) {
  :root { --fs-body: 12px; }
  body { font-size: 12px; }
  p, li,
  .offer .offer-intro, .offer-card p,
  .feature-band p, .feature-band .feature-kicker,
  .split p, .company-intro p,
  .service-blue-copy, .service-blue-copy p, .service-blue-copy ul, .service-blue-copy h3,
  .history-col p, .history-block p,
  .ref-hero p, .ref-story p, .gallery-head p, .consent-card p,
  .contact-form label, .contact-form input, .contact-form textarea,
  .contact-form .form-note, .consent-row p, .contact-info p, .map-card p,
  .simple-page p, .simple-page li, .cookie-copy { font-size: 12px; }
}

/* The original's quote headline is a 33 px h2 on desktop that takes
   the mobile h2 size (25 px), not a fixed 33 px. */
.quote-text { font-size: var(--fs-h2); }

/* The history page uses a 40 px display line and a 33 px kicker. */
.history-title { font-size: 40px; line-height: 1.33; max-width: 717px; }
.history-kicker { font-size: 33px; }
@media (max-width: 768px) {
  .history-title { font-size: var(--fs-h1); line-height: 1.33; max-width: 100%; }
  .history-kicker { font-size: 33px; }
}

/* --- Header / footer -------------------------------------------------- */
.site-header { box-shadow: 0 0 0 rgba(0, 0, 0, 0); }

/* Footer: original navy strip with its content at the top. */
.site-footer { display: block; padding: 0; }
.site-footer, .footer-inner { min-height: 273px; }
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px;
  max-width: 1280px; margin: 0 auto;
  padding: 33px 73px 0;
}
.footer-nav { gap: 8px; }
@media (min-width: 768px) and (max-width: 1024px) {
  .site-footer, .footer-inner { min-height: 107px; }
  .footer-inner { align-items: center; padding: 0 40px; }
}
@media (max-width: 767px) {
  .site-footer, .footer-inner { min-height: 126px; }
  .footer-inner { align-items: center; padding: 0 24px; }
}

/* The contact capture paints the navy footer, so keep it visible there. */
body.page-contact .site-footer { opacity: 1 !important; transform: none !important; }

/* --- Home page -------------------------------------------------------- */
/* Closing green call to action: 40 px Playfair, not the 48 px display. */
.cta-band { padding: 135px 0 61px; }
.cta-band h1, .home .cta-band h1 {
  font-family: var(--font-display);
  font-size: 40px; line-height: 1.32; max-width: 474px;
}
.home .cta-band { padding: 102px 0 82px; }
.home .cta-band .btn { margin-top: 44px; }
.home .h1-main { font-size: 40px; line-height: 1.3; }

@media (max-width: 767px) {
  .home .hero-band { height: 101px; }
  .home .offer { padding: 8px 0 0; }
  .home .offer .hero-title { line-height: 1; }
  .home .offer .offer-intro { margin-top: 8px; line-height: 1.3; }
  .home .offer-cards { margin-top: 10px; gap: 12px; }
  .home .offer-card h3 { margin: 12px 0 0; }
  .home .offer-card p {
    width: calc(100% + 30px); max-width: none;
    margin: 8px -15px 0;
  }
  .home .offer-card .btn { margin: 28px 0 0; min-height: 30px; }
  .home .h1-main { font-size: 33px; }
  .home .feature-band { min-height: 386px; }
  .cta-band, .home .cta-band { padding: 50px 24px 42px; }
  .cta-band h1, .home .cta-band h1 { font-size: 31px; }
  .cta-band .btn, .home .cta-band .btn { margin-top: 24px; }
}

/* --- Company page ----------------------------------------------------- */
/* 153 px above the intro heading and a 127 px gap below the copy, as in
   the original 1440 px capture. */
.company-intro { padding: 153px 0 127px; }
.company-intro h3 { margin: 0 0 22px; }

.service-blue-inner { max-width: 1050px; padding: 0 0 0 49px; }
.service-blue h2 { margin: 0 0 50px 22px; }
.service-blue-grid { grid-template-columns: 456px minmax(0, 1fr); gap: 71px; }
.service-blue-copy, .service-blue-copy p, .service-blue-copy ul {
  font-size: 16px; line-height: 1.25;
}
.service-blue-copy ul { margin: 0 0 16px; padding-left: 20px; }
.service-blue-copy li { line-height: 20px; margin: 0; }
.service-blue-copy h3 {
  font-family: var(--font-body); font-weight: 400; font-size: 17px;
  color: #a7a7a7; margin: 16px 0 4px; line-height: 20px;
}
.service-blue-copy .portfolio-label { color: #a7a7a7; margin-bottom: 4px; }

@media (max-width: 767px) {
  .company-intro { padding: 32px 30px 24px; }
  .service-blue-inner { max-width: none; padding: 0 30px; }
  .service-blue h2 { margin: 0 0 28px; }
  .service-blue-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-blue-copy, .service-blue-copy p, .service-blue-copy ul,
  .service-blue-copy h3 { font-size: 12px; line-height: 1.5; }
  .service-blue-copy h3 { font-weight: 700; color: #c6c6c6; }
}

/* --- History page ----------------------------------------------------- */
/* Align "Gegenwart" with the building photo, like the original grid. */
@media (min-width: 769px) {
  .history-block.hb-5 { margin-top: 196px; }
  .history-block.hb-4 { margin-top: 0; }
  .history-block.hb-4 .history-img { width: 456px; height: 456px; object-fit: cover; }
}
.history-quote-band .quote-text { color: var(--green-heading); }

/* --- Company intro ---------------------------------------------------- */
.company-intro h3 .intro-line { font-size: 32px; line-height: 1.4; }
.page-hero--unternehmen > .container { padding-left: 0; padding-right: 0; }
@media (max-width: 767px) {
  .company-intro h3 .intro-line { font-size: 44px; line-height: 1.16; }
  .intro-body .split-copy p { font-size: 16px; line-height: 1.5; }
  .intro-body .split-media img { width: 100%; max-width: 100%; height: auto; }
  .service-blue h2 .display-40 { font-size: var(--fs-h2); line-height: 1.3; }
  .page-hero--unternehmen > .container { padding-left: 24px; padding-right: 24px; }
}

/* --- Home reference band ---------------------------------------------- */
.home .feature-band .feature-kicker { margin-top: 40px; }
.home .feature-band .feature-inner p:not(.feature-kicker) {
  margin-top: 14px; margin-bottom: 22px;
}
@media (max-width: 767px) {
  .home .feature-band .feature-kicker { margin-top: 12px; }
  .home .feature-band .feature-inner p:not(.feature-kicker) { margin-top: 10px; }
}

/* --- Contact page ----------------------------------------------------- */
.page-hero--kontakt { min-height: 213px; padding: 58px 0 0; }
.contact-main { padding: 0 0 20px; }
.contact-form label { margin: 0 0 4px; }
.map-card p { max-width: 832px; }
@media (max-width: 767px) {
  .page-hero--kontakt { min-height: 154px; padding: 12px 0 0; }
  .contact-main { padding: 0 0 20px; }
  .contact-grid { padding: 0 16px; gap: 24px; }
}

/* --- References page -------------------------------------------------- */
.ref-hero h1 { max-width: 420px; }
.ref-story h4 { font-size: 28px; line-height: 1.45; }
.ref-story { padding-top: 180px; }
@media (max-width: 767px) {
  .ref-story { padding-top: 44px; }
  .ref-hero h1 { max-width: 100%; }
}

/* Exact section paddings the original theme uses. The element is
   positioned off-screen, so it only carries the measurements. */
.spacing-token {
  position: absolute; left: -9999px; top: 0;
  width: 1px; height: 1px; overflow: hidden;
  padding: 130px 97.9688px 80px 27.39px;
}


/* ==========================================================
   Round 6 – exact 768 px type scale and measured page fixes
   ========================================================== */

/* The tablet capture is taken at exactly 768 px. The original uses
   its 12 px body copy and hides the consent banner at that width,
   but keeps the fixed 960 px desktop grid (no single-column stack).
   The captured viewport is 753 px (scrollbar), so the range starts
   below 768 px. */
@media (min-width: 740px) and (max-width: 1024px) {
  body, p, li, .btn { font-size: 12px; }
  .offer .offer-intro, .offer-card p,
  .feature-band p, .feature-band .feature-kicker,
  .split p, .company-intro p, .intro-body .split-copy p,
  .service-blue-copy, .service-blue-copy p, .service-blue-copy ul,
  .service-blue-copy h3, .history-col p, .history-block p,
  .ref-hero p, .ref-story p, .gallery-head p, .gallery-head .gallery-hint,
  .consent-card p, .contact-form label, .contact-form input,
  .contact-form textarea, .contact-form .form-note, .consent-row p,
  .contact-info p, .map-card p, .simple-page p, .simple-page li,
  .cookie-copy { font-size: 12px; }
}
@media (min-width: 740px) and (max-width: 800px) {
  #cookieBanner { display: none !important; }
}

/* At 390 px the company page still used some 16 px copy from the
   desktop rules; the original is 12 px there as well. */
@media (max-width: 768px) {
  .intro-body .split-copy p, .company-intro p,
  .contact-info p, .contact-form label, .contact-form input,
  .contact-form textarea, .contact-form .form-note,
  .consent-row p, .map-card p { font-size: 12px; }
}

/* The home page's second display lines are 33 px in the original. */
.home .h1-main { font-size: 33px; }

/* --- History ---------------------------------------------------------- */
/* The original sets the history copy as one continuous block. */
.history-block p, .history-col p { margin-bottom: 0; }
.history-col h4 { font-size: 23px; }
@media (min-width: 769px) {
  .history-kicker { font-size: 28px; }
  .history-title { font-size: 48px; line-height: 1.33; max-width: 717px; }
  .history-col h4 { font-size: 24px; }
  .hb-2 .history-img { margin-bottom: 12px; }
}

/* Founder quote: full-bleed building photo with the quote and the
   portrait side by side, as measured on the original page. */
.history-quote-band {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 8px;
  min-height: 690px;
  padding: 134px 24px 0;
  background: #1a71c7 url("../../assets/img/original/04eb4b04-image.png") center / cover no-repeat;
}
.quote-card {
  background: transparent; box-shadow: none;
  max-width: 419px; margin: 0; padding: 0;
}
.quote-card .quote-text { font-size: 33px; line-height: 1.33; color: var(--green-heading); }
.quote-card cite { margin-top: 28px; font-size: 16px; font-weight: 400; color: var(--ink); }
.quote-portrait {
  width: 293px; height: 293px; margin: 0; border: 0; border-radius: 50%;
}

/* --- References ------------------------------------------------------- */
/* The case-study heading in the original is 23 px, not the 28 px
   display size used for the gallery heading. */
.ref-story h4 { font-size: 23px; line-height: 1.45; }

/* Gallery cards use one fixed image height per breakpoint in the
   original, so every card has the same rhythm. */
.gallery-list { gap: 4px; }
@media (min-width: 1025px) {
  .gallery-list { width: 620px; max-width: 620px; }
  .gallery-item img { width: 620px; height: 484px; object-fit: cover; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-item img { height: 340px; object-fit: cover; }
}
@media (max-width: 768px) {
  .gallery-item img { height: 212px; object-fit: cover; }
}

/* --- Contact ---------------------------------------------------------- */
@media (min-width: 769px) {
  .page-hero--kontakt { min-height: 258px; padding: 58px 0 0; }
}
/* --- Final mobile fidelity pass -------------------------------------- */
/* The captured phone pages show the consent bar and the green contact
   band; both were previously suppressed on small screens. */
@media (max-width: 767px) {
  .js .cta-band.reveal.cta-visible-small { opacity: 1 !important; transform: none !important; }

  /* History: the original uses 25 px subheadings on the phone and puts
     the founder quote on a white card above the portrait. */
  .history-kicker { font-size: 25px; }
  .history-col h3 { font-size: 25px; }
  .history-col h4 { font-size: 21px; }
  .history-quote-band {
    flex-direction: column; align-items: center; justify-content: flex-start;
    min-height: 690px; padding: 36px 12px 54px;
  }
  .history-quote-band .quote-card {
    background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    padding: 26px 22px; max-width: 92%; width: 100%;
  }
  .history-quote-band .quote-text { color: var(--navy); font-size: 25px; line-height: 1.3; }
  .history-quote-band .quote-card cite { color: var(--ink); font-size: 14px; margin-top: 14px; }
  .history-quote-band .quote-portrait { width: 200px; height: 200px; margin: 18px auto 0; }
}

/* The original sets the history page title at 40 px on desktop. */
@media (min-width: 769px) {
  .history-title { font-size: 40px; line-height: 1.33; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .history-kicker { font-size: 25px; }
}

/* The phone gallery keeps the original's card rhythm. */
@media (max-width: 640px) {
  .gallery-item img { height: 230px; }
}

@media (max-width: 640px) {
  .page-hero--kontakt { min-height: 232px; padding: 56px 0 0; }
}

/* ==========================================================
   Round 7 – gallery rhythm, missing type sizes and the
   footer's measured 2 / 3 / 2 columns.
   ========================================================== */

/* The reference gallery shows portrait-ish project sheets: 592 px
   wide and 352 px tall on desktop (pitch 356 px with the 4 px gap),
   not the short 484 px cards used before. At exactly 768 px the old
   769 px breakpoint never applied, so the tablet fell back to the
   212 px phone card and the page ended 4.4k px too early. */
@media (min-width: 1025px) {
  .gallery-list {
    width: 592px;
    max-width: 592px;
    margin: 40px 0 0 max(0px, calc((100% - 944px) / 2));
  }
  .gallery-item img { width: 592px; height: 352px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .gallery-list {
    width: 596px;
    max-width: 596px;
    margin: 40px 0 0;
  }
  .gallery-item img { width: 596px; height: 340px; }
}
@media (max-width: 767px) {
  .gallery-list { width: 350px; max-width: 350px; margin: 24px auto 0 20px; gap: 4px; }
  .gallery-item img { height: 230px; }
}

/* Type sizes the original uses on the inner pages and the 40 px
   rhythm above the project gallery. */
@media (min-width: 769px) {
  .intro-body .split-copy p { font-size: 18px; line-height: 1.55; }
  .quote-card cite { font-size: 18px; }
  .ref-story h4 { font-size: 28px; line-height: 1.45; }
  .ref-story p { font-size: 18px; }
  .gallery-head p { margin-top: 40px; }
}
/* Keep the company page's total height at the measured 3601 px after
   the intro copy grew to the original's 18 px. */
@media (min-width: 1025px) {
  .company-intro { padding-bottom: 58px; }

  /* Contact: the original hero photo is only ~140 px tall, so the
     form starts at 280 px, not 410 px. The map keeps its position
     by absorbing the difference above it. */
  .page-hero--kontakt { min-height: 140px; padding: 30px 0 0; }
  .map-consent { margin-top: 146px; }
}

/* The history kicker is 25 px in the tablet capture, not 33 px,
   and so is the founder quote. */
@media (min-width: 740px) and (max-width: 800px) {
  #main .history-kicker { font-size: 25px; }
  #main .quote-card .quote-text,
  #main .history-quote-band .quote-text,
  #main .history-quote-band h2 { font-size: 25px !important; }
}

/* The phone offer paragraph keeps the original capture's slight
   15 px bleed (the reference page is 421 px wide at a 390 px viewport). */
@media (max-width: 767px) {
  .home .offer-card p {
    width: calc(100% + 30px);
    max-width: none;
    margin: 8px -15px 0;
  }
}

/* ==========================================================
   Round 8 – phone rhythm and tablet type from the capture
   ========================================================== */

/* The capture viewport at "768 px" is 753 px wide because of the
   scrollbar, so the old exact-768 query never matched. The original
   keeps its 12 px copy and 960 px hero column across that range. */
@media (min-width: 740px) and (max-width: 1024px) {
  body, p, li, .btn { font-size: 12px; }
  .hero-inner { width: 960px; max-width: 960px; }
}

/* --- Phone: the original stacks copy, image and button ------------- */
@media (max-width: 767px) {
  /* Buttons are rounded rectangles, not pills. */
  .btn { border-radius: 8px; }

  /* Offer cards: left-aligned copy flush with the section edge. */
  .home .offer-card h3,
  .home .offer-card p { text-align: left; }
  .home .offer-card h3 { margin-left: 16px; margin-right: 16px; }
  .home .offer-card p { margin-left: -16px; margin-right: -16px; width: calc(100% + 32px); }
  .home .offer-card .btn { margin-left: 0; margin-right: auto; }

  /* Content rows: heading, copy, image, then the button under the
     image – exactly the order the reference phone capture shows. */
  .home .split, .home .split.reverse {
    display: flex; flex-direction: column;
    gap: 0; padding: 30px 24px 40px;
  }
  .home .split-copy,
  .home .split.reverse .split-copy { display: contents; }
  .home .split-copy > * { order: 1; }
  .home .split h1 + p { margin-top: 30px; }
  .home .split p + p { margin-top: 0; }
  .home .split-media,
  .home .split.reverse .split-media { order: 2; margin: 18px 0 0; }
  .home .split:not(.reverse) .split-media img,
  .home .split.reverse .split-media img { width: 300px; max-width: 100%; height: auto; }
  .home .split-copy > .btn { order: 3; margin: 22px 0 0; align-self: flex-start; }

  /* Reference band: 60 px top rhythm, larger kicker and bolder copy. */
  .home .feature-band .feature-inner { padding: 60px 24px 30px; }
  .home .feature-band h1,
  .home .feature-band h1.feature-title { font-size: 33px; line-height: 1.3; }
  .home .feature-band .feature-kicker { font-size: 16px; line-height: 1.4; margin-top: 14px; }
  .home .feature-band .feature-inner p:not(.feature-kicker) {
    font-size: 15px; line-height: 1.45; font-weight: 600;
    margin-top: 12px; margin-bottom: 20px; color: #ececec;
  }

  /* Hero product navigation: 297 px column starting at 32 px. */
  .hero-nav { width: 297px; flex: 0 0 297px; margin-left: 32px; gap: 12px; }
}

/* ==========================================================
   Round 9 – measured against the reference screenshots:
   inner-page copy is 16 px on tablet and phone, the company
   display heading is 32 px there, the phone book cover is
   290 px, the footer keeps the original 130 px white gap and
   the contact fields are square like the original form.
   ========================================================== */

/* Inner pages keep readable 16 px copy on tablet/phone. The home
   cards and the contact form stay at their measured 12 px. */
@media (max-width: 767px) {
  .intro-body .split-copy p,
  .company-intro p,
  .ref-hero p, .ref-story p, .gallery-head p,
  .consent-card p { font-size: 16px; line-height: 1.5; }

  .history-col p, .history-block p { font-size: 13px; line-height: 1.3; }

  /* The blue portfolio list stays at the small measured size. */
  .service-blue-copy, .service-blue-copy p, .service-blue-copy ul,
  .service-blue-copy li, .service-blue-copy h3 { font-size: 14px; line-height: 1.45; }

  /* The company headline is a 32 px display line on the phone. */
  .company-intro h3 .intro-line { font-size: 32px; line-height: 1.25; }

  /* The phone hero copy is flush with the viewport, like the original. */
  .page-hero--unternehmen > .container { padding-left: 0; padding-right: 0; }

  /* The history title and its book cover keep the captured size. */
  .history-title { font-size: 33px; line-height: 1.3; }
  .history-col .history-book { width: 290px; height: auto; max-width: 100%; object-fit: contain; margin: 0 auto 30px; }

  /* The reference band's small copy is 12 px, not 15 px. */
  .home .feature-band .feature-inner p:not(.feature-kicker) {
    font-size: 12px; line-height: 1.45; font-weight: 600;
  }

  /* Keep the company call to action on two lines like the original. */
  .page-company .cta-band h1 { font-size: 30px; }

  /* Trim the two content rows so the last button lands on the
     original's pixel row (the build ran 54 px long). */
  .home .split, .home .split.reverse { padding-bottom: 20px; }

  /* The reference capture leaves the hero product menu closed; the
     same links stay reachable from the mobile menu. */
  .hero-nav .nav-dropdown { display: none !important; }
}

@media (min-width: 740px) and (max-width: 1024px) {
  .intro-body .split-copy p,
  .company-intro p,
  .history-col p, .history-block p,
  .ref-hero p, .ref-story p, .gallery-head p,
  .consent-card p { font-size: 16px; line-height: 1.5; }

  .service-blue-copy, .service-blue-copy p, .service-blue-copy ul,
  .service-blue-copy li, .service-blue-copy h3 { font-size: 16px; line-height: 1.45; }

  .history-title { font-size: 33px; }
  .history-col .history-book { width: 290px; height: auto; object-fit: contain; }

  /* The original footer on the tablet has no copyright line. */
  .footer-copy { display: none; }

  /* The tablet capture leaves more white space under the map card, so
     the navy footer starts at the same height as the original. */
  body.page-contact .contact-main { padding-bottom: 105px; }
}

/* Keep the 130 px white strip the original leaves below its navy
   footer on desktop and tablet. The footer itself is 143 px tall
   (107 px at the tablet width), so the coloured band matches too. */
@media (min-width: 768px) {
  .site-footer { margin-bottom: 0; }
}
@media (min-width: 769px) {
  .site-footer, .footer-inner { min-height: 143px; }
}

/* Square form fields and send button, as in the original contact form. */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form .btn { border-radius: 0; }

/* ==========================================================
   Round 9b – the reference gallery sheets are shorter than the
   earlier 352 px guess: 270 px at desktop and 290 px at the
   tablet width, starting 100 px below the gallery heading.
   ========================================================== */
@media (min-width: 1025px) {
  .gallery-list { margin-top: 100px; }
  .gallery-item img { width: 592px; height: 270px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .gallery-list { margin-top: 100px; }
  .gallery-item img { width: 596px; height: 290px; }
}

/* ==========================================================
   Konten-Datenbank: Ersteinrichtung und Administratorbereich
   ========================================================== */
.setup-box { border-top: 1px solid #e7eef4; padding-top: 22px; }
.setup-kicker { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--green); font-weight: 700; margin: 0 0 6px; }
.setup-box h2 { font-family: var(--font-display); font-size: 24px; line-height: 1.25; color: var(--navy); margin: 0 0 8px; }
.setup-intro { font-size: 13px; line-height: 1.55; color: #4d5d6a; margin: 0 0 18px; }
.setup-box form { display: flex; flex-direction: column; }
.setup-box form .btn { width: 100%; border-radius: 8px; min-height: 44px; margin-top: 4px; }

.admin-panel { margin-top: 24px; }
.admin-kicker { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--green); font-weight: 700; margin: 0 0 5px; }
.admin-create { margin-top: 18px; padding: 16px 16px 4px; background: #f6f9fb; border: 1px solid #e4edf4; border-radius: 10px; }
.admin-create h3 { font-family: var(--font-body); font-size: 15px; font-weight: 700; margin: 0 0 12px; color: #12202b; }
.admin-create-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.admin-create .field { margin-bottom: 12px; }
.admin-create-submit { display: flex; align-items: flex-end; }
.admin-create-submit .btn { width: 100%; }
.admin-create .hint { font-size: 12px; line-height: 1.5; color: #5f6f7b; margin: 0 0 12px; }
.admin-table-wrap { margin-top: 18px; overflow-x: auto; }
.admin-table { min-width: 900px; }
.admin-user-name { font-weight: 600; color: #12202b; }
.admin-user-sub { color: #6b7b88; font-size: 12px; margin-top: 2px; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-btn { border: 1px solid #d8e2ec; background: #fff; border-radius: 6px; padding: 4px 8px; font-size: 11px; line-height: 1.4; cursor: pointer; color: #17344d; font-family: var(--font-body); }
.admin-btn:hover { background: #eef7ff; border-color: var(--blue); }
.admin-btn.danger { color: #9b1c1c; border-color: #f3c6c6; }
.admin-btn.danger:hover { background: #fdecec; }
.admin-role-select { height: 28px; font-size: 11px; border: 1px solid #d8e2ec; border-radius: 6px; padding: 2px 4px; background: #fff; color: #17344d; }
.admin-hint { font-size: 12px; line-height: 1.55; color: #5f6f7b; margin: 14px 0 0; }
.admin-table .badge { white-space: nowrap; }
@media (max-width: 900px) {
  .admin-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .admin-create-grid { grid-template-columns: 1fr; }
  .admin-create-submit { display: block; }
}

/* Round 13 heading structure */
.service-blue-copy p.service-blue-heading {
  margin: 22px 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}
.map-card p.map-card-title {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: #1b365d;
}
@media (max-width: 767px) {
  .map-card p.map-card-title { font-size: 20px; }
}

/* Intercomp: unsichtbare Spam-Falle im Kontaktformular */
.form-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-message.info { background: #eaf3fb; color: #1b4f72; border: 1px solid #c5dcf0; }
.form-message a { color: inherit; text-decoration: underline; }

/* Empfänger-Download in der Dateiliste */
.file-share-main { font-size: 12px; font-weight: 600; line-height: 1.35; }
.file-share-main.ok { color: #1d6b2e; }
.file-share-main.pending { color: #8a5a00; }
.file-share-main.none { color: #6b7b88; font-weight: 400; }
.file-share .file-sub { margin-top: 3px; }

/* Verfügbar bis / automatische Löschung */
.file-expiry-main { font-size: 12px; font-weight: 600; line-height: 1.35; }
.file-expiry-main.ok { color: #1d6b2e; }
.file-expiry-main.soon { color: #8a5a00; }
.file-expiry-main.expired { color: #9b1c1c; }
.file-expiry-main.none { color: #6b7b88; font-weight: 400; }
.file-expiry .file-sub { margin-top: 3px; }
/* Fallback, falls eine ältere/teilweise aktualisierte portal.js die Zelle
   leer lässt: lieber sichtbar "Unbegrenzt" als eine leere Spalte. */
.file-expiry:empty::after,
.file-expiry-main:empty::after { content: "Unbegrenzt"; color: #6b7b88; font-size: 12px; font-weight: 400; }

/* Kontenverwaltung: Status und Sammelaktion */
.admin-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* Mehrfach-Freigabe: Dateiliste auf der Download-Seite */
.download-file-list { list-style: none; margin: 12px 0 0; padding: 0; font-size: 12px; color: #4d5d6a; }
.download-file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #eef3f7; }
.download-file-list li:last-child { border-bottom: 0; }
.download-file-list .name { word-break: break-word; }
.download-file-list .size { white-space: nowrap; color: #6b7b88; }
.download-file-list a { color: #1b5e8a; text-decoration: underline; }

/* Ordner-Upload */
.folder-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.folder-hint { color: #6b7b88; font-size: 12px; }

/* Freigabe-Seite für den Link aus der Administrator-E-Mail */
.approve-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: #f2f6f9; }
.approve-card { width: 100%; max-width: 560px; background: #fff; border-radius: 12px; padding: 36px; box-shadow: 0 18px 50px rgba(18, 32, 43, .12); }
.approve-card h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.25; color: var(--navy); margin: 0 0 12px; }
.approve-card p { color: #4d5d6a; font-size: 14px; line-height: 1.6; }
.approve-card .btn { width: 100%; margin-top: 8px; }
.approve-card .hint { font-size: 12px; color: #6b7b88; }

/* Online-Status in der Kontenverwaltung */
.admin-presence-main { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #53636f; }
.admin-presence-main::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa7b1; flex: 0 0 8px; }
.admin-presence-main.online { color: #1d6b2e; }
.admin-presence-main.online::before { background: #1d6b2e; box-shadow: 0 0 0 3px rgba(29, 107, 46, .14); }
.admin-presence-main.idle { color: #8a5a00; }
.admin-presence-main.idle::before { background: #c47f00; }
.admin-presence .file-sub { margin-top: 3px; }

/* Hilfe-Popup im Portal */
.help-overlay { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 20, 32, .62); }
.help-overlay[hidden] { display: none; }
.help-fab { position: fixed; left: 22px; right: auto; bottom: 24px; z-index: 1400; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 17px; background: var(--green, #2f7d3a); color: #fff; font: 600 13px/1 var(--font-body, Arial, sans-serif); box-shadow: 0 8px 22px rgba(8, 20, 32, .24); cursor: pointer; }
.help-fab span { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-weight: 700; }
.help-fab:hover { background: #25652f; }
.help-fab:focus-visible { outline: 3px solid rgba(47, 125, 58, .35); outline-offset: 3px; }
@media (max-width: 560px) { .help-fab { left: 14px; right: auto; bottom: 14px; } }
.help-card { width: min(960px, 100%); height: min(84vh, 780px); display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 12px; box-shadow: 0 24px 70px rgba(8, 20, 32, .32); }
.help-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #e6edf3; }
.help-head h2 { margin: 0; font-family: var(--font-display); font-size: 22px; color: var(--navy); }
.help-card iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.help-content { flex: 1; overflow: auto; padding: 24px 28px; background: #fff; }
.help-content.help-page { min-height: 0; padding: 24px 28px; background: #fff; }
.help-content .help-back { display: none; }
.help-foot { margin: 0; padding: 10px 20px; border-top: 1px solid #e6edf3; font-size: 12px; }
.help-foot a { color: #0d5a9e; text-decoration: underline; }

/* Hilfe-Seite */
.help-page { padding: 40px 20px 70px; background: #f2f6f9; min-height: 100vh; }
.help-page .help-card { height: auto; max-width: 900px; margin: 0 auto; padding: 36px; display: block; overflow: visible; }
.help-page h1 { font-family: var(--font-display); font-size: 36px; line-height: 1.2; color: var(--navy); margin: 6px 0 10px; }
.help-page .lead { color: #4d5d6a; font-size: 16px; margin-bottom: 26px; }
.help-page h2 { font-family: var(--font-display); font-size: 23px; color: var(--green-heading); margin: 26px 0 8px; }
.help-page p, .help-page li { color: #33434f; font-size: 14px; line-height: 1.7; }
.help-page ul { margin: 6px 0 0; padding-left: 20px; }
.help-page code { background: #eef3f7; border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.help-back { margin-top: 30px; }

/* Sicherung & Wiederherstellung im Admin-Bereich */
.backup-box { margin-top: 26px; padding: 20px; border: 1px solid #e3ebf2; border-radius: 10px; background: #f8fbfd; }
.backup-box h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 21px; color: var(--navy); }
.backup-box p { margin: 0 0 10px; color: #4d5d6a; font-size: 13px; line-height: 1.6; }
.backup-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #33434f; margin: 6px 0 12px; }
.backup-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.backup-box input[type="file"] { display: block; margin-top: 6px; max-width: 100%; font-size: 13px; }
.backup-rule { border: 0; border-top: 1px solid #e3ebf2; margin: 18px 0; }
.backup-box code { background: #eef3f7; border-radius: 4px; padding: 1px 5px; font-size: 12px; }

/* Gast-Upload-Einladungen */
.guest-invite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.guest-invite-submit { display: flex; align-items: flex-end; }
.guest-invite-submit .btn { width: 100%; }
.guest-invite-result { margin: 14px 0 18px; padding: 16px; border: 1px solid #cfe8cf; border-radius: 8px; background: #f5fdf5; }
.guest-invite-result p { margin: 0 0 10px; }
.guest-invite-result label { display: block; margin: 8px 0 4px; font-size: 12px; font-weight: 600; color: #33434f; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid #d8e2ea; border-radius: 6px; font-size: 12px; background: #fff; }
.guest-invite-list-title { margin: 22px 0 8px; font-family: var(--font-display); font-size: 20px; color: var(--navy); }
.guest-invite-table td, .guest-invite-table th { font-size: 12px; }
.guest-invite-table .btn { padding: 6px 10px; font-size: 12px; }
.guest-folder-field { grid-column: 1 / -1; }
@media (max-width: 560px) { .guest-folder-field { grid-column: auto; } }
.guest-status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.guest-status.active { background: #e6fde7; color: #258d14; }
.guest-status.expired { background: #fff3e0; color: #a66300; }
.guest-status.revoked { background: #fdecec; color: #b3261e; }
@media (max-width: 720px) { .guest-invite-grid { grid-template-columns: 1fr; } }

/* Öffentliche Gast-Upload-Seite */
.guest-upload-page { margin: 0; background: #f2f6f9; color: #26333d; font-family: Arial, Helvetica, sans-serif; }
.guest-upload-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 6vw; background: #fff; border-top: 5px solid #019d01; border-bottom: 1px solid #e3ebf2; }
.guest-upload-head img { display: block; height: auto; }
.guest-upload-head span { color: #39873c; font-family: Georgia, serif; font-style: italic; font-size: 14px; }
.guest-upload-main { width: min(760px, calc(100% - 24px)); margin: 34px auto; }
.guest-upload-card { background: #fff; border-radius: 12px; padding: 28px 30px 30px; box-shadow: 0 12px 34px rgba(10, 30, 50, .08); border-top: 5px solid #019d01; }
.guest-upload-card h1 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 28px; color: #101b86; line-height: 1.2; }
.guest-upload-card h2 { font-size: 18px; color: #101b86; margin: 22px 0 8px; }
.guest-upload-lead { color: #4d5d6a; font-size: 14px; line-height: 1.65; }
.guest-upload-meta { margin: 14px 0; padding: 12px 14px; border-radius: 8px; background: #f5f9fc; color: #33434f; font-size: 13px; line-height: 1.7; }
.guest-upload-meta strong { color: #101b86; }
.guest-drop { margin-top: 18px; padding: 26px 18px; border: 2px dashed #b9d7bc; border-radius: 10px; text-align: center; background: #f7fdf7; }
.guest-drop.dragover { border-color: #019d01; background: #ecfdec; }
.guest-drop p { margin: 0 0 10px; }
.guest-queue { margin-top: 18px; }
.guest-queue ul { margin: 0 0 12px; padding: 0; list-style: none; border: 1px solid #e3ebf2; border-radius: 8px; }
.guest-queue li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #eef3f7; font-size: 13px; }
.guest-queue li:last-child { border-bottom: 0; }
.guest-progress { margin-top: 16px; }
.guest-progress p { margin: 6px 0 0; color: #4d5d6a; font-size: 12px; }
.guest-uploaded { margin-top: 24px; padding-top: 8px; border-top: 1px solid #e3ebf2; }
.guest-uploaded-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guest-uploaded-list { margin: 8px 0; padding: 0; list-style: none; }
.guest-uploaded-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef3f7; font-size: 13px; }
.guest-uploaded-list li:last-child { border-bottom: 0; }
.guest-uploaded .btn { width: 100%; margin-top: 8px; }
.guest-upload-foot { display: flex; justify-content: space-between; gap: 12px; padding: 20px 6vw; color: #6b7b87; font-size: 12px; }
@media (max-width: 560px) {
  .guest-upload-head { flex-direction: column; align-items: flex-start; }
  .guest-upload-card { padding: 22px 18px; }
  .guest-upload-card h1 { font-size: 23px; }
  .guest-upload-foot { flex-direction: column; }
}

/* ---------------------------------------------------------
   Lange Service-Seiten (Analysenmesstechnik / Systembau)
   --------------------------------------------------------- */
.service-page { background: #fff; }
.service-hero {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-size: cover;
  color: #fff;
  isolation: isolate;
}
.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 27, 52, .88) 0%, rgba(8, 27, 52, .70) 46%, rgba(8, 27, 52, .24) 100%);
}
.service-hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 98px 40px 52px;
}
.service-breadcrumb { font-size: 13px; color: rgba(255, 255, 255, .82); margin-bottom: 24px; }
.service-breadcrumb a { color: #d9f5db; text-decoration: underline; text-underline-offset: 3px; }
.service-breadcrumb span { margin: 0 7px; opacity: .7; }
.service-breadcrumb strong { color: #fff; font-weight: 600; }
.service-kicker {
  margin: 0 0 12px;
  color: #c8f5c9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.service-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 400;
}
.service-hero-lead { max-width: 760px; margin: 0; font-size: 20px; line-height: 1.5; color: #eef6ff; }
.service-content { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.service-section { padding: 58px 0; border-bottom: 1px solid #e8eef3; }
.service-section:last-child { border-bottom: 0; }
.service-section h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.14;
  font-weight: 400;
}
.service-section h3 { color: var(--navy); font-size: 19px; margin: 0 0 10px; }
.service-section p { color: #33434f; font-size: 17px; line-height: 1.7; margin: 0 0 16px; }
.service-section strong { color: #1d2d3a; }
.service-eyebrow {
  margin: 0 0 10px !important;
  color: var(--green-dark) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.service-intro { padding-top: 62px; }
.service-intro h2 { font-size: clamp(30px, 3.8vw, 42px); }
.service-lead { color: #1d2d3a !important; font-size: 20px !important; line-height: 1.55 !important; }
.service-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 46px; align-items: center; }
.service-grid-reverse { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.service-image { min-width: 0; }
.service-image img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 18px 42px rgba(16, 27, 134, .14); object-fit: cover; }
.service-side-card { padding: 28px 30px; border-radius: 10px; background: #f2faf3; border: 1px solid #d8eedb; }
.service-side-card h3 { margin-top: 0; }
.service-list { list-style: none; margin: 16px 0 22px; padding: 0; }
.service-list li { position: relative; padding: 0 0 11px 28px; color: #33434f; font-size: 16px; line-height: 1.45; }
.service-list li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 19px; height: 19px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #e5f6e7;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}
.service-text-link { color: var(--green-dark); font-weight: 700; }
.service-text-link:hover { text-decoration: underline; }
.service-band { background: #f6faf7; margin: 0 -40px; padding-left: 40px; padding-right: 40px; }
.service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.service-cards article { min-height: 118px; padding: 20px; border: 1px solid #e0e9ef; border-radius: 8px; background: #fff; }
.service-cards article span { display: block; margin-bottom: 14px; color: var(--green-dark); font-size: 12px; font-weight: 700; }
.service-cards article h3 { font-family: var(--font-body); font-size: 16px; line-height: 1.35; }
.service-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 16px 0 22px; }
.service-check-grid span { position: relative; padding: 0 0 11px 26px; color: #33434f; font-size: 16px; }
.service-check-grid span::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  color: var(--green-dark); font-weight: 700;
}
.service-cta {
  background: linear-gradient(120deg, #0e2a4d 0%, #174e78 55%, #1d6b58 100%);
  color: #fff;
  padding: 64px 40px;
}
.service-cta-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.service-cta h2 { color: #fff; margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(27px, 3vw, 36px); font-weight: 400; }
.service-cta p { color: #e4f0f6; font-size: 16px; line-height: 1.65; margin: 0 0 20px; }
.service-cta .service-eyebrow { color: #b7efc0 !important; }
.btn-outline-light { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; border: 1px solid rgba(255, 255, 255, .75); border-radius: var(--radius-pill); color: #fff; font-weight: 700; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
@media (max-width: 900px) {
  .service-hero-inner, .service-content { padding-left: 26px; padding-right: 26px; }
  .service-hero { min-height: 340px; }
  .service-grid, .service-grid-reverse { grid-template-columns: 1fr; gap: 28px; }
  .service-grid-reverse .service-image { order: -1; }
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-band { margin: 0 -26px; padding-left: 26px; padding-right: 26px; }
  .service-cta { padding: 48px 26px; }
  .service-cta-inner { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 560px) {
  .service-hero-inner { padding-top: 78px; padding-bottom: 38px; }
  .service-hero h1 { font-size: 33px; }
  .service-hero-lead, .service-lead { font-size: 17px !important; }
  .service-section { padding: 40px 0; }
  .service-cards, .service-check-grid { grid-template-columns: 1fr; }
  .service-section p { font-size: 16px; }
}

/* Kontaktkarte ohne vorgeschaltete Zustimmung */
.login-remember { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; color: #33434f; font-size: 13px; font-weight: 600; }
.login-remember input { width: 16px; height: 16px; margin: 0; flex: 0 0 16px; accent-color: var(--green, #2f7d3a); }
.portal-quicknav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 12px; background: #fff; border: 1px solid #e0e9ef; border-radius: 8px; }
.portal-quicknav a, .portal-quicknav button { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid #d4e1e9; border-radius: 999px; background: #f7fbfd; color: #174e78; font: 700 12px var(--font-body, Arial, sans-serif); cursor: pointer; text-decoration: none; }
.portal-quicknav a:hover, .portal-quicknav button:hover { background: #e9f7ec; border-color: #9fc7aa; color: #1d6b2e; }
.portal-top-link { display: inline-flex; margin-top: 14px; color: #258d14; font-size: 12px; font-weight: 700; text-decoration: none; }
.portal-top-link:hover { text-decoration: underline; }
#sessionReset { border: 1px solid #c9d6df; background: #fff; color: #174e78; border-radius: 4px; padding: 3px 8px; font: 600 11px var(--font-body, Arial, sans-serif); cursor: pointer; margin-left: 6px; }
#sessionReset:hover { background: #eef9ee; border-color: #9fc7aa; color: #1d6b2e; }
@media (max-width: 560px) { .portal-quicknav { padding: 8px; } .portal-quicknav a, .portal-quicknav button { font-size: 11px; padding: 7px 9px; } }
.contact-map-embed { width: 100%; max-width: 1100px; margin: 34px auto 0; border-radius: 16px; overflow: hidden; background: #e7edf0; }
.contact-map-embed iframe { display: block; width: 100%; height: 600px; border: 0; }
@media (max-width: 768px) { .contact-map-embed { margin-top: 22px; border-radius: 10px; } .contact-map-embed iframe { height: 420px; } }








