/*
Theme Name: FlexBIP
Theme URI: https://flexbip.eu
Author: Suppora GmbH
Description: Website für FlexBIP – BI-Publisher-Templates für JD Edwards. Ohne Fremdinhalte.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietär (Inter: SIL Open Font License, siehe fonts/LICENSE-Inter.txt)
Text Domain: flexbip
*/
/* flexbip.eu – Website. Farben und Schrift wie Logo (brand/). */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/Inter-Regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/Inter-Medium.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/Inter-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 900; font-display: swap; src: url(fonts/Inter-Black.woff2) format("woff2"); }

:root {
  --green: #0B2622;      /* Nachtgrün: Text, Codefläche */
  --teal: #00A199;       /* nur Klammer, Links, Markierung */
  --teal-ink: #007A73;   /* Türkis als Textfarbe (Kontrast 4.9:1 auf Weiß) */
  --paper: #FFFFFF;
  --mist: #EEF3F1;       /* Flächen */
  --rule: #D5DEDB;
  --muted: #4A5E59;
  --code-text: #D7E6E2;
  --code-tag: #7FAFA5;
  --mark: rgba(0, 161, 153, 0.18);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  color: var(--green); background: var(--paper);
  font-feature-settings: "ss01", "cv11";
}
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 6px 10px; z-index: 10; }

/* Kopf */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.site-head .logo img { height: 30px; display: block; }
.site-head nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.site-head nav a { color: var(--green); text-decoration: none; }
.site-head nav a:hover { color: var(--teal-ink); }
.lang { font-size: 14px; color: var(--muted); }
.lang a { color: var(--muted); }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 2px solid var(--green); line-height: 1.2;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #154038; border-color: #154038; color: #fff; }
.btn-plain { color: var(--green); background: transparent; }
.btn-plain:hover { background: var(--mist); color: var(--green); }
.btn-small { padding: 7px 14px; font-size: 15px; }

/* Seitenkopf mit Verwandlung */
.hero { padding: 72px 0 56px; }
.hero h1 {
  font-weight: 900; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05;
  letter-spacing: -0.025em; margin: 0 0 22px; max-width: 20ch; text-wrap: balance;
}
.nw { white-space: nowrap; }
.hero .lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0 0 30px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.transform {
  margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.15fr) 72px minmax(0, 1fr);
  align-items: center;
}
.xml {
  background: var(--green); color: var(--code-text); border-radius: 12px; padding: 22px 0;
  font: 14px/1.75 var(--mono); overflow-x: auto;
}
.xml .ln { display: block; padding: 0 22px; white-space: pre; cursor: default; }
.xml .ln[data-k] { cursor: pointer; }
.xml .t { color: var(--code-tag); }
.xml .ln.on { background: rgba(0, 161, 153, 0.28); color: #fff; }
.xml .ln.on .t { color: #BFE7E1; }
.bridge { display: grid; place-items: center; }
.bridge svg { width: 40px; height: 60px; }
.doc {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
  padding: 28px 28px 24px; font-size: 14px; line-height: 1.5;
  box-shadow: 8px 8px 0 var(--mist);
}
.doc .co { font-size: 11px; color: var(--muted); text-align: right; margin-bottom: 18px; }
.doc .addr { margin-bottom: 18px; }
.doc h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.01em; margin: 0 0 10px; }
.doc dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin: 0 0 16px; }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doc th { text-align: left; font-weight: 600; border-bottom: 2px solid var(--green); padding: 4px 6px 4px 0; }
.doc td { border-bottom: 1px solid var(--rule); padding: 5px 6px 5px 0; vertical-align: top; }
.doc .r { text-align: right; padding-right: 0; }
.doc tfoot td { border: 0; font-weight: 700; padding-top: 8px; }
.doc [data-k] { border-radius: 3px; transition: background-color .15s; }
.doc [data-k].on { background: var(--mark); box-shadow: 0 0 0 3px var(--mark); }
.hint { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* Abschnitte */
section.block { padding: 72px 0; }
section.block.tint { background: var(--mist); }
h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; max-width: 24ch; }
.intro { color: var(--muted); max-width: 62ch; margin: 0 0 36px; font-size: 18px; }
h3 { font-size: 20px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--green); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font-weight: 900; font-size: 44px; line-height: 1; color: var(--teal); margin-bottom: 14px; }
.steps p { margin: 0; color: var(--muted); }

table.types { width: 100%; border-collapse: collapse; }
table.types th { text-align: left; font-size: 15px; color: var(--muted); font-weight: 500; padding: 0 16px 10px 0; border-bottom: 2px solid var(--green); }
table.types td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.types td:first-child { width: 72px; }
.code { font: 600 14px var(--mono); background: var(--green); color: #fff; border-radius: 5px; padding: 3px 7px; }
table.types td:nth-child(2) { font-weight: 600; width: 220px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; margin-top: 48px; }
.facts p { margin: 0; color: var(--muted); }

.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.privacy p { margin: 0 0 16px; }
.compare { font: 14px/1.6 var(--mono); }
.compare figure { margin: 0 0 14px; }
.compare figcaption { font: 500 14px Inter, sans-serif; color: var(--muted); margin-bottom: 6px; }
.compare pre { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; overflow-x: auto; }
.compare .t { color: var(--muted); }
.compare b { color: var(--green); font-weight: 600; }

.price-scroll { overflow-x: auto; }
table.prices { width: 100%; max-width: 820px; min-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.prices th, table.prices td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: baseline; }
table.prices thead th { font-size: 15px; font-weight: 500; color: var(--muted); border-bottom: 2px solid var(--green); }
table.prices tbody th { font-size: 18px; font-weight: 600; }
table.prices .amt { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
table.prices td:last-child, table.prices th:last-child { text-align: right; padding-right: 0; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

.faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; max-width: 780px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--teal-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 66ch; }

.cta { background: var(--green); color: #fff; padding: 64px 0; }
.cta h2 { color: #fff; max-width: 30ch; }
.cta p { color: var(--code-text); margin: 0 0 26px; max-width: 56ch; }
.cta .btn-primary { background: var(--teal); border-color: var(--teal); color: var(--green); }
.cta .btn-primary:hover { background: #fff; border-color: #fff; }

.site-foot { padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-foot .links { margin-left: auto; display: flex; gap: 20px; }

/* Rechtstexte */
.legal { max-width: 760px; padding: 56px 24px 80px; margin: 0 auto; }
.legal h1 { font-size: 40px; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 24px; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.todo { background: #FFF4CC; padding: 0 4px; border-radius: 3px; }

@media (max-width: 900px) {
  .site-head nav { display: none; }
  .site-head .wrap { gap: 16px; }
  .site-head .lang { margin-left: auto; }
  .transform { grid-template-columns: 1fr; }
  .bridge { padding: 10px 0; }
  .bridge svg { transform: rotate(90deg); }
  .steps, .facts, .privacy { grid-template-columns: 1fr; gap: 28px; }
  table.types td:nth-child(2) { width: auto; }
  .hero { padding-top: 48px; }
  .xml { font-size: 12px; padding: 16px 0; }
  .xml .ln { padding: 0 14px; }
  .nw { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
