/*
 * FKTT project styles for the Xarapro theme.
 *
 * All browser-facing CSS customizations belong in this file. Module-specific
 * sections are kept only as comments for navigation and ownership context.
 */

/* ==========================================================================
   Static fallback for the FKTT brand colors/typography.

   These mirror the values configured under Appearance > Settings > xara_fktt
   (theme_color_one/two/dark/light/border, color_bodybg/bodytext/bold,
   body_font_size/line_height, h1_size..h6_size) and are rendered dynamically
   in <head> by templates/template-parts/critical-style.html.twig. This block
   is a static safety net so the site never falls back to thexpro's generic
   demo colors/sizes, even outside that render path. Loads after style.css's
   own (outdated) :root, so it wins the cascade. If the theme settings
   change, update both this block and critical-style.html.twig.
   ========================================================================== */

:root {
  --primary: #f8d365;
  --secondary: #de9c12;
  --dark: #777777;
  --light: #f8f8f8;
  --border: #b4b4b4;
  --color-heading: #111111;
}

body {
  background: #ffffff;
  color: #383549;
  font-size: 0.8rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  h1 {
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: none;
    line-height: 1.7;
  }
  h2 {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: none;
    line-height: 1.7;
  }
  h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: none;
    line-height: 1.7;
  }
  h4 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: none;
    line-height: 1.7;
  }
  h5 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: none;
    line-height: 1.7;
  }
  h6 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: none;
    line-height: 1.7;
  }
}

/* ==========================================================================
   Long-form article readability: floated inline images and automatic
   reading breaks for long text (see xara_fktt_preprocess_node() /
   _xara_fktt_insert_reading_breaks() in xara_fktt.theme). Both let a wide
   text column stay wide while shortening the effective line length and
   breaking up the "wall of text" visually.
   ========================================================================== */

.node-content img[data-align="left"],
.node-content img[data-align="right"] {
  max-width: min(22rem, 40%);
  height: auto;
  margin-bottom: 1rem;
}

.node-content img[data-align="left"] {
  float: left;
  margin-right: 1.5rem;
}

.node-content img[data-align="right"] {
  float: right;
  margin-left: 1.5rem;
}

.fktt-reading-break {
  position: relative;
  width: 5rem;
  max-width: 100%;
  height: 1px;
  margin: 2.5rem auto;
  background: var(--border, #b4b4b4);
}

.fktt-reading-break::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--secondary, #de9c12);
  transform: translate(-50%, -50%);
}

@media (max-width: 36rem) {
  .node-content img[data-align="left"],
  .node-content img[data-align="right"] {
    float: none;
    max-width: 100%;
    margin: 0 0 1rem;
  }
}

/* Rechte Randspalte (node.html.twig: .node-rail) für Autor, Stichwörter und
   Kommentare: nimmt dem Fließtext bewusst Breite weg, ohne den Container
   selbst schmaler zu machen (siehe Absprache zur Lesbarkeit langer Texte). */
.node-body-wrap:has(.node-rail) {
  display: grid;
  grid-template-columns: 1fr 20rem;
  column-gap: 1.5rem;
  align-items: start;
}

.node-rail {
  padding-left: 1.5rem;
  border-left: 2px dotted var(--secondary, #de9c12);
  font-size: .78rem;
  color: var(--dark, #777777);
}

.node-rail > * + * {
  margin-top: 1.75rem;
}

.node-rail img {
  max-width: 100%;
  height: auto;
}

.node-rail input,
.node-rail textarea,
.node-rail select {
  max-width: 100%;
}

.node-rail .node-author {
  flex-wrap: wrap;
}

.node-rail__heading {
  margin: 0 0 .75rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-heading, #111111);
}

/* Die Kommentar-"Karte" ist für die volle Textbreite gestaltet (großes
   Autorenbild, Schatten, große Buttons) und muss in der 20rem-Randspalte
   deutlich kompakter dargestellt werden. */
.node-rail__comments .comment {
  box-shadow: none;
  border: 1px solid var(--border, #b4b4b4);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.node-rail__comments .comment-user-picture {
  display: none;
}

.node-rail__comments .comment-header {
  display: block;
  background: var(--light, #f8f8f8);
  padding: .6rem .75rem;
}

.node-rail__comments .comment-title {
  font-size: .8rem;
  line-height: 1.3;
}

.node-rail__comments .comment-meta p {
  margin: .25rem 0 0;
  font-size: .68rem;
}

.node-rail__comments .comment-body {
  padding: .6rem .75rem;
  font-size: .75rem;
  line-height: 1.5;
}

.node-rail__comments .comment-body ul.links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding-left: 0;
  margin: .6rem 0 0;
  list-style: none;
}

.node-rail__comments .comment-reply a,
.node-rail__comments .comment-delete a,
.node-rail__comments .comment-edit a {
  padding: 2px 8px;
  font-size: .68rem;
}

@media (max-width: 44rem) {
  .node-body-wrap:has(.node-rail) {
    display: block;
  }

  .node-rail {
    margin-top: 2rem;
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: none;
    border-top: 2px dotted var(--secondary, #de9c12);
  }
}

/* ==========================================================================
   Source: web/modules/custom/fktt_base/css/box-design.css
   ========================================================================== */

/* ─── Karten-Grunddesign ──────────────────────────────────────── */

.fktt-new-box-design {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  font-size: large;
}

.fktt-new-box-design--bild {
  padding: 0;
  overflow: hidden;
}

.fktt-new-box-design--bild img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Karten-Überschriften ────────────────────────────────────── */

.fktt-new-box-design > h3 {
  margin: 0 0 0.6rem;
  padding-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1a2a4a;
  border-bottom: 2px solid #e8edf5;
}

/* ─── Kompakt-Felder (label: inline) ─────────────────────────── */

.fktt-fields .field--label-inline {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 0 0.5rem;
  align-items: baseline;
  padding: 0.3rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.fktt-fields .field--label-inline:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fktt-fields .field--label-inline .field__label {
  color: var(--xara-fktt-text-muted);
  font-weight: 400;
  font-size: 0.875rem;
  white-space: nowrap;
}

.fktt-fields .field--label-inline .field__items,
.fktt-fields .field--label-inline .field__item,
.fktt-fields .field--label-inline .field-item {
  font-weight: 400;
  color: #2c3e50;
}

/* ─── Beschreibungsfelder (label: above) ─────────────────────── */

.fktt-new-box-design .field--label-above .field__label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1a2a4a;
  margin-bottom: 0.2rem;
}

.fktt-new-box-design .field--label-above + .field--label-above {
  margin-top: 0.75rem;
}

/* ─── Bild-Feld am Ende der Karte ────────────────────────────── */

.fktt-new-box-design .image-field:last-child {
  margin: 0;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_base/css/column-reorder.css
   ========================================================================== */

/* Spalten-Reordering Styles */

table thead th[draggable="true"] {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  position: relative;
  transition: background-color 0.2s ease;
}

table thead th[draggable="true"]:active {
  cursor: grabbing;
}

table thead th.bs-dragging {
  opacity: 0.6;
  background-color: #e8f4f8;
}

table thead th[draggable="true"]:hover {
  background-color: #f5f5f5;
}

/* Drop-Indikator */
table thead th[style*="borderLeft"] {
  border-left: 3px solid #0078d4;
  padding-left: calc(var(--padding-left, 8px) - 3px);
}


/* ==========================================================================
   Source: web/modules/custom/fktt_base/css/column-toggle.css
   ========================================================================== */

/* Strukturierte Tabellen-Toolbar direkt über der Tabelle */
.bs-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 4px 0 6px;
}

.bs-table-toolbar__left,
.bs-table-toolbar__right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.bs-table-toolbar__right .bs-col-toggle-bar {
  margin-bottom: 0;
  position: relative;
}

/* Links und native Buttons in der Toolbar auf eine gemeinsame Höhe bringen.
 * .bs-col-toggle-btn zählt mit: sitzt als <a> (Sortierung zurücksetzen) und
 * <button> (Spalten, JS-generiert) nebeneinander in .bs-table-toolbar__right
 * und muss dieselbe Höhe wie die Toolbar-Buttons links bekommen — ohne diese
 * Regel bleibt der <a>-Fall bei seiner reinen Padding-Höhe (~24px statt 40px). */
.bs-table-toolbar .button,
.bs-table-toolbar button,
.bs-table-toolbar .bs-col-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 40px;
  margin-block: 0;
  line-height: 1.2;
}

@media (max-width: 48em) {
  .bs-table-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .bs-table-toolbar__left,
  .bs-table-toolbar__right {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    white-space: normal;
  }

  .bs-table-toolbar__left {
    align-items: stretch;
  }

  .bs-table-toolbar__right {
    justify-content: flex-start;
  }

  .bs-table-toolbar .button,
  .bs-table-toolbar button,
  .bs-table-toolbar .bs-col-toggle-bar {
    min-width: 0;
  }

  .bs-table-toolbar .button,
  .bs-table-toolbar button {
    flex: 1 1 14rem;
    height: auto;
    min-height: 40px;
    padding-inline: .75rem;
    text-align: center;
    white-space: normal;
  }

  .bs-table-toolbar .bs-col-toggle-bar {
    flex: 1 1 14rem;
    justify-content: stretch;
  }

  .bs-table-toolbar .bs-col-toggle-btn {
    width: 100%;
  }
}

/* Legacy: direkt erzeugter .bs-toolbar ohne strukturierte Toolbar */
.bs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

/* Wenn die Bar eigenständig steht (kein action-links vorhanden). */
.bs-col-toggle-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
  position: relative;
}

/* Innerhalb der Toolbar kein eigenes margin nötig. */
.bs-toolbar .bs-col-toggle-bar {
  margin-bottom: 0;
}

.fktt-material-search__actions .bs-col-toggle-bar,
.bs-col-toggle-summary-target .bs-col-toggle-bar {
  margin-bottom: 0;
}

.bs-col-toggle-summary-target .bs-col-toggle-bar {
  float: right;
}

.bs-col-toggle-summary-target .bs-col-toggle-btn {
  line-height: 1.1;
  padding: 2px 8px;
}

.bs-col-toggle-btn {
  background: #f0f4f8;
  border: 1px solid #b0bec5;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.85em;
  cursor: pointer;
  color: #37474f;
}

.bs-col-toggle-btn:hover {
  background: #e3eaf0;
}

.bs-col-toggle-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid #b0bec5;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  min-width: 180px;
}

.bs-col-toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 0.875em;
  cursor: pointer;
  white-space: nowrap;
}

.bs-col-toggle-item:hover {
  background: #f0f4f8;
}

.bs-col-toggle-item input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

/* ==========================================================================
   Source: web/modules/custom/fktt_base/css/img-preview.css
   ========================================================================== */

.bs-img-preview-tooltip {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1px solid #b0bec5;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  padding: 4px;
  pointer-events: none;
}

.bs-img-preview-tooltip img {
  display: block;
  max-width: 300px;
  max-height: 300px;
  object-fit: contain;
}

[data-preview-url] {
  cursor: help;
  color: #1565c0;
  text-decoration: underline dotted;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_base/css/material-search-filter.css
   ========================================================================== */

.fktt-material-search {
  border: 1px solid #b9cbe4;
  border-top: 3px solid #78a8e8;
  margin: 0 0 1rem;
  padding: .75rem;
}

.fktt-material-search__title {
  border-bottom: 1px solid #78a8e8;
  cursor: pointer;
  font-weight: 700;
  list-style-position: inside;
  padding-bottom: .25rem;
}

.fktt-material-search__body {
  padding-top: .6rem;
}

.fktt-material-search__rows {
  display: grid;
  gap: .3rem;
  max-width: 780px;
}

.fktt-material-search__row {
  align-items: center;
  display: grid;
  gap: .3rem;
  grid-template-columns: minmax(160px, 1fr) minmax(110px, .7fr) minmax(160px, 1fr) auto;
}

.fktt-material-search__select,
.fktt-material-search__value-control {
  background: #fff;
  border: 1px solid #b9c4d0;
  box-sizing: border-box;
  font: inherit;
  height: 1.8rem;
  max-width: 100%;
  min-width: 0;
  padding: .15rem .35rem;
  width: 100%;
}

.fktt-material-search__row-actions {
  display: flex;
  gap: .2rem;
}

.fktt-material-search__icon-button {
  align-items: center;
  background: #edf3fb;
  border: 1px solid #9eb6d7;
  color: #18365d;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  height: 1.4rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 1.4rem;
}

.fktt-material-search__icon-button:hover,
.fktt-material-search__icon-button:focus {
  background: #dbeafc;
  border-color: #6f99d0;
}

.fktt-material-search__limit {
  margin: .75rem 0 .6rem;
  max-width: 780px;
  text-align: right;
}

.fktt-material-search__limit input {
  border: 1px solid #b9c4d0;
  font: inherit;
  padding: .15rem .25rem;
  width: 5rem;
}

.fktt-material-search__actions {
  display: flex;
  gap: .4rem;
}

.fktt-material-search__result {
  border-bottom: 2px solid #78a8e8;
  font-weight: 700;
  margin: 1rem 0 .25rem;
  padding-bottom: .3rem;
}

@media (max-width: 700px) {
  .fktt-material-search__row {
    grid-template-columns: 1fr;
  }

  .fktt-material-search__row-actions,
  .fktt-material-search__limit {
    text-align: left;
  }
}


/* ==========================================================================
   Source: web/modules/custom/fktt_base/css/message-section.css
   ========================================================================== */

.fktt-message-section {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid;
  border-radius: 3px;
  font-weight: 500;
}

.fktt-message-section--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
}

.fktt-message-section__secondary {
  font-weight: 400;
}

.fktt-message-section--info {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}

.fktt-message-section--status {
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}

