/* Huck Media – 3 Seiten, Desktop-first, visuell korrigiert */
:root {
  --green: #98C218;
  --green-dark: #7aa314;
  --ink: #626262;
  --mute: #8a8a8a;
  --paper: #ffffff;
  --mist: #f4f6f0;
  --line: #ececec;
  --field: #f7f8f3;
  --max: 1200px;
  --click-radius: 12px;
  --click-pad-y: 10px;
  --click-pad-x: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Lato", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  cursor: url("../img/cursor-default.svg") 6 4, auto;
}
a[href],
button:not(:disabled),
summary,
.theme-toggle,
.lang-btn,
.cookie-accept,
.mobile-tabs a,
.fokus-act,
.fokus-col,
label[for],
input[type="checkbox"],
select {
  cursor: url("../img/cursor-pointer.svg") 6 4, pointer;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--max), calc(100% - 80px)); margin: 0 auto; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 18px; line-height: 1; }
.brand .huck { font-weight: 900; font-size: 26px; letter-spacing: .02em; color: var(--green); }
.brand .media { font-weight: 300; font-size: 24px; color: var(--ink); }
.brand img { height: 64px; width: auto; display: block; }
.brand-mark { height: 44px !important; width: 44px !important; border-radius: 50%; flex: 0 0 auto; object-fit: contain; }
.brand-word { height: 50px !important; width: auto; }
.links { display: flex; gap: 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); align-items: center; }
.links a {
  padding: 8px 14px;
  border-radius: var(--click-radius);
  color: var(--mute);
  font-weight: 400;
  transition: background .15s ease, color .15s ease;
}
.links a:hover { color: var(--green); font-weight: 700; }
.links a.active {
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
}
.links a.active:hover { background: #fff; color: var(--green) !important; }
.cta {
  background: var(--green); color: #fff; padding: 11px 20px; border-radius: var(--click-radius);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.cta:hover { background: #fff; color: var(--green); }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  height: min(68vh, 640px);
}
.hero-copy {
  position: relative;
  background: var(--green); color: #fff;
  padding: 72px 64px;
  padding-right: max(64px, calc(min(120px, 22%) + 56px));
  display: flex; flex-direction: column; justify-content: center;
}
.hero-logo {
  position: absolute;
  top: clamp(20px, 3.5vw, 36px);
  right: clamp(20px, 4vw, 48px);
  width: min(120px, 22%);
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.98;
  z-index: 1;
}




/* Tablet: logo mark only (no wordmark) */
@media (min-width: 901px) and (max-width: 1200px) {
  .brand-word { display: none !important; }
  .brand-mark {
    height: 52px !important;
    width: 52px !important;
  }
  .brand { gap: 0; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .hero-logo {
    width: min(96px, 18%);
    top: 24px;
    right: 24px;
  }
  .hero-copy {
    padding-right: max(48px, calc(min(96px, 18%) + 40px));
  }
}

.kicker { letter-spacing: .28em; font-size: 11px; text-transform: uppercase; opacity: .9; margin-bottom: 18px; font-weight: 700; }
.hero h1 { font-size: clamp(36px, 4.4vw, 52px); line-height: .98; font-weight: 900; max-width: 14ch; }
.hero p { margin-top: 22px; font-size: 17px; line-height: 1.55; max-width: 36ch; font-weight: 400; }
.hero-actions { margin-top: 32px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; overflow: visible; padding-bottom: 6px; margin-bottom: 2px; }
.hero-copy { overflow: visible; }
.hero-seo {
  margin-top: 14px !important;
  margin-bottom: 0;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
  opacity: .92;
  max-width: 42ch !important;
}
.btn-hero-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: var(--green);
  color: #fff !important;
  border: 2px solid #fff;
  padding: 13px 22px;
  min-height: 48px;
  border-radius: var(--click-radius);
  font-weight: 700;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-hero-solid:hover {
  background: #fff !important;
  color: var(--green) !important;
  border-color: #fff;
}
.btn-white { background: #fff; color: var(--ink); padding: 13px 22px; border-radius: var(--click-radius); font-weight: 700; }
.btn-white:hover { background: #fff; color: var(--green); }
.btn-ghost {
  color: #fff; border-bottom: 2px solid #fff; padding: 10px 14px 8px;
  border-radius: var(--click-radius); font-weight: 700;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-ghost:hover {
  background: #fff; color: var(--green); border-bottom-color: transparent;
}
.hero-art {
  background: #111;
  overflow: hidden;
  perspective: 900px;
  transform-style: preserve-3d;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transform: scale(1.06);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .08s linear;
}
.hero-art.hero-tilt { cursor: url("../img/cursor-grab.svg") 14 14, grab; }
.hero-art.hero-tilt-gyro { cursor: url("../img/cursor-default.svg") 6 4, auto; }
.hero-art.hero-tilt:active { cursor: url("../img/cursor-grabbing.svg") 14 14, grabbing; }
@media (prefers-reduced-motion: reduce) {
  .hero-art img { transform: none !important; transition: none !important; }
}

.section { padding: 72px 0 40px; }
.section h1, .section h2 {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -.02em;
  color: var(--green);
}
h2.subhead { color: var(--green); }
.lead { color: var(--mute); max-width: 62ch; line-height: 1.6; margin-bottom: 36px; font-size: 16px; }
.kicker-page { color: var(--green); letter-spacing: .28em; font-size: 11px; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--paper); padding: 0;
  aspect-ratio: 1 / 1;
  min-height: 0;
  display: flex; flex-direction: column; gap: 0;
  overflow: hidden;
  border-radius: 0;
}
.card-top {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  background: #ececec;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}
.card-art {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill frame by crop — never distort */
  object-position: center;
  display: block;
}
.item .ico { width: 50px; height: 50px; flex: 0 0 50px; margin-top: 2px; }
.card-copy {
  background: var(--green); color: #fff;
  padding: 14px 16px 16px;
  flex: 0 0 auto;
  min-height: 6.6em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
a.card { color: inherit; text-decoration: none; }
a.card:hover .card-copy {
  filter: none;
  background: #fff;
  color: var(--green);
}
a.card:hover .card-copy h3,
a.card:hover .card-copy p { color: var(--green); }
a.card:hover .card-art { transform: scale(1.03); }
.card-art { transition: transform .35s ease; }
.card h3 { font-size: 17px; color: #fff; margin-bottom: 4px; }
.card p { font-size: 13px; color: #fff; line-height: 1.4; }

/* Featured social post — single card, same look as service cards */
.social-latest-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px);
  gap: 16px;
  max-width: none;
  justify-content: start;
}
.social-latest .social-card {
  aspect-ratio: 1 / 1;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), inset 0 1px 8px rgba(0, 0, 0, 0.12);
}
.social-latest .social-card .card-art {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

/* Service / social card videos fill like images */
.grid .card video.card-art,
.social-latest .social-card video.card-art,
.home-duo .social-latest-grid video.card-art {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
a.card:hover video.card-art { transform: scale(1.03); }

html[data-theme="dark"] .social-latest .social-card {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 10px rgba(0, 0, 0, 0.45);
}
.social-latest .social-card .card-copy {
  min-height: 7.8em;
}
.social-latest .social-card .card-copy p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
}


/* Home: Social + Angebot + Über — same 4-col rhythm as .grid services */
.home-duo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
  justify-content: stretch;
}
.home-duo .home-duo-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.home-duo .home-duo-col h2 {
  margin-bottom: 8px;
}
.home-duo .home-duo-col > .lead {
  margin-bottom: 16px;
  max-width: none;
  flex: 0 0 auto;
}
.home-duo .offer-grid,
.home-duo .social-latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: none;
  width: 100%;
  justify-content: stretch;
  flex: 1 1 auto;
}
.home-duo .social-latest-grid .social-card,
.home-duo .offer-card {
  aspect-ratio: 1 / 1;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), inset 0 1px 8px rgba(0, 0, 0, 0.12);
}
.home-duo .offer-card .card-top,
.home-duo .social-latest-grid .social-card .card-top {
  min-height: 0;
  overflow: hidden;
}
.home-duo .offer-card .card-art,
.home-duo .social-latest-grid .card-art {
  object-fit: cover; /* crop, never stretch */
  object-position: center;
  width: 100%;
  height: 100%;
  flex: none;
  align-self: stretch;
}
.home-duo .offer-card .card-copy,
.home-duo .social-latest-grid .social-card .card-copy {
  min-height: 7.8em;
}
.home-duo .offer-card .card-copy p {
  font-size: 13px;
  line-height: 1.35;
}
.home-duo .offer-price s {
  opacity: 0.75;
  text-decoration: line-through;
  font-weight: 400;
}
.home-duo .offer-price strong {
  font-weight: 700;
}
html[data-theme="dark"] .home-duo .offer-card,
html[data-theme="dark"] .home-duo .social-latest-grid .social-card {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 10px rgba(0, 0, 0, 0.45);
}
.home-duo .home-about {
  grid-column: span 2;
  width: 100%;
  max-width: none;
}
.home-duo .home-about .about-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  min-height: 0;
}
@media (max-width: 1100px) {
  .home-duo {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-duo .home-about {
    grid-column: span 2;
  }
}
@media (max-width: 900px) {
  .home-duo {
    grid-template-columns: 1fr;
  }
  .home-duo .home-about {
    grid-column: auto;
  }
}
.about-panel {
  background: var(--green);
  border-radius: 0;
  padding: 22px 24px 20px;
  box-shadow: none;
  color: #fff;
}
.about-panel p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #fff;
}
.about-panel p strong {
  color: #fff;
  font-weight: 700;
}
.about-panel p:last-of-type {
  margin-bottom: 16px;
}
.about-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about-facts li {
  background: #fff;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 7px 12px;
  border-radius: 999px;
}
html[data-theme="dark"] .about-panel {
  background: var(--green);
  color: #fff;
  box-shadow: none;
}
html[data-theme="dark"] .about-panel p,
html[data-theme="dark"] .about-panel p strong {
  color: #fff;
}
html[data-theme="dark"] .about-facts li {
  background: #fff;
  color: var(--green);
}

/* Sale price on Leistungen */
.price-wrap .price-old {
  text-decoration: line-through;
  opacity: 0.55;
  font-weight: 400;
  margin-right: 0.35em;
}
.price-wrap .price-sale {
  color: inherit;
  font-weight: 700;
}
html[data-theme="dark"] .price-wrap .price-old {
  opacity: 0.5;
}



.quote {
  margin: 48px auto 64px;
  width: min(var(--max), calc(100% - 80px));
  background: var(--green); color: #fff;
  padding: 40px 48px;
  display: grid; grid-template-columns: 1.45fr .7fr; gap: 24px; align-items: center;
}
.quote p { font-size: 24px; font-weight: 900; line-height: 1.25; }
.quote span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .92; justify-self: end; }

.footer {
  padding: 22px 40px 32px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--mute); font-size: 13px; border-top: 1px solid var(--line);
}
.footer a:hover { color: var(--green); }

