/*
 * TrainWerk Master Parity 0.3.6-alpha.
 * Copyright (C) 2026 Hans-Josef Pesch / TrainWerk.
 * TrainWerk Open Use License 1.0. Backlink or coffee welcome.
 * No original header, footer, or global template CSS is overwritten.
 */

/* Brand typography follows the navigation font family without altering the TW square. */
body.tw-site .tw-header .tw-brand-copy {
  min-width: 0;
  font-family: var(--tw-font-body, inherit);
  line-height: 1.18;
}
body.tw-site .tw-header .tw-brand-copy strong {
  display: block;
  font-family: inherit;
  font-size: clamp(1.04rem, 1.15vw, 1.25rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.015em;
}
body.tw-site .tw-header .tw-brand-copy small {
  display: block;
  font-family: inherit;
  font-size: clamp(.55rem, .7vw, .69rem);
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.38;
  white-space: normal;
  margin-top: .12rem;
}
body.tw-site .tw-header .tw-brand-with-mark {
  align-items: center;
}
body.tw-site .tw-header .tw-brand-mark {
  flex-shrink: 0;
}

/* FAQ hero: master layout, including preserved image and its existing motion. */
.tw036-faq-hero .tw036-faq-hero-inner {
  box-sizing: border-box;
  position: relative;
  margin: 0 8vw 0 auto;
  width: min(940px, calc(100% - 3rem));
  min-height: 960px;
  padding: 7rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
}
.tw036-faq-hero .tw036-faq-hero-copy {
  max-width: 940px;
}
.tw036-faq-hero .tw-breadcrumb {
  gap: .6rem;
  color: #cbd5e1;
}
.tw036-faq-hero .tw-breadcrumb [aria-current="page"] {
  color: #fdba74;
}
.tw036-faq-hero .tw036-faq-hero-copy .tw-eyebrow {
  margin: 2rem 0 0;
}
.tw036-faq-hero .tw036-faq-hero-copy h1 {
  max-width: 940px;
  margin: 1rem 0 0;
  font-family: var(--tw-font-heading, var(--tw-font-body, inherit));
  color: #fff;
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.08;
  font-size: clamp(2rem, 2.65vw, 3.25rem);
  text-wrap: balance;
}
.tw036-faq-hero .tw036-faq-hero-copy .tw-lead {
  max-width: 44rem;
  margin: 1.75rem 0 0;
  font-size: 1.12rem;
  line-height: 1.78;
  color: #e2e8f0;
}
.tw036-faq-hero .tw036-faq-search-card {
  box-sizing: border-box;
  display: block;
  width: min(100%, 680px);
  margin-top: .5rem;
  padding: 2.2rem;
  background: linear-gradient(135deg, rgba(255,255,255,.26), rgba(255,255,255,.10));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 22px 60px rgba(2,6,23,.2), inset 0 1px 0 rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  color: #fff;
}
.tw036-faq-search-heading {
  margin: 0 0 1.4rem;
  font-weight: 750;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #fff;
}
.tw036-faq-form { display: grid; gap: .65rem; }
.tw036-faq-form label { font-weight: 700; font-size: .91rem; color: #fff; }
.tw036-faq-form input,
.tw036-faq-form select {
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  margin-bottom: .55rem;
  padding: .67rem .9rem;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  font-size: 1rem;
}
.tw036-faq-form :is(input,select):focus-visible {
  outline: 3px solid #fb923c;
  outline-offset: 2px;
}
.tw036-faq-search-actions {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}
.tw036-faq-search-actions .tw-button {
  padding: .67rem 1.25rem;
  min-height: 2.8rem;
}
.tw036-faq-reset {
  color: #fff;
  font-size: .89rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.tw036-faq-reset:hover { color: #fed7aa; }
.tw036-faq-counter {
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  background: rgba(2,6,23,.20);
  border: 1px solid rgba(255,255,255,.25);
  font-weight: 650;
  color: #fff;
  font-size: .95rem;
}
.tw036-faq-area {
  background: #f2f4f7;
  border-block: 1px solid #e1e6ed;
}
.tw036-faq-list-wrap {
  box-sizing: border-box;
  width: min(100% - 2rem, 1024px);
  margin-inline: auto;
}
.tw036-faq-list { display: grid; gap: 1.25rem; }
.tw036-faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: border-color .23s ease, box-shadow .23s ease, transform .23s ease;
}
.tw036-faq-item[hidden],
.tw036-faq-empty[hidden] { display: none !important; }
.tw036-faq-item:hover,
.tw036-faq-item:focus-within {
  border-color: #fb923c;
  box-shadow: 0 12px 28px rgba(15,23,42,.07);
}
.tw036-faq-item summary {
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 2rem;
  outline-offset: 4px;
}
.tw036-faq-item summary::-webkit-details-marker { display: none; }
.tw036-faq-item summary:focus-visible { outline: 3px solid #f97316; }
.tw036-faq-category {
  display: block;
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .17em;
  color: #c2410c;
}
.tw036-faq-question {
  display: block;
  margin-top: .55rem;
  color: #0f172a;
  font-weight: 750;
  font-size: 1.1rem;
  line-height: 1.55;
}
.tw036-faq-item[open] { background: #fff; }
.tw036-faq-answer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e2e8f0;
  color: #334155;
  line-height: 1.8;
}
.tw036-faq-answer p { margin: 0; }
.tw036-faq-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}
.tw036-faq-meta span {
  display: block;
  color: #64748b;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tw036-faq-meta strong { display: block; color: #1e293b; margin-top: .5rem; }
.tw036-faq-more { display: inline-block; margin-top: 1.2rem; color: #c2410c; font-weight: 750; }
.tw036-faq-more:hover { color: #9a3412; }
.tw036-faq-empty { padding: 2rem; background: #fff; border: 1px solid #e2e8f0; }
.tw036-faq-notice {
  margin-top: 3.5rem;
  border-left: 4px solid #f97316;
  padding: 2rem 2.2rem;
  background: #0f182d;
  color: #fff;
}
.tw036-faq-notice h2 {
  margin: 1rem 0 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: #fff;
}
.tw036-faq-notice p:not(.tw-eyebrow) { color: #e2e8f0; line-height: 1.75; }
.tw036-faq-notice .tw-button { margin-top: 1.2rem; }

/* Bundesweit: master content, isolated from other TrainWerk services. */
.tw036-federal-grid {
  width: min(calc(100% - 2rem), var(--tw-max,1280px));
  max-width: var(--tw-max,1280px);
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2rem, 3.7vw, 4rem);
}
.tw036-federal-grid > * { min-width: 0; }
.tw036-federal-aside {
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(255,255,255,.26),rgba(255,255,255,.10));
  border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 22px 60px rgba(2,6,23,.20), inset 0 1px 0 rgba(255,255,255,.28);
  padding: 2rem;
  color: #fff;
}
.tw036-federal-aside h2 { margin-top: .9rem; font-size: clamp(1.25rem,2vw,1.6rem); color:#fff; }
.tw036-federal-aside ul { list-style: none; padding: 0; margin: 1.4rem 0 0; border-block: 1px solid rgba(255,255,255,.25); }
.tw036-federal-aside li { display: flex; gap:.7rem; padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,.25); font-weight: 650; font-size:.92rem; }
.tw036-federal-aside li:last-child { border-bottom: 0; }
.tw036-federal-aside li span { font-size: .62rem; padding-top: .4rem; }
.tw036-federal-aside-note { margin: 1.4rem 0 0; padding: 1.1rem; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .9rem; line-height: 1.7; }
.tw036-federal-section { padding: 5rem 0; }
.tw036-federal-container { box-sizing: border-box; width: min(calc(100% - 2rem), var(--tw-max,1280px)); margin-inline: auto; }
.tw036-federal-section h2 { font-size: clamp(1.9rem,2.4vw,2.5rem); margin: .85rem 0 1.35rem; line-height: 1.15; }
.tw036-federal-two { display:grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,4vw,5rem); }
.tw036-federal-two > * { min-width: 0; }
.tw036-federal-white { background: #fff; }
.tw036-federal-muted { background: #f2f4f7; border-block: 1px solid #e1e6ed; }
.tw036-federal-section p { line-height: 1.8; }
.tw036-federal-prose { color:#475569; font-size:1.05rem; }
.tw036-federal-prose p:first-child { margin-top: 0; }
.tw036-federal-cards { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; margin-top:2.5rem; }
.tw036-federal-card { background:#fff; border:1px solid #e2e8f0; padding:1.6rem; }
.tw036-federal-card-rule { display:block; width:3.4rem; height:3px; background:#f97316; }
.tw036-federal-number { display:block; margin-top:1.1rem; color:#c2410c; font-weight:750; }
.tw036-federal-card h3 { margin-top:.5rem; font-size:1.17rem; color:#0f172a; }
.tw036-federal-card p { margin-top:.8rem; color:#475569; }
.tw036-federal-states { display:grid; grid-template-columns:1fr 1fr; gap:1px; border:1px solid #e2e8f0; background:#e2e8f0; }
.tw036-federal-states >div { padding:1.25rem; background:#f8fafc; }
.tw036-federal-states strong { display:block; color:#0f172a; }
.tw036-federal-states small { display:block; text-transform:uppercase; letter-spacing:.12em; font-size:.68rem; margin-top:.4rem; color:#64748b; }
.tw036-federal-section .tw-button { margin-top: 1.2rem; }
.tw036-federal-blue { color:#fff; background: radial-gradient(ellipse at 58% 90%,#07315c 0%,#02122d 64%,#020617 100%); }
.tw036-federal-blue h2, .tw036-federal-blue h3 { color:#fff; }
.tw036-federal-carriers { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.tw036-federal-carriers article { padding:1.3rem; border:1px solid #334155; background:rgba(2,6,23,.25); }
.tw036-federal-carriers h3 { font-size:1.08rem; }
.tw036-federal-carriers p { color:#fb923c; font-weight:700; font-size:.82rem; margin:.7rem 0 0; }

@media (max-width: 900px) {
  .tw036-faq-hero .tw036-faq-hero-inner {
    min-height: auto;
    width: min(calc(100% - 2rem), 760px);
    margin-inline: auto;
    padding: 4.5rem .5rem 5rem;
  }
  .tw036-federal-grid, .tw036-federal-two { grid-template-columns:1fr; }
  .tw036-federal-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  body.tw-site .tw-header .tw-brand-copy strong { font-size:clamp(.87rem,3.3vw,1.08rem); }
  body.tw-site .tw-header .tw-brand-copy small { font-size:clamp(.49rem,1.7vw,.59rem); letter-spacing:.10em; }
  .tw036-faq-hero .tw036-faq-hero-inner { padding: 3rem 0 4rem; }
  .tw036-faq-hero .tw036-faq-hero-copy h1 { font-size:clamp(1.95rem,7vw,2.6rem); }
  .tw036-faq-hero .tw036-faq-search-card { padding:1.3rem; }
  .tw036-faq-item summary { padding:1.2rem 1rem; }
  .tw036-faq-answer { padding:1.2rem 1rem; }
  .tw036-faq-meta { grid-template-columns:1fr; }
  .tw036-faq-notice { padding:1.5rem; }
  .tw036-federal-cards, .tw036-federal-states, .tw036-federal-carriers { grid-template-columns:1fr; }
  .tw036-federal-section { padding:3.25rem 0; }
  .tw036-federal-aside { padding:1.4rem; }
}
@media (prefers-reduced-motion:reduce) {
  .tw036-faq-item { transition:none; }
}
/* In the accessibility high-contrast mode, neutral gray surfaces and dark text. */
html.tw-a11y-contrast-high .tw036-faq-search-card,
html.tw-a11y-contrast-high .tw036-faq-notice,
html.tw-a11y-contrast-high .tw036-federal-aside,
html.tw-a11y-contrast-high .tw036-federal-blue,
html.tw-a11y-contrast-high .tw036-federal-carriers article {
  background:#e5e7eb !important; border-color:#334155 !important; box-shadow:none !important;
}
html.tw-a11y-contrast-high .tw036-faq-search-card *,
html.tw-a11y-contrast-high .tw036-faq-notice *,
html.tw-a11y-contrast-high .tw036-federal-aside *,
html.tw-a11y-contrast-high .tw036-federal-blue * {
  color:#0f172a !important;
}
html.tw-a11y-contrast-high .tw036-faq-hero .tw-hero-bg,
html.tw-a11y-contrast-high .tw036-faq-hero .tw-hero-overlay { display:none !important; }
html.tw-a11y-contrast-high .tw036-faq-hero { background:#e5e7eb !important; }
html.tw-a11y-contrast-high .tw036-faq-hero .tw036-faq-hero-copy * { color:#0f172a !important; }
/* Scoped contact form on the restored Bundesweit landing page. */
.tw036-contact-grid { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); border:1px solid #e2e8f0; }
.tw036-contact-grid > * { min-width:0; padding:clamp(1.4rem,3.2vw,3rem); }
.tw036-contact-info { color:#fff; background:#0f182d; }
.tw036-contact-info h2 { color:#fff; }
.tw036-contact-info > p:not(.tw-eyebrow) { color:#cbd5e1; }
.tw036-contact-info dl { margin:2rem 0 0; border-top:1px solid #475569; }
.tw036-contact-info dl >div { padding:1.1rem 0; border-bottom:1px solid #475569; }
.tw036-contact-info dt { font-size:.76rem; text-transform:uppercase; letter-spacing:.13em; color:#94a3b8; }
.tw036-contact-info dd { margin:.5rem 0 0; color:#fff; font-weight:700; }
.tw036-contact-info a:hover { color:#fdba74; }
.tw036-contact-form { background:#f8fafc; }
.tw036-contact-form h3 { margin:.7rem 0 0; font-size:1.5rem; color:#0f172a; }
.tw036-contact-form >p:not(.tw-eyebrow) { color:#475569; }
.tw036-contact-form .tw-form { display:grid; gap:1.25rem; margin-top:1.75rem; }
.tw036-contact-fields { display:grid; grid-template-columns:1fr 1fr; gap:1.1rem; }
.tw036-contact-form .tw-form-field { display:grid; gap:.45rem; color:#0f172a; font-weight:700; }
.tw036-contact-form :is(input:not([type=checkbox]),textarea) { box-sizing:border-box; width:100%; border:1px solid #cbd5e1; padding:.8rem 1rem; background:#fff; color:#0f172a; font-weight:400; }
.tw036-contact-form :is(input,textarea):focus-visible { outline:3px solid #f97316; outline-offset:2px; }
.tw036-contact-form .tw-check { display:flex; gap:.7rem; font-weight:400; align-items:flex-start; color:#334155; }
.tw036-contact-form .tw-check input { margin-top:.4rem; flex-shrink:0; }
.tw036-contact-form .tw-button { justify-self:start; }
@media(max-width:900px){ .tw036-contact-grid { grid-template-columns:1fr; } }
@media(max-width:640px){ .tw036-contact-fields { grid-template-columns:1fr; } }
html.tw-a11y-contrast-high .tw036-contact-info { color:#0f172a; background:#e5e7eb !important; }
html.tw-a11y-contrast-high .tw036-contact-info * { color:#0f172a !important; }


/* TrainWerk 0.3.13: Bundesweit hero two-column repair (master layout).
 * Copyright (C) 2026 Hans-Josef Pesch / TrainWerk, Open Use License 1.0.
 * Scoped to the federal page only, preserving other service-page styles.
 */
.tw-image-hero > .tw036-federal-grid[data-tw037-federal-hero="1"] {
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(4rem, 7vw, 7rem);
}
.tw036-federal-grid[data-tw037-federal-hero="1"] .tw037-federal-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tw036-federal-grid[data-tw037-federal-hero="1"] .tw037-federal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  color: #cbd5e1;
  margin-bottom: 1.75rem;
  font-size: .875rem;
  font-weight: 600;
}
.tw037-federal-breadcrumb a:hover { color: #ffffff; text-decoration: underline; }
.tw037-federal-breadcrumb [aria-current="page"] { color: #fdba74; }
.tw036-federal-grid[data-tw037-federal-hero="1"] .tw037-federal-copy > .tw-eyebrow {
  margin: 0 0 .9rem;
  color: #fb923c;
  font-size: .8rem;
}
.tw-image-hero .tw036-federal-grid[data-tw037-federal-hero="1"] .tw037-federal-copy h1 {
  font-size: clamp(2.25rem, 3.8vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  max-width: 100%;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
  color: #ffffff;
}
.tw036-federal-grid[data-tw037-federal-hero="1"] .tw037-federal-copy > .tw-lead {
  max-width: 46rem;
  margin: 1.5rem 0 0;
  line-height: 1.7;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: #e2e8f0;
}
.tw036-federal-grid[data-tw037-federal-hero="1"] .tw037-federal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.tw036-federal-grid[data-tw037-federal-hero="1"] .tw037-federal-actions a {
  min-height: 3.4rem;
  text-decoration: none;
}
.tw036-federal-grid[data-tw037-federal-hero="1"] .tw037-federal-checklist {
  list-style: none;
  padding: 1.35rem 0 0;
  border-top: 1px solid rgba(255,255,255,.28);
  margin: 2rem 0 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1.25rem;
}
.tw037-federal-checklist li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-weight: 650;
  color: #e2e8f0;
  font-size: .875rem;
  min-width: 0;
}
.tw037-federal-checklist li > span {
  flex: 0 0 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  background: rgba(16, 185, 129, .16);
  color: #34d399;
  font-size: 1rem;
}
.tw036-federal-grid[data-tw037-federal-hero="1"] .tw036-federal-aside {
  align-self: center;
  min-width: 0;
  width: 100%;
}
@media (max-width: 900px) {
  .tw-image-hero > .tw036-federal-grid[data-tw037-federal-hero="1"] {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 4rem;
  }
  .tw036-federal-grid[data-tw037-federal-hero="1"] .tw036-federal-aside {
    max-width: 45rem;
  }
}
@media (max-width: 560px) {
  .tw-image-hero > .tw036-federal-grid[data-tw037-federal-hero="1"] {
    padding-block: 3rem;
    gap: 1.5rem;
  }
  .tw036-federal-grid[data-tw037-federal-hero="1"] .tw037-federal-checklist {
    grid-template-columns: minmax(0,1fr);
  }
  .tw036-federal-grid[data-tw037-federal-hero="1"] .tw037-federal-actions a {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tw036-federal-grid[data-tw037-federal-hero="1"] .tw037-federal-actions a {
    transition: none;
  }
}
html.tw-a11y-contrast-high .tw037-federal-copy *,
html.tw-a11y-contrast-high .tw037-federal-checklist li,
html.tw-a11y-contrast-high .tw037-federal-breadcrumb [aria-current="page"] {
  color: #0f172a !important;
}
html.tw-a11y-contrast-high .tw037-federal-checklist li > span {
  color: #0f172a !important;
  background: #cbd5e1 !important;
}
html.tw-a11y-contrast-high .tw037-federal-actions .tw-button {
  color: #0f172a !important;
  background: #e5e7eb !important;
  border-color: #0f172a !important;
}
