/* Entscheiderdaten – Stylesheet */

@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PlexMono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PlexMono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0F2A44;
  --ink-soft: #2B4560;
  --teal: #3A9286;
  --teal-deep: #2B7066;
  --teal-wash: #E4F1EE;
  --paper: #F6F8F7;
  --white: #FFFFFF;
  --rule: #D3DBE2;
  --muted: #56677A;
  --error: #B42318;
  --max: 1160px;
  --text: 40rem;
  --radius-s: 4px;
  --radius-m: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: var(--text); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }

/* Kopfzeile */
.site-head { background: var(--white); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
@media (max-width: 520px) { .brand img { height: 30px; } }
.brand span b { color: var(--teal-deep); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 1.4rem; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--teal-deep); }
.nav a.btn, .nav a.btn:hover { color: var(--white); }
.nav .lang { color: var(--muted); }
@media (max-width: 760px) { .nav a:not(.btn):not(.lang) { display: none; } }

/* Schaltflächen */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.3rem; border-radius: var(--radius-s); border: 2px solid var(--ink);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; background: var(--ink); color: var(--white);
}
.btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--white); color: var(--ink); }
.btn.small { padding: .5rem .9rem; font-size: .9rem; }

/* Hero */
.hero { background: var(--white); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero .facts { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 2rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero .facts li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: .45rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Datensatz-Karte: das zentrale Motiv */
.record {
  background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius-m);
  box-shadow: 10px 10px 0 var(--teal-wash);
  font-family: "PlexMono", ui-monospace, Consolas, monospace; font-size: .86rem;
}
.record-head { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1.1rem; border-bottom: 1.5px solid var(--ink); font-family: "Plex", sans-serif; font-weight: 600; }
.record-head small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.record dl { margin: 0; }
.record .row { display: grid; grid-template-columns: 7.6rem 1fr auto; gap: .8rem; padding: .55rem 1.1rem; border-bottom: 1px solid var(--rule); align-items: baseline; }
.record .row:last-child { border-bottom: 0; }
.record dt { color: var(--muted); font-family: "Plex", sans-serif; font-size: .85rem; }
.record dd { margin: 0; overflow-wrap: break-word; min-width: 0; }
.record .ok { color: var(--teal-deep); font-family: "Plex", sans-serif; font-size: .8rem; white-space: nowrap; }
.record .row.key { background: var(--teal-wash); }
.record .row.key dd { font-weight: 500; }
.record-foot { padding: .7rem 1.1rem; font-family: "Plex", sans-serif; font-size: .82rem; color: var(--muted); border-top: 1.5px solid var(--ink); }
@media (max-width: 520px) { .record .row { grid-template-columns: 1fr auto; } .record dt { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: no-preference) {
  .record .ok { animation: tick .5s ease-out both; }
  .record .row:nth-child(2) .ok { animation-delay: .25s; }
  .record .row:nth-child(3) .ok { animation-delay: .4s; }
  .record .row:nth-child(4) .ok { animation-delay: .55s; }
  .record .row:nth-child(5) .ok { animation-delay: .7s; }
  .record .row:nth-child(6) .ok { animation-delay: .85s; }
  .record .row:nth-child(7) .ok { animation-delay: 1s; }
  .record .row:nth-child(8) .ok { animation-delay: 1.15s; }
  @keyframes tick { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
}

/* Abschnitte */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.white { background: var(--white); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* Felder-Liste */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.fields div { padding: 1.1rem 1.2rem 1.1rem 0; border-bottom: 1px solid var(--rule); }
.fields b { display: block; font-weight: 600; margin-bottom: .2rem; }
.fields span { color: var(--muted); font-size: .95rem; }

/* Ablauf (echte Reihenfolge) */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(s); display: block; font-size: 2.4rem; font-weight: 700; color: var(--teal); line-height: 1; margin-bottom: .7rem; }
.steps p { color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Preise als Vergleichstabelle */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius-m); overflow: hidden; }
.price-table th, .price-table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.price-table thead th { background: var(--ink); color: var(--white); font-weight: 600; }
.price-table thead th:first-child { width: 30%; }
.price-table tbody th { font-weight: 500; color: var(--muted); }
.price-table .big { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.price-table tfoot td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.note { color: var(--muted); font-size: .92rem; margin-top: 1rem; }

/* Branchen */
.industries { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.industries a { display: block; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font-weight: 500; }
.industries a:hover { border-color: var(--ink); }
.industries a span { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; }
.industries a.custom { border: 1.5px dashed var(--teal); background: var(--teal-wash); color: var(--teal-deep); }
.industries a.custom:hover { border-style: solid; }

/* Herkunft */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check { list-style: none; padding: 0; margin: 0 0 1rem; }
.check li { padding: .55rem 0 .55rem 1.8rem; position: relative; border-bottom: 1px solid var(--rule); }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); max-width: 50rem; }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .9rem; font-size: 1.4rem; font-weight: 400; color: var(--teal-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: .6rem; }

/* Formulare */
.forms { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .forms { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius-m); padding: clamp(1.25rem, 3vw, 2rem); }
.form-card h3 { font-size: 1.35rem; }
.form-card > p { color: var(--muted); font-size: .95rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 500; font-size: .92rem; margin: .9rem 0 .3rem; }
label .opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .65rem .75rem; border: 1px solid #A9B6C3; border-radius: var(--radius-s); background: var(--white);
}
textarea { min-height: 6.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--ink-soft); margin-top: 1.1rem; }
.consent input { width: auto; margin-top: .3rem; flex: none; }
.form-card .btn { margin-top: 1.2rem; width: 100%; }
.form-status { margin: 1rem 0 0; font-size: .95rem; }
.form-status.ok { color: var(--teal-deep); font-weight: 500; }
.form-status.err { color: var(--error); }
.hp { position: absolute; left: -9999px; }

/* Textseiten */
.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page .wrap > * { max-width: 46rem; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.page h3 { margin-top: 1.5rem; }
.page ul { padding-left: 1.2rem; max-width: var(--text); }
.page li { margin-bottom: .4rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }

/* Abschluss-Band */
.band { background: var(--ink); color: var(--white); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.band h2 { margin: 0; max-width: 24ch; }
.band .btn { background: var(--teal); border-color: var(--teal); }
.band .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Fußzeile */
.site-foot { background: var(--white); border-top: 1px solid var(--rule); padding: 2.5rem 0; font-size: .92rem; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* Cookie-Hinweis */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--white); border-top: 3px solid var(--teal); box-shadow: 0 -6px 24px rgba(15,42,68,.12); padding: 1.1rem 0; font-size: .95rem; }
.consent-banner[hidden] { display: none; }
.consent-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.consent-banner p { margin: 0; max-width: 62ch; color: var(--ink); }
.consent-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.consent-actions .btn { padding: .6rem 1.1rem; }