.list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; min-width: 0; }
.list > * { min-width: 0; }
.item {
  padding: 22px 0 20px; border-top: 1px solid var(--green);
  display: flex; flex-direction: column; gap: 8px;
  align-items: stretch; width: 100%; min-width: 0;
}
.item-copy { min-width: 0; }
.item h3 { font-size: 20px; margin-bottom: 6px; }
.item p { color: var(--mute); line-height: 1.5; font-size: 15px; }

.contact, .impressum {
  display: grid;
  grid-template-columns: minmax(320px, 38%) 1fr;
  min-height: calc(100vh - 105px);
  align-items: stretch;
}
.impressum { align-items: start; }
.aside { background: var(--green); color: #fff; padding: 64px 56px; }
.contact .aside { height: 100%; min-height: 100%; }
.aside h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 900; margin: 10px 0 22px; line-height: 1.05; }
.aside p { line-height: 1.6; max-width: 34ch; font-size: 16px; }
.aside .meta { margin-top: 40px; font-size: 15px; line-height: 1.7; }
.aside a { border-bottom: 1px solid rgba(255,255,255,.45); }
.aside a:hover {
  color: var(--green);
  border-bottom-color: transparent;
  background: #fff;
  border-radius: var(--click-radius);
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
}

.form { padding: 64px 56px 72px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
input[type="text"], input[type="email"], textarea {
  width: 100%; border: 0; border-bottom: 2px solid #e2e2e2; padding: 10px 0 12px;
  font: inherit; font-size: 16px; outline: none; background: transparent; color: var(--ink);
  border-radius: 0;
}
textarea { min-height: 120px; resize: vertical; }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { border-bottom-color: var(--green); }
/* Dropdowns: rounded like site buttons */
select {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid #e2e2e2;
  border-radius: var(--click-radius);
  padding: 12px 44px 12px 16px;
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  outline: none;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%2398C218' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: url("../img/cursor-pointer.svg") 6 4, pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
select:focus {
  border-color: var(--green);
}
select:hover {
  border-color: var(--green);
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mute); line-height: 1.45; text-transform: none; letter-spacing: 0; font-weight: 400; }
.check input { margin-top: 3px; accent-color: var(--green); }
.check a { color: var(--green); text-decoration: underline; }
button.send {
  margin-top: 20px; background: var(--green); color: #fff; border: 0; padding: 14px 28px;
  border-radius: var(--click-radius); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: url("../img/cursor-pointer.svg") 6 4, pointer; font-family: inherit;
}
button.send:hover { background: #fff; color: var(--green); }
button.send:disabled { opacity: .6; cursor: wait; }
.status { margin-top: 14px; font-size: 14px; color: var(--mute); min-height: 1.2em; }
.status.ok { color: var(--green-dark); font-weight: 700; }
.status.err { color: #b42318; }


.fokus-banner {
  display: block;
  width: min(900px, 75%);
  margin: 8px auto 56px;
}
@media (min-width: 901px) {
  .fokus-banner {
    width: min(585px, 48.75%); /* 35% smaller than 900px / 75% */
  }
}
.fokus-banner img { width: 100%; height: auto; display: block; }
.fokus-banner .fokus-dark { display: none; }
html[data-theme="dark"] .fokus-banner .fokus-light { display: none; }
html[data-theme="dark"] .fokus-banner .fokus-dark { display: block; }

/* HTML commission banner (EN): transparent, uses page background */
.fokus-banner.fokus-html {
  background: transparent;
  text-decoration: none;
  color: inherit;
  padding: 8px 0 4px;
}
.fokus-banner.fokus-html .fokus-offers {
  margin-bottom: 12px;
  gap: 12px;
}
.fokus-banner.fokus-html .fokus-q {
  font-size: clamp(15px, 2.1vw, 20px);
}
.fokus-banner.fokus-html .fokus-pct {
  font-size: clamp(52px, 8vw, 88px);
}
.fokus-banner.fokus-html .fokus-act {
  font-size: clamp(16px, 2vw, 24px);
}
.fokus-banner.fokus-html .fokus-note {
  font-size: clamp(13px, 1.6vw, 16px);
}
.fokus-banner.fokus-html .fokus-neo {
  font-size: clamp(32px, 5.5vw, 56px);
}
.fokus-banner.fokus-html .fokus-ico {
  width: min(140px, 26vw);
}
html[data-theme="dark"] .fokus-q,
html[data-theme="dark"] .fokus-note {
  color: var(--ink);
}
html[data-theme="dark"] .fokus-banner.fokus-html .fokus-ico {
  /* charcoal silhouette stays readable on dark paper */
  filter: brightness(1.15);
}


.page-art {
  margin: 0;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--mist);
}
.page-art.slim { height: 150px; }
.page-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}


.fokus { padding: 28px 0 8px; }
.fokus-offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.fokus-col {
  text-align: center;
  padding: 8px 12px 16px;
}
.fokus-col:hover .fokus-act { color: var(--green); }
.fokus-q {
  color: #4d4d4d;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 4px;
}
.fokus-pct {
  color: var(--green);
  font-size: clamp(72px, 9.5vw, 112px);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.04em;
}
.fokus-act {
  color: var(--green);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  margin-top: 6px;
}
.fokus-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 8px 8px 24px;
}
.fokus-note {
  color: #4d4d4d;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
}
.fokus-neo {
  color: var(--green);
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 900;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: .95;
}
.fokus-ico { width: min(220px, 28vw); height: auto; flex: 0 0 auto; }

.logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  align-items: center;
  justify-items: center;
  gap: 22px 20px;
  margin: 8px 0 40px;
}
.logos img,
.logos img.logo-client {
  box-sizing: border-box;
  width: 100%;
  max-width: 148px;
  height: 52px;
  padding: 6px 10px;
  object-fit: contain;
  object-position: center;
  transform: scale(var(--logo-scale, 1));
  transform-origin: center center;
}
.logos { margin-bottom: 36px; }
.logos-note {
  color: var(--mute);
  font-size: 15px;
  line-height: 1.6;
  max-width: 62ch;
  margin: 8px 0 40px;
}

