/* Webolar – Unterseiten im neuen Design (ergänzt home.css) */

/* Sektionen ohne eigenen Container: Inhalt auf Seitenbreite begrenzen */
.h-page .wh-section,
.h-page .wh-hero.wp-sub,
.h-page .wp-mini,
.h-page .wp-doc-wrap {
  padding-left: max(var(--gut), calc((100% - var(--wrap)) / 2));
  padding-right: max(var(--gut), calc((100% - var(--wrap)) / 2));
}
.h-page .wh-section { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.h-page .wh-section + .wh-section { padding-top: 0; }

/* Kleine Überzeile: ruhig, ohne Großbuchstaben */
.wh-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 18px; }
.wh-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); flex: none; }

/* Brotkrumen */
.wp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 28px; }
.wp-crumbs a { color: var(--ink-2); text-decoration: none; }
.wp-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.wp-crumbs i { font-style: normal; font-size: 0; width: 5px; height: 5px; border-top: 1.5px solid #B9BEB5; border-right: 1.5px solid #B9BEB5; transform: rotate(45deg); }
.wp-crumbs [aria-current] { color: var(--ink); }

/* ---------- Hero ---------- */
.wh-hero.wp-sub { position: relative; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); overflow: clip; }
.wh-hero.wp-sub::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 46% 60% at 78% 45%, rgba(255,122,18,.12), transparent 70%);
}
.wh-hero.has-stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.wh-hero.wp-sub h1, .wp-mini h1 {
  font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -.03em;
  font-variation-settings: "opsz" 96; max-width: 17ch; text-wrap: balance;
}
.wh-hero.wp-sub h1 span, .wp-mini h1 span { color: var(--ink-3); }
.wh-hero-copy > p { margin: 24px 0 30px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 52ch; }
.wh-hero-copy > p a { color: var(--ink); text-underline-offset: 3px; }
.wh-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wh-hero-copy .wp-contact-row { margin-top: 14px; }
.wh-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.wh-proof > div { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 10px; }
.wh-proof b { font-size: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.wh-hero.has-stage .x-demo { --site-h: 300px; }
.wh-hero.has-stage .x-stage { height: 500px; }
.wh-hero.has-stage .h-demo-tabs { margin-bottom: 4px; }

/* Kleiner Kopf (Rechtstexte, Blog) */
.wp-mini { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(24px, 4vw, 48px); }
.wp-mini > p { margin-top: 20px; color: var(--ink-2); max-width: 60ch; font-size: 18px; }

/* ---------- Buttons der alten Seiten ---------- */
.wh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.wh-btn-primary { background: var(--orange); color: #1A1300; }
.wh-btn-primary:hover { background: #FF8B2E; }
.wh-btn:active { transform: translateY(1px); }
.wp-contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wp-contact-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .2s, border-color .2s; }
.wp-call { background: var(--ink); color: #fff; }
.wp-call:hover { background: #343941; }
.wp-wa { background: var(--white); color: var(--ink); border: 1px solid #C9CDC5; }
.wp-wa:hover { border-color: var(--ink); }

/* ---------- Abschnittsköpfe ---------- */
.wh-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.wh-section-head h2, .wp-split-copy h2, .wp-package-head h2, .wp-cta h2, .wh-person-copy h2 {
  font-size: clamp(32px, 4vw, 52px); line-height: 1.02; letter-spacing: -.032em; font-variation-settings: "opsz" 72; text-wrap: balance;
}
.wh-section-head > p { color: var(--ink-2); max-width: 50ch; justify-self: end; }
.wh-section-head.center { grid-template-columns: 1fr; text-align: left; }
.wh-section-head.center > p { justify-self: start; }

/* ---------- Karten ---------- */
.wp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wp-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-card {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.4vw, 30px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l);
  color: var(--ink); text-decoration: none; transition: border-color .3s, box-shadow .3s, transform .6s var(--ease);
}
a.wp-card:hover, .wp-card:hover { border-color: #C9CDC5; box-shadow: 0 30px 60px -36px rgba(31,35,41,.35); }
.wp-card h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.2; letter-spacing: -.015em; }
.wp-card p { color: var(--ink-2); font-size: 16px; }
.wp-card p a { color: var(--ink); }
a.wp-card::before {
  content: ""; order: 99; margin-top: auto; align-self: flex-end; width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13m-5-6 6 6-6 6' fill='none' stroke='%231F2329' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
  transition: background-color .3s, transform .3s var(--ease);
}
a.wp-card:hover::before { background-color: var(--orange); transform: rotate(-45deg); }
.wp-card.sm { padding: 20px 22px; }
.wp-tag { align-self: flex-start; font-size: 13px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.wp-num { font: 600 15px/1 var(--display); color: var(--orange-deep); }

/* Referenzkarten */
.wp-ref-logo { display: flex; align-items: center; justify-content: center; height: 96px; border-radius: var(--r-m); background: var(--paper); margin-bottom: 6px; }
.wp-ref-logo img { max-height: 56px; max-width: 70%; width: auto; height: auto; object-fit: contain; }
.wh-ref-word { font: 650 19px/1.1 var(--display); letter-spacing: -.02em; color: var(--ink-2); }

/* Referenz-Laufband (Webentwicklung) */
.wh-ref-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wh-ref-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 46s linear infinite; }
.wh-ref-marquee:hover .wh-ref-track { animation-play-state: paused; }
.wh-ref-track li { flex: none; border-right: 1px solid var(--line); }
.wh-ref-logo { display: flex; align-items: center; justify-content: center; width: 220px; height: 124px; padding: 20px 28px; text-decoration: none; transition: background-color .3s; }
.wh-ref-logo:hover { background: var(--white); }
.wh-ref-logo img { max-height: 58px; max-width: 150px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .35s, opacity .35s; }
.wh-ref-logo.is-dark img { filter: grayscale(1) invert(.86); }
.wh-ref-logo:hover img { filter: none; opacity: 1; }

/* ---------- Aussage ---------- */
.wp-statement h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.03em; max-width: 24ch; font-weight: 550; }

/* ---------- Zweispaltig ---------- */
.wp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.wp-split-copy { position: sticky; top: 110px; }
.wp-split-copy > p { color: var(--ink-2); margin: 20px 0 28px; max-width: 46ch; }

/* ---------- Paket / Angebot ---------- */
.wp-package {
  background: var(--ink); color: #ECEDEF; border-radius: var(--r-l); padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); position: relative; overflow: hidden;
}
.wp-package::after { content: ""; position: absolute; right: -15%; top: -40%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(255,122,18,.16), transparent 70%); pointer-events: none; }
.wp-package > * { position: relative; z-index: 1; }
.wp-offer-label { display: inline-block; font-size: 14px; font-weight: 600; color: #1A1300; background: var(--orange); border-radius: 999px; padding: 6px 12px; margin-bottom: 18px; }
.wp-package-head h2 { color: #fff; }
.wp-package-head p { margin-top: 18px; color: rgba(236,237,239,.72); max-width: 52ch; }
.wp-package-price { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.wp-price { display: flex; flex-direction: column; font: 600 clamp(54px, 6.4vw, 92px)/1 var(--display); letter-spacing: -.045em; color: #fff; }
.wp-price small { font: 400 15px/1.5 var(--text); letter-spacing: 0; color: rgba(236,237,239,.72); margin-top: 8px; }
.wp-price-monthly { font: 600 clamp(30px, 3vw, 42px)/1 var(--display); letter-spacing: -.03em; color: #fff; margin-top: 22px; }
.wp-risk-free { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; }
.wp-risk-free b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 13px; flex: none; }
.wp-package-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.wp-package-list li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(236,237,239,.1); }
.wp-package-list li > b { color: var(--orange); font-size: 15px; }
.wp-package-list span { color: rgba(236,237,239,.72); font-size: 15px; }
.wp-package-list strong { display: block; color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.wp-package-extra { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wp-package-extra > div { background: rgba(255,255,255,.05); border: 1px solid rgba(236,237,239,.1); border-radius: var(--r-m); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.wp-package-extra strong { color: #fff; font-weight: 600; }
.wp-package-extra span { color: rgba(236,237,239,.72); font-size: 15px; }
.wp-package-note { grid-column: 1 / -1; font-size: 14px; color: rgba(236,237,239,.6); }
.wp-offer:not(.wp-package) { background: var(--ink); color: #ECEDEF; border-radius: var(--r-l); padding: clamp(28px, 4vw, 56px); }

/* ---------- FAQ ---------- */
.wp-faq { border-top: 1px solid var(--ink); max-width: 920px; }
.wp-faq details { border-bottom: 1px solid var(--line); }
.wp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font: 550 clamp(18px, 1.6vw, 21px)/1.3 var(--display); letter-spacing: -.01em; }
.wp-faq summary::-webkit-details-marker { display: none; }
.wp-faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #C9CDC5;
  background: linear-gradient(var(--ink), var(--ink)) center / 10px 1.6px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.6px 10px no-repeat;
  transition: transform .3s var(--ease), background-color .2s; }
.wp-faq details[open] summary::after { transform: rotate(45deg); background-color: var(--orange-soft); border-color: transparent; }
.wp-faq details p { color: var(--ink-2); padding: 0 48px 24px 0; max-width: 70ch; }
.wp-faq details p a { color: var(--ink); }

/* ---------- Abschluss-Band ---------- */
.h-page .wp-cta {
  margin: 0 max(var(--gut), calc((100% - var(--wrap)) / 2)) clamp(64px, 8vw, 112px);
  background: var(--orange); color: #1A1300; border-radius: var(--r-l);
  padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center;
}
.wp-cta .wh-eyebrow { color: rgba(26,19,0,.75); }
.wp-cta .wh-eyebrow::before { background: var(--ink); box-shadow: none; }
.wp-cta h2 { color: #1A1300; }
.wp-cta p { color: rgba(26,19,0,.78); margin-top: 14px; max-width: 56ch; }
.wp-cta .wh-btn-primary { background: var(--ink); color: #fff; }
.wp-cta .wh-btn-primary:hover { background: #343941; }
.wp-cta .wp-contact-row { grid-column: 1 / -1; }
.wp-cta .wp-wa { background: transparent; border-color: rgba(26,19,0,.35); }
.wp-cube-wrap { display: none; }

/* ---------- Ansprechpartner ---------- */
.wh-person { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(24px, 4vw, 48px); }
.wh-person-photo { width: 240px; height: 280px; object-fit: cover; border-radius: var(--r-m); }
.wh-person-role { color: var(--ink-3); margin: 8px 0 18px; }
.wh-person-copy > p:not(.wh-person-role) { color: var(--ink-2); max-width: 60ch; margin-bottom: 24px; }

/* ---------- Formular (alte Feldstruktur im neuen Layout) ---------- */
.h-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.h-form .mil-input-frame { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.h-form .mil-input-frame label { font-size: 14px; font-weight: 500; color: var(--ink); }
.h-form .mil-input-frame label small { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.h-form input, .h-form select, .h-form textarea {
  width: 100%; font: 400 16px/1.4 var(--text); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.h-form textarea { resize: vertical; min-height: 120px; }
.h-form select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  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.5 6 6.5l5-5' fill='none' stroke='%231F2329' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.h-form input::placeholder, .h-form textarea::placeholder { color: #9A9FA6; }
.h-form input:focus, .h-form select:focus, .h-form textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgba(31,35,41,.08); }
.h-form .b2b-hint { font-size: 13.5px; color: var(--ink-3); margin: -8px 0 18px; }
.h-form .b2b-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); text-align: center; }
.h-form button[type="submit"] { width: 100%; min-height: 54px; font-weight: 600; margin-top: 6px; }

/* ---------- Rechtstexte & Blog ---------- */
.wp-doc-wrap { padding-bottom: clamp(64px, 8vw, 112px); }
.wp-doc { max-width: 860px; display: flex; flex-direction: column; gap: 16px; }
.wp-doc-date { margin-bottom: 0; }
.wp-doc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 3.4vw, 40px); }
.wp-doc-card h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.wp-doc-card h3 { font-size: 18px; margin: 22px 0 8px; letter-spacing: -.01em; }
.wp-doc-card p, .wp-doc-card li { color: var(--ink-2); }
.wp-doc-card p + p { margin-top: 12px; }
.wp-doc-card a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--orange); }
.wp-doc-card ul, .wp-doc-card ol { padding-left: 1.2em; margin: 10px 0; list-style: revert; }
.wp-doc-card table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.wp-doc-card th, .wp-doc-card td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-doc-card th { font-weight: 600; color: var(--ink); background: var(--paper); }
.wp-doc-toc ol { columns: 2; column-gap: 32px; }
.wp-doc-toc li { margin-bottom: 6px; break-inside: avoid; }
.wp-cc-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 500 15px/1 var(--text); cursor: pointer; margin-top: 8px; }
.wp-cc-btn:hover { background: #343941; }

/* Kontakt-Bereich auf Unterseiten */
.h-page .h-contact { margin-top: 0; }

/* ---------- Einblenden beim Scrollen ---------- */
.js .wp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--ri, 0) * 70ms); }
.js .wp-reveal.is-in { opacity: 1; transform: none; }
.js .wp-reveal[data-tilt].is-in { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .wh-hero.has-stage, .wh-section-head, .wp-split, .wp-package, .wh-person { grid-template-columns: 1fr; }
  .wh-section-head > p { justify-self: start; }
  .wp-split-copy { position: static; }
  .h-page .wp-cta { grid-template-columns: 1fr; }
  .wh-person-photo { width: 200px; height: 230px; }
}
@media (max-width: 640px) {
  .wp-grid, .wp-grid.two, .wp-package-list, .wp-package-extra, .h-form .row { grid-template-columns: 1fr; }
  .wp-doc-toc ol { columns: 1; }
  .wh-hero-actions .wh-btn, .wp-contact-row .wp-contact-link { flex: 1 1 100%; justify-content: center; }
  .wh-hero.has-stage .x-demo { --site-h: 290px; }
  .wh-hero.has-stage .x-stage { height: 450px; }
  .wh-ref-logo { width: 160px; height: 96px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .wp-reveal { opacity: 1; transform: none; }
  .wh-ref-track { animation: none; }
}
.h-page .wp-cta + .wh-section { padding-top: 0; }

/* Mobil: Spalten dürfen nie breiter als der Bildschirm werden */
@media (max-width: 960px) {
  .wh-hero.has-stage { grid-template-columns: minmax(0, 1fr); }
  .wh-hero.has-stage > * { min-width: 0; }
}
@media (max-width: 640px) {
  .wh-hero.wp-sub h1, .wp-mini h1 { font-size: clamp(30px, 9vw, 40px); hyphens: auto; overflow-wrap: break-word; }
}
@media (max-width: 960px) {
  .wh-section-head, .wp-split, .wp-package, .wh-person, .h-page .wp-cta { grid-template-columns: minmax(0, 1fr); }
  .wh-section-head > *, .wp-split > *, .wp-package > *, .wp-card { min-width: 0; }
}
@media (max-width: 640px) {
  .wp-grid, .wp-grid.two, .wp-package-list, .wp-package-extra, .h-form .row { grid-template-columns: minmax(0, 1fr); }
  .wh-section-head h2, .wp-split-copy h2, .wp-package-head h2, .wp-cta h2, .wh-person-copy h2, .wp-statement h2 { hyphens: auto; overflow-wrap: break-word; }
}
/* Tabellen scrollen auf kleinen Bildschirmen seitlich, Buttons dürfen umbrechen */
.wp-table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; -webkit-overflow-scrolling: touch; }
.wp-table caption { text-align: left; font-weight: 600; padding: 0 0 10px; }
.wp-table th, .wp-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 120px; }
.wp-table th { background: var(--white); font-weight: 600; }
@media (max-width: 640px) {
  .wh-btn, .h-btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; }
}
.wp-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }
.wp-table-wrap .wp-table { display: table; width: 100%; min-width: 560px; overflow: visible; }
.wp-table-note { margin-top: 12px; font-size: 14px; color: var(--ink-3); max-width: 80ch; }