.fktt-message-section--error {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.fktt-message-section--warning {
  background: #fef9c3;
  border-color: #eab308;
  color: #713f12;
}

.fktt-dropdown-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.fktt-dropdown-row > .js-form-item {
  flex: 1 1 180px;
  min-width: 140px;
}

.fktt-tag-table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

.fktt-tag-table th,
.fktt-tag-table td {
  border: none;
  padding: .3rem .75rem;
  text-align: left;
}

.fktt-tag-table th {
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.fktt-tag-table tr:nth-child(even) td {
  background: #f6f6f6;
}

.fktt-modul-table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

.fktt-modul-table th,
.fktt-modul-table td {
  border: none;
  padding: .3rem .75rem;
  text-align: left;
}

.fktt-modul-table th {
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.fktt-modul-table tr:nth-child(even) td {
  background: #f6f6f6;
}

/*
 * Gleiches Tabellen-Styling wie .fktt-modul-table (inkl. Zebra-Streifen)
 * für die übrigen Material-Tabs im Anmeldeformular (Triebfahrzeuge,
 * Personenwagen, Güterwagen, Equipment) — hatten bisher gar kein eigenes
 * CSS und fielen dadurch auf den ungestylten Browser-Standard zurück.
 */
.fktt-tfz-table,
.fktt-pwagen-table,
.fktt-gwagen-table,
.fktt-equipment-table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

.fktt-tfz-table th,
.fktt-tfz-table td,
.fktt-pwagen-table th,
.fktt-pwagen-table td,
.fktt-gwagen-table th,
.fktt-gwagen-table td,
.fktt-equipment-table th,
.fktt-equipment-table td {
  border: none;
  padding: .3rem .75rem;
  text-align: left;
}

.fktt-tfz-table th,
.fktt-pwagen-table th,
.fktt-gwagen-table th,
.fktt-equipment-table th {
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.fktt-tfz-table tr:nth-child(even) td,
.fktt-pwagen-table tr:nth-child(even) td,
.fktt-gwagen-table tr:nth-child(even) td,
.fktt-equipment-table tr:nth-child(even) td {
  background: #f6f6f6;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_base/css/navigation.css
   ========================================================================== */

nav.block-menu li.menu-item--expanded > a.is-active {
  font-weight: bold;
}

@media (min-width: 992px) {
  .menu-wrap ul.menu > li {
    margin-left: 7px;
  }

  /* Drupal's current menu markup uses menu-level-* and menu-item--expanded,
     while Xarapro still targets the legacy submenu/expanded class names. */
  .menu-wrap ul.menu ul.menu-level-1 {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    display: none;
    width: max-content;
    min-width: 18rem;
    max-width: min(22rem, calc(100vw - 2rem));
    margin: 0;
    padding: 0.4rem;
    border: 1px solid var(--xara-fktt-border, #d1d1d1);
    border-top: 3px solid var(--xara-fktt-accent, #f2b900);
    border-radius: 0 0 0.4rem 0.4rem;
    background-color: var(--xara-fktt-surface-card, #fff);
    box-shadow: 0 0.65rem 1.5rem rgb(0 0 0 / 16%);
    list-style: none;
  }

  .menu-wrap li.menu-item--expanded:hover > .menu-dropdown > ul.menu-level-1,
  .menu-wrap li.menu-item--expanded:focus-within > .menu-dropdown > ul.menu-level-1,
  .menu-wrap li.menu-item--expanded:hover > .menu_link_content > ul.menu-level-1,
  .menu-wrap li.menu-item--expanded:focus-within > .menu_link_content > ul.menu-level-1 {
    display: block;
  }

  /* Keep legacy Xarapro menu markup working alongside Drupal's current
     menu-item-extras markup. The base theme initializes legacy submenus with
     opacity: 0; without the original animation they otherwise stay hidden. */
  .menu-wrap li.expanded:hover > ul.submenu,
  .menu-wrap li.expanded:focus-within > ul.submenu {
    display: block;
    opacity: 1;
    animation: none;
  }

  .menu-wrap ul.menu ul.menu-level-1 > li.menu-item {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    text-align: left;
  }

  .menu-wrap ul.menu ul.menu-level-1 > li.menu-item > a {
    display: block;
    padding: 0.65rem 2.25rem 0.65rem 0.85rem;
    border: 0;
    border-radius: 0.25rem;
    color: var(--xara-fktt-text, #202020);
    line-height: 1.3;
    text-decoration: none;
    transition: color 150ms ease, background-color 150ms ease;
  }

  .menu-wrap ul.menu ul.menu-level-1 > li.menu-item > a:hover,
  .menu-wrap ul.menu ul.menu-level-1 > li.menu-item > a:focus-visible,
  .menu-wrap ul.menu ul.menu-level-1 > li.menu-item--active-trail > a {
    background-color: var(--xara-fktt-surface-muted, #f5f5f5);
    color: var(--xara-fktt-accent-link, #c77800);
  }

  .menu-wrap ul.menu-level-1 li.menu-item--expanded > a::after {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    color: var(--xara-fktt-text-muted, #666);
    content: "\203A";
    font-size: 1.35rem;
    line-height: 1;
    transform: translateY(-52%);
  }

  /* Further levels open as compact flyouts instead of appearing as one long,
     visually flat list inside the first dropdown. */
  .menu-wrap ul.menu-level-1 li.menu-item {
    position: relative;
  }

  /* menu-item-extras wraps child menus in a positioned menu-dropdown after
     the link. Without resetting that wrapper, top: 0 starts below the link
     and shifts every nested flyout down by one complete menu row. */
  .menu-wrap ul.menu-level-1 li.menu-item > .menu-dropdown,
  .menu-wrap ul.menu-level-1 li.menu-item > .menu_link_content {
    position: static;
  }

  .menu-wrap ul.menu-level-1 ul.menu {
    position: absolute;
    top: -0.4rem;
    left: 100%;
    z-index: 41;
    display: none;
    width: max-content;
    min-width: 18rem;
    max-width: min(22rem, calc(100vw - 2rem));
    margin: 0;
    padding: 0.4rem;
    border: 1px solid var(--xara-fktt-border, #d1d1d1);
    border-radius: 0.4rem;
    background-color: var(--xara-fktt-surface-card, #fff);
    box-shadow: 0 0.65rem 1.5rem rgb(0 0 0 / 16%);
    list-style: none;
  }

  .menu-wrap ul.menu-level-1 li.fktt-submenu-opens-left > .menu-dropdown > ul.menu,
  .menu-wrap ul.menu-level-1 li.fktt-submenu-opens-left > .menu_link_content > ul.menu {
    right: 100%;
    left: auto;
  }

  .menu-wrap ul.menu-level-1 li.fktt-submenu-opens-left > a::after {
    right: auto;
    left: 0.85rem;
    content: "\2039";
  }

  .menu-wrap ul.menu-level-1 li.menu-item--expanded:hover > .menu-dropdown > ul.menu,
  .menu-wrap ul.menu-level-1 li.menu-item--expanded:focus-within > .menu-dropdown > ul.menu,
  .menu-wrap ul.menu-level-1 li.menu-item--expanded:hover > .menu_link_content > ul.menu,
  .menu-wrap ul.menu-level-1 li.menu-item--expanded:focus-within > .menu_link_content > ul.menu {
    display: block;
  }

  .menu-wrap ul.menu-level-1 ul.menu > li.menu-item {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    text-align: left;
  }

  .menu-wrap ul.menu-level-1 ul.menu > li.menu-item > a {
    display: block;
    padding: 0.65rem 2.25rem 0.65rem 0.85rem;
    border: 0;
    border-radius: 0.25rem;
    color: var(--xara-fktt-text, #202020);
    line-height: 1.3;
    text-decoration: none;
  }

  .menu-wrap ul.menu-level-1 li.fktt-submenu-opens-left > a {
    padding-right: 0.85rem;
    padding-left: 2.25rem;
  }

  .menu-wrap ul.menu-level-1 ul.menu > li.menu-item > a:hover,
  .menu-wrap ul.menu-level-1 ul.menu > li.menu-item > a:focus-visible,
  .menu-wrap ul.menu-level-1 ul.menu > li.menu-item--active-trail > a {
    background-color: var(--xara-fktt-surface-muted, #f5f5f5);
    color: var(--xara-fktt-accent-link, #c77800);
  }
}

/* Safari rendert Button-Text ohne explizite color-Angabe mit System-UI-Farbe
   (oft unsichtbar). Explizite Farbe stellt korrekte Darstellung sicher. */
.button, button, [type="button"], [type="reset"], [type="submit"] {
  color: var(--color-heading, #111111);
}

/* Dropbutton-Dropdown: weißer Hintergrund damit sekundäre Aktionen nicht
   transparent über dem Tabelleninhalt schweben. */
.js td .dropbutton-multiple.open .dropbutton-widget {
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Einheitlicher Theme-Stil für Seiten-, Filter- und Entity-Tabs. */
ul.page-tabs {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  border-bottom: 1px solid #d8dde3;
  list-style: none;
}

.page-tabs > li {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.page-tabs > li > a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.7rem 1.5rem;
  border: 0 !important;
  border-radius: 0.4rem 0.4rem 0 0;
  background: #d8dde3 !important;
  box-shadow: inset 0 0 0 1px #c3cad1;
  color: #25282c !important;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.page-tabs > li > a:hover,
.page-tabs > li > a:focus-visible {
  background: #cbd2d9 !important;
  color: #062b5c !important;
}

.page-tabs > .active-page-tab > a,
.page-tabs > li > a.is-active {
  background: #062b5c !important;
  box-shadow: inset 0 -0.2rem 0 #f3bd00;
  color: #fff !important;
  font-weight: 700;
}

.page-tabs > li > a:focus-visible {
  outline: 0.15rem solid #062b5c;
  outline-offset: -0.2rem;
}

/* Local Tasks: seltene, explizit markierte Entity-Aktionen werden in einem
   Dropdown gebündelt, damit die primäre Tab-Leiste nicht horizontal überläuft. */
.fktt-local-tasks {
  display: flex;
  align-items: stretch;
  margin-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary);
}

.fktt-local-tasks > .page-tabs {
  min-width: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.fktt-local-tasks__overflow {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.fktt-local-tasks__overflow summary {
  display: flex;
  min-height: 3rem;
  height: 100%;
  align-items: center;
  box-sizing: border-box;
  padding: 0.7rem 2.75rem 0.7rem 1.5rem;
  background: #d8dde3 !important;
  box-shadow: inset 0 0 0 1px #c3cad1;
  border: 0 !important;
  border-radius: 0.4rem 0.4rem 0 0;
  color: #25282c !important;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.2;
  list-style: none;
  white-space: nowrap;
}

.fktt-local-tasks__overflow summary::-webkit-details-marker {
  display: none;
}

.fktt-local-tasks__overflow summary::after {
  position: absolute;
  right: 1rem;
  content: "\25be";
}

.fktt-local-tasks__overflow[open] summary::after {
  transform: rotate(180deg);
}

.fktt-local-tasks__overflow summary:hover,
.fktt-local-tasks__overflow summary:focus-visible {
  background: #cbd2d9 !important;
  color: #062b5c !important;
}

.fktt-local-tasks__overflow summary:focus-visible {
  outline: 0.15rem solid #062b5c;
  outline-offset: -0.2rem;
}

.fktt-local-tasks__overflow.is-active summary {
  background: #062b5c !important;
  box-shadow: inset 0 -0.2rem 0 #f3bd00;
  color: #fff !important;
  font-weight: 700;
}

.fktt-local-tasks__overflow-menu {
  position: absolute;
  z-index: 50;
  top: 100%;
  right: 0;
  min-width: 15rem;
  margin: 0;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid #bbb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  list-style: none;
}

.fktt-local-tasks__overflow-menu li,
.fktt-local-tasks__overflow-menu a {
  display: block;
  width: 100%;
}

.fktt-local-tasks__overflow-menu a {
  padding: 0.65rem 0.8rem;
  color: inherit;
  text-decoration: none;
}

.fktt-local-tasks__overflow-menu a:hover,
.fktt-local-tasks__overflow-menu a:focus-visible,
.fktt-local-tasks__overflow-menu .active-page-tab a {
  background: #eee;
}

.fktt-local-tasks__overflow-menu a[data-fktt-task-variant="danger"] {
  margin-top: 0.35rem;
  border-top: 1px solid #ddd;
  color: #a00;
}

@media (max-width: 48em) {
  .fktt-local-tasks--with-overflow {
    position: relative;
    width: 100%;
    background: #f4f5f6;
    border: 0;
  }

  .fktt-local-tasks--with-overflow > .page-tabs {
    display: flex;
    flex: 1 1 auto;
  }

  .fktt-local-tasks--with-overflow > .page-tabs > li {
    flex: 1 1 auto;
    min-width: 0;
  }

  .fktt-local-tasks--with-overflow .fktt-local-tasks__overflow {
    position: static;
    flex: 0 1 auto;
    min-width: 0;
    margin-bottom: 0;
  }

  .fktt-local-tasks--with-overflow .fktt-local-tasks__overflow-menu {
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    min-width: 0;
  }

  .fktt-local-tasks--with-overflow .page-tabs > li > a {
    width: 100%;
    padding: 0.6rem 0.4rem;
    overflow: hidden;
    font-size: 0.95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fktt-local-tasks--with-overflow .fktt-local-tasks__overflow summary {
    justify-content: center;
    width: 100%;
    padding: 0.6rem 1.2rem 0.6rem 0.4rem;
    overflow: hidden;
    border-left: 1px solid #b8bec5;
    font-size: 0.95rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fktt-local-tasks--with-overflow .fktt-local-tasks__overflow summary::after {
    right: 0.4rem;
  }
}


/* ==========================================================================
   Source: web/modules/custom/fktt_base/css/row-select.css
   ========================================================================== */

.bs-select-col {
  width: 1px;
  padding-right: 0.25rem !important;
}

tr.bs-row-selected > td {
  background-color: #e8f0fe;
}

a.bs-print-btn--disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_base/css/status-messages.css
   ========================================================================== */

/* Drupal system messages */
[data-drupal-messages] {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 1rem;
}

[data-drupal-messages] .messages,
[data-drupal-messages] .message {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 1rem 0;
  padding: 1rem 1rem 1rem 4rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.5;
}

[data-drupal-messages] .messages a,
[data-drupal-messages] .message a {
  color: #ffffff;
  text-decoration: underline;
}

[data-drupal-messages] .messages p:last-child,
[data-drupal-messages] .message p:last-child,
[data-drupal-messages] .messages ul:last-child,
[data-drupal-messages] .message ul:last-child {
  margin-bottom: 0;
}

[data-drupal-messages] .messages::before,
[data-drupal-messages] .message::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 3.25rem;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

[data-drupal-messages] .messages--status,
[data-drupal-messages] .message-status,
[data-drupal-messages] .message-success {
  background: #4f7d20;
}

[data-drupal-messages] .messages--status::before,
[data-drupal-messages] .message-status::before,
[data-drupal-messages] .message-success::before {
  content: "i";
  background: #3f6617;
}

[data-drupal-messages] .messages--error,
[data-drupal-messages] .message-error {
  background: #b83a1b;
}

[data-drupal-messages] .messages--error::before,
[data-drupal-messages] .message-error::before {
  content: "!";
  background: #8f2c13;
}

[data-drupal-messages] .messages--warning,
[data-drupal-messages] .message-warning {
  background: #b45500;
}

[data-drupal-messages] .messages--warning::before,
[data-drupal-messages] .message-warning::before {
  content: "!";
  background: #884000;
}

[data-drupal-messages] .messages--info,
[data-drupal-messages] .message-info {
  background: #315f7d;
}

[data-drupal-messages] .messages--info::before,
[data-drupal-messages] .message-info::before {
  content: "i";
  background: #22475f;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_base/css/table-filter.css
   ========================================================================== */

/* Filterzeile unter den Spaltenköpfen */
.bs-filter-row th {
  padding: 3px 4px;
  background: #f0f4f8;
  border-top: 2px solid #b0bec5;
  vertical-align: middle;
}

/* Filtereingabefeld
 * Selektor bewusst als :is(input, select).bs-filter-input statt nur
 * .bs-filter-input: style.css setzt für input[type="search"] global
 * `border: 0` (Specificity 0,1,1), was die reine Klasse .bs-filter-input
 * (Specificity 0,1,0) sonst trotz späterer Ladereihenfolge verliert – die
 * Spaltenfilter der Material-Planungstabs (tab=module/gwagen/pwagen/tfz)
 * blieben dadurch rahmenlos. */
:is(input, select).bs-filter-input {
  width: 100%;
  height: 2.5em;
  box-sizing: border-box;
  padding: 3px 6px;
  font-size: 0.8em;
  font-family: inherit;
  border: 1px solid #b0bec5;
  border-radius: 3px;
  background: #fff;
  color: #333;
  min-width: 0;
}

:is(input, select).bs-filter-input:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.bs-filter-input::placeholder {
  color: #90a4ae;
  font-size: 0.9em;
}

/* Suchfeld-Icon in Webkit ausblenden (eigenes Placeholder-Emoji stattdessen) */
.bs-filter-input::-webkit-search-cancel-button {
  cursor: pointer;
}

/* Die serverseitigen Filter der paginierten Fahrzeuglisten werden als
 * zweite Tabellenkopfzeile unterhalb der Spaltenlabel angeordnet. */
.fktt-material-paged thead th {
  vertical-align: top;
}

/* Let the browser derive each desktop column from its heading and real cell
 * values. The search input uses size="1" so its HTML default size does not
 * force every filterable column to roughly the same width. */
.fktt-material-paged {
  table-layout: auto;
}

.fktt-material-paged__heading {
  display: block;
  min-height: 1.4rem;
  margin-bottom: 0.35rem;
  white-space: nowrap;
}

.fktt-material-paged__heading-abbr {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 0.15em;
}

.fktt-material-paged thead .bs-filter-input {
  display: block;
  min-inline-size: 3.5rem;
}

/* Paging begrenzt bereits die Zeilenzahl; im Scroll-Modus bleibt deshalb nur
 * das horizontale Scrollen aktiv und die Tabelle wächst vertikal mit der Seite. */
.fktt-material-paged__results .fktt-table-scroll__viewport {
  max-height: none;
}

.fktt-material-paged__filter-row .bs-filter-input {
  margin: 0;
}

/* Reset-Button für aktive Sortierung */
.bs-sort-reset-btn {
  cursor: pointer;
  font-size: 0.85em;
  padding: 3px 10px;
  border: 1px solid #b0bec5;
  border-radius: 3px;
  background: #f0f4f8;
  color: #555;
}

.bs-sort-reset-btn:hover {
  background: #e3eaf0;
  border-color: #90a4ae;
  color: #333;
}

.fktt-material-paged__sort-reset {
  display: inline-flex;
  align-items: center;
  margin: 0;
  text-decoration: none;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_base/css/table-popin.css
   ========================================================================== */

.fktt-table-popin {
  --fktt-table-popin-card-border: #d3d3d3;
  --fktt-table-popin-card-header: #eeeeee;
  --fktt-table-popin-card-gap: #f2f2f2;
}

.fktt-table-popin__row {
  display: none;
}

/* The mobile display rules below must not override column-toggle's hidden
 * state on the duplicated pop-in values or their now-empty detail row. */
.fktt-table-popin__detail[hidden],
.fktt-table-popin__row[hidden] {
  display: none !important;
}

.fktt-table-popin__cell {
  padding-block: .4rem .75rem;
  background: #f8f8f8;
  border-top: 0;
}

.fktt-table-popin__details {
  display: grid;
  margin: 0;
  row-gap: .28rem;
}

.fktt-table-popin__detail {
  display: none;
  grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr);
  column-gap: .5rem;
  align-items: baseline;
}

.fktt-table-popin__detail-label {
  margin: 0;
  color: #5f5f5f;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
}

.fktt-table-popin__detail-value {
  min-width: 0;
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.fktt-table-popin__image-preview {
  display: none;
}

.fktt-table-popin th.priority-low,
.fktt-table-popin th.priority-medium,
.fktt-table-popin td.priority-low,
.fktt-table-popin td.priority-medium {
  display: none;
}

@media screen and (max-width: 59.99em) {
  .fktt-table-scroll--with-popin .fktt-table-scroll__top-rail {
    display: none;
  }

  .fktt-table-scroll--with-popin .fktt-table-scroll__viewport {
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .fktt-table-scroll--with-popin .fktt-table-scroll__table {
    min-width: 0;
    width: 100%;
  }

  .fktt-table-scroll--with-popin .fktt-table-scroll__sticky-column {
    position: static;
  }

  .fktt-table-popin,
  .fktt-table-popin.fktt-gueterwagen-list {
    border-collapse: separate;
    border-spacing: 0;
    max-width: 100%;
    width: 100%;
    table-layout: fixed;
  }

  .fktt-table-popin th,
  .fktt-table-popin td {
    padding-inline: .35rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .fktt-table-popin .bs-select-col {
    width: 2.4rem;
  }

  .fktt-table-popin__operations-column {
    position: relative;
    width: 3.2rem;
    overflow: visible;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .fktt-table-popin__operations-column .dropbutton-wrapper {
    width: 2.5rem;
    min-height: 2rem;
    margin-inline: auto;
    overflow: visible;
  }

  .js .fktt-table-popin__operations-column .dropbutton-multiple {
    margin-right: 0;
    padding-right: 0;
  }

  .js .fktt-table-popin__operations-column .dropbutton-multiple:not(.open) .dropbutton-widget {
    width: 2.5rem;
    min-width: 0;
    padding-right: 0;
  }

  .js .fktt-table-popin__operations-column .dropbutton-multiple:not(.open) .dropbutton-action {
    display: none;
  }

  .js .fktt-table-popin__operations-column .dropbutton-multiple.open {
    position: absolute;
    top: .25rem;
    right: .25rem;
    width: max-content;
    min-width: 11rem;
    z-index: 120;
  }

  .js .fktt-table-popin__operations-column .dropbutton-multiple .dropbutton-widget {
    padding-right: 2em;
  }

  .js .fktt-table-popin__operations-column .dropbutton-multiple.open .dropbutton-widget {
    width: max-content;
    min-width: 11rem;
  }

  .fktt-table-popin__operations-column .dropbutton-action a,
  .fktt-table-popin__operations-column .dropbutton-action button,
  .fktt-table-popin__operations-column .dropbutton-action input {
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .fktt-table-popin .bs-filter-row {
    display: none;
  }

  .fktt-table-popin tbody tr:not(.fktt-table-popin__row):not(.bs-filter-exempt) > td {
    background: var(--fktt-table-popin-card-header);
    border-bottom: 1px solid var(--fktt-table-popin-card-border);
    border-top: 1px solid var(--fktt-table-popin-card-border);
  }

  .fktt-table-popin tbody tr:not(.fktt-table-popin__row):not(.bs-filter-exempt) > td:first-child {
    border-left: 1px solid var(--fktt-table-popin-card-border);
  }

  .fktt-table-popin tbody tr:not(.fktt-table-popin__row):not(.bs-filter-exempt) > td:last-child {
    border-right: 1px solid var(--fktt-table-popin-card-border);
  }

  .fktt-table-popin__row {
    display: table-row;
  }

  .fktt-table-popin__row .fktt-table-popin__cell {
    background: #fff;
    border-left: 1px solid var(--fktt-table-popin-card-border);
    border-right: 1px solid var(--fktt-table-popin-card-border);
    box-shadow: inset 0 -1px var(--fktt-table-popin-card-border);
    padding-block: .55rem 1rem;
    border-bottom: .8rem solid var(--fktt-table-popin-card-gap);
  }

  .fktt-table-popin__detail--low {
    display: grid;
  }

  .fktt-table-popin__detail--image {
    grid-template-columns: minmax(0, 1fr);
  }

  .fktt-table-popin__detail--image .fktt-table-popin__preview-trigger {
    display: none;
  }

  .fktt-table-popin__detail--image .fktt-table-popin__detail-value {
    grid-column: 1 / -1;
  }

  .fktt-table-popin__detail--image .fktt-table-popin__image-preview {
    display: block;
    width: 100%;
    max-height: 18rem;
    object-fit: contain;
    object-position: center center;
    border: 1px solid #b8b8b8;
    background: #fff;
  }
}

@media screen and (max-width: 37.99em) {
  .fktt-table-popin__detail--medium {
    display: grid;
  }
}

@media screen and (min-width: 38em) {
  .fktt-table-popin th.priority-medium,
  .fktt-table-popin td.priority-medium {
    display: table-cell;
  }
}

@media screen and (min-width: 60em) {
  .fktt-table-popin th.priority-low,
  .fktt-table-popin td.priority-low {
    display: table-cell;
  }
}

@media print {
  .fktt-table-popin__row {
    display: none;
  }

  .fktt-table-popin th.priority-low,
  .fktt-table-popin th.priority-medium,
  .fktt-table-popin td.priority-low,
  .fktt-table-popin td.priority-medium {
    display: table-cell;
  }
}


/* ==========================================================================
   Source: web/modules/custom/fktt_base/css/table-scroll.css
   ========================================================================== */

.fktt-table-scroll {
  max-width: 100%;
  min-width: 0;
}

.fktt-table-scroll__viewport {
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.fktt-table-scroll__viewport:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.fktt-table-scroll__table {
  width: max-content;
  min-width: 100%;
}

.fktt-table-scroll--sticky-header .fktt-table-scroll__table thead {
  position: sticky;
  top: var(--fktt-table-sticky-top, 0);
  z-index: 4;
  background: var(--fktt-table-sticky-background, #fff);
}

.fktt-table-scroll__sticky-column {
  position: sticky;
  left: var(--fktt-table-sticky-left, 0);
  z-index: 2;
  background: var(--fktt-table-sticky-background, #fff);
  background-clip: padding-box;
}

.fktt-table-scroll__table thead .fktt-table-scroll__sticky-column {
  z-index: 5;
}

/* Obere Rail – wird per JS als Geschwisterelement vor dem Viewport injiziert */
.fktt-table-scroll__top-rail {
  overflow-x: auto;
  overflow-y: hidden;
  height: 18px;
  margin-bottom: 4px;
}

.fktt-table-scroll__top-rail-inner {
  height: 1px;
}

@media print {
  .fktt-table-scroll__viewport {
    overflow: visible;
  }

  .fktt-table-scroll--sticky-header .fktt-table-scroll__table thead,
  .fktt-table-scroll__sticky-column {
    position: static;
  }

  .fktt-table-scroll__top-rail {
    display: none;
  }
}


/* ==========================================================================
   Source: web/modules/custom/fktt_base/css/tabs.css
   ========================================================================== */

.fktt-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-bottom: 1px solid #d8dde3;
}

.fktt-tabs-nav li {
  margin: 0;
}

.fktt-tabs-nav a,
.fktt-tabs-nav button {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 0.4rem 0.4rem 0 0;
  background: #d8dde3;
  box-shadow: inset 0 0 0 1px #c3cad1;
  color: #25282c;
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.fktt-tabs-nav a:hover,
.fktt-tabs-nav button:hover {
  background: #cbd2d9;
  color: #062b5c;
}

.fktt-tabs-nav a.is-active,
.fktt-tabs-nav button.is-active,
.fktt-tabs-nav button[aria-selected="true"] {
  background: #062b5c;
  box-shadow: inset 0 -0.2rem 0 #f3bd00;
  color: #fff;
  font-weight: 700;
}

.fktt-tabs-nav a:focus-visible,
.fktt-tabs-nav button:focus-visible {
  outline: 0.15rem solid #062b5c;
  outline-offset: -0.2rem;
}

.fktt-tab-pane {
  display: none;
  padding-top: 12px;
}

.fktt-tab-pane.is-active {
  display: block;
}

.fktt-tab-pane[hidden] {
  display: none;
}

.fktt-tabs--horizontal > .fktt-tab-pane.is-active {
  border: 1px solid #ccc;
  border-top: 0;
  padding: 16px;
}

.fktt-tabs--vertical {
  display: grid;
  grid-template-columns: minmax(160px, max-content) minmax(0, 1fr);
  align-items: start;
  margin-top: 16px;
}

.fktt-tabs--vertical > .fktt-tabs-nav {
  grid-column: 1;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  border-right: 2px solid #ccc;
  border-bottom: 0;
}

.fktt-tabs--vertical > .fktt-tabs-nav button,
.fktt-tabs--vertical > .fktt-tabs-nav a {
  width: 100%;
  min-width: 160px;
  border-radius: 4px 0 0 4px;
  text-align: left;
}

.fktt-tabs--vertical > .fktt-tabs-nav button.is-active,
.fktt-tabs--vertical > .fktt-tabs-nav button[aria-selected="true"],
.fktt-tabs--vertical > .fktt-tabs-nav a.is-active {
  border-right-color: #fff;
}

.fktt-tabs--vertical > .fktt-tab-pane.is-active {
  grid-column: 2;
  min-width: 0;
  border: 1px solid #ccc;
  border-left: 0;
  padding: 16px;
}

@media (max-width: 700px) {
  .fktt-tabs--vertical {
    display: block;
  }

  .fktt-tabs--vertical > .fktt-tabs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 2px solid #ccc;
  }

  .fktt-tabs--vertical > .fktt-tabs-nav button,
  .fktt-tabs--vertical > .fktt-tabs-nav a {
    width: auto;
    min-width: 0;
    border-radius: 4px 4px 0 0;
  }

  .fktt-tabs--vertical > .fktt-tab-pane.is-active {
    border-left: 1px solid #ccc;
    border-top: 0;
  }
}


/* ==========================================================================
   Source: web/modules/custom/fktt_benutzer/css/account-menu.css
   ========================================================================== */

.account-menu-wrapper {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

/* The account-menu behavior moves the icon next to .search-icon inside this
   wrapper. Keep both controls on one header row instead of stacking them. */
.header-right .full-page-search {
  display: flex;
  flex: 0 0 auto;
  flex-flow: row nowrap;
  align-items: center;
}

.account-menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 6px;
  margin: 0 0 0 1rem;
  color: inherit;
  text-decoration: none;
  width: 30px;
  height: 30px;
}

.account-menu-link:hover {
  opacity: 0.7;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_benutzer/css/profile.css
   ========================================================================== */

/**
 * @file
 * Darstellung der vollständigen FKTT-Benutzerprofile.
 */

/* Fieldset-Gruppen-Reste transparent für das Grid machen */
.fktt-user-profile > fieldset {
  display: contents;
}

.fktt-user-profile > fieldset > legend {
  display: none;
}

.fktt-user-profile .fieldset-wrapper {
  display: contents;
}

.fktt-user-profile {
  --fktt-profile-accent: var(--primary, #d98900);
  --fktt-profile-text: var(--dark, #14213d);
  --fktt-profile-border: var(--border, #d8dde5);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 52rem;
  color: var(--fktt-profile-text);
}

.fktt-user-profile > .field,
.fktt-user-profile > .form-item {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--fktt-profile-border);
}

.fktt-user-profile .field__label,
.fktt-user-profile .form-item > .label {
  display: block;
  margin: 0 0 0.3rem;
  color: var(--fktt-profile-text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.fktt-user-profile .field-item,
.fktt-user-profile .form-item {
  overflow-wrap: anywhere;
}

.fktt-user-profile > .fktt-account-name {
  grid-column: 1 / -1;
  margin-bottom: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: none;
  border-left: 0.35rem solid var(--fktt-profile-accent);
  border-radius: 0.4rem;
  background: var(--fktt-profile-text);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fktt-user-profile > .fktt-account-name > label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--fktt-profile-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Vor- und Nachname bilden optisch einen gemeinsamen Datenblock. */
.fktt-user-profile > .field--name-field-vorname,
.fktt-user-profile > .field--name-field-nachname {
  grid-row: auto;
  margin-top: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--fktt-profile-border);
  border-bottom: 1px solid var(--fktt-profile-border);
  background: #f6f7f9;
}

.fktt-user-profile > .field--name-field-vorname {
  grid-column: 1;
  border-left: 0.2rem solid var(--fktt-profile-accent);
  border-radius: 0.35rem 0 0 0.35rem;
}

.fktt-user-profile > .field--name-field-nachname {
  grid-column: 2;
  border-right: 1px solid var(--fktt-profile-border);
  border-left: 1px solid var(--fktt-profile-border);
  border-radius: 0 0.35rem 0.35rem 0;
}

.fktt-user-profile > .button--danger {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (max-width: 42rem) {
  .fktt-user-profile {
    grid-template-columns: minmax(0, 1fr);
  }

  .fktt-user-profile > .field--name-field-vorname,
  .fktt-user-profile > .field--name-field-nachname {
    grid-column: 1;
    margin-top: 0;
  }

  .fktt-user-profile > .field--name-field-vorname {
    margin-top: 0.5rem;
    border-right: 1px solid var(--fktt-profile-border);
    border-bottom: 0;
    border-radius: 0.35rem 0.35rem 0 0;
  }

  .fktt-user-profile > .field--name-field-nachname {
    border-left: 0.2rem solid var(--fktt-profile-accent);
    border-radius: 0 0 0.35rem 0.35rem;
  }
}


/* ==========================================================================
   Source: web/modules/custom/fktt_bs_datenblatt/css/bs-header.css
   ========================================================================== */

/*************************/
/* Überschrift der Seite */
/*************************/

.bs-header {
  display: flex;
  align-items: baseline;         /* Überschriften & Labels sauber auf Linie */
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem 0;
}

.bs-pair {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;               /* kleine Displays */
}

.bs-pair-label {
  font-weight: 400;              /* „Betriebsstelle“ / „Kürzel“ etwas betonen */
}

.bs-title, .bs-code {
  margin: 0;                     /* H1-Standardabstände neutralisieren */
  line-height: 1.1;
}

/*************************/
/* Epochen-Bild          */
/*************************/

.bs-bild-wrapper {
  width: 100%;
  margin-bottom: 1.5rem;
}

.bs-bild-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/*************************/
/* Header-Tabelle        */
/*************************/

.bs-meta-table {
  width: 100%;
  margin-bottom: 1rem;
}
.bs-meta-label {
  font-weight: 400;
  white-space: nowrap;
  width: 10%;
}
.bs-meta-value {
  font-weight: 600;
  width: 40%;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_bs_datenblatt/css/bs-tabs.css
   ========================================================================== */

.bs-tabs { margin: 1rem 0; }
.bs-tabs-list { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.bs-tab { display: inline-block; }
.bs-tab-link { display: inline-block; padding: .4rem .8rem; border: 1px solid #ccc; border-radius: .375rem; text-decoration: none; }
.bs-tab-link.is-active { background: #f0f0f0; border-color: #999; }
.bs-epoche-active { margin: .75rem 0 1rem; }

/* Spaltenheader-Tooltip-Icon */
.bs-col-help { margin-left: .25em; font-size: .75em; color: #888; cursor: help; vertical-align: super; }
.bs-col-help:hover { color: #1976d2; }

/* ==========================================================================
   Source: web/modules/custom/fktt_bs_datenblatt/css/frachten.css
   ========================================================================== */

.bs-frachten-table {
  table-layout: auto;
  width: auto;
  max-width: 100%;
}

.bs-frachten-table th,
.bs-frachten-table td {
  vertical-align: top;
}

.bs-frachten-table .bs-fracht-ve,
.bs-frachten-table .bs-fracht-ladegut,
.bs-frachten-table .bs-fracht-ladestelle,
.bs-frachten-table .bs-fracht-bemerkung {
  white-space: normal;
}

.bs-frachten-table .bs-fracht-wagengattung,
.bs-frachten-table .bs-fracht-menge,
.bs-frachten-table .bs-fracht-stueckgut,
.bs-frachten-table .bs-fracht-expressgut,
.bs-frachten-table .bs-fracht-actions {
  width: 1%;
  white-space: nowrap;
}

.bs-frachten-table .bs-fracht-menge,
.bs-frachten-table .bs-fracht-stueckgut,
.bs-frachten-table .bs-fracht-expressgut {
  text-align: center;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_equipment/css/fktt-equipment-alt.css
   ========================================================================== */

/* ─── Zweispalten-Layout ──────────────────────────────────────── */

.fktt-equipment {
  container-type: inline-size;
}

.fktt-alt-columns {
  display: grid;
  grid-template-columns: 70fr 30fr;
  gap: 1rem;
  align-items: start;
}

@container (max-width: 640px) {
  .fktt-alt-columns {
    grid-template-columns: 1fr;
  }
}

.fktt-alt-right .fktt-new-box-design:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_equipment/css/fktt-equipment-form.css
   ========================================================================== */

.fktt-equipment-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

/* Nur Layout-Spalten — die Karten-Optik liegt auf den einzelnen .fktt-box-
 * Abschnitten darin (s. xara-fktt-components.css). */
.fktt-equipment-main,
.fktt-equipment-sidebar {
  min-width: 0;
}

.fktt-equipment-status {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.fktt-equipment-status > * {
  width: 100%;
}

.fktt-equipment-layout .form-item {
  margin-top: 0;
  margin-bottom: 1rem;
}

.fktt-equipment-layout input[type="text"],
.fktt-equipment-layout input[type="number"],
.fktt-equipment-layout input[type="url"],
.fktt-equipment-layout select {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 2.5rem;
}

.fktt-equipment-layout input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.fktt-equipment-layout input[type="number"]::-webkit-inner-spin-button,
.fktt-equipment-layout input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 900px) {
  .fktt-equipment-layout {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Source: web/modules/custom/fktt_equipment/css/fktt-equipment-list.css
   ========================================================================== */

.fktt-equipment-list {
  width: 100%;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_gueterwagen/css/fktt-gueterwagen-alt.css
   ========================================================================== */

/* ─── Zweispalten-Layout ──────────────────────────────────────── */

.fktt-gueterwagen {
  container-type: inline-size;
}

.fktt-alt-columns {
  display: grid;
  grid-template-columns: 70fr 30fr;
  gap: 1rem;
  align-items: start;
}

@container (max-width: 640px) {
  .fktt-alt-columns {
    grid-template-columns: 1fr;
  }
}

.fktt-alt-right .fktt-new-box-design:last-child {
  margin-bottom: 0;
}

/* ─── Hervorgehobene Felder ───────────────────────────────────── */

.fktt-fields .field--name-wagennummer .field__item,
.fktt-fields .field--name-wagennummer .field-item {
  font-weight: 900;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_gueterwagen/css/fktt-gueterwagen-form.css
   ========================================================================== */

/* Zweispalten-Layout */
.fktt-gw-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

/* Nur Layout-Spalten — die Karten-Optik (Rahmen/Schatten/Hintergrund) liegt
 * auf den einzelnen .fktt-box-Abschnitten darin (s. xara-fktt-components.css),
 * nicht auf der Spalte selbst (sonst verschmelzen die Abschnitte zu einem
 * einzigen Block). */
.fktt-gw-col-left,
.fktt-gw-col-right {
  min-width: 0;
}

/* Alle form-item innerhalb des Layouts auf kompakten Abstand */
.fktt-gw-layout .form-item {
  margin-bottom: 0.25rem;
}

/* Inline-Zeile */
.fktt-gw-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  margin-bottom: 1em;
}

.fktt-gw-row > * {
  flex: 1;
  min-width: 0;
  margin-bottom: 0 !important;
}

/* Ein Feld pro Zeile statt nebeneinander — für die Wagenkarten-Texte, die in
 * der schmalen Modelldaten-Karte sonst zu wenig Platz zum Schreiben haben. */
:is(.fktt-gw-row--stacked, .fktt-pw-row--stacked, .fktt-tfz-row--stacked) {
  flex-direction: column;
  align-items: stretch;
}

/* Hauptgattung schmal */
.fktt-gw-hauptgattung {
  flex: 0 0 80px !important;
}

/* Wagennummer: 20 % schmaler als flex:1 */
.fktt-gw-wagennummer {
  flex: 1 !important;
}

/* Validierungsbutton ganz rechts */
.fktt-gw-validate-btn {
  flex: 0 0 auto !important;
  white-space: nowrap;
  align-self: flex-end;
  margin-left: auto !important;
  margin-bottom: 0 !important;
  order: 99;
}

/* Ergebnis der Validierung */
.fktt-gw-validate-ok    { color: green;  font-size: 0.85em; }
.fktt-gw-validate-error { color: #c00;   font-size: 0.85em; }
.fktt-gw-validate-hint  { color: #666;   font-size: 0.85em; }

/* Modellmerkmale-Label + Rad in einer Zeile */
.fktt-gw-row-modell {
  align-items: center;
  margin-top: 0.25rem;
}

.fktt-gw-modell-label {
  flex: 2;
  font-weight: bold;
}

/* Wagenkarten-Merkmale: Rückseite (1-3) und Vorderseite (4-5) nebeneinander,
 * seit Modelldaten in der breiten linken Spalte statt der schmalen Sidebar
 * liegt — je Seite weiterhin ein Feld pro Zeile (.fktt-gw-row--stacked),
 * analog zum Personenwagen-Formular. */
.fktt-gw-merkmale-wagenkarte {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

/* Numerische Felder: Pfeile unterdrücken, Höhe und vertikale Ausrichtung angleichen */
.fktt-gw-layout input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
  box-sizing: border-box;
  height: var(--fktt-input-height, 2.5rem);
  line-height: normal;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
}

.fktt-gw-layout input[type="number"]::-webkit-inner-spin-button,
.fktt-gw-layout input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Textfelder auf dieselbe Höhe zwingen */
.fktt-gw-layout input[type="text"],
.fktt-gw-layout input[type="number"],
.fktt-gw-layout select {
  height: var(--fktt-input-height, 2.5rem);
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}

/* Vmax/Eigengewicht übereinander in Spalte 1, Ladehinweise nimmt die übrigen
 * drei Spalten über die volle Höhe ein (analog zu row_tech1: 4 Spalten). */
.fktt-gw-row-vmax-ladehinweise {
  align-items: stretch;
}

.fktt-gw-vmax-eigengewicht {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fktt-gw-ladehinweise {
  flex: 3;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fktt-gw-ladehinweise textarea {
  flex: 1;
}

/* Lastgrenzen-Überschrift */
.fktt-gw-lastgrenzen-heading {
  font-weight: bold;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Modellmerkmale: Label links neben dem Eingabefeld */
.fktt-modellmerkmale .form-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.fktt-modellmerkmale .form-item label {
  flex: 0 0 auto;
  min-width: 1.5rem;
  margin: 0;
}

.fktt-modellmerkmale .form-item input {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.fktt-gw-row-freigabe {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.fktt-gw-row-freigabe > * {
  flex: 0 0 auto;
  width: 100%;
}


/* Responsive */
@media (max-width: 900px) {
  .fktt-gw-layout {
    grid-template-columns: 1fr;
  }

  .fktt-gw-merkmale-wagenkarte {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .fktt-gw-row {
    flex-wrap: wrap;
  }
}


/* ==========================================================================
   Source: web/modules/custom/fktt_gueterwagen/css/fktt-gueterwagen-list.css
   ========================================================================== */

.fktt-gueterwagen-list {
  width: auto;
}

.fktt-gueterwagen-list th,
.fktt-gueterwagen-list td {
  white-space: nowrap;
}

.bs-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.bs-toolbar .bs-action-bar {
  margin-bottom: 0;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_gueterwagen/css/fktt-gueterwagen-nothaft-import.css
   ========================================================================== */

/* Wrapper: bricht aus dem Drupal-Inhaltsbereich aus und nutzt 100vw */
.nothaft-import-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  overflow-x: auto;
}

/* Tabelle füllt den Wrapper und scrollt horizontal wenn nötig */
table.nothaft-import-table {
  min-width: 100%;
  white-space: nowrap;
  font-size: 0.85em;
  border-collapse: collapse;
}

/* Fixierte Überschrift */
table.nothaft-import-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ececec;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

/* 3. Spalte = Fehler / Hinweise: nimmt den verbleibenden Platz ein */
table.nothaft-import-table td:nth-child(3),
table.nothaft-import-table th:nth-child(3) {
  white-space: normal;
  min-width: 140px;
  width: 100%;
}

/* Tabellenzellen komprimieren */
table.nothaft-import-table td,
table.nothaft-import-table th {
  vertical-align: middle !important;
  padding: 2px 4px !important;
}

/* Alle Drupal-Form-Wrapper (js-form-item, form-item) in Zellen ohne Abstand */
table.nothaft-import-table td > div {
  margin: 0 !important;
  padding: 0 !important;
}

table.nothaft-import-table td input[type="text"],
table.nothaft-import-table td input[type="number"],
table.nothaft-import-table td select {
  width: 100%;
  min-width: 60px;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 2px 4px !important;
  height: 26px !important;
  line-height: normal !important;
}

table.nothaft-import-table td input[type="checkbox"] {
  margin: 0 !important;
}

/* Status-Symbole */
.nothaft-import-table .import-status-ok    { color: #2e7d32; font-weight: bold; }
.nothaft-import-table .import-status-warn  { color: #e65100; font-weight: bold; }
.nothaft-import-table .import-status-error { color: #c62828; font-weight: bold; }

/* Fehlerzeilen */
.nothaft-import-table tr.import-row-error     { background: #fff3f3; }
.nothaft-import-table tr.import-row-error td  { border-left: 3px solid #c62828; }

/* Fehler-Felder */
.nothaft-import-table td input.error,
.nothaft-import-table td select.error {
  border: 2px solid #c62828;
  background: #fff3f3;
}

/* Hinweise-Spalte: Fehlerliste in scrollbare Box begrenzen */
table.nothaft-import-table td ul {
  margin: 0 !important;
  padding-left: 1.2em !important;
  font-size: 0.85em;
  color: #c62828;
  white-space: normal;
  max-height: 80px;
  overflow-y: auto;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_import/css/gemini-import.css
   ========================================================================== */

/* Bereits importierte Zeilen ausgrauen */
.gemini-import-table tr.import-row-done td {
  opacity: 0.45;
}
.gemini-import-table tr.import-row-done td:first-child {
  opacity: 1; /* Checkbox sichtbar halten (disabled) */
}


/* ==========================================================================
   Source: web/modules/custom/fktt_modul/css/fktt-modul-alt.css
   ========================================================================== */

/* ─── Zweispalten-Layout ──────────────────────────────────────── */

.fktt-modul {
  container-type: inline-size;
}

.fktt-alt-columns {
  display: grid;
  grid-template-columns: 70fr 30fr;
  gap: 1rem;
  align-items: start;
}

@container (max-width: 640px) {
  .fktt-alt-columns {
    grid-template-columns: 1fr;
  }
}

.fktt-alt-right .fktt-new-box-design:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_modul/css/fktt-modul-form.css
   ========================================================================== */

.fktt-modul-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.fktt-modul-form-main,
.fktt-modul-form-sidebar {
  min-width: 0;
}

.fktt-modul-form-main {
  padding: 1.25rem;
  border: 1px solid #d5d8dc;
  border-radius: 0.35rem;
  background: #fff;
}

.fktt-modul-form-sidebar {
  padding: 1.25rem;
  border: 1px solid #c8d4df;
  border-radius: 0.35rem;
  background: #f6f8fa;
}

.fktt-modul-form-layout .form-item {
  margin-top: 0;
  margin-bottom: 1rem;
}

.fktt-modul-form-divider {
  height: 1px;
  margin: 1.25rem 0;
  background: #c8cdd2;
}

.fktt-modul-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fktt-modul-form-row--geometry {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fktt-modul-form-befahrbar,
.fktt-modul-form-info-links,
.fktt-modul-form-cad {
  min-width: 0;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.fktt-modul-form-befahrbar > legend,
.fktt-modul-form-info-links > legend,
.fktt-modul-form-cad > legend {
  width: 100%;
  margin-bottom: 0.6rem;
  padding: 0;
  font-weight: 700;
}

.fktt-modul-form-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.fktt-modul-form-checks .form-item {
  margin-bottom: 0;
}

.fktt-modul-form-info-links {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #d5d8dc;
}

.fktt-modul-form-info-link-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.fktt-modul-form-info-link-fields > .field--type-link > fieldset > .fieldset-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr);
  gap: 1rem;
  align-items: start;
}

.fktt-modul-form-status {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.fktt-modul-form-status--separated {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #c8d4df;
}

.fktt-modul-form-status > * {
  width: 100%;
}

.fktt-modul-form-cad {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #c8d4df;
}

.fktt-modul-form-layout input[type="text"],
.fktt-modul-form-layout input[type="number"],
.fktt-modul-form-layout input[type="url"],
.fktt-modul-form-layout select {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 2.5rem;
}

.fktt-modul-form-layout input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.fktt-modul-form-layout input[type="number"]::-webkit-inner-spin-button,
.fktt-modul-form-layout input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 900px) {
  .fktt-modul-form-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .fktt-modul-form-main,
  .fktt-modul-form-sidebar {
    padding: 1rem;
  }

  .fktt-modul-form-row,
  .fktt-modul-form-row--geometry,
  .fktt-modul-form-info-link-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fktt-modul-form-info-link-fields > .field--type-link > fieldset > .fieldset-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* ==========================================================================
   Source: web/modules/custom/fktt_modul/css/fktt-modul-meldung-form.css

   Card-Optik im selben Vokabular wie die Navigations-Kacheln der
   Bereichsstartseite (Akzentfarbe #062b5c, Rahmenfarbe #d5dadd, Radius
   0.35rem, Schatten) — s. Abschnitt "Navigation tiles" weiter unten in
   dieser Datei für die Ursprungswerte.
   ========================================================================== */

.fktt-modul-meldung-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.fktt-modul-meldung-form-main,
.fktt-modul-meldung-form-sidebar {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid #d5dadd;
  border-left: 0.35rem solid #062b5c;
  border-radius: 0.35rem;
  background: #fff;
  box-shadow: 0 0.15rem 0.5rem rgb(0 0 0 / 8%);
}

.fktt-modul-meldung-form-sidebar {
  background: rgb(6 43 92 / 4%);
}

.fktt-modul-meldung-form-layout .form-item {
  margin-top: 0;
  margin-bottom: 1rem;
}

.fktt-modul-meldung-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fktt-modul-meldung-form-befahrbar,
.fktt-modul-meldung-form-info-links,
.fktt-modul-meldung-form-cad {
  min-width: 0;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.fktt-modul-meldung-form-befahrbar > legend,
.fktt-modul-meldung-form-info-links > legend,
.fktt-modul-meldung-form-cad > legend {
  width: 100%;
  margin-bottom: 0.6rem;
  padding: 0;
  font-weight: 700;
}

.fktt-modul-meldung-form-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.fktt-modul-meldung-form-checks .form-item {
  margin-bottom: 0;
}

.fktt-modul-meldung-form-info-links {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #d5d8dc;
}

.fktt-modul-meldung-form-info-link-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.fktt-modul-meldung-form-info-link-fields > .field--type-link > fieldset > .fieldset-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr);
  gap: 1rem;
  align-items: start;
}

.fktt-modul-meldung-form-cad {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(6 43 92 / 15%);
}

.fktt-modul-meldung-status-card .form-item {
  margin-bottom: 0.9rem;
}

.fktt-modul-meldung-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.fktt-modul-meldung-status-pill::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
}

.fktt-modul-meldung-status-pill--in-erfassung {
  color: #5b6570;
  background: #eceef0;
}

.fktt-modul-meldung-status-pill--versendet {
  color: #062b5c;
  background: rgb(6 43 92 / 12%);
}

.fktt-modul-meldung-status-pill--in-bearbeitung {
  color: #b5760f;
  background: rgb(181 118 15 / 14%);
}

.fktt-modul-meldung-status-pill--abgeschlossen {
  color: #2f7d4f;
  background: rgb(47 125 79 / 12%);
}

.fktt-modul-meldung-status-pill--abgelehnt {
  color: #b3261e;
  background: rgb(179 38 30 / 12%);
}

.fktt-modul-meldung-placeholder {
  color: #5b6570;
  font-style: italic;
}

.fktt-modul-meldung-geometry-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #d5dadd;
  border-left: 0.35rem solid #062b5c;
  border-radius: 0.35rem;
  background: #fff;
  box-shadow: 0 0.15rem 0.5rem rgb(0 0 0 / 8%);
}

.fktt-modul-meldung-geometry-heading {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #062b5c;
}

/* Kopfbereich der Abmessungen-Karte: Überschrift und "Anzahl Segmente"
   nebeneinander statt "Anzahl Segmente" als eigene Zeile darunter
   (modul-meldung-workflow, design.md Decision 21). */
.fktt-modul-meldung-geometry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.fktt-modul-meldung-geometry-header .fktt-modul-meldung-geometry-heading {
  margin-bottom: 0;
}

.fktt-modul-meldung-geometry-header .js-form-item {
  margin: 0;
}

.fktt-modul-meldung-geometry-header input[type="number"] {
  width: 6rem;
}

/* Segment-Karten als vertikale Tabs mit der Tab-Leiste rechts statt links
   (modul-meldung-workflow, design.md Decision 21) — spiegelt die
   RTL-Regeln aus core/vertical-tabs.css unter einer eigenen Klasse,
   ohne die Seitenrichtung selbst zu ändern. */
.fktt-segments-tabs-wrapper .vertical-tabs {
  margin-left: 0;
  margin-right: 15em;
}

.fktt-segments-tabs-wrapper .vertical-tabs__menu {
  float: right;
  margin-left: 0;
  margin-right: -15em;
}

.fktt-segments-tabs-wrapper .vertical-tabs__menu-item.is-selected {
  border-right-width: 1px;
  border-left-width: 0;
}

.fktt-modul-geometry-segment-fields {
  display: grid;
  grid-template-columns: minmax(16rem, 2fr) minmax(8rem, 1fr);
  gap: 1rem;
  align-items: start;
}

.fktt-modul-geometry-segment-fields > .form-item {
  margin-top: 0;
}

.fktt-modul-meldung-form-layout input[type="text"],
.fktt-modul-meldung-form-layout input[type="number"],
.fktt-modul-meldung-form-layout input[type="url"],
.fktt-modul-meldung-form-layout select {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 2.5rem;
}

.fktt-modul-meldung-form-layout input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.fktt-modul-meldung-form-layout input[type="number"]::-webkit-inner-spin-button,
.fktt-modul-meldung-form-layout input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 900px) {

  .fktt-modul-geometry-segment-fields {
    grid-template-columns: 1fr;
  }
  .fktt-modul-meldung-form-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fktt-modul-meldung-form-main,
  .fktt-modul-meldung-form-sidebar,
  .fktt-modul-meldung-geometry-card {
    padding: 1rem;
  }

  .fktt-modul-meldung-form-row,
  .fktt-modul-meldung-form-info-link-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fktt-modul-meldung-form-info-link-fields > .field--type-link > fieldset > .fieldset-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* ==========================================================================
   Source: web/modules/custom/fktt_modul/css/fktt-modul-list.css
   ========================================================================== */

/* Scrollbarer Container für die breite Tabelle */
.fktt-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tabelle: Breite richtet sich nach Inhalt, kein Quetschen */
.fktt-modul-list {
  width: auto;
  min-width: 100%;
}

/* Spaltenköpfe: kein Zeilenumbruch */
.fktt-modul-list th {
  white-space: nowrap;
}

/* Datenzellen: einzeilig, langer Text wird abgeschnitten */
.fktt-modul-list td {
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Checkbox-Spalte: minimale Breite */
.fktt-modul-list th:nth-child(1),
.fktt-modul-list td:nth-child(1) {
  width: 1%;
  max-width: none;
}

/* Thema / Name (2. Spalte): darf umbrechen, hat Mindestbreite */
.fktt-modul-list th:nth-child(2),
.fktt-modul-list td:nth-child(2) {
  white-space: normal;
  min-width: 140px;
  max-width: 240px;
  overflow: visible;
  text-overflow: clip;
}

/* Beschreibung (3. Spalte): breitere flexible Spalte */
.fktt-modul-list th:nth-child(3),
.fktt-modul-list td:nth-child(3) {
  white-space: normal;
  min-width: 160px;
  max-width: 320px;
  overflow: visible;
  text-overflow: clip;
}

/* Numerische Felder: Länge, Winkel, Radius, Gleise (8–11) */
.fktt-modul-list th:nth-child(8),
.fktt-modul-list td:nth-child(8),
.fktt-modul-list th:nth-child(9),
.fktt-modul-list td:nth-child(9),
.fktt-modul-list th:nth-child(10),
.fktt-modul-list td:nth-child(10),
.fktt-modul-list th:nth-child(11),
.fktt-modul-list td:nth-child(11) {
  width: 1%;
  max-width: none;
  text-align: right;
}

/* Befahrbar-Spalten NEM / 0,5 / fiNe (15–17): sehr schmal */
.fktt-modul-list th:nth-child(15),
.fktt-modul-list td:nth-child(15),
.fktt-modul-list th:nth-child(16),
.fktt-modul-list td:nth-child(16),
.fktt-modul-list th:nth-child(17),
.fktt-modul-list td:nth-child(17) {
  width: 1%;
  max-width: none;
  text-align: center;
}

/* CAD-Freigabe (21) und Bild (22): schmal */
.fktt-modul-list th:nth-child(21),
.fktt-modul-list td:nth-child(21),
.fktt-modul-list th:nth-child(22),
.fktt-modul-list td:nth-child(22) {
  width: 1%;
  max-width: none;
  text-align: center;
}

/* Operations-Spalte (24): schmal */
.fktt-modul-list th:nth-child(24),
.fktt-modul-list td:nth-child(24) {
  width: 1%;
  max-width: none;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_modul/css/fktt-vieleck.css
   ========================================================================== */

@font-face {
  font-family: "FKTT ISOCP";
  src: url("/modules/custom/fktt_base/fonts/osifont-gpl3fe.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.fktt-vieleck-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
}

.fktt-vieleck-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.fktt-vieleck-controls label {
  font-weight: 600;
  white-space: nowrap;
}

.fktt-vieleck-input {
  width: 80px;
  padding: 0.4rem 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.fktt-vieleck-result {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.fktt-vieleck-result.hidden {
  display: none;
}

.fktt-vieleck-result[hidden] {
  display: none;
}

.fktt-vieleck-canvas-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

#fktt-vieleck-canvas {
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  display: block;
}

#fktt-vieleck-canvas[hidden] {
  display: none;
}

.fktt-vieleck-wrapper[data-fktt-vieleck-mode="canonical"] {
  max-width: none;
  width: 100%;
}

.fktt-vieleck-wrapper[data-fktt-vieleck-mode="canonical"] .fktt-vieleck-canvas-col,
.fktt-vieleck-wrapper[data-fktt-vieleck-mode="canonical"] #fktt-vieleck-canvas {
  width: 100%;
}

.fktt-vieleck-wrapper--dxf #fktt-vieleck-canvas {
  background: #fff;
}

.fktt-dxf-svg-tools {
  display: flex;
  gap: .4rem;
  justify-content: flex-end;
}

.fktt-dxf-list {
  display: grid;
  gap: 1.5rem;
}

.fktt-dxf-viewer {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.fktt-dxf-svg-tools[hidden],
.fktt-dxf-svg[hidden] {
  display: none;
}

.fktt-dxf-svg-tools .button {
  margin: 0;
  min-width: 2.5rem;
}

.fktt-dxf-svg {
  aspect-ratio: 1.6 / 1;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: grab;
  display: block;
  max-height: 700px;
  touch-action: none;
  user-select: none;
  width: 100%;
}

.fktt-dxf-svg.is-panning {
  cursor: grabbing;
}

.fktt-geometrie-source {
  color: #555;
  font-size: .9rem;
  margin: .25rem 0 0;
}

.fktt-geometrie-source[hidden] {
  display: none;
}

.fktt-sidebar-profile {
  display: block;
  white-space: nowrap;
}

.fktt-vieleck-export {
  display: flex;
  justify-content: flex-end;
}

.fktt-vieleck-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

#fktt-vieleck-tabelle h3 {
  margin-top: 0;
}

.fktt-vieleck-table {
  border-collapse: collapse;
  min-width: 120px;
}

.fktt-vieleck-table th,
.fktt-vieleck-table td {
  border: 1px solid #ccc;
  padding: 0.3rem 0.75rem;
  text-align: center;
}

.fktt-vieleck-table th {
  background: #f0f0f0;
  font-weight: 600;
}

.fktt-vieleck-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.fktt-vieleck-pair {
  font-family: monospace;
  letter-spacing: 0.03em;
}

.fktt-vieleck-mass {
  width: 90px;
  padding: 0.2rem 0.4rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  text-align: right;
}

.fktt-vieleck-mass:focus {
  outline: 2px solid #2c6fad;
  border-color: #2c6fad;
}

.fktt-vieleck-table-wrap {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.fktt-vieleck-table-wrap .fktt-vieleck-table {
  margin: 0;
}

.fktt-vieleck-table-wrap .fktt-vieleck-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f0f0f0;
}

.fktt-vieleck-mass-btn {
  margin-top: 0.75rem;
}

/* Stress / Abweichung */
.fktt-vieleck-dev {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #888;
}

.fktt-dev--ok   { color: #27ae60; font-weight: 600; }
.fktt-dev--warn { color: #d35400; font-weight: 600; }
.fktt-dev--bad  { color: #c0392b; font-weight: 700; }

.fktt-dev--bad .fktt-vieleck-pair,
tr:has(.fktt-dev--bad),
tr:has(.fktt-dev--bad) > td {
  background: #fff5f5;
}

.fktt-vieleck-status:not(:empty) {
  background: #eef5fb;
  border-inline-start: 4px solid #2c6fad;
  margin-block-end: 1rem;
  padding: .75rem 1rem;
}

.fktt-vieleck-status--warning:not(:empty) {
  background: #fff4db;
  border-inline-start-color: #cf7f00;
}

.fktt-vieleck-status ul {
  margin-block: .5rem 0;
}

.fktt-geometrie-pflegetabelle caption {
  font-size: 1.2rem;
  font-weight: 700;
  padding-block: 1rem .5rem;
  text-align: left;
}

.fktt-geometrie-pflegetabelle .form-item {
  margin: 0;
}

.fktt-geometrie-pflegetabelle .fktt-vieleck-headpiece {
  max-width: 18rem;
}

@media (max-width: 760px) {
  #fktt-vieleck-canvas {
    height: auto;
    max-width: 100%;
  }

  .fktt-geometrie-pflegetabelle {
    display: block;
    overflow-x: auto;
  }
}


/* ==========================================================================
   Source: web/modules/custom/fktt_modultreffen/css/anmeldung.css
   ========================================================================== */

.fktt-dropdown-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-bottom: 16px;
}

.fktt-dropdown-row .form-actions {
  align-self: center;
  margin: 0;
  padding: 0;
  padding-left: 30px;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_modultreffen/css/berichte.css
   ========================================================================== */

table.fktt-teilnehmerliste {
  width: 100%;
}

table.fktt-teilnehmerliste th.fktt-col-day-group {
  text-align: center;
  border-bottom-width: 2px;
}


/* ==========================================================================
   Modultreffen-Anmeldung: Auswahl mitgebrachter Materialien
   ========================================================================== */

.fktt-material-selection {
  position: relative;
  display: grid;
  box-sizing: border-box;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1.35rem 1.5rem 1.5rem;
  overflow: hidden;
  border: 1px solid #d4d8d5;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 .3rem 1rem rgba(26, 34, 29, .08);
}

.fktt-material-selection::before {
  position: absolute;
  inset: 0 0 auto;
  height: .25rem;
  background: #f2b900;
  content: "";
}

.fktt-material-selection__title {
  grid-column: 1 / -1;
  margin: 0 0 1rem;
  color: #172033;
  font-size: 1.15rem;
  line-height: 1.3;
}

.fktt-material-selection > .fktt-material-selection__field {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
}

.fktt-material-selection__field .form-item {
  margin: 0;
}

.fktt-material-selection__field label {
  display: block;
  margin-bottom: .4rem;
  color: #172033;
  font-weight: 700;
}

.fktt-material-selection__field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: .6rem 2.25rem .6rem .75rem;
  border: 1px solid #aeb6b0;
  border-radius: .35rem;
  background-color: #fff;
  color: #172033;
  font-weight: 650;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.fktt-material-selection__field select:hover {
  border-color: #738079;
}

.fktt-material-selection__field select:focus-visible {
  border-color: #267049;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(47, 153, 98, .2);
}

.fktt-material-selection__field select.is-all-selected {
  padding-left: 2.35rem;
  border-color: #87b99a;
  background-color: #e5f6e8 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%232f9962'/%3E%3Cpath d='m6 10 2.4 2.4L14 7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: .7rem center;
  background-repeat: no-repeat;
  background-size: 1.15rem;
}

@media (max-width: 70rem) {
  .fktt-material-selection {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 44rem) {
  .fktt-material-selection {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .fktt-material-selection > .fktt-material-selection__field {
    min-width: 0;
  }
}

table.fktt-teilnehmerliste tr.fktt-teilnehmer-header-options th {
  border-top: 0;
}

table.fktt-teilnehmerliste--vertical-options tr.fktt-teilnehmer-header-options th.fktt-col-day-option {
  box-sizing: border-box;
  height: 9rem;
  max-width: 2.25rem;
  padding: 0.5rem 0.35rem;
  vertical-align: bottom;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Name, Datum, Bool-Felder: schrumpfen auf Inhaltsbreite */
table.fktt-teilnehmerliste th.fktt-col-name,
table.fktt-teilnehmerliste td.fktt-col-name,
table.fktt-teilnehmerliste th.fktt-col-date,
table.fktt-teilnehmerliste td.fktt-col-date,
table.fktt-teilnehmerliste th.fktt-col-day-option,
table.fktt-teilnehmerliste td.fktt-col-day-option,
table.fktt-teilnehmerliste th.fktt-col-bool,
table.fktt-teilnehmerliste td.fktt-col-bool {
  white-space: nowrap;
  width: 1%;
}

/* Datum und Bool-Felder zentriert */
table.fktt-teilnehmerliste th.fktt-col-date,
table.fktt-teilnehmerliste td.fktt-col-date,
table.fktt-teilnehmerliste th.fktt-col-day-option,
table.fktt-teilnehmerliste td.fktt-col-day-option,
table.fktt-teilnehmerliste th.fktt-col-bool,
table.fktt-teilnehmerliste td.fktt-col-bool {
  text-align: center;
}

/* Anmerkung füllt den verbleibenden Platz */
table.fktt-teilnehmerliste th.fktt-col-text,
table.fktt-teilnehmerliste td.fktt-col-text {
  width: 100%;
  min-width: 100px;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_modultreffen/css/dcc-konflikt.css
   ========================================================================== */

tr.fktt-row--dcc-konflikt td {
  background-color: rgba(220, 53, 69, 0.15);
}

tr.fktt-row--dcc-warnung td {
  background-color: rgba(255, 193, 7, 0.2);
}

.fktt-dcc-konflikt-icon {
  color: #c0392b;
  margin-left: 0.25em;
  cursor: default;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_modultreffen/css/fktt-treffen-form.css
   ========================================================================== */

.fktt-treffen-tabs {
  margin-top: 1rem;
}

.fktt-treffen-tabs .horizontal-tabs-list {
  margin-bottom: 0;
}

.fktt-treffen-page-title__main,
.fktt-treffen-page-title__subtitle {
  display: block;
}

[data-fktt-fit-title] {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  vertical-align: baseline;
}

.fktt-treffen-page-title__subtitle {
  margin-top: .0rem;
  margin-bottom: 1rem;
  font-size: .5em;
  font-weight: 400;
  line-height: 1.35;
}

.fktt-treffen-section > .details-wrapper {
  max-width: 1120px;
}

.fktt-treffen-section .form-item {
  max-width: 920px;
}

.fktt-treffen-view-subsections {
  margin: 1rem 0;
}

.fktt-treffen-subsection {
  max-width: 920px;
  margin: 1.5rem 0;
  overflow-x: auto;
}

/* Textblock-Untersektionen im Formular (siehe FkttTreffenForm::addChildSection())
   sollen die volle Breite des umgebenden Reiters nutzen statt auf 920px
   begrenzt zu werden. */
.fktt-treffen-subsection--form {
  max-width: none;
}

/* `fktt-treffen-textblock` (siehe FkttTreffenForm::tweakWidgets()) landet
   zuverlässig nur auf dem `<textarea>` selbst, nicht auf dessen umgebenden
   `.form-item`-Wrappern: CKEditor 5 setzt `#attributes` auf dem äußeren
   `text_format`-Element serverseitig neu, bevor es gerendert wird, wodurch
   dort gesetzte Klassen verloren gehen. `:has()` erlaubt es trotzdem, vom
   verlässlich vorhandenen Textarea-Element aus den Wrapper zu selektieren. */
.fktt-treffen-section .form-item:has(.fktt-treffen-textblock) {
  max-width: none;
}

.fktt-treffen-subsection table {
  max-width: 100%;
}

.fktt-treffen-subsection__title {
  margin: 0 0 .75rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.fktt-treffen-subsection .field--type-file,
.fktt-treffen-subsection .field--type-image {
  margin-top: .75rem;
}

/* Reiter mit leerem Pflichtfeld (siehe js/treffen-form-tab-errors.js). Nur
   Einfärbung, kein Symbol — das Warnsymbol brach im Tab-Label trotz
   mehrerer Layout-Ansätze immer wieder in eine eigene Zeile um. */
.horizontal-tab-button.fktt-tab-incomplete > a,
.vertical-tab-button.fktt-tab-incomplete > a {
  color: #c00;
}

summary.fktt-tab-incomplete {
  color: #c00;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_modultreffen/css/modultreffen-form.css
   ========================================================================== */

.fktt-treffen-date-range .fieldset-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(11rem, max-content));
  gap: 1rem 2rem;
  align-items: end;
}

.fktt-treffen-date-range .fieldset-wrapper > .form-item {
  margin: 0;
}

@media (max-width: 40rem) {
  .fktt-treffen-date-range .fieldset-wrapper {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Source: web/modules/custom/fktt_modultreffen/css/modultreffenanmeldungen.css
   ========================================================================== */

.fktt-modultreffenanmeldungen-table th.fktt-col-zeitraum,
.fktt-modultreffenanmeldungen-table td.fktt-col-zeitraum {
  white-space: nowrap;
}

@media (max-width: 991px) {
  body.fktt-sliding-sidebar-open {
    overflow: hidden;
  }

  .main-container,
  #main,
  #main .node-content,
  #main .block-content {
    min-width: 0;
  }

  .fktt-modultreffenanmeldungen-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
}

#main .fktt-modultreffenanmeldungen {
  container-name: fktt-anmeldungen;
  container-type: inline-size;
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
}

@container fktt-anmeldungen (min-width: 62rem) {
  #main .fktt-modultreffenanmeldungen > h2 {
    margin: 0 0 1.25rem;
  }

  #main .fktt-modultreffenanmeldungen > .page-tabs {
    margin-bottom: 1.2rem;
  }

  table.fktt-modultreffenanmeldungen-table {
    display: block;
    width: 100%;
    border: 0;
    border-collapse: separate;
    background: transparent;
    box-shadow: none;
  }

  table.fktt-modultreffenanmeldungen-table > thead {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  table.fktt-modultreffenanmeldungen-table > tbody {
    display: grid;
    gap: 0.7rem;
    width: 100%;
  }

  table.fktt-modultreffenanmeldungen-table > tbody > tr {
    position: relative;
    display: grid;
    grid-template-columns:
      4rem minmax(16rem, 1fr) minmax(10rem, 14rem)
      minmax(8.5rem, 11rem) minmax(10rem, 12rem) 2rem;
    grid-template-areas:
      "icon treffen zeitraum status registration action"
      "icon thema zeitraum status registration action"
      "icon ort zeitraum status registration action"
      "icon veranstalter zeitraum status registration action";
    gap: 0.2rem 1rem;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 6.4rem;
    margin: 0;
    padding: 0.85rem 0.9rem 0.85rem 0.65rem;
    border: 1px solid #dfe2e5;
    border-left: 0.35rem solid #062b5c;
    border-radius: 0.45rem;
    background: #fff;
    box-shadow: 0 0.12rem 0.4rem rgb(0 0 0 / 9%);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease;
  }

  table.fktt-modultreffenanmeldungen-table > tbody > tr:hover {
    border-color: #bdc7d1;
    border-left-color: #062b5c;
    box-shadow: 0 0.25rem 0.8rem rgb(0 0 0 / 13%);
  }

  table.fktt-modultreffenanmeldungen-table > tbody > tr::before {
    grid-area: icon;
    width: 2.5rem;
    height: 2.5rem;
    margin-inline: auto;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23062b5c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6.5' width='24' height='22' rx='3'/%3E%3Cpath d='M10 3.5v6M22 3.5v6M4 13h24'/%3E%3Cpath d='M10 18h.01M16 18h.01M22 18h.01M10 23h.01M16 23h.01M22 23h.01' stroke-width='3.5'/%3E%3C/svg%3E");
    content: '';
  }

  table.fktt-modultreffenanmeldungen-table > tbody > tr > td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    text-align: left;
    vertical-align: initial;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-treffen {
    grid-area: treffen;
    align-self: end;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-treffen > a {
    position: relative;
    z-index: 2;
    color: #062b5c;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-ort {
    position: relative;
    grid-area: ort;
    align-self: start;
    padding-left: 1.1rem;
    color: #737981;
    font-size: 0.8rem;
    line-height: 1.3;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-ort::before {
    position: absolute;
    top: 0.08rem;
    left: 0.12rem;
    width: 0.55rem;
    height: 0.55rem;
    border: 0.1rem solid #9aa0a6;
    border-radius: 50% 50% 50% 0;
    content: '';
    transform: rotate(-45deg);
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-thema {
    grid-area: thema;
    align-self: center;
    color: #4b5157;
    font-size: 0.82rem;
    line-height: 1.3;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-veranstalter {
    grid-area: veranstalter;
    align-self: start;
    color: #737981;
    font-size: 0.8rem;
    line-height: 1.3;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-zeitraum {
    grid-area: zeitraum;
    color: #30343a;
    font-size: 0.88rem;
    line-height: 1.4;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-status,
  table.fktt-modultreffenanmeldungen-table .fktt-col-registration {
    align-self: center;
    justify-self: start;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-status {
    grid-area: status;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-status::before {
    content: "✓  ";
  }

  table.fktt-modultreffenanmeldungen-table .fktt-status--registered {
    color: #267c2e;
    background: #edf8ec !important;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-status--represented {
    border: 1px solid #e4bd3d;
    color: #806000;
    background: #fff4c7 !important;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-status--empty {
    display: none;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-registration {
    grid-area: registration;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-registration--open {
    border: 1px solid #9fb9d6;
    color: #062b5c;
    background: #edf4fb !important;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-registration--open::before {
    content: "✓  ";
  }

  table.fktt-modultreffenanmeldungen-table .fktt-registration--closed {
    color: #666d74;
    background: #eff1f3 !important;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-registration--closed::before {
    content: "–  ";
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-actions {
    position: static;
    grid-area: action;
    align-self: stretch;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-actions > a {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: transparent;
    font-size: 0;
    text-decoration: none;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-actions > a::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: 0.45rem;
    content: '';
  }

  table.fktt-modultreffenanmeldungen-table
    .fktt-col-actions > a:focus-visible::before {
    outline: 0.15rem solid #062b5c;
    outline-offset: -0.2rem;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-actions > a::after {
    position: relative;
    z-index: 2;
    width: 0.7rem;
    height: 0.7rem;
    border-top: 0.13rem solid #3e4348;
    border-right: 0.13rem solid #3e4348;
    content: '';
    transform: rotate(45deg);
  }

  table.fktt-modultreffenanmeldungen-table--past > tbody > tr {
    grid-template-columns:
      4rem minmax(18rem, 1fr) minmax(10rem, 14rem)
      minmax(14rem, 0.65fr) 2rem;
    grid-template-areas:
      "icon treffen zeitraum anmerkung action"
      "icon ort zeitraum anmerkung action"
      "icon veranstalter zeitraum anmerkung action";
  }

  table.fktt-modultreffenanmeldungen-table--past
    > tbody > tr:has(.fktt-col-anmerkung--empty) {
    grid-template-columns: 4rem minmax(18rem, 1fr) minmax(10rem, 14rem) 2rem;
    grid-template-areas:
      "icon treffen zeitraum action"
      "icon ort zeitraum action"
      "icon veranstalter zeitraum action";
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-anmerkung {
    grid-area: anmerkung;
    color: #555b62;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-anmerkung--empty {
    display: none;
  }
}

/*
 * Layout-Builder-Spalten (z. B. 33%-Sidebar) sind ohne min-width:0 nicht
 * schrumpfbar, sobald ein Kind (hier die Anmeldungstabelle) eine größere
 * Mindestbreite verlangt als die Spalte hat.
 *
 * Core liefert für .layout--twocol-section keinerlei Abstand zwischen den
 * Spalten (twocol_section.css setzt nur flex-basis 33%/67% etc., die sich
 * zu 100% summieren). Ein einfaches `gap` würde von der verfügbaren Breite
 * abgezogen, bevor Flexbox über den Zeilenumbruch entscheidet – die Summe
 * überschreitet dann 100% und die Spalten brechen ungewollt um. Deshalb
 * stattdessen padding + box-sizing:border-box (zählt nicht in die
 * Umbruch-Berechnung), Abstand nur horizontal ab Cores eigenem
 * Side-by-side-Breakpoint (40em), darunter vertikal per margin-bottom auf
 * der ersten Spalte.
 */
.layout--twocol-section > .layout__region {
  min-width: 0;
  box-sizing: border-box;
}

.layout--twocol-section > .layout__region--first {
  margin-bottom: 1.5rem;
}

@media screen and (min-width: 40em) {
  .layout--twocol-section > .layout__region--first {
    margin-bottom: 0;
    padding-right: 1rem;
  }

  .layout--twocol-section > .layout__region--second {
    padding-left: 1rem;
  }
}

@container fktt-anmeldungen (max-width: 61.99rem) {
  #main .fktt-modultreffenanmeldungen > h2 {
    margin: 0 0 1.1rem;
    font-size: 1.35rem;
    line-height: 1.25;
  }

  #main .fktt-modultreffenanmeldungen > .page-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 0.75rem;
    border-bottom: 2px solid #e2e4e7;
  }

  #main .fktt-modultreffenanmeldungen > .page-tabs > li {
    display: block;
    min-width: 0;
  }

  #main .fktt-modultreffenanmeldungen > .page-tabs > li > a {
    display: flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.55rem 0.45rem;
    border: 0;
    border-radius: 0.4rem 0.4rem 0 0;
    background: #f1f2f3;
    color: #252525;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }

  #main .fktt-modultreffenanmeldungen
    > .page-tabs > .active-page-tab > a {
    border-bottom: 0 !important;
    background: #062b5c !important;
    box-shadow: inset 0 -0.2rem 0 #f3bd00;
    color: #fff !important;
    font-weight: 700;
  }

  table.fktt-modultreffenanmeldungen-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    border: 0;
    border-collapse: separate;
    background: transparent;
    box-shadow: none;
  }

  table.fktt-modultreffenanmeldungen-table > thead {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  table.fktt-modultreffenanmeldungen-table > tbody {
    display: grid;
    gap: 0.45rem;
    width: 100%;
  }

  table.fktt-modultreffenanmeldungen-table > tbody > tr {
    position: relative;
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr) minmax(6rem, 7.25rem) 1.25rem;
    grid-template-areas:
      "icon treffen zeitraum action"
      "icon thema zeitraum action"
      "icon ort status action"
      "icon veranstalter veranstalter action"
      "icon registration registration action";
    gap: 0.35rem 0.65rem;
    box-sizing: border-box;
    width: 100%;
    min-height: 6.8rem;
    margin: 0;
    padding: 0.85rem 0.7rem;
    border: 1px solid #dfe2e5;
    border-radius: 0.45rem;
    background: #fff;
    box-shadow: 0 0.1rem 0.35rem rgb(0 0 0 / 9%);
    cursor: pointer;
  }

  table.fktt-modultreffenanmeldungen-table--upcoming
    > tbody > tr:has(.fktt-status--empty) {
    grid-template-areas:
      "icon treffen zeitraum action"
      "icon thema zeitraum action"
      "icon ort registration action"
      "icon veranstalter veranstalter action";
  }

  table.fktt-modultreffenanmeldungen-table > tbody > tr::before {
    grid-area: icon;
    align-self: start;
    width: 2rem;
    height: 2rem;
    margin: 0.15rem auto 0;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23062b5c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6.5' width='24' height='22' rx='3'/%3E%3Cpath d='M10 3.5v6M22 3.5v6M4 13h24'/%3E%3Cpath d='M10 18h.01M16 18h.01M22 18h.01M10 23h.01M16 23h.01M22 23h.01' stroke-width='3.5'/%3E%3C/svg%3E");
    content: '';
  }

  table.fktt-modultreffenanmeldungen-table > tbody > tr > td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    text-align: left;
    vertical-align: initial;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-treffen {
    grid-area: treffen;
    align-self: start;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-treffen > a {
    position: relative;
    z-index: 2;
    color: #062b5c;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-zeitraum {
    grid-area: zeitraum;
    align-self: start;
    color: #30343a;
    font-size: 0.78rem;
    line-height: 1.4;
    white-space: normal;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-ort {
    position: relative;
    grid-area: ort;
    align-self: end;
    padding-left: 1.05rem;
    color: #737981;
    font-size: 0.75rem;
    line-height: 1.3;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-ort::before {
    position: absolute;
    top: 0.08rem;
    left: 0.12rem;
    width: 0.55rem;
    height: 0.55rem;
    border: 0.1rem solid #9aa0a6;
    border-radius: 50% 50% 50% 0;
    content: '';
    transform: rotate(-45deg);
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-thema {
    grid-area: thema;
    align-self: start;
    color: #4b5157;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-veranstalter {
    grid-area: veranstalter;
    align-self: start;
    color: #737981;
    font-size: 0.75rem;
    line-height: 1.3;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-status {
    grid-area: status;
    align-self: end;
    justify-self: start;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0;
    line-height: 1.2;
    white-space: nowrap;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-status::before {
    font-size: 0.7rem;
    content: "✓  " attr(data-mobile-label);
  }

  table.fktt-modultreffenanmeldungen-table .fktt-status--registered {
    color: #267c2e;
    background: #edf8ec !important;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-status--empty {
    display: none;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-status--represented {
    border: 1px solid #e4bd3d;
    color: #806000;
    background: #fff4c7 !important;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-registration {
    grid-area: registration;
    align-self: end;
    justify-self: end;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-registration--open {
    border: 1px solid #9fb9d6;
    color: #062b5c;
    background: #edf4fb !important;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-registration--open::before {
    content: "✓  ";
  }

  table.fktt-modultreffenanmeldungen-table .fktt-registration--closed {
    color: #666d74;
    background: #eff1f3 !important;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-registration--closed::before {
    content: "–  ";
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-actions {
    position: static;
    grid-area: action;
    align-self: stretch;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-actions > a {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: transparent;
    font-size: 0;
    text-decoration: none;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-actions > a::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: 0.45rem;
    content: '';
  }

  table.fktt-modultreffenanmeldungen-table
    .fktt-col-actions > a:focus-visible::before {
    outline: 0.15rem solid #062b5c;
    outline-offset: -0.2rem;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-actions > a::after {
    position: relative;
    z-index: 2;
    width: 0.65rem;
    height: 0.65rem;
    border-top: 0.12rem solid #3e4348;
    border-right: 0.12rem solid #3e4348;
    content: '';
    transform: rotate(45deg);
  }

  table.fktt-modultreffenanmeldungen-table--past > tbody > tr {
    grid-template-columns: 2.8rem minmax(0, 1fr) minmax(6rem, 7.25rem) 1.25rem;
    grid-template-areas:
      "icon treffen zeitraum action"
      "icon ort zeitraum action"
      "icon veranstalter veranstalter action"
      "anmerkung anmerkung anmerkung action";
  }

  table.fktt-modultreffenanmeldungen-table--past
    > tbody > tr:has(.fktt-col-anmerkung--empty) {
    grid-template-areas:
      "icon treffen zeitraum action"
      "icon ort zeitraum action"
      "icon veranstalter veranstalter action";
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-anmerkung {
    grid-area: anmerkung;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eceef0;
    color: #555b62;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  table.fktt-modultreffenanmeldungen-table .fktt-col-anmerkung--empty {
    display: none;
  }
}

/*
 * Öffentlicher Block "Nächste Modultreffen" (fktt_naechste_modultreffen):
 * gleiche Karten-Optik wie .fktt-modultreffenanmeldungen-table (Icon,
 * blauer Akzentrand links, Schatten, Hover, ganze Karte klickbar), aber
 * ohne Status-/Anmeldungsspalten, da der Block nur öffentliche Felder zeigt.
 */
.fktt-naechste-treffen {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fktt-naechste-treffen > .fktt-naechste-treffen__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  column-gap: 0.9rem;
  align-items: start;
  box-sizing: border-box;
  padding: 0.85rem 2rem 0.85rem 0.9rem;
  border: 1px solid #dfe2e5;
  border-left: 0.35rem solid #062b5c;
  border-radius: 0.45rem;
  background: #fff;
  box-shadow: 0 0.12rem 0.4rem rgb(0 0 0 / 9%);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.fktt-naechste-treffen > .fktt-naechste-treffen__item:hover {
  border-color: #bdc7d1;
  border-left-color: #062b5c;
  box-shadow: 0 0.25rem 0.8rem rgb(0 0 0 / 13%);
}

.fktt-naechste-treffen > .fktt-naechste-treffen__item::before {
  grid-row: 1 / -1;
  grid-column: 1;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0.15rem auto 0;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23062b5c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6.5' width='24' height='22' rx='3'/%3E%3Cpath d='M10 3.5v6M22 3.5v6M4 13h24'/%3E%3Cpath d='M10 18h.01M16 18h.01M22 18h.01M10 23h.01M16 23h.01M22 23h.01' stroke-width='3.5'/%3E%3C/svg%3E");
  content: '';
}

.fktt-naechste-treffen > .fktt-naechste-treffen__item::after {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  z-index: 2;
  width: 0.65rem;
  height: 0.65rem;
  border-top: 0.12rem solid #3e4348;
  border-right: 0.12rem solid #3e4348;
  content: '';
  pointer-events: none;
  transform: translateY(-50%) rotate(45deg);
}

.fktt-naechste-treffen > .fktt-naechste-treffen__item > * {
  grid-column: 2;
}

.fktt-naechste-treffen__titel {
  display: block;
  color: #062b5c;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.fktt-naechste-treffen__titel::after {
  position: absolute;
  z-index: 1;
  inset: -0.85rem -2rem -0.85rem -0.9rem;
  content: '';
}

.fktt-naechste-treffen__titel:focus-visible {
  outline: 0.15rem solid #062b5c;
  outline-offset: 0.2rem;
}

.fktt-naechste-treffen__datum {
  margin-top: 0.35rem;
  color: #30343a;
  font-size: 0.78rem;
  line-height: 1.4;
}

.fktt-naechste-treffen__thema {
  margin-top: 0.2rem;
  color: #4b5157;
  font-size: 0.8rem;
  line-height: 1.4;
}

.fktt-naechste-treffen__ort {
  margin-top: 0.3rem;
  color: #737981;
  font-size: 0.75rem;
  line-height: 1.3;
}

.fktt-naechste-treffen__ort > i {
  margin-right: 0.3rem;
  color: #9aa0a6;
  font-size: 0.7rem;
}

/*
 * .sidebar .block (style.css) gibt jedem Sidebar-Block einen eigenen
 * hellen Hintergrund + Schatten (Kartenrahmen). Unsere Treffen-Karten
 * bringen bereits ihre eigene Kartenoptik mit; auf der Startseite sitzt
 * der Block in der Theme-Sidebar und bekommt dadurch eine zweite,
 * überflüssige weiße Box um die Karten herum. Für genau diesen Block
 * neutralisieren wir den äußeren Rahmen wieder.
 */
.block:has(> .block-content .fktt-naechste-treffen) {
  background-color: transparent;
  box-shadow: none;
}

/*
 * Die Theme-Sidebar (Startseite) ist deutlich schmaler als die
 * Layout-Builder-Spalte auf node/621, dort wirken die Karten mit
 * Kalender-Icon gedrängt. Icon-Spalte dort weglassen, Text bekommt
 * die volle Kartenbreite.
 */
.sidebar .fktt-naechste-treffen > .fktt-naechste-treffen__item {
  grid-template-columns: 1fr;
}

.sidebar .fktt-naechste-treffen > .fktt-naechste-treffen__item::before {
  display: none;
}

.sidebar .fktt-naechste-treffen > .fktt-naechste-treffen__item > * {
  grid-column: 1;
}

/* ==========================================================================
   Startseite: Block "Neue Wiki-Artikel"
   (views_block:neuewikiartikelstartseite-block_1)
   ========================================================================== */

#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 {
  --wiki-blue: #173864;
  --wiki-yellow: #f2c94c;
  --wiki-orange: #e94b0c;
  --wiki-text: #334155;
  --wiki-muted: #697386;
  --wiki-border: #dfe4ea;
  --wiki-card-background: #ffffff;

  position: relative;
  margin: 0 0 2rem;
}

/* Blocküberschrift */
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 > .block-title {
  position: relative;

  margin: 0 0 1.25rem;
  padding: 0 0 0.65rem;

  color: #111;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Gelbe Linie unter der Überschrift */
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 > .block-title::after {
  content: "";

  position: absolute;
  bottom: 0;
  left: 0;

  width: 42px;
  height: 3px;

  background: var(--wiki-yellow);
  border-radius: 999px;
}

/* Drupal-Wrapper */
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .block-content {
  margin: 0;
}

/*
 * Kartenraster. Der View gibt seine Zeilen als
 * .block-content > div > div.js-view-dom-id-<hash> aus; der Hash ist nicht
 * stabil (ändert sich je nach Cache-Rebuild/Query), deshalb hier bewusst
 * strukturell über die Wrapper-Ebene statt über die js-view-dom-id-Klasse
 * selektiert.
 */
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .block-content > div > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

/* Kontextmenü darf das Grid nicht beeinflussen */
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 [data-contextual-id] {
  position: absolute;
}

/* Einzelne Artikelkarte */
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-row {
  position: relative;
  display: flex;
  flex-direction: column;

  box-sizing: border-box;
  min-width: 0;
  min-height: 190px;
  padding: 1.1rem 1.1rem 1rem;

  overflow: hidden;

  background: var(--wiki-card-background);
  border: 1px solid var(--wiki-border);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(20, 44, 74, 0.07);

  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

/* Farbiger oberer Akzent */
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-row::before {
  content: "";

  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  height: 4px;

  background: var(--wiki-yellow);
}

/* Kleines Wiki-Symbol (der View liefert kein Kategorie-/Icon-Feld) */
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-row::after {
  content: "W";

  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;
  margin: 0 0 0.85rem;

  color: var(--wiki-blue);
  background: #f5f0df;
  border-radius: 50%;

  font-size: 1rem;
  font-weight: 700;
  line-height: 1;

  order: -1;
}

#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-row:nth-of-type(2)::after {
  background: #eef0f8;
}

#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-row:nth-of-type(3)::after {
  background: #edf6f3;
}

#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-row:nth-of-type(4)::after {
  background: #f8f0e8;
}

#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-row:nth-of-type(5)::after {
  background: #f1eef8;
}

/* Hover */
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-row:hover {
  transform: translateY(-2px);

  border-color: #c8d1dc;
  box-shadow: 0 8px 22px rgba(20, 44, 74, 0.12);
}

/* Artikeltitel */
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-title-1 {
  margin: 0 0 0.65rem;
}

#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-title-1 .field-content {
  display: block;
}

#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-title-1 a {
  display: block;

  color: var(--wiki-blue);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;

  overflow-wrap: anywhere;
}

#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-title-1 a:hover {
  color: var(--wiki-orange);
  text-decoration: none;
}

#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-title-1 a:focus-visible {
  outline: 3px solid rgba(242, 201, 76, 0.5);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Kurzbeschreibung */
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-body {
  flex: 1;
  min-width: 0;

  color: var(--wiki-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* Vom Body-Feld ausgegebene Überschriften/Absätze normalisieren */
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-body h1,
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-body h2,
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-body h3,
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-body h4,
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-body h5,
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-body h6,
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-body p {
  margin: 0;

  color: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

/* Maximal drei Textzeilen anzeigen */
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-body .field-content {
  display: -webkit-box;
  overflow: hidden;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Dezenter Pfeil unten rechts */
#block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-field-title-1::after {
  content: "›";

  position: absolute;
  right: 1rem;
  bottom: 0.8rem;

  color: var(--wiki-blue);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 1100px) {
  #block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .block-content > div > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Smartphone: horizontale Kartenleiste statt 2-Spalten-Grid */
@media (max-width: 680px) {
  #block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 {
    margin-right: -1rem;
  }

  #block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 > .block-title {
    margin-right: 1rem;
  }

  #block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .block-content > div > div {
    display: flex;
    gap: 0.85rem;

    padding: 0 1rem 0.75rem 0;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
  }

  #block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-row {
    flex: 0 0 min(82vw, 300px);
    min-height: 185px;

    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  #block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-row {
    transition: none;
  }

  #block-xara-fktt-views-block-neuewikiartikelstartseite-block-1 .views-row:hover {
    transform: none;
  }
}

/* ==========================================================================
   Source: web/modules/custom/fktt_modultreffen/css/planung.css
   ========================================================================== */

/*
 * Planung-Seitenleiste: gruppierte, einklappbare Sprungmarken-Navigation
 * (Teilnehmer/Module/Reisezugplanung/…). Ersetzt die frühere flache
 * .planung-nav-Kachelreihe. Einklapp-Zustand ist rein clientseitig
 * (PlanungForm::buildSidenav() + js/planung-sidenav.js), siehe dortige
 * Kommentare zum No-Flicker-Inline-Script.
 */
.planung-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--xara-fktt-gap);
  margin: 0 0 1rem;
}

@media (max-width: 40rem) {
  .planung-layout {
    grid-template-columns: 1fr;
  }
}

/*
 * Grid-Items haben per Default min-width:auto statt 0 – ohne diese Regel
 * wächst die Spalte auf die intrinsische Breite ihres breitesten Kindes
 * (Modul-Tabelle: 11 Spalten) und sprengt damit die 1fr-Spur nach rechts aus
 * dem Viewport, statt innerhalb der Spur zu scrollen. overflow-x:auto macht
 * die Tabelle stattdessen innerhalb ihrer Spalte scrollbar (Suchfeld/Toolbar
 * bleiben unverändert in normaler Breite, da nur die Tabelle breiter ist).
 */
.planung-layout__content {
  min-width: 0;
  overflow-x: auto;
}

.planung-sidenav {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 13rem;
  padding: 0.6rem;
  border: 1px solid var(--xara-fktt-border);
  border-radius: var(--xara-fktt-radius);
  background: var(--xara-fktt-surface-card);
  box-shadow: var(--xara-fktt-shadow);
  position: sticky;
  top: 1rem;
  /*
   * position:sticky öffnet zwar einen eigenen Stacking-Context, der bestimmt
   * aber nur die Reihenfolge INNERHALB der Sidebar. Ohne eigenes z-index
   * landet die Sidebar als Ganzes auf der impliziten "auto"-Ebene der
   * Grid-Geschwister – und der rechte Inhaltsbereich (später im DOM) malt
   * darüber. Das betrifft insbesondere den Tooltip (::after), der bewusst
   * über die Sidebar-Breite hinausragt: ohne z-index hier verschwand er
   * hinter der Toolbar des Inhaltsbereichs.
   */
  z-index: 2;
  transition: width 0.18s ease;
}

.planung-sidenav--collapsed {
  width: 3.4rem;
  gap: 0.6rem;
}

@media (max-width: 40rem) {
  .planung-sidenav {
    position: static;
    width: 100%;
  }
}

.planung-sidenav__toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: -0.1rem -0.1rem 0.1rem;
  padding: 0.4rem 0.5rem;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--xara-fktt-text-muted);
  cursor: pointer;
}

.planung-sidenav__toggle:hover,
.planung-sidenav__toggle:focus-visible {
  background: var(--xara-fktt-surface-muted);
  color: var(--xara-fktt-text);
}

.planung-sidenav__toggle svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: currentColor;
  transition: transform 0.18s ease;
}

.planung-sidenav--collapsed .planung-sidenav__toggle svg {
  transform: rotate(180deg);
}

.planung-sidenav__group-label {
  display: block;
  padding: 0 0.5rem 0.3rem;
  color: var(--xara-fktt-text-muted);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.planung-sidenav--collapsed .planung-sidenav__group-label {
  display: none;
}

.planung-sidenav--collapsed .planung-sidenav__group + .planung-sidenav__group {
  border-top: 1px solid var(--xara-fktt-border);
  padding-top: 0.5rem;
}

.planung-sidenav__rows {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.planung-sidenav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.5rem;
  border-left: 3px solid transparent;
  border-radius: 4px;
  color: var(--xara-fktt-text);
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.planung-sidenav__link svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: currentColor;
  opacity: 0.75;
}

.planung-sidenav__link:hover {
  background: var(--xara-fktt-surface-muted);
}

.planung-sidenav__link.is-active {
  background: var(--xara-fktt-surface-muted);
  border-left-color: var(--xara-fktt-accent);
  color: var(--xara-fktt-accent-link);
  font-weight: 600;
}

.planung-sidenav__link.is-active svg {
  opacity: 1;
}

.planung-sidenav--collapsed .planung-sidenav__link {
  justify-content: center;
  padding: 0.5rem;
}

.planung-sidenav--collapsed .planung-sidenav__label {
  display: none;
}

.planung-sidenav__toggle:hover::after,
.planung-sidenav__toggle:focus-visible::after,
.planung-sidenav--collapsed .planung-sidenav__link:hover::after,
.planung-sidenav--collapsed .planung-sidenav__link:focus-visible::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 0.6rem);
  top: 50%;
  z-index: 5;
  padding: 0.32rem 0.6rem;
  border-radius: 4px;
  background: var(--xara-fktt-text);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--xara-fktt-shadow);
  pointer-events: none;
  transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
  .planung-sidenav,
  .planung-sidenav__toggle svg {
    transition: none;
  }
}

.fktt-anmeldezeitraum > .fieldset-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 18rem));
  column-gap: 2rem;
  align-items: start;
}

@media (max-width: 40rem) {
  .fktt-anmeldezeitraum > .fieldset-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
}

/*
 * Alle Spalten in Planungs-Tabellen: auf Inhalt schrumpfen, kein Umbruch.
 * width:0 statt width:1% – bei automatischem Tabellenlayout verteilen
 * Browser überschüssige Breite proportional auf alle Spalten mit einem
 * deklarierten Prozentwert; "auto"-Spalten gehen dabei leer aus. Mit 0%
 * hier und 100% bei den Textspalten (siehe unten) bekommen ausschließlich
 * die Textspalten die Restbreite.
 *
 * Gilt auch für Gwagen/Pwagen (bs-filterable, aber ohne width:0): ohne diese
 * Regel bleibt table-layout:auto mit variabler, inhaltsabhängiger
 * Spaltenbreite bestehen, wodurch Chromium die per border-collapse
 * zusammengelegten 1px-Zellrahmen im Header bei der Sub-Pixel-Rundung der
 * Spaltenbreiten verliert (die meisten vertikalen Trennlinien verschwinden,
 * nicht nur einzelne) – sichtbar u. a. bei ?tab=pwagen.
 */
table.fktt-planung-tfz-table th,
table.fktt-planung-tfz-table td,
table.fktt-planung-modul-table th,
table.fktt-planung-modul-table td,
table.fktt-planung-gwagen-table th,
table.fktt-planung-gwagen-table td,
table.fktt-planung-pwagen-table th,
table.fktt-planung-pwagen-table td,
table.fktt-planung-equipment-table th,
table.fktt-planung-equipment-table td {
  white-space: nowrap;
  width: 0;
}

/* Textspalten (Header): Umbruch erlaubt, nehmen die komplette Restbreite */
table.fktt-planung-tfz-table th.col-text,
table.fktt-planung-gwagen-table th.col-text,
table.fktt-planung-equipment-table th.col-text {
  white-space: normal;
  width: 100%;
  min-width: 150px;
}

/* Textspalten (Zellen) via nth-child, da Form-API keine TD-Klassen erlaubt.
 * Alle Indizes gehen von der "Eingeplant"-Checkbox als Spalte 1 aus (siehe
 * table-button-styling.md-Historie: die Spalte wurde an den Anfang jeder
 * Materialplanungs-Tabelle verschoben, damit sie nicht erst nach Rechts-
 * Scrollen erreichbar ist). */
/* Equipment: Spalte 5 = Kommentar (1=Eingeplant, 2=Gruppe, 3=Typ, 4=Besitzer) */
table.fktt-planung-equipment-table td:nth-child(5) {
  white-space: normal;
  width: 100%;
  min-width: 150px;
}

/* TFZ: Spalten 28-30 = DCC-Beschr., Beschr. Modell, Beschr. Vorbild */
table.fktt-planung-tfz-table td:nth-child(28),
table.fktt-planung-tfz-table td:nth-child(29),
table.fktt-planung-tfz-table td:nth-child(30) {
  white-space: normal;
  width: 100%;
  min-width: 150px;
}

/* Gwagen: Spalte 17 = Beschr. Modell */
table.fktt-planung-gwagen-table td:nth-child(17) {
  white-space: normal;
  width: 100%;
  min-width: 150px;
}

/* Check-Spalten (Header) */
table.fktt-planung-tfz-table th.col-check,
table.fktt-planung-modul-table th.col-check,
table.fktt-planung-gwagen-table th.col-check,
table.fktt-planung-pwagen-table th.col-check,
table.fktt-planung-equipment-table th.col-check {
  text-align: center;
  width: 0;
}

/* Kopfzelle "Eingeplant": Checkbox (alle markieren) + Kurztext "Einpl.",
 * Tooltip mit dem vollen Namen liegt auf dem Kurztext-Span (siehe
 * PlanungEingeplantCellBuilder::buildSelectAllHeaderCell()). */
.fktt-planung-select-all-header {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
}

/* Check-Spalten (Zellen) via nth-child */
/* Equipment: Spalte 1 = Eingeplant, Spalte 6 = Anzahl verfügbar */
table.fktt-planung-equipment-table td:nth-child(1),
table.fktt-planung-equipment-table td:nth-child(6) {
  text-align: center;
  vertical-align: middle;
  width: 0;
}

/* Eingeplant größer als verfügbare Anzahl: Eingabefeld rot markieren */
input.fktt-planung-equipment-eingeplant.fktt-eingeplant-exceeds {
  background-color: rgba(220, 53, 69, 0.15);
  border-color: #c0392b;
}

/* Modul: Spalte 1 = Eingeplant, Spalte 2 = CAD-Freigabe */
table.fktt-planung-modul-table td:nth-child(1),
table.fktt-planung-modul-table td:nth-child(2) {
  text-align: center;
  vertical-align: middle;
  width: 0;
}

.fktt-planung-cad-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.fktt-planung-cad-status__warning {
  color: #d18b00;
  cursor: help;
  font-size: 1.15rem;
  line-height: 1;
}

.fktt-planung-cad-status__warning:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* TFZ: Spalte 1 (Eingeplant). Bewusst text-align:left statt center: bei
 * center würden Checkbox und optionales Warn-Icon (siehe unten) als Gruppe
 * zentriert, wodurch die Checkbox in Zeilen mit Icon nach links rutscht,
 * während sie in Zeilen ohne Icon weiter rechts (mittig) steht — die
 * Checkbox-Position hing also vom Icon der jeweiligen Zeile ab. Mit
 * text-align:left startet die Checkbox in jeder Zeile an derselben Position,
 * unabhängig davon, ob danach ein Icon folgt. */
table.fktt-planung-tfz-table td:nth-child(1) {
  text-align: left;
  vertical-align: middle;
  width: 0;
}

/* Eingeplant-Zelle TFZ: Checkbox + optionales DCC-Warn-Icon nebeneinander
 * statt untereinander. Die Checkbox liegt bewusst nicht in einem eigenen
 * `#type => container` (siehe PlanungEingeplantCellBuilder::buildCheckbox());
 * das Icon hängt daher als #suffix direkt hinter dem von Drupal erzeugten
 * `.form-item`-Div in derselben Zelle. Dieses Div ist per Core-CSS
 * blockformatiert, ohne die Regel würde das Icon unter statt neben der
 * Checkbox erscheinen. */
table.fktt-planung-tfz-table td:nth-child(1) .form-item {
  display: inline-block;
  vertical-align: middle;
}

table.fktt-planung-tfz-table td:nth-child(1) .fktt-dcc-konflikt-icon {
  vertical-align: middle;
}

td .form-item {
  margin-bottom: 0;
}

.planungsteam-remove {
  color: #c0392b;
  opacity: 0.7;
  text-decoration: none;
}

.planungsteam-remove:hover {
  opacity: 1;
}

.fktt-packliste {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.fktt-packliste-section {
  border: 1px solid var(--primary, #888);
  border-radius: 4px;
  padding: 1rem 1.25rem;
}

.fktt-packliste-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--primary, #888);
  padding-bottom: 0.4rem;
}

.fktt-packliste-section h4 {
  margin: 1rem 0 0.25rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary, #555);
}

.fktt-reisezug-main-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.fktt-reisezug-main-tabs a {
  display: block;
  padding: 8px 12px;
  border: 1px solid #b8b8b8;
  border-radius: 4px;
  background: #f7f7f7;
  color: #1f1f1f;
  text-decoration: none;
}

.fktt-reisezug-main-tabs a.is-active {
  border-color: #0074bd;
  background: #ffffff;
  color: #005ea8;
  font-weight: 600;
}

.fktt-reisezug-tab-pane,
.fktt-reisezug-zug-pane {
  display: none;
}

.fktt-reisezug-tab-pane.is-active,
.fktt-reisezug-zug-pane.is-active {
  display: block;
}

.fktt-reisezug-vertical-tabs {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid #c8c8c8;
  background: #ffffff;
}

.fktt-reisezug-side-tabs {
  grid-column: 1;
  grid-row: 1;
  background: #eeeeee;
  border-right: 1px solid #c8c8c8;
}

.fktt-reisezug-zug-tabs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fktt-reisezug-zug-tabs li {
  margin: 0;
}

.fktt-reisezug-zug-tabs a {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid #d6d6d6;
  color: #0071b3;
  font-weight: 600;
  text-decoration: none;
}

.fktt-reisezug-zug-tabs a.is-active {
  position: relative;
  z-index: 1;
  margin-right: -1px;
  background: #ffffff;
  color: #1f1f1f;
}

.fktt-reisezug-zug-pane {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 16px;
  background: #ffffff;
}

table.fktt-reisezug-tfz-table th,
table.fktt-reisezug-tfz-table td {
  white-space: nowrap;
  width: 0;
}

table.fktt-reisezug-tfz-table th:nth-child(2),
table.fktt-reisezug-tfz-table td:nth-child(2) {
  width: 100%;
}

table.fktt-reisezug-tfz-table th.col-check,
table.fktt-reisezug-tfz-table td:nth-child(8) {
  text-align: center;
  vertical-align: middle;
  width: 0;
}

@media (max-width: 900px) {
  .fktt-reisezug-vertical-tabs {
    grid-template-columns: 1fr;
  }

  .fktt-reisezug-side-tabs {
    grid-column: 1;
    grid-row: auto;
    border-right: 0;
    border-bottom: 1px solid #c8c8c8;
  }

  .fktt-reisezug-zug-tabs {
    display: flex;
    flex-wrap: wrap;
  }

  .fktt-reisezug-zug-tabs a {
    border-right: 1px solid #d6d6d6;
  }

  .fktt-reisezug-zug-tabs a.is-active {
    margin-right: 0;
  }

  .fktt-reisezug-zug-pane {
    grid-column: 1;
    grid-row: auto;
  }
}


/* ==========================================================================
   Source: web/modules/custom/fktt_modultreffen/css/teilnahme-druck.css
   ========================================================================== */

.fktt-teilnahme-print-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.fktt-druck-label {
  font-weight: bold;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_personenwagen/css/fktt-pw-alt.css
   ========================================================================== */

/* ─── Zweispalten-Layout ──────────────────────────────────────── */

.fktt-personenwagen {
  container-type: inline-size;
}

.fktt-alt-columns {
  display: grid;
  grid-template-columns: 70fr 30fr;
  gap: 1rem;
  align-items: start;
}

@container (max-width: 640px) {
  .fktt-alt-columns {
    grid-template-columns: 1fr;
  }
}

.fktt-alt-right .fktt-new-box-design:last-child {
  margin-bottom: 0;
}

/* ─── Hervorgehobene Felder ───────────────────────────────────── */

.fktt-fields .field--name-wagennummer .field__item,
.fktt-fields .field--name-wagennummer .field-item {
  font-weight: 900;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_personenwagen/css/fktt-pw-form.css
   ========================================================================== */

/* Zweispalten-Layout */
.fktt-pw-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

/* Nur Layout-Spalten — die Karten-Optik liegt auf den einzelnen .fktt-box-
 * Abschnitten darin (s. xara-fktt-components.css). */
.fktt-pw-col-left,
.fktt-pw-col-right {
  min-width: 0;
}

/* Alle form-item innerhalb des Layouts auf kompakten Abstand */
.fktt-pw-layout .form-item {
  margin-bottom: 0.25rem;
}

/* Inline-Zeile */
.fktt-pw-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  margin-bottom: 0.25rem;
}

.fktt-pw-row > * {
  flex: 1;
  min-width: 0;
  margin-bottom: 0 !important;
}

.fktt-pw-modell-label {
  font-weight: bold;
}

/* Wagenkarten-Merkmale: Rückseite (1-3) und Vorderseite (4-5) nebeneinander,
 * seit Modelldaten in der breiten linken Spalte statt der schmalen Sidebar
 * liegt — je Seite weiterhin ein Feld pro Zeile (.fktt-pw-row--stacked). */
.fktt-pw-merkmale-wagenkarte {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

/* Numerische Felder und Textfelder wie im Güterwagenformular ausrichten. */
.fktt-pw-layout input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
  box-sizing: border-box;
  height: var(--fktt-input-height, 2.5rem);
  line-height: normal;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
}

.fktt-pw-layout input[type="number"]::-webkit-inner-spin-button,
.fktt-pw-layout input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fktt-pw-layout input[type="text"],
.fktt-pw-layout input[type="number"],
.fktt-pw-layout select {
  height: var(--fktt-input-height, 2.5rem);
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}

.fktt-pw-row-freigabe {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.fktt-pw-row-freigabe > * {
  flex: 0 0 auto;
  width: 100%;
}

/* Abschnitts-Überschriften in der rechten Spalte */
.fktt-pw-section-heading {
  font-weight: bold;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Sitzplätze: vier gleichbreite Spalten */
.fktt-pw-sitzplaetze {
  display: flex;
  gap: 0.5rem;
}

.fktt-pw-sitzplaetze > * {
  flex: 1;
  min-width: 0;
  margin-bottom: 0 !important;
}

@media (max-width: 900px) {
  .fktt-pw-layout {
    grid-template-columns: 1fr;
  }

  .fktt-pw-merkmale-wagenkarte {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .fktt-pw-row,
  .fktt-pw-sitzplaetze {
    flex-wrap: wrap;
  }
}


/* ==========================================================================
   Source: web/modules/custom/fktt_personenwagen/css/fktt-pw-list.css
   ========================================================================== */

.bs-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.bs-toolbar .bs-action-bar {
  margin-bottom: 0;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_tfz/css/fktt-tfz-form.css
   ========================================================================== */

/* Spinner bei Zahlenfeldern ausblenden */
.fktt-tfz input[type="number"],
.fktt-tfz-layout input[type="number"] {
  -moz-appearance: textfield;
}
.fktt-tfz input[type="number"]::-webkit-inner-spin-button,
.fktt-tfz input[type="number"]::-webkit-outer-spin-button,
.fktt-tfz-layout input[type="number"]::-webkit-inner-spin-button,
.fktt-tfz-layout input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Feldbezeichnungen */
.fktt-tfz label,
.fktt-tfz .field__label {
  font-weight: bold;
}

/* Zweispalten-Layout */
.fktt-tfz-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

/* Nur Layout-Spalten — die Karten-Optik liegt auf den einzelnen .fktt-box-
 * Abschnitten darin (s. xara-fktt-components.css). */
.fktt-tfz-col-left,
.fktt-tfz-col-right {
  min-width: 0;
}

/* Fieldsets verhindern sonst das Schrumpfen (Browser-Default: min-width: min-content) */
.fktt-tfz-col-right fieldset {
  min-width: 0;
}

/* Textarea mit cols-Attribut würde sonst die Spaltenbreite erzwingen */
.fktt-tfz-col-right textarea {
  width: 100%;
  min-width: 100px;
}

.fktt-tfz-layout input[type="text"],
.fktt-tfz-layout input[type="number"],
.fktt-tfz-layout input[type="url"],
.fktt-tfz-layout select {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 2.5rem;
}

@media (max-width: 900px) {
  .fktt-tfz-layout {
    grid-template-columns: 1fr;
  }
}

/* Inline-Zeile */
.fktt-tfz-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.fktt-tfz-row > * {
  flex: 1 1 120px;
  min-width: 0;
  margin-bottom: 0 !important;
}

.fktt-tfz-status {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.fktt-tfz-status > * {
  width: 100%;
}

/* Einsatz-Zeile: vier Spalten — Einsatz von/bis je 1/4, Chips die restliche Hälfte
   (Spalten 3-4). Ersetzt das flex-basierte Layout von .fktt-tfz-row für diese Zeile. */
.fktt-tfz-einsatz-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

/* Jahre-Wrapper: Spalten 1-2 (je 1/4 der Gesamtbreite), Einsatz von/bis nebeneinander */
.fktt-tfz-einsatz-jahre {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  min-width: 0;
}

.fktt-tfz-einsatz-jahre > * {
  min-width: 0;
  margin-bottom: 0 !important;
}

/* Chips: Spalten 3-4 (restliche Hälfte). Das unsichtbare Spacer-Label (s. PHP,
 * FkttTfzForm.php) hat dieselbe Zeilenhöhe wie die echten Feldlabels von
 * .fktt-tfz-einsatz-jahre — dadurch liegen die Pillen exakt auf Höhe der
 * Eingabefelder, ohne einen fest verdrahteten Offset raten zu müssen. */
.fktt-tfz-einsatz-checks {
  grid-column: 3 / 5;
  display: flex;
  flex-direction: column;
}

.fktt-tfz-einsatz-checks-spacer {
  display: block;
  visibility: hidden;
}

/* Breite in drei gleiche Teile teilen und die Chips darin jeweils zentrieren,
 * sodass links vom ersten und rechts vom letzten Chip derselbe Raum bleibt
 * wie zwischen den Chips. */
.fktt-tfz-einsatz-checks-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
}

/* Auf sehr kleinen Bildschirmen: Einsatz-Blöcke umbrechen */
@media (max-width: 480px) {
  .fktt-tfz-einsatz-row {
    grid-template-columns: 1fr;
  }

  .fktt-tfz-einsatz-jahre,
  .fktt-tfz-einsatz-checks {
    grid-column: 1 / -1;
  }

  .fktt-tfz-einsatz-checks-spacer {
    display: none;
  }

  .fktt-tfz-einsatz-checks-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: start;
    gap: 0.5rem;
  }
}

/* DCC-Zeile: alle Kinder vertikal mittig ausrichten */
.fktt-tfz-dcc-row {
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #c8cdd2;
}


/* DCC-Adresse-Feld: schmal halten (max. 4 Stellen) */
.fktt-tfz-dcc-row > *:nth-child(1) {
  flex: 0 0 auto;
}

.fktt-tfz-dcc-row > *:nth-child(1) input {
  width: 5rem;
}

/* Vorschlagen-Button: direkt als Flex-Kind, kein Wachsen */
.fktt-dcc-vorschlagen-btn {
  flex: 0 0 auto !important;
  white-space: nowrap;
  align-self: center;
  margin-bottom: 0 !important;
  font-size: 1em;
  padding: 0.15rem 0.45rem;
}



/* ==========================================================================
   Source: web/modules/custom/fktt_tfz/css/fktt-tfz-list.css
   ========================================================================== */

.bs-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.bs-toolbar .bs-action-bar {
  margin-bottom: 0;
}


/* ==========================================================================
   Source: web/modules/custom/fktt_tfz/css/fktt-tfz-view.css
   ========================================================================== */

/* ─── Zweispalten-Layout ──────────────────────────────────────── */

.fktt-tfz--view {
  container-type: inline-size;
}

.fktt-view-columns {
  display: grid;
  grid-template-columns: 70fr 30fr;
  gap: 1rem;
  align-items: start;
}

@container (max-width: 640px) {
  .fktt-view-columns {
    grid-template-columns: 1fr;
  }
}

.fktt-view-right .fktt-new-box-design:last-child {
  margin-bottom: 0;
}

.fktt-tfz--view .fktt-view-columns .field:not(:last-child) {
  margin-bottom: 18px;
}

/* ─── Hervorgehobene Felder ───────────────────────────────────── */

.fktt-fields .field--name-betriebsnummer .field__item,
.fktt-fields .field--name-betriebsnummer .field-item,
.fktt-fields .field--name-dcc-adresse .field__item,
.fktt-fields .field--name-dcc-adresse .field-item {
  font-weight: 900;
}

/* ==========================================================================
   Navigation tiles
   ========================================================================== */

/* Menu-link icons are content fields and otherwise appear in every rendering
   of the menu (header, sidebar and mobile navigation). */
.menu-dropdown .node-taxonomy-container:has(.field--name-field-media-image) {
  display: none;
}

:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child) ul.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(13rem, calc((100% - 3rem) / 4)), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child) li.menu-item {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 160ms ease;
}

:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child) li.menu-item:hover {
  transform: translateY(-0.15rem);
}

:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child) li.menu-item::before {
  content: none;
}

:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child) li.menu-item > a {
  display: flex;
  min-height: 5.5rem;
  height: 100%;
  align-items: center;
  padding: 1.25rem 1.5rem 1.25rem 6rem;
  border: 1px solid #d5dadd;
  border-left: 0.35rem solid #062b5c;
  border-radius: 0.35rem;
  background: #fff;
  color: #252525;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  -webkit-hyphens: auto;
  hyphens: auto;
  box-shadow: 0 0.15rem 0.5rem rgb(0 0 0 / 8%);
  transition: border-color 160ms ease, box-shadow 160ms ease,
    color 160ms ease;
}

:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child) li.menu-item > a:hover {
  border-color: #062b5c;
  color: #062b5c;
  box-shadow: 0 0.4rem 1rem rgb(0 0 0 / 14%);
}

:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child)
  .menu-dropdown .node-taxonomy-container:has(.field--name-field-media-image) {
  position: absolute;
  z-index: 1;
  /* The artwork sits above the centre inside the square source images. */
  top: calc(50% + 0.65rem);
  left: 1.25rem;
  display: block;
  width: 3.5rem;
  margin: 0;
  padding: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

/* The contextual-region class normally creates another positioning context.
   Keep the tile's menu item as the anchor for its icon instead. */
:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child)
  li.menu-item > .menu-dropdown {
  position: static;
}

:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child)
  .node-taxonomy-container:has(.field--name-field-media-image) .term-title {
  display: none;
}

:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child)
  .node-taxonomy-container:has(.field--name-field-media-image) > ul.taxonomy-terms,
:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child)
  .node-taxonomy-container:has(.field--name-field-media-image) > ul.taxonomy-terms > li.taxonomy-term {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child)
  .field--name-field-media-image img {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child) li.menu-item > a:focus-visible {
  outline: 0.2rem solid #062b5c;
  outline-offset: 0.2rem;
}

:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child) li.menu-item > a.is-active,
:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child) li.menu-item.active-trail > a {
  border-color: #062b5c;
  background: #062b5c;
  color: #fff;
}

:is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child) ul.menu ul.menu {
  margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  :is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child) li.menu-item {
    transition: none;
  }

  :is(.block-navigation, .node-type-fktt-bereichsstartseite .node-content > .layout:first-child) li.menu-item:hover {
    transform: none;
  }
}

/* ==========================================================================
   Xarapro: full-screen mobile navigation
   ========================================================================== */

/* The submenu controls are created at every viewport width. Keep their
   button reset and CSS chevron outside the mobile-only layout rules so they
   do not fall back to the browser's empty default button on desktop. */
.sliding-sidebar-container li.menu-item--expanded {
  position: relative;
}

.sliding-sidebar-container li.menu-item--expanded > a {
  padding-right: 3.5rem;
}

.sliding-sidebar-container .fktt-submenu-toggle {
  position: absolute;
  top: 0.35rem;
  right: 0.25rem;
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #062b5c;
  cursor: pointer;
}

.sliding-sidebar-container .fktt-submenu-toggle:hover,
.sliding-sidebar-container .fktt-submenu-toggle:focus-visible {
  outline: none;
  background: rgb(6 43 92 / 10%);
}

.sliding-sidebar-container a.is-active + .fktt-submenu-toggle {
  color: #fff;
}

.sliding-sidebar-container .fktt-submenu-toggle:focus-visible {
  box-shadow: 0 0 0 0.15rem #fff, 0 0 0 0.3rem #c2760a;
}

.sliding-sidebar-container .fktt-submenu-toggle span {
  width: 0.65rem;
  height: 0.65rem;
  border-right: 0.14rem solid currentColor;
  border-bottom: 0.14rem solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform 180ms ease;
}

.sliding-sidebar-container .fktt-submenu-toggle[aria-expanded="true"] span {
  transform: translateY(0.15rem) rotate(225deg);
}

@media (max-width: 991px) {
  .menu-wrap {
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
  }

  .sliding-sidebar {
    position: fixed;
    top: var(--drupal-displace-offset-top, 0px);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: auto;
  }

  .sliding-sidebar .sliding-sidebar-container {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    padding: 4.5rem clamp(1.25rem, 5vw, 3rem) 2rem;
    box-sizing: border-box;
    background: rgb(255 255 255 / 90%);
    backdrop-filter: blur(0.25rem);
    -webkit-backdrop-filter: blur(0.25rem);
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .sliding-sidebar-container nav.block-menu {
    width: min(100%, 36rem);
    margin-inline: auto;
  }

  .sliding-sidebar-container ul.menu {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .sliding-sidebar-container ul.menu-level-0 > li {
    border-bottom: 1px solid rgb(6 43 92 / 14%);
  }

  .sliding-sidebar-container ul.menu a {
    display: block;
    padding: 0.7rem 0.75rem;
    border-radius: 0.3rem;
    color: #062b5c;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.005em;
    text-decoration: none;
  }

  .sliding-sidebar-container ul.menu a:hover,
  .sliding-sidebar-container ul.menu a:focus-visible {
    background: rgb(6 43 92 / 8%);
    color: #062b5c;
  }

  .sliding-sidebar-container ul.menu a.is-active {
    background: #062b5c;
    color: #fff;
  }

  .sliding-sidebar-container ul.menu ul.menu {
    margin: 0 0 0.55rem 0.75rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgb(6 43 92 / 22%);
  }

  .sliding-sidebar-container ul.menu ul.menu[hidden] {
    display: none;
  }

  .sliding-sidebar-container ul.menu ul.menu a {
    padding-block: 0.5rem;
    font-size: 0.94rem;
    font-weight: 450;
  }

  .sliding-sidebar .close-sliding-sidebar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 130;
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    border-color: #c2760a;
    background: #fff;
    color: #111;
    font-size: 1.25rem;
    font-weight: 700;
  }
}

/* ==========================================================================
   fktt_modul: Modulmeldung Alt/Neu-Vergleich
   ========================================================================== */

.fktt-vergleich-tabelle {
  margin-bottom: 2rem;
}

.fktt-vergleich-geaendert td {
  background-color: #fff3cd;
}

/* ==========================================================================
   fktt_modul: geführte CAD-Freigabe
   ========================================================================== */

.fktt-cad-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.fktt-cad-stepper__step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgb(6 43 92 / 22%);
  border-radius: 0.35rem;
  background: #fff;
  color: #5b6573;
  text-decoration: none;
}

.fktt-cad-stepper__step.is-linked {
  cursor: pointer;
}

.fktt-cad-stepper__step.is-linked:hover,
.fktt-cad-stepper__step.is-linked:focus-visible {
  border-color: #062b5c;
  background: rgb(6 43 92 / 5%);
  color: #062b5c;
}

.fktt-cad-stepper__step.is-linked:focus-visible {
  outline: 0.15rem solid #062b5c;
  outline-offset: 0.15rem;
}

.fktt-cad-stepper__number {
  display: grid;
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: rgb(6 43 92 / 10%);
  font-weight: 700;
}

.fktt-cad-stepper__step.is-reached {
  border-color: #467a35;
  color: #315626;
}

.fktt-cad-stepper__step.is-reached .fktt-cad-stepper__number {
  background: #467a35;
  color: #fff;
}

.fktt-cad-stepper__step.is-active {
  border-color: #062b5c;
  box-shadow: 0 0 0 2px rgb(6 43 92 / 12%);
  color: #062b5c;
}

.fktt-cad-stepper__label {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
}

.fktt-cad-workflow-summary {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
}

.fktt-cad-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(6 43 92 / 15%);
  border-radius: 0.35rem;
  background: #fff;
}

.fktt-cad-review-tabs {
  margin-bottom: 1.5rem;
}

.fktt-cad-review-tabs > details {
  margin: 0;
}

/* The generic fktt-tabs component frames every panel with a border; the CAD
   review panels already carry their own card borders, so the outer frame
   would just duplicate it. */
.fktt-cad-review-tabs > .fktt-tab-pane.is-active {
  padding: 1rem 0 0;
  border: 0;
}

.fktt-cad-data-card {
  max-width: none;
}

.fktt-cad-data-card > h2 {
  margin-top: 0;
}

@media (max-width: 52rem) {
  .fktt-cad-stepper {
    grid-template-columns: 1fr;
  }

  .fktt-cad-stepper__step {
    padding-block: 0.45rem;
  }
}

/* ==========================================================================
   Teilnehmer-E-Mail-Adressliste (Modultreffen-Planung, Berichte-Tab)
   ========================================================================== */

/* Die Adressliste rendert im Twig-Template der Teilnehmertabelle nach dem
   `</table>` (siehe `fktt-planung-teilnehmer-table.html.twig`), also am Ende
   des Berichte-Inhalts – bewusst außerhalb der (nowrap-)Toolbar-Zeile mit den
   Buttons, damit eine lange Adressliste nicht mit ihnen um Platz konkurriert. */
.fktt-teilnehmer-email-liste-wrapper {
  margin-top: 0.6rem;
}

.fktt-teilnehmer-email-liste {
  display: block;
  max-height: 6rem;
  overflow-y: auto;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--xara-fktt-border);
  border-radius: var(--xara-fktt-radius);
  background: var(--xara-fktt-surface-card);
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