.list.refs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 100%;
  gap: 0 20px;
}
.list.refs .item { border-top-width: 1px; }
/* No green rule above the first row of names */
.list.refs > details.item:nth-child(-n+3) {
  border-top: none;
  padding-top: 6px;
}
.list.refs details.item {
  padding: 12px 0 10px;
  gap: 4px;
}
.list.refs details.item .item-copy h3 {
  font-size: 17px;
  margin-bottom: 2px;
}
.list.refs details.item .item-copy p {
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}
.list.refs details.item .when {
  font-size: 11px;
  margin-top: 2px;
}
.list.refs details.item .hint {
  font-size: 11px;
  margin-top: 2px;
}
.list.refs details.item summary {
  gap: 10px;
}
.list.refs details.item summary::before { display: none; content: none; }
.list.refs details.item summary img.ico {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin-top: 1px;
}
/* Open project spans full width for readable details */
.list.refs details.item[open] {
  grid-column: 1 / -1;
}
@media (max-width: 1100px) and (min-width: 901px) {
  .list.refs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }
  .list.refs > details.item:nth-child(-n+3) {
    border-top: 1px solid var(--green);
    padding-top: 12px;
  }
  .list.refs > details.item:nth-child(-n+2) {
    border-top: none;
    padding-top: 6px;
  }
}

@media (max-width: 900px) {
  .list.refs > details.item:nth-child(-n+3) {
    border-top: 1px solid var(--green);
    padding-top: 12px;
  }
  .list.refs > details.item:first-child {
    border-top: none;
    padding-top: 6px;
  }
}

.item .when {
  display: block; margin-top: 4px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mute);
}
.item .logo-ico {
  width: auto; height: 40px; max-width: 72px;
  object-fit: contain; flex: 0 0 auto; margin-top: 2px;
}
.proj-body {
  margin: 4px 0 8px 0; width: 100%; max-width: 100%;
  overflow-wrap: anywhere; word-break: break-word;
}
.proj-body p { color: var(--mute); font-size: 15px; line-height: 1.65; margin-bottom: 10px; }
.proj-body a { color: var(--green); text-decoration: underline; }
h2.subhead { font-size: 28px; margin: 48px 0 16px; }
.award {
  border-top: none;
  padding: 0;
  margin-top: 0;
  max-width: 72ch;
}
.award h2.subhead {
  /* same rhythm as other subheads (Erfahrung etc.) */
  margin: 48px 0 16px;
}
.award h3 {
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--ink);
}
.award p { color: var(--mute); font-size: 15px; line-height: 1.6; }

.ref-block { max-width: 72ch; margin-bottom: 36px; }
.ref-block h3 { font-size: 22px; margin: 0 0 10px; }
.ref-block p { color: var(--mute); font-size: 16px; line-height: 1.65; margin-bottom: 12px; }
.ref-block ul { margin: 0 0 12px 18px; color: var(--mute); font-size: 15px; line-height: 1.6; }
.skills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 16px 0 8px;
}
.skills span {
  background: color-mix(in srgb, var(--mist) 55%, transparent);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 13px; padding: 6px 12px; border-radius: var(--click-radius);
}

@media (max-width: 900px) {
  .nav { padding: 16px 20px; flex-wrap: nowrap; }
  .cta { display: none; }
  .links { display: none !important; }
  .hero, .contact, .impressum, .list, .list.refs, .grid, .social-latest-grid, .offer-grid, .quote, .form-grid, .fokus-offers { grid-template-columns: 1fr; }
  .fokus-foot { flex-direction: column; align-items: flex-start; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; gap: 18px 16px; }
  .logos img,
  .logos img.logo-client {
    max-width: 120px;
    height: 44px;
    padding: 4px 6px;
  }
  .hero { height: auto; min-height: 0; }
  .hero-art { height: 380px; }
  .hero-logo {
    width: min(64px, 16vw);
    right: 16px;
    top: 16px;
    bottom: auto;
    transform: none;
    z-index: 1;
  }
  .hero-copy, .aside, .form { padding: 48px 28px; }
  .hero-copy { padding-top: 56px; padding-right: 96px; }
  .quote { width: calc(100% - 40px); padding: 32px; }
  .quote span { justify-self: start; }
  .wrap { width: calc(100% - 40px); }
  .page-art { height: 150px; }
  .page-art.slim { height: 110px; }
}

.legal { padding: 28px 0 8px; border-top: 1px solid var(--green); margin-top: 8px; max-width: 78ch; }
.legal#angaben {
  border-top: none;
  margin-top: 0;
  padding-top: 8px;
}
.legal h3 { font-size: 22px; margin: 0 0 12px; color: var(--green); }
.legal h4 { font-size: 16px; margin: 22px 0 8px; color: var(--ink); }
.legal p { color: var(--mute); font-size: 15px; line-height: 1.65; margin-bottom: 12px; }
.legal a { color: var(--green); text-decoration: underline; }
.legal ul { margin: 0 0 14px 18px; color: var(--mute); font-size: 15px; line-height: 1.6; }
.legal-page .lead { margin-bottom: 28px; }

details.item { cursor: url("../img/cursor-pointer.svg") 6 4, pointer; flex-direction: column; width: 100%; }
details.item > summary {
  display: flex; gap: 16px; align-items: flex-start;
  list-style: none; cursor: url("../img/cursor-pointer.svg") 6 4, pointer; width: 100%; min-width: 0;
}
details.item > summary::-webkit-details-marker { display: none; }
details.item .hint {
  display: inline-block; margin-top: 8px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); font-weight: 700;
}
details.item[open] .hint { visibility: hidden; }
details.item .prices {
  list-style: none; margin: 8px 0 4px 0; padding: 0;
  width: 100%; max-width: 100%;
}
details.item .prices li {
  padding: 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--ink);
}
details.item .prices .price-wrap {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  flex: 0 0 auto; text-align: right; min-width: 7.5rem;
}
details.item .prices .price { color: var(--green); font-weight: 700; white-space: nowrap; line-height: 1.2; }
details.item .prices .price-unit {
  display: block; color: var(--mute); font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; line-height: 1.25;
  max-width: 14rem; overflow: hidden; text-overflow: ellipsis;
}
html[data-theme="dark"] details.item .prices .price-unit { color: var(--mute); }
.hover-open-pop .price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  min-width: 7.5rem;
  flex: 0 0 auto;
}
.hover-open-pop .price {
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}
.hover-open-pop .price-unit {
  display: block;
  color: var(--mute);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.25;
  max-width: 14rem;
}
details.sub { width: 100%; }
details.sub summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  list-style: none; cursor: url("../img/cursor-pointer.svg") 6 4, pointer; width: 100%; min-width: 0;
  padding: 10px 0;
}
details.sub summary::-webkit-details-marker { display: none; }
details.sub summary::marker { content: ""; }
details.sub .sub-name {
  min-width: 0; overflow-wrap: anywhere; font-weight: 700;
  padding-left: 18px; position: relative;
}
details.sub .sub-name::before {
  content: "+";
  position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700; font-size: 15px; line-height: 1.3;
}
details.sub[open] .sub-name::before { content: "–"; }
details.sub .why {
  color: var(--mute); font-size: 14px; line-height: 1.55;
  padding: 0 0 12px 18px; max-width: 72ch; overflow-wrap: anywhere;
}

.footer-studio {
  position: relative;
  min-height: 0;
  padding: 22px 40px 32px;
  align-items: center;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  gap: 16px;
  border-top: 0;
  background: #1c1c1c url("../img/footer-studio.jpg") center 42% / cover no-repeat;
  isolation: isolate;
}
.footer-studio::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,22,12,.72) 0%, rgba(20,22,12,.18) 55%, rgba(20,22,12,.08) 100%);
  z-index: -1;
}
.footer-studio a { color: #fff; }
.footer-studio a:hover {
  color: var(--green);
  background: #fff;
  border-radius: var(--click-radius);
  padding: 4px 8px;
  margin: -4px -8px;
}

.impressum .aside { position: sticky; top: 105px; min-height: calc(100vh - 105px); padding: 64px 56px; }
.toc { margin-top: 36px; display: flex; flex-direction: column; }
.toc a {
  display: block; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.28);
  font-size: 14px; letter-spacing: .02em;
}
.toc a:hover {
  color: var(--green);
  border-bottom-color: transparent;
  background: #fff;
  border-radius: var(--click-radius);
  padding-left: 10px;
  padding-right: 10px;
  margin-left: -10px;
  margin-right: -10px;
}
.legal-col { padding: 64px 56px 72px; }
.impressum .legal { scroll-margin-top: 104px; }
@media (max-width: 900px) {
  .impressum { grid-template-columns: 1fr; }
  .impressum .aside { position: static; min-height: 0; }
  .legal-col { padding: 32px 28px 56px; }
}

