/* ==========================================================================
   webmcp-agentur.de – Stylesheet
   Natives CSS, keine externen Abhängigkeiten, keine Webfonts von Fremdservern.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink:        #0d1220;
  --ink-2:      #2c3549;
  --muted:      #5b6478;
  --line:       #e2e6ee;
  --line-soft:  #eef1f6;
  --bg:         #ffffff;
  --bg-alt:     #f6f8fc;
  --bg-code:    #0f1626;
  --card:       #ffffff;

  --brand:      #1b4dd8;
  --brand-ink:  #143aa6;
  --brand-soft: #e8eeff;
  --accent:     #00c2a8;
  --accent-ink: #00806f;

  --ok:         #0d7a4f;
  --ok-bg:      #e7f7ef;
  --err:        #b4231d;
  --err-bg:     #fdecea;

  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(13,18,32,.05), 0 8px 24px rgba(13,18,32,.06);
  --shadow-lg:  0 2px 4px rgba(13,18,32,.06), 0 20px 50px rgba(13,18,32,.10);

  --wrap:       1160px;
  --wrap-narrow: 780px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --step-0: clamp(1rem, .96rem + .18vw, 1.075rem);
  --step-1: clamp(1.15rem, 1.08rem + .34vw, 1.35rem);
  --step-2: clamp(1.35rem, 1.22rem + .62vw, 1.75rem);
  --step-3: clamp(1.65rem, 1.42rem + 1.05vw, 2.35rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.3vw, 3.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:       #eef1f8;
    --ink-2:     #c2cadb;
    --muted:     #99a3b8;
    --line:      #253049;
    --line-soft: #1a2337;
    --bg:        #0b1020;
    --bg-alt:    #101728;
    --bg-code:   #060a15;
    --card:      #131b2e;

    --brand:      #7ea0ff;
    --brand-ink:  #a8bfff;
    --brand-soft: #16224a;
    --accent:     #2fe0c4;
    --accent-ink: #7ff0dd;

    --ok:    #5fd6a0;
    --ok-bg: #0e2c20;
    --err:   #ff8f86;
    --err-bg:#33130f;

    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.45), 0 20px 50px rgba(0,0,0,.45);
  }
}

/* --------------------------------------------------------------------------
   2. Reset & Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
  font-weight: 700;
}
h1 { font-size: var(--step-4); letter-spacing: -.035em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--brand-soft);
  color: var(--brand-ink);
  padding: .12em .38em;
  border-radius: 5px;
  word-break: break-word;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }

.muted { color: var(--muted); }
.small { font-size: .875rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Buttons & Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn--primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.btn--lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }

.link-arrow {
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { border-bottom-color: transparent; }

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brand__mark { color: var(--brand); flex-shrink: 0; }
.brand__text { display: inline-flex; align-items: baseline; gap: .35rem; letter-spacing: -.02em; }
.brand__sub { color: var(--muted); font-weight: 500; }

.nav__list {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a:not(.btn) {
  display: block;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 550;
}
.nav__list a:not(.btn):hover { background: var(--bg-alt); color: var(--brand); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
}
.nav-toggle__bars { display: inline-grid; gap: 3px; }
.nav-toggle__bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    inset: 4.4rem .75rem auto .75rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .6rem;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__list a:not(.btn) { padding: .75rem .8rem; font-size: 1rem; }
  .nav__list .btn { margin-top: .4rem; width: 100%; }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(80rem 40rem at 15% -20%, var(--brand-soft), transparent 60%),
    radial-gradient(60rem 35rem at 95% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.4rem;
  padding: .4rem .9rem .4rem .7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow);
}
.dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.hl {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 42%, transparent) 62%);
  padding-inline: .06em;
}

.hero__lead {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 62ch;
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 2.2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--muted);
}
.hero__trust strong { color: var(--ink); }

.hero__panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem;
}
.hero__panel-title {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-weight: 700;
}
.hero__panel-note {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: .88rem;
  color: var(--muted);
}

.factlist { margin: 0; }
.factlist__row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: .5rem 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.factlist__row:last-child { border-bottom: 0; padding-bottom: 0; }
.factlist dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.factlist dd { margin: 0; font-size: .92rem; font-weight: 550; }

@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .factlist__row { grid-template-columns: 1fr; gap: .1rem; }
}

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--cta {
  background:
    radial-gradient(60rem 30rem at 50% 0%, var(--brand-soft), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}

.kicker {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 .7rem;
}

.section__lead {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 68ch;
  margin-bottom: 2.4rem;
}

.prose { max-width: 72ch; }
.prose p { color: var(--ink-2); }

.definition {
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem;
  margin: 0 0 2rem;
  max-width: 78ch;
}
.section--alt .definition { background: var(--card); }
.definition p { margin: 0; font-size: var(--step-1); color: var(--ink-2); }
.definition strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.8rem;
}
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.card h4 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* --------------------------------------------------------------------------
   8. Vergleich (mit/ohne)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 3vw, 3rem);
  align-items: start;
}
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } }

.compare { display: grid; gap: 1rem; }
.compare__col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  background: var(--card);
}
.compare__col h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.08rem;
  margin-bottom: .8rem;
}
.compare__col h3 span {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  font-size: .85rem;
  flex-shrink: 0;
}
.compare__col--bad  { border-color: color-mix(in srgb, var(--err) 32%, var(--line)); }
.compare__col--bad h3 span  { background: var(--err-bg); color: var(--err); }
.compare__col--good { border-color: color-mix(in srgb, var(--ok) 32%, var(--line)); }
.compare__col--good h3 span { background: var(--ok-bg); color: var(--ok); }

.compare__col ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-2);
  font-size: .95rem;
}
.compare__col li { margin-bottom: .45rem; }
.compare__col li:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   9. Leistungen
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.2rem;
}

.service {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.service:target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }

.service__num {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .08em;
  margin: 0 0 .55rem;
}
.service__title { font-size: 1.22rem; margin-bottom: .55rem; }
.service__lead { color: var(--ink-2); font-size: .97rem; margin-bottom: 1rem; }

.service__list {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  font-size: .93rem;
  color: var(--ink-2);
  flex-grow: 1;
}
.service__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .55rem;
}
.service__list li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .55em;
  width: .5rem;
  height: .5rem;
  border-radius: 2px;
  background: var(--accent);
}
.service__cta { margin: 0; }

/* --------------------------------------------------------------------------
   10. Technik / Code
   -------------------------------------------------------------------------- */
