/* ==========================================================================
   Kirch Ausbau – Website styles
   ========================================================================== */

/* Accent palette. "green" = original Kirch green; switch themes via
   <html data-theme="…"> (see theme blocks below). */
:root {
  --green: #95C11F;
  --green-rgb: 149, 193, 31;
  --green-dark: #6A9A14;
  --green-ink: #4F7A0E;
  --green-ink-hover: #2F4A08;
  --green-tint: rgba(var(--green-rgb), .14);
  --ink: #1A1A1A;
  --ink-soft: #2A2A2A;
  --text: #333333;
  --text-muted: #444444;
  --white: #FFFFFF;
  --stone: #F2F2F0;
  --stone-hover: #ECECE8;
  --night: #161616;
  --night-card: #222222;
  --night-line: #333333;
  --footer: #0C0C0C;
  --glass: rgba(22, 22, 22, .86);
  --glass-strong: rgba(22, 22, 22, .92);

  --f-body: 'Barlow', system-ui, sans-serif;
  --f-cond: 'Barlow Condensed', sans-serif;
  --f-marker: 'Permanent Marker', cursive;

  --r-pill: 999px;
  --r-xl: 40px;
  --r-lg: 32px;
  --r-md: 24px;
  --r-sm: 12px;

  --shadow-glass: 0 20px 50px rgba(0, 0, 0, .22);
  --edge: max(32px, calc((100vw - 1280px) / 2 + 32px));
  --header-h: 88px;
  --topbar-h: 40px;
}

/* Theme: Oliv matt */
:root[data-theme="oliv"] {
  --green: #949A6A;
  --green-rgb: 148, 154, 106;
  --green-dark: #5F6640;
  --green-ink: #4C5233;
  --green-ink-hover: #33371F;
}

/* Accent-colored SVG parts follow the active theme */
.fill-accent { fill: var(--green); }
.stroke-accent { stroke: var(--green); }
.stroke-accent-dark { stroke: var(--green-dark); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green-ink); }
a:hover { color: var(--green-ink-hover); }
h1, h2, h3, h4, p { margin: 0; }
section[id] { scroll-margin-top: 112px; }
.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;
}

/* ---------- Animations ---------- */
@keyframes kIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes kInL { from { opacity: 0; transform: translateX(-40px) rotate(-6deg); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes kDraw { from { transform: rotate(-6deg) skewX(-24deg) scaleX(0); } to { transform: rotate(-6deg) skewX(-24deg) scaleX(1); } }
@keyframes kFloat { 0%, 100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-12px); } }
@keyframes kMarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--green-rgb), .7); } 100% { box-shadow: 0 0 0 26px rgba(var(--green-rgb), 0); } }
@keyframes kZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes kWiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(1deg); } }

.anim-in { animation: kIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.anim-in--fast { animation-duration: .35s; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .3s; } .d3 { animation-delay: .45s; } .d4 { animation-delay: .6s; }
.anim-zoom { animation: kZoom 22s ease-in-out infinite alternate; }
.anim-pulse { animation: kPulse 1.8s ease-out infinite; }
.lift { transition: transform .25s ease, box-shadow .25s ease; }
.lift:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }

/* ---------- Layout ---------- */
.container { max-width: 1280px; margin: 0 auto; }
.container--md { max-width: 1180px; }
.container--sm { max-width: 900px; }
.stack { display: flex; flex-direction: column; }
.section { padding: 96px 24px; }
.section--white { background: var(--white); }
.section--stone { background: var(--stone); }
.section--dark {
  background: var(--night); color: var(--white);
  border-radius: var(--r-xl); margin: 0 clamp(8px, 2vw, 24px);
}
.auto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--min, 240px), 1fr)); gap: var(--gap, 22px); }

/* ---------- Typography helpers ---------- */
.cond { font-family: var(--f-cond); text-transform: uppercase; font-weight: 800; }
.cond-i { font-family: var(--f-cond); text-transform: uppercase; font-style: italic; font-weight: 900; }
.marker { font-family: var(--f-marker); font-weight: 400; }
.c-green { color: var(--green); }
.c-green-dark { color: var(--green-dark); }
.c-white { color: var(--white); }