/* Language switcher */
.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.lang {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-btn {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.55;
  padding: 0;
  line-height: 0;
  flex: 0 0 auto;
  background: transparent;
}
.lang-btn svg {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.lang-btn:hover {
  opacity: 1;
  border-color: var(--green);
}
.lang-btn,
.lang-btn.active,
.lang-btn:hover {
  border-radius: 50% !important; /* beat global --click-radius */
}
.lang-btn.active {
  opacity: 1;
  border-color: var(--green);
  /* green circle around the active language flag */
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .nav-end {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .nav-end .cta {
    display: none;
  }
  .lang {
    display: flex;
  }
}

/* Hover preview popup beside cursor */
@keyframes hover-open-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.hover-open-pop {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  box-sizing: border-box;
  width: max-content;
  max-width: min(560px, calc(100vw - 24px));
  max-height: none;
  overflow: visible;
  padding: 14px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: "Lato", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  transform-origin: top left;
  animation: hover-open-in 0.22s ease-out both;
}
.hover-open-pop[hidden] { display: none !important; animation: none; }
.hover-open-pop-title {
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--ink);
}
.hover-open-pop .why,
.hover-open-pop .proj-body p,
.hover-open-pop p {
  color: var(--mute);
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
}
.hover-open-pop .proj-body a { color: var(--green); text-decoration: underline; }
.hover-open-pop .skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hover-open-pop .skills span {
  background: color-mix(in srgb, var(--mist) 50%, transparent);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--click-radius);
}
.hover-open-pop ul.prices { list-style: none; margin: 0; padding: 0; }
.hover-open-pop ul.prices li {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.hover-open-pop ul.prices details.sub .why {
  margin: 2px 0 4px;
  font-size: 13px;
  line-height: 1.4;
}
.hover-open-pop.hover-open-pop--prices {
  max-width: min(640px, calc(100vw - 24px));
}
.hover-open-pop details.sub summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: default;
  padding: 0;
}
.hover-open-pop details.sub summary::-webkit-details-marker { display: none; }
.hover-open-pop .sub-name { font-weight: 700; padding-left: 0; }
.hover-open-pop .sub-name::before { content: none; }
.hover-open-pop .price { color: var(--green); font-weight: 700; white-space: nowrap; }


/* Connect strip above footer */
.site-connect {
  width: min(var(--max), calc(100% - 80px));
  margin: 24px auto 8px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.site-connect-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}
.site-connect a.ci {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--click-radius);
  padding: 8px 14px;
  transition: border-color .2s, background .2s, color .2s;
}
/* Light: same as social icons — solid green + white icon/text */
.site-connect a.ci:hover {
  background: var(--green) !important;
  border-color: var(--green);
  color: #fff !important;
}
.site-connect a.ci:hover img {
  filter: brightness(0) invert(1);
}
.site-connect a.ci img {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
}
.site-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.site-social a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--click-radius);
  transition: border-color .2s, background .2s;
}
.site-social a:hover {
  border-color: var(--green);
  background: var(--green) !important;
}
.site-social a:hover img {
  filter: brightness(0) invert(1);
}
.site-social a img {
  width: 28px;
  height: 28px;
  display: block;
}

/* Form stack on Kontakt (contact + commission) */
.form-stack { max-width: 640px; }
.form-heading {
  color: var(--green);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  margin: 0 0 22px;
  line-height: 1.1;
}
html[data-theme="dark"] .form-heading,
html[data-theme="dark"] .legal h3 {
  color: var(--green);
}

