/* Top-right KI-Akademie OWL logo */
.kiowl-logo {
  display: none;
}

/* KI-Akademie logo: sits in-flow at the top-right of the main header */
.main-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.logo-float {
  line-height: 0;
  flex-shrink: 0;
  margin-left: 18px;
}

.logo-float img {
  max-height: 72px;
  width: auto;
  display: block;
}

/* Footer */
.site-footer {
  margin-top: 28px;
  padding-top: 18px;
  padding-bottom: calc(22px + var(--footer-funding-height));
  text-align: center;
  position: relative;
  /* ensure the (absolutely positioned) funding logo stays fully below the top separator */
  min-height: calc(8em + 0px);
}

/* Footer separator: from main column's left edge to its right edge (avoids 100vw to prevent horizontal scroll) */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -22px;
  right: -22px;
  border-top: 1px solid var(--line);
  pointer-events: none;
  z-index: 2;
  /* ensure separator stays above any absolutely-positioned elements */
}

@media (max-width: 980px) {
  .site-footer::before {
    left: -22px;
    right: -22px;
  }

  .site-footer .footer-funding {
    right: 20px;
  }
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.site-footer .footer-links a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  text-decoration: underline;
}

.site-footer .footer-copy {
  margin-top: 10px;
}

.site-footer .footer-funding {
  position: absolute;
  bottom: -15px;
  width: auto;
  height: 9.5em;
  /*max-width: 280px;*/
  /* cap width so it scales responsively */
  max-height: 170px;
  object-fit: contain;
  right: 20px;
  z-index: 1;
}

@media (max-width: 1400px) {

  /* At narrower widths place the funding image into the normal flow so it wraps below links/text */
  .site-footer .footer-funding {
    position: static;
    display: block;
    margin: 14px auto 0;
    height: auto;
    max-width: 60%;
    max-height: 120px;
  }
}


:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #0e1117;
  --muted: #5f6368;
  --line: #e6e8eb;

  --infoBg: #eef4ff;
  --infoBd: #c7dcff;
  --okBg: #eaf7ee;
  --okBd: #bfe5c8;
  --warnBg: #fff6e5;
  --warnBd: #ffd9a6;
}

* {
  box-sizing: border-box
}

.body-with-topbar,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden
}

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr
  }
}

.sidebar {
  padding: 18px;
  background: #f0f2f6;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
}

@media (max-width: 980px) {
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    position: static;
    height: auto;
  }
}

.main {
  padding: 22px;
  max-width: 1200px
}

.app-title {
  margin: 0;
  font-size: 28px;
}

.main-header {
  padding-right: 0;
}

@media (max-width: 640px) {
  .main-header-top {
    flex-wrap: wrap;
    gap: 10px;
  }
}

h1 {
  margin: 0 0 12px;
  font-size: 28px
}

h2 {
  margin: 18px 0 12px;
  font-size: 20px
}

h3 {
  margin: 14px 0 10px;
  font-size: 16px;
  color: var(--muted)
}

.muted {
  color: var(--muted)
}

.small {
  font-size: 12px
}

.intro {
  color: var(--muted)
}

.intro ol {
  margin-top: 8px
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 18px 0
}

.twoCol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

@media (max-width: 980px) {
  .twoCol {
    grid-template-columns: 1fr
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px
}

.resultCard>*+* {
  margin-top: 12px;
}

.cardTitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px
}

.label {
  display: block;
  margin: 10px 0 6px;
  color: var(--muted)
}

.select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text)
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted)
}

.btn {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 600
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed
}

.imgWrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden
}

.imgWrap img {
  width: 100%;
  height: auto;
  display: block
}

.caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px
}

.info {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--infoBd);
  background: var(--infoBg);
  color: var(--text)
}

.success {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--okBd);
  background: var(--okBg);
  color: var(--text)
}

.warn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--warnBd);
  background: var(--warnBg);
  color: var(--text)
}

.hidden {
  display: none
}

.blurOn {
  filter: blur(20px);
}

.details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px
}

.detailsBody {
  margin-top: 10px;
  color: var(--muted)
}

.spinner {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  z-index: 9999
}

.spin {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .25);
  border-top-color: rgba(255, 255, 255, .9);
  animation: rot 1s linear infinite
}

@keyframes rot {
  to {
    transform: rotate(360deg)
  }
}

.spinner.hidden {
  display: none;
}