/* Script heading (kicker + big marker title) */
.script-heading { display: flex; flex-direction: column; align-items: flex-start; }
.script-heading__kicker {
  font-family: var(--f-marker); font-size: 30px; display: block; transform: rotate(-4deg);
}
.script-heading__title {
  font-family: var(--f-marker); font-weight: 400; line-height: 1;
  font-size: clamp(48px, 7vw, 80px); color: var(--green-dark); transform: rotate(-4deg);
}
.section--dark .script-heading__title { color: var(--green); }
.script-heading__bar {
  height: 10px; width: 360px; max-width: 80%; margin-top: 4px; background: var(--green);
  transform: rotate(-4deg) skewX(-24deg); border-radius: 2px 40px 40px 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 14px 26px;
  font-family: var(--f-cond); font-style: italic; font-weight: 800; font-size: 22px;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn--green { background: var(--green); color: var(--ink); }
.btn--green:hover { background: var(--ink); color: var(--green); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--green); color: var(--ink); }
.btn--outline { background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.btn--outline:hover { color: var(--ink); }
.btn--square { border-radius: 0; }
.btn--lg { font-size: 24px; padding: 14px 30px; }
.btn--sm { font-size: 19px; padding: 10px 20px; }
.btn--header { font-size: 20px; padding: 10px 22px; }
.btn svg { flex: none; }

.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; background: var(--stone);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.icon-btn:hover { transform: translateY(-3px) rotate(-1deg); }

/* Wiggling pill tag */
.tag {
  align-self: flex-start; position: relative; z-index: 2;
  background: var(--green); color: var(--ink); border-radius: var(--r-pill);
  font-family: var(--f-cond); font-weight: 800; text-transform: uppercase;
  font-size: clamp(18px, 2vw, 26px); padding: 8px 22px;
  animation: kWiggle 4s ease-in-out infinite;
}
.tag--overlap { margin-left: 32px; margin-bottom: -14px; }
.tag--sm { font-size: 22px; padding: 6px 18px; }

/* Dark glass panel */
.glass {
  background: var(--glass); color: var(--white);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glass); border-radius: var(--r-lg);
}

/* Check items */
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.check svg { flex: none; margin-top: 1px; }
.check--center { align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  border-bottom: 4px solid var(--green);
}
.site-header__bar {
  max-width: 1320px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header__logo { display: block; flex: none; }
.site-header__logo img { height: 64px; width: auto; } /* Raumwerk logo: tagline needs the height to stay readable */
@media (max-width: 860px) {
  :root { --header-h: 76px; --topbar-h: 58px; } /* topbar text wraps to two lines on phones */
  .site-header__logo img { height: 52px; }
}
.site-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-spacer { height: calc(var(--header-h) + var(--topbar-h)); }

/* Announcement bar (Klimaanlagen ab 2027) */
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 8px 14px; flex-wrap: wrap;
  min-height: var(--topbar-h); padding: 6px 16px;
  background: var(--night); color: var(--white); text-decoration: none; text-align: center;
  font-family: var(--f-cond); font-style: italic; font-weight: 800; font-size: 18px;
  text-transform: uppercase; letter-spacing: .02em;
}
.topbar:hover { color: var(--white); }
.topbar__new {
  background: var(--green); color: var(--ink); border-radius: var(--r-pill);
  padding: 2px 12px; font-weight: 900;
  animation: kWiggle 4s ease-in-out infinite;
}
.topbar__cta { color: var(--green); transition: transform .2s ease; }
.topbar:hover .topbar__cta { transform: translateX(4px); }

.nav-desktop { display: flex; align-items: center; gap: 2px; }
.nav-link {
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .03em;
  padding: 10px 14px; border-radius: var(--r-pill);
  transition: background-color .2s ease, color .2s ease;
}
.nav-link:hover { background: var(--green); color: var(--ink); }