.tech {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.tech__block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.tech__block > p { color: var(--ink-2); font-size: .97rem; }

.code {
  background: var(--bg-code);
  color: #dbe4f5;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.65;
  margin: 0 0 1.2rem;
  border: 1px solid color-mix(in srgb, var(--bg-code) 70%, var(--line));
  tab-size: 2;
}
.code code { background: none; color: inherit; padding: 0; font-size: inherit; }

.tech__notes {
  margin: 0;
  padding-left: 1.15rem;
  font-size: .9rem;
  color: var(--ink-2);
}
.tech__notes li { margin-bottom: .4rem; }

/* --------------------------------------------------------------------------
   11. Ablauf
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}
.step h3 {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.15rem;
  margin-bottom: .45rem;
}
.step__n {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: .95rem;
  font-weight: 700;
  font-family: var(--mono);
}
.step p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* --------------------------------------------------------------------------
   12. Über uns
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 780px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { width: 8rem; }
}

.about__portrait {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--brand), var(--accent));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
}
.about__initials {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.04em;
}

.about__role {
  color: var(--brand);
  font-weight: 650;
  margin-top: -.4em;
  margin-bottom: 1.2em;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}
.badges li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: .7rem; }

.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item[open] { border-color: var(--brand); }

.faq__item summary {
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  position: relative;
  list-style: none;
  font-weight: 650;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 {
  display: inline;
  font-size: 1.06rem;
  font-weight: 650;
  margin: 0;
  letter-spacing: -.01em;
}
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 1.3rem;
  top: 1.45rem;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item summary:hover { background: var(--bg-alt); }

.faq__answer {
  padding: 0 1.3rem 1.3rem;
  color: var(--ink-2);
  font-size: .97rem;
  max-width: 74ch;
}

/* --------------------------------------------------------------------------
   14. Formular
   -------------------------------------------------------------------------- */
.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-lg);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.1rem;
}

