@font-face {
  font-family: 'A1 Sans Bold';
  src: url('assets/fonts/A1Sans-Bold.woff2') format('woff2'),
       url('assets/fonts/A1Sans-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'A1 Sans Regular';
  src: url('assets/fonts/A1Sans-Regular.woff2') format('woff2'),
       url('assets/fonts/A1Sans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #EB140A;
  --red-dark: #B90A05;
  --black: #000000;
  --white: #ffffff;
  --grey-1: #F2F2F2;
  --grey-2: #BCBCBC;
  --grey-3: #999999;
  --grey-4: #4F4F4F;
  --grey-5: #333333;
  --blue-dark: #294f5a;
  --text: #333333;
  --border: #d7d7d7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'A1 Sans Regular', Verdana, sans-serif;
  color: var(--text);
  background: #f5f7f9;
}

.navbar {
  background-color: var(--black);
  color: var(--white);
  font-size: 16px;
  font-weight: bold;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 10px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}


.navbarLeft,
.navbarRightInfoContainer,
.navbarCenter {
  display: flex;
  align-items: center;
}

.a1Logo {
  height: 42px;
  width: auto;
  margin-right: 16px;
  object-fit: contain;
}

.appTitle {
  font-size: 20px;
  font-weight: bold;
  color: var(--white);
  white-space: nowrap;
}


.navbarLeft { gap: 16px; }
.navbarCenter { gap: 20px; }

.eborLogo {
  background: var(--red);
  color: var(--white);
  padding: 6px 10px;
  font-size: 24px;
  letter-spacing: .5px;
}

.appTitle { font-size: 26px; }
.appTitleEBOR{
    color: #ffffff; /*#B90A05;*/
    font-size: 22pt;
    font-weight: bold;
}

.appTitleRest{
    color: #ffffff; /*#B90A05;*/
    font-size: 20pt; /* 2pt kleiner */
    font-weight: bold;
    margin-left: 6px;
}
.navbarRightInfoContainerTextArea {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 13px;
  text-align: right;
}

.navbarRightInfoContainerTextWhite { color: var(--white); }
.navbarRightInfoContainerTextRed1 { color: var(--red); }

.infoIconLink {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .18s ease;
}

/* Navbar icon: white via filter on dark background */
.infoIcon {
  width: 32px;
  height: 32px;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter .18s ease, transform .18s ease;
}

.infoIconLink:hover,
.infoIconLink:focus-visible {
  transform: translateY(-1px);
}

/* Hover: icon turns red + slightly larger = "fetter in var(--red)" */
.infoIconLink:hover .infoIcon,
.infoIconLink:focus-visible .infoIcon {
  filter: brightness(0) saturate(100%) invert(13%) sepia(96%) saturate(6000%) hue-rotate(3deg) brightness(96%);
  transform: scale(1.18);
}


.menuItem {
  position: relative;
  padding: 12px 4px;
  cursor: default;
}

.menuItem > span:hover { color: var(--red); }

.dropdown {
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  min-width: 260px;
  padding: 10px;
  background: var(--grey-2);
  color: var(--black);
  box-shadow: 0 8px 16px rgba(0,0,0,.25);
  z-index: 1003;
}

.menuItem:hover > .dropdown { display: block; }

.dropdown button,
.infoDropdown div {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--black);
  text-align: left;
  font-family: Verdana, sans-serif;
  font-weight: bold;
  padding: 9px 10px;
  white-space: nowrap;
}

.dropdown button:hover:not(:disabled) {
  color: var(--red-dark);
  background: var(--grey-3);
  cursor: pointer;
}

.dropdown button:disabled { opacity: .45; }
.infoDropdown { min-width: 430px; font-size: 12px; }
.infoDropdown code { font-size: 12px; }

.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 95px 24px 40px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 18px;
  border-radius: 6px;
}

h1, h2 { margin-top: 0; font-weight: normal; }
h1 { 
  font-size: 26px;
  color: var(--red); 
  font-weight: bold;}
h2 { 
  font-size: 19px; 
  color: var(--black);
  font-weight: bold; }

code {
  background: #eef3f6;
  padding: 2px 6px;
}

.buttonRow {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

input[type="file"] { display: none; }

button,
.primaryButton {
  border: 2px solid var(--red);
  border-radius:8px;
  background: var(--red);
  color: var(--white);
  padding: 11px 20px;
  font-family: 'A1 Sans Bold', Verdana, sans-serif;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
button img,
.primaryButton img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);

    transition: transform 0.2s ease;
}


button:hover:not(:disabled),
.primaryButton:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(185, 10, 5, .28);
  transform: translateY(-1px);
}
button:hover:not(:disabled) img,
.primaryButton:hover img {
    transform: translateX(3px) scale(1.15);
}
button:active:not(:disabled),
.primaryButton:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