.burger {
  display: none; width: 54px; height: 48px; padding: 0; border: 0; border-radius: 14px;
  background: var(--ink); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.burger span {
  display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--green);
  transition: transform .3s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.mobile-nav {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 0 0 28px 28px; padding: 8px 20px 28px;
  max-height: calc(100vh - var(--header-h) - var(--topbar-h)); overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; }
.mobile-nav__link {
  font-family: var(--f-cond); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 32px; line-height: 1; color: var(--white); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--night-line);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav__link:hover { color: var(--green); }
.mobile-nav__link span { color: var(--green); }
.mobile-nav__new {
  margin: 0 auto 0 12px; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--green); color: var(--ink); font-style: normal; font-size: 14px; letter-spacing: .02em;
}
.mobile-nav__phones { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 20px; font-size: 18px; font-weight: 600; }
.mobile-nav__phones a { color: var(--white); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.mobile-nav__phones a.is-green { color: var(--green); }

@media (max-width: 1020px) {
  .nav-desktop, .hide-tablet { display: none !important; }
  .burger { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--stone); min-height: 760px; display: flex; flex-wrap: wrap; }
.hero--career { min-height: 740px; flex-wrap: nowrap; }
.hero__img {
  position: absolute; top: 0; right: 0; bottom: 0; width: 60%; overflow: hidden;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.hero--career .hero__img { width: 56%; clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%); }
/* Wide screens: anchor the image to the centred content column instead of the
   window, so it doesn't creep left over the headline (same geometry as at 1440px). */
@media (min-width: 1441px) {
  /* Big screens: the hero is the 1440px layout scaled up (--hz is set in main.js
     from window width and height), so it fills the screen instead of sitting in a
     narrow column. The header bar lines up with the scaled hero text. */
  .hero { zoom: var(--hz, 1); --edge: 112px; }
  .site-header__bar { max-width: none; padding-inline: calc(112px * var(--hz, 1)); }
  /* Keep the Mieterwechsel panel inside the content column (0 extra at 1440px). */
  .split__txt { margin-right: calc(var(--edge) - 112px); }
  .split--team .split__txt { margin-right: 0; }
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img img.hero__img--jungle { object-position: 58% 50%; }
.hero__img img.hero__img--bad { object-position: 38% 35%; }
.hero__txt {
  /* max-width counts the left page edge too, so text keeps ~730px on wide screens */
  position: relative; z-index: 2; flex: 0 1 58%; min-width: 0; max-width: calc(var(--edge) + 728px);
  padding: 36px 32px 72px var(--edge);
  display: flex; flex-direction: column; gap: 30px;
}
.hero--career .hero__txt { max-width: calc(var(--edge) + 748px); gap: 24px; }
.hero__title { margin-top: 24px; font-weight: 400; display: flex; flex-direction: column; }
.hero__line {
  display: block; font-family: var(--f-marker); line-height: 1;
  transform: rotate(-6deg); transform-origin: left;
  animation: kInL .7s cubic-bezier(.2, .8, .2, 1) both;
}
.hero__line--1 { font-size: clamp(34px, 6.2vw, 76px); color: var(--ink); }
.hero__line--2 { font-size: clamp(46px, 9vw, 112px); color: var(--green-dark); margin-top: 4px; }
.hero--career .hero__line--1 { font-size: clamp(32px, 5.5vw, 68px); }
.hero--career .hero__line--2 { font-size: clamp(48px, 9vw, 112px); margin-top: 0; }
.hero__draw {
  height: 16px; width: 88%; max-width: 600px; margin-top: -6px; background: var(--green);
  border-radius: 2px 60px 60px 2px; transform-origin: left;
  animation: kDraw .7s .75s cubic-bezier(.2, .8, .2, 1) both;
}
.hero--career .hero__draw { height: 14px; width: 70%; max-width: 480px; margin-top: -4px; }
.hero__lead { margin-top: 8px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 520px; color: var(--ink-soft); font-weight: 500; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__features { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 6px; }
.hero__feature { display: flex; align-items: center; gap: 10px; }
.hero__feature span { font-weight: 800; font-size: 14px; line-height: 1.2; text-transform: uppercase; }
.hero__feature span span { font-weight: 500; }
.hero__job { margin-top: 8px; }
.hero__job .tag { margin-left: 24px; margin-bottom: -12px; font-size: clamp(18px, 2vw, 24px); padding: 6px 18px; }
.hero__job .glass { padding: 36px 36px 30px; }

.badge {
  position: absolute; z-index: 3; right: var(--edge); bottom: 56px;
  width: 250px; height: 250px; padding: 20px; border-radius: 50%;
  background: var(--green); border: 8px solid var(--white); box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; text-decoration: none; color: var(--ink);
  animation: kFloat 5s ease-in-out infinite;
}
.badge:hover { color: var(--ink); }
.badge__a { font-family: var(--f-cond); font-style: italic; font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; }
.badge__b { font-family: var(--f-marker); font-size: 30px; line-height: 1.05; color: var(--white); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); margin: 6px 0; }
.badge__b--xl { font-size: 46px; }
.badge__c { font-weight: 700; font-size: 14px; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 4; overflow: hidden;
  margin: -40px clamp(12px, 3vw, 40px) 0; padding: 22px 0;
  transform: rotate(-2deg); border-radius: var(--r-lg);
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glass);
}
.marquee__track {
  display: flex; width: max-content; white-space: nowrap;
  font-family: var(--f-cond); font-style: italic; font-weight: 900; font-size: 40px; text-transform: uppercase;
  animation: kMarq 28s linear infinite;
}
.marquee__track > span { color: var(--green); padding-right: 40px; }
.marquee__track i { color: var(--white); font-style: normal; }
.marquee__track b { color: var(--white); font-weight: 900; }

/* ---------- Klimaanlagen (neu ab 2027) ---------- */
.klima { position: relative; background: var(--green); margin-top: -46px; padding: 136px 24px 104px; }
.klima__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.klima__txt { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.klima__new {
  background: var(--ink); color: var(--green); border-radius: var(--r-pill);
  font-family: var(--f-cond); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 28px); padding: 8px 24px;
  animation: kWiggle 4s ease-in-out infinite;
}
.klima__title { font-size: clamp(56px, 9.5vw, 136px); line-height: .88; color: var(--ink); }
.klima__bar {
  height: 14px; width: 80%; max-width: 480px; margin-top: -6px; background: var(--ink);
  transform: rotate(-3deg) skewX(-24deg); border-radius: 2px 40px 40px 2px;
}
.klima__kicker { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; color: var(--ink); transform: rotate(-3deg); }
.klima__lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; font-weight: 500; color: var(--ink); max-width: 560px; }
.klima__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.klima__checks .check { font-size: 18px; }