.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-weight: 650;
  font-size: .93rem;
  margin-bottom: .4rem;
}
.req { color: var(--err); }

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--err);
  background: color-mix(in srgb, var(--err-bg) 55%, var(--bg));
}

.field__error {
  margin: .4rem 0 0;
  color: var(--err);
  font-size: .875rem;
  font-weight: 600;
}

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .1rem .7rem;
  align-items: start;
}
.field--check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .28rem;
  accent-color: var(--brand);
}
.field--check label {
  font-weight: 400;
  font-size: .92rem;
  color: var(--ink-2);
  margin: 0;
}
.field--check .field__error { grid-column: 1 / -1; }

.form__submit { margin: 1.6rem 0 .8rem; }
.form__submit .btn { width: 100%; }
.form__note { margin: 0; }

/* Honeypot – visuell entfernt, aber im DOM vorhanden */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* WebMCP-Feedback: der Browser setzt diese Pseudoklassen bei Agent-Aufruf */
form:tool-form-active {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button:tool-submit-active {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

.alert {
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.6rem;
  border: 1.5px solid;
}
.alert h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert--success { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.alert--success h3 { color: var(--ok); }
.alert--success a { color: inherit; }
.alert--error { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.alert--error h3, .alert--error a { color: var(--err); }

.contact-alt {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-2);
}
.contact-alt h3 { font-size: 1.05rem; margin-bottom: .4rem; }

/* --------------------------------------------------------------------------
   15. Rechtstexte / Textseiten
   -------------------------------------------------------------------------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal h1 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.legal h2 {
  font-size: var(--step-1);
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1.08rem; margin-top: 1.8rem; }
.legal p, .legal li { color: var(--ink-2); max-width: 74ch; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin-bottom: .5rem; }
.legal address { font-style: normal; margin-bottom: 1.1em; }

.breadcrumb {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li:not(:last-child)::after { content: " ›"; color: var(--muted); }

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 2.5rem;
}
.toc h2 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 0 0 .7rem;
  border: 0;
  padding: 0;
}
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .3rem; font-size: .92rem; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

.datatable {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 2rem;
  font-size: .93rem;
}
.datatable caption {
  text-align: left;
  font-weight: 650;
  color: var(--muted);
  font-size: .85rem;
  padding-bottom: .6rem;
}
.datatable th, .datatable td {
  text-align: left;
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.datatable th {
  width: 15rem;
  color: var(--ink);
  font-weight: 650;
  background: var(--bg-alt);
}
.datatable td { color: var(--ink-2); }
.table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  font-size: .94rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
@media (max-width: 940px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer__brand { font-size: 1.1rem; margin-bottom: .6rem; }
.site-footer__h {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .8rem;
  font-weight: 700;
}
.site-footer__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.site-footer__list li { margin-bottom: .4rem; }
.site-footer__list a { color: var(--ink-2); text-decoration: none; }
.site-footer__list a:hover { color: var(--brand); text-decoration: underline; }
.site-footer__address { font-style: normal; color: var(--ink-2); margin-bottom: 1rem; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.site-footer__bottom p { margin: 0; max-width: 70ch; }
.to-top { font-weight: 600; text-decoration: none; white-space: nowrap; }
.to-top:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   17. Druck
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .hero__panel, .skip-link, .nav-toggle, .form { display: none; }
  body { color: #000; background: #fff; font-size: 11pt; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .section, .hero { padding: 1rem 0; border: 0; background: none; }
}