button:disabled {
  border-color: var(--grey-2);
  background: var(--grey-2);
  color: var(--white);
  opacity: .75;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.status {
  margin-top: 16px;
  padding: 13px;
  background: #eef2f4;
  border-left: 4px solid var(--blue-dark);
  color: var(--black);
  font-family: Consolas, monospace;
  font-size: 13px;
}

.status.ok { border-left-color: #368a36; }
.status.error { border-left-color: var(--red-dark); color: var(--red-dark); }

.resultCard pre {
  white-space: pre-wrap;
  min-height: 120px;
  margin: 0;
  color: var(--black);
  font-family: Consolas, monospace;
}



.menuLink {
  color: var(--white);
  text-decoration: none;
}

.menuLink:hover {
  color: var(--red);
}

.documentationCard {
  border-top: 5px solid var(--red);
  background: linear-gradient(180deg, var(--white) 0%, #fbfbfb 100%);
}

.documentationHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.documentationHeader h2 {
  /* color: var(--red); */
  /* font-size: 24px; */
  margin-bottom: 8px;
}

.documentationHeader p {
  color: var(--grey-5);
  margin-top: 0;
  max-width: 900px;
  line-height: 1.45;
}

.docJumpButton {
  flex: 0 0 auto;
  border: 1px solid var(--red-dark);
  color: var(--red-dark);
  background: var(--white);
  text-decoration: none;
  padding: 10px 14px;
  font-size: 14px;
}

.docJumpButton:hover {
  background: var(--red-dark);
  color: var(--white);
}

.visualDetails {
  margin-top: 18px;
}

.visualDetails summary {
  cursor: pointer;
  padding: 13px 16px;
  color: var(--white);
  background: var(--red-dark);
  list-style-position: inside;
}

.infographicGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.infographicFigure {
  margin: 0;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--grey-2);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.infographicFigureLarge {
  grid-column: 1 / -1;
}

.infographicFigure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
}

.infographicFigure figcaption {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--grey-1);
  color: var(--grey-5);
  font-size: 13px;
}

@media (max-width: 900px) {
  .navbar { position: static; flex-wrap: wrap; gap: 12px; }
  .page { padding-top: 24px; }
  .navbarCenter { order: 3; width: 100%; }
  .documentationHeader { flex-direction: column; }
  .infographicGrid { grid-template-columns: 1fr; }
  .docJumpButton { width: 100%; text-align: center; }
}

/* Infografiken sind anklickbar */
.infographicFigure img {
  cursor: zoom-in;
}

/* SVG-Lightbox */
.imageModal {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 80px 24px 24px;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: flex-start;
}

.imageModalContent {
  width: 100%;
  height: 100%;
  max-width: 95vw;
  max-height: calc(100vh - 120px);
  object-fit:contain;
  background: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

/* Page2 und Page3 größer anzeigen */
.imageModalContentLarge {
  width: 95vw;
  max-height: calc(100vh - 120px);
}

.imageModalClose {
  position: fixed;
  top: 18px;
  right: 35px;
  z-index: 100000;
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 48px;
  font-weight: bold;
  line-height: 48px;
  cursor: pointer;
}

.imageModalClose:hover {
  color: var(--red);
}

@media (max-width: 900px) {
  .imageModal {
    padding: 70px 12px 16px;
  }

  .imageModalContent,
  .imageModalContentLarge {
    width: 96vw;
    height: calc(100vh - 96px);
  }

  .imageModalClose {
    top: 10px;
    right: 18px;
  }
}


/* Modal-Schließen-Button bleibt bewusst transparent und nicht im A1-Rot-Button-Stil */
.imageModalClose,
.imageModalClose:hover,
.imageModalClose:active {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  min-height: auto;
  padding: 0;
}
/* Card header: icon ABOVE title, left-aligned — A1 Kachel-Stil */
.documentationHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.documentationHeaderContent {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.documentationHeaderContent > :first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.documentationHeaderContent h2 {
  margin: 0;
}

.documentationHeader p {
  color: var(--grey-5);
  margin-top: 0;
  max-width: 900px;
  line-height: 1.45;
}

/* Guide icon in card: red, left-aligned above title */
.guideIconCard {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background-color: var(--red);
  -webkit-mask: url("assets/images/Question.svg") no-repeat center;
  -webkit-mask-size: contain;
  mask: url("assets/images/Question.svg") no-repeat center;
  mask-size: contain;
}

/* Legacy class kept for backward compat, hidden now */
.guideIconWrapper { display: none; }
.guideIcon { display: none; }

/* Dokumentations-Highlights */
.docHighlightBold {
  color: var(--red);
  font-weight: bold;
}

.docHighlight {
  color: var(--red);
}