.klima__side { position: relative; display: flex; flex-direction: column; }
.klima__media img {
  width: 100%; height: 340px; object-fit: cover; object-position: 70% 30%;
  border-radius: var(--r-lg); box-shadow: var(--shadow-glass);
}
.split__img img.split__img--bad { object-position: 38% 40%; }
.klima__stamp {
  position: absolute; top: -36px; right: -16px; z-index: 3;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--ink); color: var(--green); border: 6px solid var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  animation: kFloat 5s ease-in-out infinite;
}
.klima__stamp span { font-family: var(--f-cond); font-style: italic; font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1; color: var(--white); }
.klima__stamp strong { font-family: var(--f-marker); font-weight: 400; font-size: 46px; line-height: 1.05; }
.klima__card {
  position: relative; z-index: 2; margin: -64px 0 0 28px;
  background: var(--white); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-glass);
}
.klima__form { display: flex; flex-direction: column; gap: 14px; }
.klima__form[hidden], .klima__done[hidden] { display: none; }
.klima__form-title { font-size: 34px; line-height: 1; }
.klima__fields { --min: 180px; --gap: 14px; }
.klima__legal { font-size: 14px; color: #555555; }
.klima__done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.klima__done h3 { font-size: 34px; line-height: 1; }
.klima__done p { font-size: 18px; line-height: 1.5; }

/* Form sending: spam trap, error message, contact thank-you */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  background: #FFF1F0; color: #8A1C12; border-left: 4px solid #C0392B;
  padding: 12px 14px; border-radius: 6px; font-weight: 600; line-height: 1.45;
}
.form-error[hidden] { display: none; }
.form-error a { color: inherit; font-weight: 800; }
.contact__form[hidden], .contact__done[hidden] { display: none; }
.contact__legal { font-size: 14px; }
.contact__legal a { color: inherit; font-weight: 700; }
.contact__done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; max-width: 600px; }
.contact__done h3 { font-size: 34px; line-height: 1; }
.contact__done p { font-size: 18px; line-height: 1.5; }
.contact__done .link-btn { color: var(--ink); }
button[disabled] { opacity: .6; cursor: progress; }