.form-block + .form-block {
  margin-top: 96px;
  padding-top: 96px;
  border-top: 1px solid var(--green);
}
.contact .empfehlen {
  /* keep spacing from .form-block + .form-block — do not zero padding/margin */
  border-top: 0;
}
.contact .form-block.empfehlen {
  margin-top: 96px;
  padding-top: 96px;
  border-top: 1px solid var(--green);
}
.empfehlen .lead {
  margin: 0 0 24px;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.55;
  max-width: 52ch;
}
.empfehlen .send { margin-top: 8px; }
@media (max-width: 900px) {
  .site-connect {
    width: calc(100% - 40px);
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Cookie notice */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10000;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(0,0,0,.08);
  padding: 14px 20px;
}
.cookie-bar-inner {
  width: min(var(--max), calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}
.cookie-bar p {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
  max-width: 70ch;
}
.cookie-bar a { color: var(--green); text-decoration: underline; }
.cookie-accept {
  background: var(--green);
  color: #fff;
  border: 0;
  padding: 11px 18px;
  border-radius: var(--click-radius);
  font: inherit;
  font-weight: 700;
  cursor: url("../img/cursor-pointer.svg") 6 4, pointer;
  white-space: nowrap;
}
.cookie-accept:hover { background: #fff; color: var(--green); }

@media (max-width: 900px) {
  .hover-open-pop { display: none !important; }
  .brand-mark { display: none !important; }
  .brand-word { height: 56px !important; }
  .brand { gap: 0; }
  .site-connect {
    align-items: center !important;
    text-align: center;
  }
  .site-connect-mail {
    width: 100%;
    justify-content: center;
    gap: 8px 14px !important;
  }
  .site-social {
    width: 100%;
    justify-content: center;
  }
  .site-connect a.ci { font-size: 14px; gap: 8px; }
}


/* Mobile bottom tab bar */
.mobile-tabs {
  display: none;
}
@media (max-width: 900px) {
  .mobile-tabs {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9000;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(0,0,0,.06);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: stretch;
    gap: 2px;
  }
  .mobile-tabs a {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 2px;
    border-radius: 12px;
    color: var(--mute);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.15;
    text-align: center;
    min-width: 0;
  }
  .mobile-tabs a svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-tabs a.active {
    color: #fff;
    background: var(--green);
  }
  .mobile-tabs a.active svg { stroke: #fff; }
  .mobile-tabs a:not(.active):active { background: var(--mist); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .cookie-bar {
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
  .footer { padding-bottom: 12px; }
}
/* Page assemble — simple slide from nearest edge */
.assemble-cloud-canvas { display: none !important; }
html.assemble-on .assemble {
  opacity: 0;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--assemble-delay, 0ms);
  will-change: opacity, transform;
}
html.assemble-on .assemble.from-top {
  transform: translate3d(0, -36px, 0);
}
html.assemble-on .assemble.from-bottom {
  transform: translate3d(0, 36px, 0);
}
html.assemble-on .assemble.from-left {
  transform: translate3d(-40px, 0, 0);
}
html.assemble-on .assemble.from-right {
  transform: translate3d(40px, 0, 0);
}
html.assemble-on .assemble.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.assemble-on .assemble {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Theme toggle */
.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--click-radius);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: url("../img/cursor-pointer.svg") 6 4, pointer;
  flex: 0 0 auto;
  padding: 0;
  transition: border-color .15s, background .15s, color .15s;
}
.theme-toggle:hover {
  border-color: var(--green);
  background: #fff;
  color: var(--green);
}
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Dark mode */
html[data-theme="dark"] {
  --ink: #c8c8c8;
  --mute: #8e8e8e;
  --paper: #121412;
  --mist: #1a1d17;
  --line: #2a2e26;
  --field: #1c1f19;
  --green: #98C218;
  --green-dark: #98C218;
  color-scheme: dark;
}
html[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .nav { background: rgba(18, 20, 18, 0.94); backdrop-filter: blur(8px); }
/* Must beat .brand img { display:block } */
.brand img.brand-word-dark { display: none !important; }
html[data-theme="dark"] .brand img.brand-word-light { display: none !important; }
html[data-theme="dark"] .brand img.brand-word-dark { display: block !important; }
@media (min-width: 901px) and (max-width: 1200px) {
  html[data-theme="dark"] .brand img.brand-word-dark { display: none !important; }
}
html[data-theme="dark"] .logos img {
  filter: brightness(1.4) contrast(1.06);
  opacity: 0.98;
}
html[data-theme="dark"] .list.refs details.item summary img.ico {
  filter: brightness(1.25) contrast(1.04);
}

html[data-theme="dark"] .card { background: var(--mist); }
html[data-theme="dark"] .btn-white { background: #fff; color: #333; }
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] textarea {
  color: var(--ink);
  border-bottom-color: #3a3f36;
  background: transparent;
}
html[data-theme="dark"] select {
  color: var(--ink);
  border-color: #3a3f36;
  background-color: var(--field);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%2398C218' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
html[data-theme="dark"] select:hover,
html[data-theme="dark"] select:focus {
  border-color: var(--green);
}
html[data-theme="dark"] .cookie-bar { background: var(--mist); box-shadow: 0 -8px 28px rgba(0,0,0,.35); }
html[data-theme="dark"] .mobile-tabs { background: var(--mist); box-shadow: 0 -6px 24px rgba(0,0,0,.35); }
html[data-theme="dark"] .site-social a { background: var(--mist); }
/* Match light-mode social hover: green tile + white icon */
html[data-theme="dark"] .site-social a:hover {
  background: var(--green) !important;
  border-color: var(--green);
}
html[data-theme="dark"] .site-social a:hover img {
  /* gray like dark page background (#121412), not white */
  filter: brightness(0) invert(7%);
}
/* Footer mail/phone: same night hover as social icons */
html[data-theme="dark"] .site-connect a.ci {
  border: 1px solid var(--line);
  border-radius: var(--click-radius);
  padding: 8px 14px;
  background: var(--mist);
  transition: border-color .2s, background .2s, color .2s;
}
html[data-theme="dark"] .site-connect a.ci:hover {
  background: var(--green) !important;
  border-color: var(--green);
  color: var(--paper) !important;
}
html[data-theme="dark"] .site-connect a.ci:hover img {
  filter: brightness(0) invert(7%);
}
html[data-theme="dark"] .form { background: var(--paper); }
html[data-theme="dark"] .item { border-top-color: var(--green); }




/* Nav always solid & visible (no assemble / no 3D vanish) */
header.nav {
  z-index: 50;
  background: var(--paper) !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  perspective: none !important;
}
header.nav .assemble,
header.nav .brand,
header.nav .links,
header.nav .links a,
header.nav .nav-end,
header.nav .nav-end > * {
  /* Keep nav solid during page-assemble; allow hover glow */
  opacity: 1 !important;
  transform: none !important;
}
.mobile-tabs {
  z-index: 9000;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
.assemble-cloud-canvas { z-index: 30; }

/* Green blocks stay brand-green; text matches dark page paper (not white) */
html[data-theme="dark"] {
  --on-green: var(--paper); /* #121412 — same as night background */
}
html[data-theme="dark"] .card-copy,
html[data-theme="dark"] .quote,
html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .aside {
  background: var(--green);
  color: var(--on-green);
}
html[data-theme="dark"] .card-copy h3,
html[data-theme="dark"] .card-copy p,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .quote p,
html[data-theme="dark"] .quote span,
html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .hero-copy .kicker,
html[data-theme="dark"] .hero-copy h1,
html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .aside,
html[data-theme="dark"] .aside h1,
html[data-theme="dark"] .aside p,
html[data-theme="dark"] .aside .meta,
html[data-theme="dark"] .aside .kicker {
  color: var(--on-green);
}
html[data-theme="dark"] .btn-ghost {
  color: var(--on-green);
  border-bottom-color: var(--on-green);
}
html[data-theme="dark"] .aside a {
  color: var(--on-green);
  border-bottom-color: color-mix(in srgb, var(--on-green) 45%, transparent);
}
html[data-theme="dark"] .aside a:hover,
html[data-theme="dark"] .toc a:hover,
html[data-theme="dark"] .hero-copy a:hover,
html[data-theme="dark"] .quote a:hover,
html[data-theme="dark"] .card-copy a:hover,
html[data-theme="dark"] .btn-ghost:hover {
  color: var(--green) !important;
  border-bottom-color: transparent;
  background: #fff;
}
/* Solid green controls: label color = page paper */
html[data-theme="dark"] .cta,
html[data-theme="dark"] .links a.active,
html[data-theme="dark"] button.send,
html[data-theme="dark"] .cookie-accept,
html[data-theme="dark"] .mobile-tabs a.active {
  color: var(--on-green) !important;
}
html[data-theme="dark"] .cta:hover,
html[data-theme="dark"] .links a.active:hover,
html[data-theme="dark"] button.send:hover,
html[data-theme="dark"] .cookie-accept:hover,
html[data-theme="dark"] .btn-white:hover,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .mobile-tabs a.active:hover {
  background: #fff !important;
  color: var(--green) !important;
  border-color: #fff;
}
html[data-theme="dark"] .mobile-tabs a.active svg {
  stroke: var(--on-green);
}
/* toc hover on green aside: white — see aside a:hover block */

/* Referenzen open panels: blend with page background */
.list.refs details.item .proj-body,
.list.refs details.item .prices {
  background: transparent;
}
html[data-theme="dark"] .list.refs details.item .proj-body,
html[data-theme="dark"] .list.refs details.item .prices,
html[data-theme="dark"] details.item .prices {
  background: transparent;
}
html[data-theme="dark"] .hover-open-pop {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}


/* Simple green hover — always brand green #98C218; keep text readable on green blocks */
a[href]:not(.cta):not(.brand):not(.card):not(.fokus-html):not(.btn-ghost):not(.btn-hero-solid):not(.btn-white):hover,
button:not(:disabled):not(.send):not(.cookie-accept):not(.theme-toggle):hover,
summary:hover,
.mobile-tabs a:hover:not(.active),
.lang-btn:hover {
  color: var(--green); /* #98C218 */
}
.lang-btn:hover {
  border-color: var(--green);
  outline-color: var(--green);
  opacity: 1;
}
/* Ghost / white text on green → white tile + green type */
.btn-ghost:hover,
.hero-copy .btn-ghost:hover,
html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .hero-copy .btn-ghost:hover {
  background: #fff;
  color: var(--green) !important;
  border-bottom-color: transparent;
  opacity: 1;
}
/* Service cards: white text on green → white tile + green type on hover */
a.card:hover .card-copy,
html[data-theme="dark"] a.card:hover .card-copy {
  filter: none;
  background: #fff;
  color: var(--green);
}
a.card:hover .card-copy h3,
a.card:hover .card-copy p,
a.card:hover .card h3,
a.card:hover .card p,
html[data-theme="dark"] a.card:hover .card-copy h3,
html[data-theme="dark"] a.card:hover .card-copy p,
html[data-theme="dark"] a.card:hover .card h3,
html[data-theme="dark"] a.card:hover .card p {
  color: var(--green);
}

html[data-theme="dark"] .links a:hover,
html[data-theme="dark"] .footer a:hover,
html[data-theme="dark"] .mobile-tabs a:hover:not(.active),
html[data-theme="dark"] a[href]:not(.cta):not(.brand):not(.card):not(.fokus-html):not(.btn-ghost):not(.btn-hero-solid):not(.btn-white):hover {
  color: var(--green);
}
html[data-theme="dark"] .site-social a:hover,
html[data-theme="dark"] .site-connect a.ci:hover,
html[data-theme="dark"] .theme-toggle:hover {
  background: var(--green) !important;
  border-color: var(--green);
}

.mobile-tabs a:hover:not(.active) {
  color: var(--green);
}
.mobile-tabs a.active {
  color: #fff;
}
html[data-theme="dark"] .mobile-tabs a.active {
  color: var(--paper) !important;
}
.check a:hover,
.legal a:hover,
.proj-body a:hover,
.cookie-bar a:hover {
  color: var(--green);
}
summary:hover {
  color: var(--green);
}
/* White-label controls on green: hover = white bg + green type (light + night) */
.cta:hover,
.links a.active:hover,
button.send:hover,
.cookie-accept:hover,
.btn-white:hover,
.theme-toggle:hover,
details.sub > .sub-ask:hover,
.mobile-tabs a.active:hover,
.cart-add:hover,
.cart-fab:hover,
.btn-primary:hover,
.btn-hero-solid:hover,
.cart-cta:hover,
.cart-continue:hover {
  background: #fff !important;
  color: var(--green) !important;
  border-color: #fff;
}
html[data-theme="dark"] .cta:hover,
html[data-theme="dark"] .links a.active:hover,
html[data-theme="dark"] button.send:hover,
html[data-theme="dark"] .cookie-accept:hover,
html[data-theme="dark"] .btn-white:hover,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] details.sub > .sub-ask:hover,
html[data-theme="dark"] .mobile-tabs a.active:hover,
html[data-theme="dark"] .cart-add:hover,
html[data-theme="dark"] .cart-fab:hover,
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .btn-hero-solid:hover,
html[data-theme="dark"] .cart-cta:hover,
html[data-theme="dark"] .cart-continue:hover {
  background: #fff !important;
  color: var(--green) !important;
  border-color: #fff;
}
html[data-theme="dark"] .cta,
html[data-theme="dark"] .links a.active,
html[data-theme="dark"] button.send,
html[data-theme="dark"] .cookie-accept {
  color: var(--paper) !important;
}
html[data-theme="dark"] .mobile-tabs a.active:hover svg {
  stroke: var(--green);
}

/* Header logo: no hover effect */
a.brand:hover,
a.brand:focus {
  background: transparent !important;
  color: inherit !important;
  filter: none !important;
  box-shadow: none !important;
}


/* Mobile readable type scale */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero h1 { font-size: clamp(40px, 9.5vw, 50px); }
  .hero p { font-size: 18px; line-height: 1.6; }
  .kicker, .kicker-page { font-size: 12px; }
  .section h1, .section h2 { font-size: 30px; }
  .lead { font-size: 17px; line-height: 1.65; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 14.5px; line-height: 1.45; }
  .quote p { font-size: 22px; }
  .quote span { font-size: 13px; }
  .item h3 { font-size: 22px; }
  .item p { font-size: 16px; line-height: 1.55; }
  .aside h1 { font-size: clamp(34px, 9vw, 42px); }
  .aside p { font-size: 17px; }
  .aside .meta { font-size: 16px; }
  label { font-size: 12px; }
  .check { font-size: 14px; }
  .status { font-size: 15px; }
  .legal h3 { font-size: 24px; }
  .legal h4 { font-size: 17px; }
  .legal p, .legal ul { font-size: 16px; }
  .proj-body p { font-size: 16px; }
  .ref-block h3 { font-size: 22px; }
  .ref-block p, .ref-block ul { font-size: 16px; }
  details.item .hint { font-size: 12px; }
  details.item .prices li { font-size: 16px; }
  details.sub .why { font-size: 15px; }
  .toc a { font-size: 15px; }
  .footer { font-size: 14px; }
  .site-connect a.ci { font-size: 15px; }
  .form-heading { font-size: clamp(28px, 7vw, 34px); }
  .mobile-tabs a { font-size: 10px; }
  .cookie-bar { font-size: 14px; }
}

/* Leistungen: Details öffnen, dann Anfragen */
details.sub > .sub-ask {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0 0 16px 18px;
  padding: 12px 22px;
  min-height: 40px;
  border: 2px solid var(--green);
  border-radius: var(--click-radius);
  background: var(--green);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none !important;
  line-height: 1.3;
  white-space: nowrap;
  overflow: visible;
  max-width: none;
}
details.sub > .sub-ask:hover {
  background: #fff !important;
  color: var(--green) !important;
  filter: none;
}
html[data-theme="dark"] details.sub > .sub-ask {
  color: #fff !important;
}
/* Hover-Popups: kein Anfragen-Button */
.hover-open-pop .sub-ask { display: none !important; }

/* Form success overlay */
html.form-success-open { overflow: hidden; }
.form-success {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.form-success.is-open {
  opacity: 1;
  pointer-events: auto;
}
.form-success[hidden] { display: none !important; }
.form-success.is-open[hidden] { display: grid !important; }
.form-success-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #0c1008 55%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.form-success-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: var(--green);
  color: #fff;
  border-radius: 16px;
  padding: 44px 40px 36px;
  box-shadow: 0 24px 60px color-mix(in srgb, #000 28%, transparent);
  text-align: left;
  transform: translateY(12px) scale(0.98);
  transition: transform .32s ease;
}
.form-success.is-open .form-success-panel {
  transform: translateY(0) scale(1);
}
.form-success-kicker {
  letter-spacing: .28em;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .92;
  margin-bottom: 14px;
}
.form-success-title {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: .01em;
  margin: 0 0 14px;
  color: #fff;
}
.form-success-body {
  font-size: 16px;
  line-height: 1.55;
  opacity: .95;
  margin: 0 0 28px;
  max-width: 36ch;
}
.form-success-btn {
  appearance: none;
  border: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 13px 22px;
  border-radius: var(--click-radius);
  cursor: url("../img/cursor-pointer.svg") 6 4, pointer;
}
.form-success-btn:hover {
  background: #fff;
  color: var(--green);
}
html[data-theme="dark"] .form-success-btn {
  color: #121412;
}
html[data-theme="dark"] .form-success-btn:hover {
  background: #fff;
  color: var(--green);
}
@media (max-width: 560px) {
  .form-success-panel { padding: 36px 26px 28px; border-radius: 14px; }
}

/* Leistungen category slogans */
details.item .item-slogan {
  margin: 4px 0 0;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.45;
  color: var(--mute);
}
details.item .item-slogan br { display: block; content: ""; margin-top: 0.15em; }
details.sub .why {
  white-space: normal;
}



/* === white-text hover: white bg + green type === */
.cta:hover,
.links a.active:hover,
button.send:hover,
.cookie-accept:hover,
details.sub > .sub-ask:hover,
.btn-ghost:hover,
.hero-copy .btn-ghost:hover,
.aside a:hover,
.toc a:hover,
.footer-studio a:hover,
.form-success-btn:hover,
html[data-theme="dark"] .cta:hover,
html[data-theme="dark"] .links a.active:hover,
html[data-theme="dark"] button.send:hover,
html[data-theme="dark"] .cookie-accept:hover,
html[data-theme="dark"] details.sub > .sub-ask:hover,
html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .hero-copy .btn-ghost:hover,
html[data-theme="dark"] .aside a:hover,
html[data-theme="dark"] .toc a:hover,
html[data-theme="dark"] .footer-studio a:hover,
html[data-theme="dark"] .form-success-btn:hover {
  background: #fff !important;
  color: var(--green) !important;
}
a.card:hover .card-copy,
html[data-theme="dark"] a.card:hover .card-copy {
  background: #fff !important;
  color: var(--green) !important;
  filter: none !important;
}
a.card:hover .card-copy h3,
a.card:hover .card-copy p,
html[data-theme="dark"] a.card:hover .card-copy h3,
html[data-theme="dark"] a.card:hover .card-copy p {
  color: var(--green) !important;
}


/* Warenkorb Step 1 */
details.sub summary {
  align-items: center;
}
.cart-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  cursor: url("../img/cursor-pointer.svg") 6 4, pointer;
  flex-shrink: 0;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.cart-add svg { width: 18px; height: 18px; display: block; }
.cart-add--ok {
  background: #fff !important;
  color: var(--green) !important;
}
.cart-add--removed {
  opacity: 0.55;
}
.cart-add.is-in-cart:hover {
  opacity: 1;
}
.hover-open-pop .cart-add { display: none !important; }

.cart-fab {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  cursor: url("../img/cursor-pointer.svg") 6 4, pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cart-fab svg { width: 26px; height: 26px; }
.cart-fab {
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.cart-fab:hover {
  background: #fff !important;
  color: var(--green) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.cart-fab--pulse { transform: scale(1.08); }
.cart-fab-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
html[data-theme="dark"] .cart-fab-count {
  background: #111;
  color: var(--green);
}
@media (max-width: 720px) {
  .cart-fab { right: 14px; bottom: 78px; width: 52px; height: 52px; }
}


/* Warenkorb page Step 2 */
.cart-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 40px 80px;
}
.cart-page-intro .kicker { color: var(--green); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.cart-page-intro h1 { margin: 8px 0 12px; font-size: clamp(28px, 4vw, 42px); }
.cart-page-intro .lead { max-width: 60ch; color: var(--mute); }
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: var(--card, #fff);
}
html[data-theme="dark"] .cart-row {
  border-color: rgba(152,194,24,.35);
  background: rgba(152,194,24,.08);
  border-radius: 16px;
}
.cart-row-cat { margin: 0; font-size: 12px; color: var(--mute); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cart-row h3 { margin: 4px 0 6px; font-size: 18px; }
.cart-row-unit { margin: 0; font-size: 13px; color: var(--mute); }
.cart-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 140px; }
.cart-row-price { margin: 0; color: var(--green); font-weight: 800; white-space: nowrap; }
.cart-qty { font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.cart-qty input {
  width: 64px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.15);
  background: transparent;
  color: inherit;
}
.cart-remove {
  border: none;
  background: transparent;
  color: var(--mute);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: url("../img/cursor-pointer.svg") 6 4, pointer;
  padding: 0;
}
.cart-remove:hover { color: var(--green); }
.cart-summary {
  position: sticky;
  top: 88px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(152,194,24,.35);
  background: rgba(152,194,24,.08);
}
.cart-summary h2 { margin: 0 0 12px; font-size: 18px; }
.cart-total-label { margin: 0; font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.cart-total { margin: 4px 0 12px; font-size: 28px; font-weight: 900; color: var(--green); }
.cart-note { margin: 0 0 16px; font-size: 13px; color: var(--mute); line-height: 1.45; }
.cart-summary {
  overflow: visible;
  padding-bottom: 24px;
}
.cart-cta {
  width: 100%;
  margin-bottom: 10px;
  white-space: nowrap;
  min-height: 48px;
  line-height: 1.25;
  box-sizing: border-box;
}
.cart-summary .btn-ghost.cart-continue,
.cart-clear-all {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}
.cart-continue {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 18px !important;
  min-height: 48px;
  line-height: 1.25 !important;
  white-space: nowrap;
  overflow: visible !important;
  border: 2px solid var(--green) !important;
  border-bottom: 2px solid var(--green) !important; /* override hero .btn-ghost underline style */
  border-radius: var(--click-radius, 999px);
  background: transparent;
  color: var(--green) !important;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
}
.cart-cta.btn-primary,
.cart-summary .btn-ghost.cart-continue {
  font-size: 15px;
}
.cart-trust { list-style: none; margin: 16px 0 0; padding: 0; font-size: 13px; color: var(--mute); }
.cart-trust li { padding: 4px 0 4px 18px; position: relative; }
.cart-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.cart-empty {
  padding: 28px;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,.15);
  text-align: left;
}
.cart-empty p {
  margin: 0 0 20px;
}
.cart-empty .btn-primary {
  display: inline-flex;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--click-radius, 999px);
  border: 2px solid var(--green);
  background: var(--green);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  cursor: url("../img/cursor-pointer.svg") 6 4, pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--click-radius, 999px);
  border: 2px solid var(--green);
  color: var(--green) !important;
  font-weight: 800;
  text-decoration: none !important;
}
@media (max-width: 880px) {
  .cart-page { padding: 24px 18px 96px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-row { flex-direction: column; }
  .cart-row-meta { align-items: flex-start; }
}


/* Warenkorb add spacing + text flush with price */
details.sub {
  --hm-cart-slot: 46px; /* 34px btn + 12px gap */
}
details.sub summary {
  display: flex;
  align-items: center;
  gap: 12px;
}
details.sub summary .sub-name {
  flex: 1 1 auto;
  min-width: 0;
}
details.sub summary .price-wrap {
  margin-left: 0;
  text-align: right;
  flex: 0 0 auto;
}
details.sub summary .cart-add {
  margin: 0;
  margin-left: 0;
  flex: 0 0 34px;
}
/* Why ends flush with price (reserve cart column); Anfragen keeps full button padding */
details.sub > .why {
  box-sizing: border-box;
  max-width: calc(100% - var(--hm-cart-slot));
}
.cart-add.is-in-cart {
  opacity: 0.25;
}
.cart-add.is-in-cart:hover {
  opacity: 0.4;
}


/* Landing service video */
.landing-media {
  width: 100%;
  max-width: 640px;
  margin: 1rem 0 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #111;
}
.landing-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}


/* Landing copy paragraph spacing */
.landing-copy p {
  margin: 0 0 1.1em;
  max-width: 62ch;
  line-height: 1.6;
  color: var(--mute);
  font-size: 16px;
}
.landing-copy p:last-child { margin-bottom: 0; }

/* Referenzen — Weitere Kunden (collapsed list, no chips) */
.refs-names-block {
  margin: 28px 0 16px;
}
.refs-names-details {
  border: none;
}
.refs-names-details > summary {
  list-style: none;
  cursor: url("../img/cursor-pointer.svg") 6 4, pointer;
}
.refs-names-details > summary::-webkit-details-marker { display: none; }
.refs-names-details > summary::marker { content: ""; }
.refs-names-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0 0 14px;
  padding: 12px 22px;
  min-height: 44px;
  border: 2px solid var(--green);
  border-radius: var(--click-radius);
  background: var(--green);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: none;
  line-height: 1.25;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.refs-names-toggle:hover {
  background: #fff !important;
  color: var(--green) !important;
  border-color: #fff;
}
html[data-theme="dark"] .refs-names-toggle:hover {
  background: #fff !important;
  color: var(--green) !important;
  border-color: #fff;
}
.refs-names {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px 12px;
}
.refs-names li {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--mute);
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-theme="dark"] .refs-names li {
  background: none;
  border: none;
  color: var(--mute);
}
@media (max-width: 1100px) {
  .refs-names { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .refs-names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Button hover not clipped */
.hero,
.hero-copy,
.hero-actions,
.form,
.section,
.cart-summary {
  overflow: visible;
}
.hero-actions a,
.hero-actions .btn-white,
.hero-actions .btn-hero-solid,
.hero-actions .btn-primary {
  position: relative;
  z-index: 1;
}


/* —— Angebots-Vorschau (Warenkorb) —— */
html.offer-flow-open { overflow: hidden; }
.offer-flow {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow: auto;
}
.offer-flow[hidden] { display: none !important; }
.offer-flow-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
}
.offer-flow-panel {
  position: relative; z-index: 1;
  width: min(920px, 100%);
  background: var(--bg, #fff);
  color: var(--text, #111);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  padding: 28px 28px 32px;
  margin: 12px auto 40px;
}
.offer-flow-x {
  position: absolute; top: 12px; right: 14px;
  width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: transparent; color: var(--mute, #666); font-size: 28px; line-height: 1;
  cursor: pointer;
}
.offer-flow-x:hover { color: var(--green, #98C218); }
.offer-flow-lead { color: var(--mute, #555); margin: 0 0 18px; max-width: 52ch; }
.offer-customer-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px;
}
.offer-customer-form .field { display: flex; flex-direction: column; gap: 6px; }
.offer-customer-form .field.full { grid-column: 1 / -1; }
.offer-customer-form label { font-size: 13px; font-weight: 700; }
.offer-customer-form input,
.offer-customer-form textarea {
  border: 1px solid rgba(0,0,0,.12); border-radius: 12px;
  padding: 12px 14px; font: inherit; background: #fff; color: inherit;
}
html[data-theme="dark"] .offer-customer-form input,
html[data-theme="dark"] .offer-customer-form textarea {
  background: #1a1a1a; border-color: rgba(255,255,255,.14);
}
.offer-flow-actions {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 6px;
}
.offer-preview-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.offer-preview-toolbar h2 { margin: 0; font-size: 22px; }
.offer-preview-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.offer-preview-hint { margin: 16px 0 0; font-size: 13px; color: var(--mute, #666); }

.offer-doc { background: #f4f4f2; padding: 18px; border-radius: 12px; }
.offer-sheet {
  background: #fff; color: #111;
  padding: 36px 40px 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  font-size: 13px; line-height: 1.45;
}
.offer-sheet a { color: #111; text-decoration: none; }
.offer-sheet-head {
  display: flex; justify-content: space-between; gap: 24px; align-items: flex-start;
  margin-bottom: 28px;
}
.offer-brand { font-size: 13px; }
.offer-brand strong { font-size: 18px; color: #98C218; }
.offer-meta table { border-collapse: collapse; font-size: 12px; }
.offer-meta th { text-align: left; padding: 2px 12px 2px 0; font-weight: 600; color: #444; }
.offer-meta td { text-align: right; }
.offer-parties { margin: 8px 0 20px; }
.offer-from-line { font-size: 10px; color: #666; border-bottom: 1px solid #111; display: inline-block; margin-bottom: 8px; padding-bottom: 2px; }
.offer-customer { font-size: 14px; margin-top: 4px; }
.offer-sheet h1 { font-size: 20px; margin: 0 0 8px; letter-spacing: .02em; }
.offer-intro { margin: 0 0 16px; color: #333; max-width: 62ch; }
.offer-positions { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.offer-positions th,
.offer-positions td { border-bottom: 1px solid #ddd; padding: 8px 6px; vertical-align: top; }
.offer-positions thead th {
  background: #98C218; color: #fff; font-weight: 700; text-align: left; border: 0;
  padding: 8px 6px;
}
.offer-positions .c-pos { width: 36px; }
.offer-positions .c-num { text-align: right; white-space: nowrap; width: 88px; }
.offer-muted { color: #777; font-size: 11px; }
.offer-totals { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.offer-totals th { text-align: left; padding: 8px 6px; background: #f0f0ee; }
.offer-totals td { text-align: right; padding: 8px 6px; font-weight: 800; white-space: nowrap; }
.offer-briefing { margin: 0 0 16px; padding: 12px 14px; background: #f7faf0; border-left: 3px solid #98C218; }
.offer-briefing p { margin: 6px 0 0; white-space: pre-wrap; }
.offer-notes { font-size: 11px; color: #444; }
.offer-notes p { margin: 0 0 8px; }
.offer-sheet-foot {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 28px; padding-top: 14px; border-top: 1px solid #ddd;
  font-size: 11px; color: #333;
}

@media (max-width: 640px) {
  .offer-customer-form { grid-template-columns: 1fr; }
  /* PDF/print export uses .offer-pdf-root — keep desktop table there */
  .offer-flow { padding: 12px 8px; }
  .offer-flow-panel {
    padding: 18px 12px 22px;
    border-radius: 12px;
    width: 100%;
  }
  .offer-preview-toolbar { align-items: flex-start; }
  .offer-preview-actions { width: 100%; }
  .offer-preview-actions .btn-primary,
  .offer-preview-actions .btn-ghost { flex: 1 1 auto; }
  .offer-doc {
    padding: 8px;
    overflow-x: hidden;
  }
  .offer-sheet {
    padding: 16px 12px;
    font-size: 12px;
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .offer-sheet-head {
    flex-direction: column;
    gap: 14px;
  }
  .offer-meta { width: 100%; }
  .offer-meta table,
  .offer-meta th,
  .offer-meta td {
    display: block;
    text-align: left !important;
  }
  .offer-meta th { padding: 0; color: #666; font-size: 11px; }
  .offer-meta td { padding: 0 0 6px; font-weight: 700; }
  .offer-sheet h1 { font-size: 17px; }
  .offer-intro { max-width: none; }

  /* Positions: stack as cards so prices never clip the right edge */
  .offer-positions { display: block; width: 100%; }
  .offer-positions thead { display: none; }
  .offer-positions tbody { display: block; width: 100%; }
  .offer-positions tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
  }
  .offer-positions td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    border: 0;
    padding: 3px 0;
    text-align: left !important;
    white-space: normal !important;
  }
  .offer-positions .c-pos {
    font-weight: 800;
    color: #98C218;
    font-size: 12px;
    margin-bottom: 2px;
  }
  .offer-positions .c-pos::before { content: "Pos. "; font-weight: 700; color: #666; }
  .offer-positions .c-desc { margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px dashed #e2e2e2; }
  .offer-positions .c-num {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    font-variant-numeric: tabular-nums;
  }
  .offer-positions .c-num::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
    flex: 1 1 auto;
    min-width: 0;
  }
  .offer-totals { display: block; width: 100%; }
  .offer-totals tr { display: block; }
  .offer-totals th,
  .offer-totals td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left !important;
    white-space: normal !important;
  }
  .offer-totals th { padding-bottom: 2px; }
  .offer-totals td { font-size: 16px; padding-top: 0; }
  .offer-sheet-foot {
    flex-direction: column;
    gap: 10px;
  }
}

@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html, body {
    background: #fff !important;
    color: #111 !important;
  }
  body * { visibility: hidden !important; }
  .offer-flow,
  .offer-flow .offer-flow-panel,
  .offer-flow #offer-step-preview,
  .offer-flow .offer-doc,
  .offer-flow .offer-sheet,
  .offer-flow .offer-sheet * {
    visibility: visible !important;
  }
  .offer-flow {
    position: static !important; inset: auto !important; padding: 0 !important;
    display: block !important; overflow: visible !important;
    background: #fff !important;
  }
  .offer-flow-backdrop,
  .offer-flow-x,
  .no-print,
  .offer-preview-toolbar,
  .offer-preview-hint,
  .offer-preview-actions,
  #offer-step-form {
    display: none !important;
    visibility: hidden !important;
  }
  .offer-flow-panel {
    box-shadow: none !important; border-radius: 0 !important; padding: 0 !important;
    width: 100% !important; max-width: none !important; margin: 0 !important;
    background: #fff !important; color: #111 !important;
  }
  .offer-doc {
    background: #fff !important; padding: 0 !important; border-radius: 0 !important;
  }
  .offer-sheet {
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    background: #fff !important;
    color: #111 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .offer-positions thead th,
  .offer-brand strong,
  .offer-briefing {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .offer-positions thead th {
    background: #98C218 !important;
    color: #fff !important;
  }
  .offer-totals th { background: #f0f0ee !important; }
  .offer-briefing { background: #f7faf0 !important; border-left: 3px solid #98C218 !important; }
  #offer-step-preview { display: block !important; }
}



/* —— Angebots-PDF/Druck: immer Desktop-Rechnungsoptik (wie Voransicht am großen Screen) —— */
.offer-pdf-root {
  position: fixed !important;
  left: -10000px !important;
  top: 0 !important;
  width: 794px !important;
  background: #fff !important;
  z-index: -1 !important;
  pointer-events: none !important;
}
.offer-pdf-root .offer-sheet {
  width: 794px !important;
  max-width: 794px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 36px 40px 32px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
  overflow: visible !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}
.offer-pdf-root .offer-sheet-head {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  gap: 24px !important;
  align-items: flex-start !important;
}
.offer-pdf-root .offer-meta table { display: table !important; }
.offer-pdf-root .offer-meta th,
.offer-pdf-root .offer-meta td { display: table-cell !important; }
.offer-pdf-root .offer-meta th { text-align: left !important; padding: 2px 12px 2px 0 !important; }
.offer-pdf-root .offer-meta td { text-align: right !important; padding: 2px 0 !important; font-weight: 400 !important; }
.offer-pdf-root .offer-sheet h1 { font-size: 20px !important; }
.offer-pdf-root .offer-positions {
  display: table !important;
  width: 100% !important;
  border-collapse: collapse !important;
}
.offer-pdf-root .offer-positions thead { display: table-header-group !important; }
.offer-pdf-root .offer-positions tbody { display: table-row-group !important; }
.offer-pdf-root .offer-positions tr {
  display: table-row !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  width: auto !important;
}
.offer-pdf-root .offer-positions th,
.offer-pdf-root .offer-positions td {
  display: table-cell !important;
  width: auto !important;
  border-bottom: 1px solid #ddd !important;
  padding: 8px 6px !important;
  text-align: left !important;
  white-space: normal !important;
  vertical-align: top !important;
}
.offer-pdf-root .offer-positions thead th {
  background: #98C218 !important;
  color: #fff !important;
  border: 0 !important;
}
.offer-pdf-root .offer-positions .c-pos { width: 36px !important; color: inherit !important; font-weight: 400 !important; }
.offer-pdf-root .offer-positions .c-pos::before { content: none !important; }
.offer-pdf-root .offer-positions .c-num {
  display: table-cell !important;
  text-align: right !important;
  white-space: nowrap !important;
  width: 88px !important;
}
.offer-pdf-root .offer-positions .c-num::before { content: none !important; }
.offer-pdf-root .offer-positions .c-desc {
  border-bottom: 1px solid #ddd !important;
  margin: 0 !important;
  padding: 8px 6px !important;
}
.offer-pdf-root .offer-totals { display: table !important; width: 100% !important; }
.offer-pdf-root .offer-totals tr { display: table-row !important; }
.offer-pdf-root .offer-totals th,
.offer-pdf-root .offer-totals td { display: table-cell !important; width: auto !important; white-space: nowrap !important; }
.offer-pdf-root .offer-totals th { text-align: left !important; background: #f0f0ee !important; }
.offer-pdf-root .offer-totals td { text-align: right !important; font-size: 13px !important; font-weight: 800 !important; }
.offer-pdf-root .offer-sheet-foot { display: flex !important; flex-direction: row !important; }
.offer-pdf-root .offer-brand strong { color: #98C218 !important; }
.offer-pdf-root .offer-briefing {
  background: #f7faf0 !important;
  border-left: 3px solid #98C218 !important;
}

@media print {
  /* Always print the invoice table layout, never the mobile card stack */
  .offer-sheet .offer-positions { display: table !important; width: 100% !important; }
  .offer-sheet .offer-positions thead { display: table-header-group !important; }
  .offer-sheet .offer-positions tbody { display: table-row-group !important; }
  .offer-sheet .offer-positions tr { display: table-row !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; }
  .offer-sheet .offer-positions th,
  .offer-sheet .offer-positions td { display: table-cell !important; width: auto !important; text-align: left !important; white-space: normal !important; border-bottom: 1px solid #ddd !important; padding: 8px 6px !important; }
  .offer-sheet .offer-positions .c-num { text-align: right !important; white-space: nowrap !important; width: 88px !important; }
  .offer-sheet .offer-positions .c-num::before,
  .offer-sheet .offer-positions .c-pos::before { content: none !important; }
  .offer-sheet .offer-sheet-head { flex-direction: row !important; }
  .offer-sheet .offer-meta table { display: table !important; }
  .offer-sheet .offer-meta th,
  .offer-sheet .offer-meta td { display: table-cell !important; }
  .offer-sheet .offer-meta td { text-align: right !important; }
  .offer-sheet .offer-totals { display: table !important; }
  .offer-sheet .offer-totals th,
  .offer-sheet .offer-totals td { display: table-cell !important; }
  .offer-sheet .offer-totals td { text-align: right !important; }
  .offer-sheet { padding: 0 !important; font-size: 13px !important; }
}