/* Legal pages (Impressum, Datenschutz) */
.legal { max-width: 820px; margin: 0 auto; padding: 64px 24px 96px; display: flex; flex-direction: column; gap: 32px; line-height: 1.6; font-size: 17px; }
.legal__title { font-size: clamp(48px, 8vw, 80px); line-height: .95; }
.legal__lead { font-size: 19px; font-weight: 500; }
.legal h2 { font-family: var(--f-cond); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1.15; margin-bottom: 8px; }
.legal section p + p, .legal section p + ul, .legal section ul + p { margin-top: 12px; }
.legal__list { margin: 6px 0 0 1.2em; list-style: disc; }
.legal__list li + li { margin-top: 2px; }
.legal a { color: var(--green-ink); font-weight: 600; }
.legal__date { color: #555555; font-size: 15px; }
mark.todo { background: #FFE066; color: var(--ink); padding: 0 4px; border-radius: 3px; }

@media (max-width: 960px) {
  .klima__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .klima__stamp { right: 12px; }
}

/* ---------- Leistungen (tabs) ---------- */
.services { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.services__list { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.service-btn {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px;
  padding: 10px 18px 10px 10px; border: 0; border-radius: 18px;
  background: var(--stone); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.service-btn:hover { transform: translateX(8px); }
.service-btn[aria-selected="true"] { background: var(--night); color: var(--green); }
.service-btn__icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.service-btn__label { font-family: var(--f-cond); font-weight: 800; font-size: clamp(20px, 2vw, 25px); text-transform: uppercase; line-height: 1.05; }

.services__panel {
  flex: 999 1 520px; min-width: 0; min-height: 520px; padding: 64px 56px;
  display: flex; flex-direction: column; gap: 22px; justify-content: center;
}
.services__panel[hidden] { display: none; }
.services__list .services__panel { flex: none; min-height: 0; justify-content: flex-start; margin-bottom: 8px; scroll-margin-top: calc(var(--header-h) + var(--topbar-h, 0px)); }
.services__title {
  font-family: var(--f-cond); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 5.5vw, 72px); line-height: .92; color: var(--green);
  overflow-wrap: anywhere; hyphens: auto;
}
.services__intro { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; font-weight: 600; max-width: 640px; }
.services__text { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: #D9D9D9; max-width: 640px; }
.services__points { --min: 240px; gap: 10px 22px; }
.tip { background: var(--green-tint); border-radius: 20px; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.tip__label { font-family: var(--f-marker); font-size: 22px; color: var(--green); line-height: 1; }
.tip__text { font-size: 17px; line-height: 1.55; color: #F2F2F2; font-style: italic; }
.tip__by { font-size: 14px; font-weight: 700; color: #BDBDBD; }

/* ---------- Split section (image + glass panel) ---------- */
.split { position: relative; background: var(--stone); display: flex; flex-wrap: wrap; align-items: stretch; }
.split__img { flex: 1 1 440px; min-width: 0; min-height: 560px; position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); }
.split__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__txt {
  flex: 1 1 600px; min-width: 0; max-width: 820px; margin-left: -140px; position: relative; z-index: 2;
  padding: 80px 40px 80px 0; display: flex; flex-direction: column; justify-content: center;
}
.split__txt .tag { margin-left: 36px; margin-bottom: -16px; }
.split__panel { padding: 56px 52px 48px; display: flex; flex-direction: column; gap: 18px; }
.split__title { font-size: clamp(34px, 6vw, 76px); line-height: .9; color: var(--green); }
.split__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: #EDEDED; }
.split__checks { --min: 220px; gap: 12px 24px; padding-top: 6px; }
.split__checks .check { font-size: 18px; align-items: center; }
.split__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-top: 12px; }
.split__note { font-family: var(--f-marker); font-size: 22px; color: var(--green); transform: rotate(-4deg); }

/* Team split (Karriere) */
.split--team .split__txt {
  flex: 1 1 560px; max-width: none; margin-left: 0;
  padding: 88px 48px 88px var(--edge); gap: 18px;
}
.split--team .split__img { min-height: 480px; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
.team__kicker { font-family: var(--f-marker); font-size: 28px; color: var(--green-ink); transform: rotate(-3deg); align-self: flex-start; }
.team__title { font-size: clamp(40px, 5.5vw, 68px); line-height: .92; }
.team__text { font-size: 19px; line-height: 1.6; color: var(--text); }
.team__checks { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 6px; }

/* ---------- Festpreis ---------- */
.promise { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; background: var(--stone); padding: 40px; border-radius: var(--r-lg); }
.promise__card { flex: 1 1 360px; min-width: 0; display: flex; gap: 22px; align-items: center; background: var(--white); padding: 28px; border-radius: var(--r-md); }
.promise__card svg { flex: none; }
.promise__title { font-size: clamp(34px, 3.5vw, 46px); line-height: .92; }
.promise__text { font-size: 18px; line-height: 1.45; color: var(--text); margin-top: 6px; }
.promise__plus {
  flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 700; line-height: 1;
}
.promise-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.promise-list .check { align-items: center; }

/* ---------- Cards (steps / benefits) ---------- */
.card {
  border-radius: var(--r-md); overflow: hidden; padding: 32px 26px;
  display: flex; flex-direction: column; gap: 10px; border-bottom: 6px solid var(--green);
}
.card--dark { background: var(--night-card); }
.card--light { background: var(--white); }
.card__num { font-family: var(--f-marker); font-size: 64px; line-height: 1; color: var(--green); }
.card__num--lg { font-size: 72px; }
.card__title { font-size: 30px; line-height: 1; }
.card__text { font-size: 17px; line-height: 1.55; color: #D6D6D6; }
.card--light .card__text { color: var(--text-muted); line-height: 1.5; }
.card__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.card__title--sm { font-size: 28px; }
.card__title--steps { font-size: clamp(26px, 2.5vw, 32px); font-weight: 800; line-height: 1.1; }

/* ---------- Karriere teaser (home) ---------- */
.career-teaser { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.career-teaser__main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; }
.career-teaser__main .tag { margin-left: 30px; }
.career-teaser__panel { padding: 46px 44px 38px; display: flex; flex-direction: column; gap: 10px; }
.job-title { font-size: clamp(42px, 7vw, 80px); line-height: .9; color: var(--green); }
.job-title small { font-size: .38em; }
.career-teaser__text { margin-top: 24px; font-size: 18px; line-height: 1.55; color: var(--text); }
.premium-box { flex: 1 1 380px; min-width: 0; border: 3px solid var(--green); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.premium-box__label { font-size: 30px; }
.premium-box__amount { font-family: var(--f-marker); font-size: clamp(56px, 8vw, 96px); line-height: 1; color: var(--green-dark); }
.premium-box__note { font-size: 16px; color: var(--text-muted); }

/* ---------- Prämie (Karriere) ---------- */
.premium { padding: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.premium__main { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.premium__ring { width: 110px; height: 110px; border-radius: 50%; border: 6px solid var(--green); display: flex; align-items: center; justify-content: center; }
.premium__label { font-size: clamp(26px, 3vw, 36px); line-height: 1; }
.premium__amount { font-family: var(--f-marker); font-size: clamp(64px, 11vw, 140px); line-height: 1; color: var(--green); }
.premium__parts { display: flex; flex-direction: column; gap: 18px; min-width: 240px; }
.premium__part { display: flex; align-items: center; gap: 14px; font-size: 17px; }
.premium__part strong { display: block; font-family: var(--f-cond); font-style: italic; font-weight: 900; font-size: 34px; color: var(--green); line-height: 1; }
.premium__divider { height: 1px; background: var(--text-muted); }

/* ---------- Jobs ---------- */
.jobs { display: flex; flex-direction: column; gap: 18px; }
.job { background: var(--white); border-left: 8px solid var(--green); box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
.job__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px; }
.job__info { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 320px; }
.job__title { font-size: clamp(30px, 3.5vw, 42px); line-height: 1; }
.job__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job__tags span { background: var(--stone); font-weight: 700; font-size: 14px; padding: 6px 12px; }
.job__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.job__details { border-top: 1px solid #E4E4E0; padding: 26px 28px 30px; --gap: 24px; animation-duration: .4s; }
.job__details[hidden] { display: none; }
.job__col { display: flex; flex-direction: column; gap: 10px; }
.job__col h4 { font-family: var(--f-cond); font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--green-ink); }
.job__col .check { font-weight: 400; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 17px; padding: 12px 14px;
  border: 0; border-radius: var(--r-sm); background: var(--white); min-height: 48px; color: var(--ink);
}
.field textarea { resize: vertical; }
.field--bordered input { border: 2px solid #D0D0CC; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }

.apply { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.apply__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.apply__intro .script-heading__kicker, .apply__intro .script-heading__title { align-self: flex-start; }
.apply__lead { margin-top: 12px; font-size: 19px; line-height: 1.55; color: var(--text); }
.apply__alt { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; align-items: flex-start; }
.apply__box { flex: 999 1 560px; min-width: 0; background: var(--stone); padding: 40px; border-top: 8px solid var(--green); }
.apply__form { display: flex; flex-direction: column; gap: 18px; }
.apply__form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.apply__form legend { font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; padding: 0 0 10px; }
.apply__fields { --min: 220px; --gap: 14px; }
.apply__legal { font-size: 15px; color: #555555; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: inherit; font-weight: 700; font-size: 16px; padding: 12px 18px; min-height: 44px; cursor: pointer;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--green); }
.chip--pill { border-color: var(--green); border-radius: var(--r-pill); padding: 12px 16px; }
.chip--pill[aria-pressed="true"] { background: var(--green); color: var(--ink); }
.apply__done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 40px 0; }
.apply__done[hidden], .apply__form[hidden] { display: none; }
.apply__done h3 { font-size: 44px; line-height: 1; }
.apply__done p { font-size: 19px; line-height: 1.5; }
.link-btn { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-weight: 700; color: var(--green-ink); text-decoration: underline; cursor: pointer; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--stone); }
.faq__q {
  width: 100%; min-height: 64px; padding: 20px 22px; border: 0; background: var(--stone); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  font: inherit; font-weight: 700; font-size: 19px; color: var(--ink);
  transition: background-color .2s ease;
}
.faq__q:hover { background: var(--stone-hover); }
.faq__icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; line-height: 1;
  transition: transform .3s ease;
}
.faq__q[aria-expanded="true"] .faq__icon { background: var(--green); transform: rotate(45deg); }
.faq__a { padding: 0 22px 22px; font-size: 18px; line-height: 1.6; color: var(--text); }
.faq__a[hidden] { display: none; }

/* ---------- Contact ---------- */
.contact { display: flex; flex-wrap: wrap; }
.contact__cta {
  flex: 1 1 600px; min-width: 0; background: var(--green); color: var(--ink);
  padding: 72px 48px 72px var(--edge); border-radius: 0 var(--r-xl) var(--r-xl) 0;
  display: flex; flex-direction: column; gap: 24px;
}
.contact__cta--row { flex-direction: row; align-items: center; gap: 22px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 64px; }
.contact__head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.contact__ring { flex: none; width: 96px; height: 96px; border-radius: 50%; border: 5px solid var(--white); display: flex; align-items: center; justify-content: center; }
.contact__title { font-size: clamp(34px, 4.5vw, 54px); line-height: .95; }
.contact__sub { font-size: 18px; font-weight: 600; display: block; margin-top: 4px; }
.contact__form { display: flex; flex-direction: column; gap: 14px; max-width: 600px; }
.contact__fields { --min: 220px; --gap: 14px; }
.contact__info {
  flex: 1 1 420px; min-width: 0; background: var(--night); color: var(--white);
  padding: 72px 40px; display: flex; flex-direction: column; gap: 26px; justify-content: center;
}
.contact__info--compact { padding: 56px 40px; gap: 10px; font-size: clamp(17px, 1.6vw, 20px); }
.contact__brand { font-family: var(--f-cond); font-weight: 800; font-size: clamp(32px, 3.5vw, 44px); text-transform: uppercase; line-height: 1; }
.contact__info--compact .contact__brand { font-size: 36px; margin-bottom: 6px; }
.contact__addr { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: #E8E8E8; }
.contact__rule { height: 2px; background: var(--night-line); }
.contact__links { display: flex; flex-direction: column; gap: 12px; font-size: clamp(17px, 1.6vw, 20px); }
.contact__links a, .contact__info--compact a { color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 14px; min-height: 44px; }
.contact__info--compact a.is-green { color: var(--green); font-weight: 700; }
.contact__muted { color: #CFCFCF; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #BDBDBD; padding: 22px 24px; }
.site-footer__inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: #BDBDBD; }
.site-footer a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .split { flex-direction: column; }
  .split__img { flex: none; width: 100%; min-height: 300px; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
  .split__txt { flex: none; max-width: none; margin-left: 0; margin-top: -40px; padding: 0 20px 64px; }
  .split--team .split__txt { margin-top: 0; padding: 72px 20px 48px; }
  .split--team .split__img { clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
}

@media (max-width: 860px) {
  .hero, .hero--career { flex-direction: column; min-height: 0; }
  .hero__txt { order: 1; flex: none; width: 100%; max-width: none !important; padding: 20px 20px 32px; gap: 20px; }
  .hero--career .hero__txt { padding: 28px 20px 32px; }
  .hero__img, .hero--career .hero__img {
    order: 2; position: relative; width: 100%; height: 320px;
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  }
  .hero--career .hero__img { height: 300px; }
  .badge { order: 3; position: relative; right: auto; bottom: auto; width: 168px; height: 168px; padding: 12px; border-width: 5px; margin: -110px 16px 40px auto; }
  .badge__a { font-size: 17px; } .badge__b { font-size: 21px; } .badge__c { font-size: 12px; }
  .marquee { margin: -10px 12px 0; padding: 14px 0; }
  .marquee__track { font-size: 26px; }
  .topbar { font-size: 14px; }
  .topbar__cta { display: none; }
  .klima { margin-top: -20px; padding: 88px 16px 64px; }
  .klima__media img { height: 240px; }
  .klima__stamp { width: 118px; height: 118px; top: -28px; border-width: 5px; }
  .klima__stamp span { font-size: 15px; } .klima__stamp strong { font-size: 34px; }
  .klima__card { margin: -40px 8px 0; padding: 24px 20px; }
  .section { padding: 72px 16px 64px; }
  .services__panel, .split__panel, .career-teaser__panel, .premium, .hero__job .glass { padding: 44px 24px 40px; min-height: 0; }
  .service-btn { min-height: 56px; }
  .promise { padding: 16px; }
  .promise__card { padding: 20px; flex-wrap: wrap; }
  .section--dark { border-radius: 28px; margin: 0 8px; }
  .contact__cta { border-radius: 0; padding: 56px 20px; }
  .contact__info { padding: 56px 20px; }
  .premium-box { padding: 24px; }
  .apply__box { padding: 28px 20px; }
  .tag--overlap, .split__txt .tag, .career-teaser__main .tag { margin-left: 20px; }
}

/* ---------- Nach oben (läuft unten rechts mit) ---------- */
.to-top {
  position: fixed; z-index: 40;
  right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 0; height: 58px; min-width: 58px; padding: 0 15px;
  border-radius: var(--r-pill); border: 2px solid var(--green);
  background: var(--night); color: var(--green); text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background-color .2s ease, color .2s ease, gap .25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { flex: none; transition: transform .25s ease; }
.to-top__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-family: var(--f-cond); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .02em;
  transition: max-width .3s ease;
}
.to-top:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
@media (hover: hover) {
  .to-top:hover { background: var(--green); color: var(--night); gap: 8px; }
  .to-top:hover svg { transform: translateY(-3px); }
  .to-top:hover .to-top__label { max-width: 120px; }
}
@media (max-width: 860px) {
  .to-top { height: 52px; min-width: 52px; padding: 0 12px; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .to-top svg { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
