@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src:
    url('assets/fonts/source-sans-3/source-sans-3-variable.woff2')
      format('woff2'),
    url('assets/fonts/source-sans-3/source-sans-3-variable.ttf')
      format('truetype');
}

@font-face {
  font-family: 'OpenDyslexic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/open-dyslexic/open-dyslexic-regular.woff2')
    format('woff2');
}

@font-face {
  font-family: 'OpenDyslexic';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/open-dyslexic/open-dyslexic-italic.woff2')
    format('woff2');
}

@font-face {
  font-family: 'OpenDyslexic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/open-dyslexic/open-dyslexic-bold.woff2')
    format('woff2');
}

@font-face {
  font-family: 'OpenDyslexic';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/open-dyslexic/open-dyslexic-bold-italic.woff2')
    format('woff2');
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url('assets/fonts/atkinson-hyperlegible/atkinson-hyperlegible-regular.woff2')
      format('woff2'),
    url('assets/fonts/atkinson-hyperlegible/atkinson-hyperlegible-regular.ttf')
      format('truetype');
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src:
    url('assets/fonts/atkinson-hyperlegible/atkinson-hyperlegible-italic.woff2')
      format('woff2'),
    url('assets/fonts/atkinson-hyperlegible/atkinson-hyperlegible-italic.ttf')
      format('truetype');
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url('assets/fonts/atkinson-hyperlegible/atkinson-hyperlegible-bold.woff2')
      format('woff2'),
    url('assets/fonts/atkinson-hyperlegible/atkinson-hyperlegible-bold.ttf')
      format('truetype');
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src:
    url('assets/fonts/atkinson-hyperlegible/atkinson-hyperlegible-bold-italic.woff2')
      format('woff2'),
    url('assets/fonts/atkinson-hyperlegible/atkinson-hyperlegible-bold-italic.ttf')
      format('truetype');
}

:root {
  --primary-color: #003f7f;
  --primary-light: #004a99;
  --primary-dark: #002854;
  --accent-color: #667eea;

  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;

  --bg-light: #f0f0f0;
  --text-dark: #333;
  --text-muted: #666;
  --text-light: #999;

  --border-radius: 8px;
  --border-radius-lg: 15px;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);

  --font-main: 'Source Sans 3', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-a11y:
    'Atkinson Hyperlegible', 'Source Sans 3', 'Segoe UI', Tahoma, Geneva,
    Verdana, sans-serif;
  --ship-filter: invert(11%) sepia(37%) saturate(141%) hue-rotate(181deg)
    brightness(97%) contrast(88%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  position: relative;
  background-color: #001f3f;
  background-image: radial-gradient(
    ellipse at 50% 100%,
    #2a5c8f 0%,
    var(--primary-light) 32%,
    var(--primary-dark) 62%,
    #001733 100%
  );
  background-repeat: no-repeat;
  background-size: 160% 160%;
  background-position: 50% 100%;
  animation: horizonShift 22s ease-in-out infinite;
  min-height: 100vh;
  padding: 20px;
  color: var(--text-dark);
  line-height: 1.6;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

body.granim-active {
  background-image: none;
  animation: none;
}

#granim-canvas {
  position: fixed;
  top: 0;
  left: -30%;
  width: 160%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 10px 14px;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  text-decoration: none;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

body.a11y-mode {
  background-color: #cfcfcf;
  background-image: none;
  animation: none;
  color: #000000;
  font-family: var(--font-a11y);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
  --text-muted: #000000;
  --text-light: #000000;
}

body.a11y-mode #granim-canvas {
  display: none;
}

body.a11y-mode,
body.a11y-mode * {
  color: #000000;
}

body.a11y-mode *,
body.a11y-mode *::before,
body.a11y-mode *::after {
  border-radius: 0 !important;
}

body.a11y-mode *,
body.a11y-mode *::before,
body.a11y-mode *::after {
  animation: none !important;
  transition: none !important;
}

body.a11y-mode header {
  color: #000000;
  text-shadow: none;
}

body.a11y-mode header .subtitle {
  opacity: 1;
  font-weight: 700;
}

body.a11y-mode header h1 {
  text-shadow: none;
}

body.a11y-mode h1,
body.a11y-mode h2,
body.a11y-mode h3,
body.a11y-mode h4,
body.a11y-mode h5,
body.a11y-mode h6 {
  color: #000000;
}

body.a11y-mode .card {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: none;
}

body.a11y-mode #calculator-card,
body.a11y-mode .card:not(#calculator-card) {
  box-shadow: none;
}

body.a11y-mode .card::before {
  display: none;
}

body.a11y-mode .beta-banner,
body.a11y-mode .plane,
body.a11y-mode .silhouette,
body.a11y-mode .containership,
body.a11y-mode .language-hint {
  display: none;
}

body.a11y-mode .beta-banner {
  display: block;
}

body.a11y-mode .beta-banner-text {
  background: #000000;
  color: #ffffff;
  box-shadow: none;
}

body.a11y-mode main > .card {
  opacity: 1;
  transform: none;
  animation: none;
}

body.a11y-mode .language-switcher {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: none;
}

body.a11y-mode .lang-btn,
body.a11y-mode .a11y-btn {
  box-shadow: none;
  border: 2px solid #000000;
}

body.a11y-mode .lang-btn.is-active {
  background: #4a4a4a;
  color: #ffffff;
}

body.a11y-mode .a11y-btn.is-active {
  background: #000000;
  color: #ffffff;
}

body.a11y-mode .lang-flag {
  filter: grayscale(1) contrast(1.2);
}

body.a11y-mode .lang-btn[data-lang='de'] .lang-flag {
  filter: grayscale(1) brightness(1.5) contrast(0.9) !important;
}

body.a11y-mode .target-selection select {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 9px;
}

body.a11y-mode .target-selection .select-marquee {
  background: #ffffff;
}

body.a11y-mode .target-selection .select-marquee select,
body.a11y-mode .target-selection .select-marquee select:invalid {
  color: #000000;
}

body.a11y-mode .select-marquee-text {
  display: none;
}

body.a11y-mode .grade-row,
body.a11y-mode .grade-row:nth-child(odd),
body.a11y-mode .grade-row:nth-child(even) {
  background-color: #ffffff;
  border-bottom: 1px solid #000000;
}

body.a11y-mode .grade-row.status-green {
  background-color: #ffffff;
  border-left: none;
  background-image: linear-gradient(to right, #000000 0 4px, transparent 4px);
  background-repeat: no-repeat;
  background-size: 12px 100%;
  background-position: left top;
}

body.a11y-mode .grade-row.status-yellow {
  background-color: #ffffff;
  border-left: none;
  background-image: linear-gradient(
    to right,
    #000000 0 3px,
    transparent 3px 5px,
    #000000 5px 8px,
    transparent 8px
  );
  background-repeat: no-repeat;
  background-size: 12px 100%;
  background-position: left top;
}

body.a11y-mode .grade-row.status-red {
  background-color: #ffffff;
  border-left: none;
  background-image: linear-gradient(
    to right,
    #000000 0 2px,
    transparent 2px 4px,
    #000000 4px 6px,
    transparent 6px 8px,
    #000000 8px 10px,
    transparent 10px
  );
  background-repeat: no-repeat;
  background-size: 12px 100%;
  background-position: left top;
}

body.a11y-mode .grade-row.status-green:hover,
body.a11y-mode .grade-row.status-yellow:hover,
body.a11y-mode .grade-row.status-red:hover,
body.a11y-mode .grade-row:hover {
  background-color: #ffffff;
}

body.a11y-mode .grade-row .subject-name.main-subject,
body.a11y-mode .grade-row .subject-name {
  color: #000000;
}

body.a11y-mode .grade-row .required-note {
  color: #000000;
}

body.a11y-mode .grades-table {
  border: 2px solid #000000;
  border-radius: 0;
  overflow: hidden;
  border-bottom: 0;
}

body.a11y-mode .grade-row {
  border-top: 1px solid #000000;
  border-radius: 0;
  margin: 0;
}

body.a11y-mode .grade-row:last-child {
  border-bottom: 2px solid #000000;
}

body.a11y-mode .add-subject {
  border: solid #000000;
  border-width: 0 2px 2px;
  border-radius: 0;
  margin-top: 0;
}

body.a11y-mode .add-subject.add-subject-odd,
body.a11y-mode .add-subject.add-subject-even {
  border-top: 0;
}

body.a11y-mode .grades-header {
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  border-bottom: 1px solid #000000;
  border-radius: 0;
}

body.a11y-mode .grades-header * {
  color: #ffffff;
}
body.a11y-mode .grade-row select,
body.a11y-mode .grade-row input,
body.a11y-mode .add-subject input {
  border-color: #000000;
  color: #000000;
  background-color: #ffffff;
}

body.a11y-mode .add-subject input::placeholder {
  color: #000000;
}

body.a11y-mode .grade-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 6px;
  padding-right: 38px;
}

body.a11y-mode .grade-row select:focus,
body.a11y-mode .grade-row input:focus,
body.a11y-mode .add-subject input:focus {
  border-color: #000000;
}

body.a11y-mode .btn {
  box-shadow: none;
}

body.a11y-mode .btn-primary {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

body.a11y-mode .btn-secondary {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

body.a11y-mode .grade-row .delete-btn {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

body.a11y-mode #add-subject-btn {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

body.a11y-mode .average-display {
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
}

body.a11y-mode .average-display * {
  color: #ffffff;
}

body.a11y-mode .prognosis,
body.a11y-mode .grade-row .result,
body.a11y-mode .add-subject {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

body.a11y-mode .prognosis * {
  color: #000000;
}

body.a11y-mode .notice-modal {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: none;
}

body.a11y-mode .notice-modal-card {
  border-top-color: #000000;
  box-shadow: none;
}

body.a11y-mode footer,
body.a11y-mode footer a {
  color: #000000;
}

body.a11y-mode footer {
  opacity: 1;
  transform: none;
}

body.a11y-mode footer .badges {
  display: flex;
  margin-top: -28px;
}

body.a11y-mode footer .badges img {
  display: none;
}

body.a11y-mode footer .badges .a11yproject-badge {
  display: inline-block;
}

body.a11y-mode footer .badges .a11yproject-badge img {
  display: inline-block;
  height: 40px;
  width: auto;
  filter: invert(1) brightness(0);
}

body.a11y-mode footer .badges .cc-license-badge {
  display: none;
}

body.a11y-mode footer .badges .cc-license-badge--docker {
  display: none;
}

body.a11y-mode .print-note {
  color: #000000;
}

body.a11y-mode .info-note {
  background: #e6e6e6;
  border-left: 4px solid #000000;
  color: #000000;
}

body.a11y-mode .info-card summary::before {
  color: #000000;
}

body.a11y-mode .info-reference {
  color: #000000 !important;
}

body.a11y-mode .info-reference a {
  color: #000000 !important;
}

.notice-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 8, 20, 0.72);
  backdrop-filter: blur(3px);
  z-index: 2000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease;
}

.notice-modal.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.notice-modal-card {
  background: #ffffff;
  color: var(--text-dark);
  width: min(640px, 92vw);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px 32px;
  border-top: 6px solid var(--primary-color);
  text-align: left;
}

.notice-modal-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.notice-modal-card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.notice-list {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 20px;
  padding-left: 22px;
}

.notice-list li {
  margin-bottom: 10px;
}

.notice-list li:last-child {
  margin-bottom: 0;
}

.notice-modal-card .btn {
  min-width: 240px;
  display: block;
  margin: 0;
}

.beta-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 160px;
  overflow: hidden;
  z-index: 900;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: none;
  animation: none;
}

.beta-banner-text {
  position: absolute;
  top: 24px;
  left: -56px;
  padding: 6px 64px;
  background: white;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transform: rotate(-45deg) translateY(0);
  box-shadow: var(--shadow);
  text-indent: 8px;
}

.language-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.language-switcher.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.language-hint {
  position: fixed;
  z-index: 998;
  pointer-events: none;
  opacity: 1;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.language-hint-arrow {
  display: inline-block;
  color: white;
  font-size: 24px;
  animation: blinkHint 1.5s ease-in-out 3;
  animation-fill-mode: forwards;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.language-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes blinkHint {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

.lang-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.25s ease;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.lang-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.lang-btn.is-active {
  box-shadow:
    0 0 0 2px var(--primary-color),
    0 8px 18px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}

.lang-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 63, 127, 0.3);
}

.a11y-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  padding: 0;
}

.a11y-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.a11y-btn.is-active {
  background: #000;
  color: white;
  box-shadow:
    0 0 0 2px #000,
    0 8px 18px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}

.a11y-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 63, 127, 0.3);
}

.a11y-icon {
  width: 20px;
  height: 20px;
  display: block;
  filter: invert(1) brightness(0);
}

.a11y-btn.is-active .a11y-icon {
  filter: none;
}

.lang-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
}

.silhouette {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.silhouette img {
  width: 100%;
  height: auto;
  display: block;
  filter: invert(1) brightness(2);
}

.plane {
  position: absolute;
  top: 50%;
  left: -20%;
  width: 80px;
  height: 60px;
  background: url('assets/images/background/plane.svg') no-repeat center/contain;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  animation: planeFly 84s linear infinite;
}

.containership {
  position: absolute;
  --ship-y: 0%;
  bottom: 0;
  right: 0;
  width: 633px;
  height: 362px;
  background: url('assets/images/background/ship.svg') no-repeat center
    bottom/contain;
  opacity: 1;
  filter: var(--ship-filter);
  pointer-events: none;
  z-index: 0;
  animation: shipSail 384s linear infinite;
  animation-delay: 5s;
  animation-fill-mode: backwards;
}

@keyframes planeFly {
  0% {
    transform: translate(0, -50%);
  }
  100% {
    transform: translate(140vw, -70vh);
  }
}

@keyframes shipSail {
  0% {
    transform: translate(100%, var(--ship-y));
  }
  100% {
    transform: translate(-160vw, var(--ship-y));
  }
}

@media (max-width: 640px) {
  .silhouette {
    width: 100%;
  }

  .plane {
    width: 60px;
    height: 45px;
    top: 50%;
  }

  .containership {
    width: 633px;
    height: 362px;
    bottom: 0;
    right: 0;
    --ship-y: 0%;
    display: none;
  }

  .language-switcher {
    gap: 6px;
    padding: 4px;
  }

  .lang-btn,
  .a11y-btn {
    width: 36px;
    height: 36px;
  }

  .lang-flag {
    width: 22px;
    height: 22px;
  }

  .a11y-icon {
    width: 16px;
    height: 16px;
  }
}

@keyframes horizonShift {
  0% {
    background-position: 50% 100%;
  }
  50% {
    background-position: 50% 82%;
  }
  100% {
    background-position: 50% 100%;
  }
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  color: white;
  margin-bottom: 30px;
  padding: 20px;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-break {
  display: inline;
}

header .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

main > .card {
  opacity: 0;
  transform: translateY(14px);
  animation: cardStaggerIn 0.6s ease forwards;
  animation-delay: calc(var(--card-stagger, 0) * 120ms);
}

body.no-card-anim main > .card {
  opacity: 1;
  transform: none;
  animation: none !important;
}

body.a11y-transition,
body.a11y-transition * {
  transition:
    color 0.5s ease,
    background-color 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    filter 0.5s ease;
}

main > .card:nth-of-type(1) {
  --card-stagger: 0;
}
main > .card:nth-of-type(2) {
  --card-stagger: 1;
}
main > .card:nth-of-type(3) {
  --card-stagger: 2;
}
main > .card:nth-of-type(4) {
  --card-stagger: 3;
}
main > .card:nth-of-type(5) {
  --card-stagger: 4;
}
main > .card:nth-of-type(6) {
  --card-stagger: 5;
}

.card:not(#calculator-card) {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.05);
}

.card:not(#calculator-card) h2 {
  color: var(--primary-dark);
  opacity: 0.9;
}

#calculator-card {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 63, 127, 0.16);
  transform: translateY(-2px);
}

.card::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 18px;
  border-radius: calc(var(--border-radius-lg) - 1px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.card h2 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

#calculator-card.calculator-compact {
  padding-bottom: 16px;
}

#calculator-card.calculator-compact .target-selection {
  margin-bottom: 8px;
}

.target-selection {
  margin-bottom: 20px;
}

.target-selection label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.target-selection select {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  padding-right: 48px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 9px;
}

.target-selection .select-marquee {
  position: relative;
}

.target-selection .select-marquee select {
  color: transparent;
}

.target-selection .select-marquee select:invalid {
  color: transparent;
}

.select-marquee-text {
  position: absolute;
  top: 50%;
  left: 15px;
  right: 48px;
  transform: translateY(-50%);
  white-space: nowrap;
  overflow: hidden;
  color: white;
  pointer-events: none;
}

.select-marquee-text.is-placeholder {
  opacity: 0.8;
}

.select-marquee-inner {
  display: inline-block;
  will-change: transform;
}

.select-marquee-text.is-marquee .select-marquee-inner {
  animation: marqueeScroll 8s linear infinite;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--marquee-distance)));
  }
}

.target-selection select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 63, 127, 0.1);
}

.target-selection select:invalid {
  color: rgba(255, 255, 255, 0.8);
}

.target-selection select option[disabled] {
  color: var(--text-muted);
}

.target-selection select option {
  color: var(--text-dark);
  background-color: #fff;
}

.hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding: 10px 15px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.grades-table {
  margin-bottom: 0;
}

.grades-header {
  display: grid;
  grid-template-columns: 2fr 1fr 40px;
  gap: 10px;
  padding: 12px 15px;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.grade-row {
  display: grid;
  grid-template-columns: 2fr 1fr 40px;
  gap: 10px;
  padding: 12px 15px;
  border-top: 1px solid var(--bg-light);
  border-bottom: 1px solid var(--bg-light);
  align-items: center;
  transition: background-color 0.3s;
}

.grade-row:last-child {
  border-bottom: none;
}

.grade-row:nth-child(odd) {
  background-color: #f1f3f5;
}

.grade-row:nth-child(even) {
  background-color: #e9ecef;
}

.grade-row:hover {
  background-color: #dde3ea;
}

.grade-row.status-green {
  background-color: rgba(40, 167, 69, 0.2);
  border-left: 4px solid var(--success-color);
}

.grade-row.status-green:nth-child(even) {
  background-color: rgba(40, 167, 69, 0.24);
}

.grade-row.status-yellow {
  background-color: rgba(255, 193, 7, 0.24);
  border-left: 4px solid var(--warning-color);
}

.grade-row.status-yellow:nth-child(even) {
  background-color: rgba(255, 193, 7, 0.28);
}

.grade-row.status-red {
  background-color: rgba(220, 53, 69, 0.2);
  border-left: 4px solid var(--danger-color);
}

.grade-row.status-red:nth-child(even) {
  background-color: rgba(220, 53, 69, 0.24);
}

.grade-row.status-green:hover {
  background-color: rgba(40, 167, 69, 0.32);
}

.grade-row.status-yellow:hover {
  background-color: rgba(255, 193, 7, 0.36);
}

.grade-row.status-red:hover {
  background-color: rgba(220, 53, 69, 0.32);
}

.grade-row .subject-name {
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.grade-row .subject-name.main-subject {
  color: var(--primary-color);
  font-weight: 600;
}

.grade-row .subject-name-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.grade-row .required-note {
  color: var(--danger-color);
  font-size: 0.7em;
  align-self: flex-start;
  transform: translateY(-0.25em);
  margin-left: 0;
}

.grade-row select,
.grade-row input {
  padding: 8px 10px;
  border: 2px solid var(--bg-light);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.3s;
}

.grade-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23333' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 6px;
  padding-right: 38px;
}

.grade-row select:focus,
.grade-row input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.grade-row .result {
  font-weight: 600;
  text-align: center;
  padding: 8px;
  border-radius: var(--border-radius);
  background: var(--bg-light);
}

.grade-row .delete-btn {
  width: 40px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.grade-row .delete-btn:hover {
  background: rgba(220, 53, 69, 0.2);
}

.grade-row .delete-btn-placeholder {
  width: 40px;
}

.add-subject {
  display: grid;
  grid-template-columns: 2fr 1fr 40px;
  gap: 10px;
  margin-bottom: 0;
  padding: 12px 15px;
  border-top: 1px solid var(--bg-light);
  border-bottom: 1px solid var(--bg-light);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.import-export {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.import-export-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.export-actions,
.import-print-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.import-export .btn {
  width: 100%;
  height: 52px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  font-size: 0.9rem;
}

.print-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
}

.print-action .btn {
  width: 100%;
  font-size: 0.9rem;
}

.print-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.print-action .print-note:first-of-type {
  margin-top: 6px;
}

.print-summary {
  display: none;
}

.print-block {
  margin-top: 16px;
}

.print-grade-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.print-grade-list li {
  display: flex;
  gap: 12px;
  padding: 2px 0;
}

.print-grade-subject,
.print-grade-value {
  display: inline-block;
}

.print-grade-value {
  margin-left: auto;
  text-align: right;
}

.print-average {
  margin-top: 10px;
  font-weight: 600;
}

.print-average span:last-child {
  float: right;
}

.print-separator {
  border: 0;
  border-top: 1px solid #000;
  margin: 8px 0 0;
}

.print-prognosis-card {
  margin-top: 0;
}

.print-page-break {
  break-after: page;
  page-break-after: always;
}

.print-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.print-line-break {
  flex-basis: 100%;
  height: 0;
}

.print-meta a {
  color: var(--primary-color);
}

.add-subject.add-subject-odd {
  background-color: #f1f3f5;
}

.add-subject.add-subject-even {
  background-color: #e9ecef;
}

.add-subject input {
  padding: 8px 10px;
  border: 2px solid var(--bg-light);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  grid-column: 1 / 3;
}

.add-subject input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.add-subject .btn {
  width: 40px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  padding: 12px 20px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn:focus-visible,
.delete-btn:focus-visible,
footer a:focus-visible,
.import-export a:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(0, 63, 127, 0.3);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #e0e0e0;
}

#add-subject-btn {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
}

#add-subject-btn:hover {
  background: rgba(40, 167, 69, 0.2);
}

.average-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--primary-color);
  color: white;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  font-size: 1.1rem;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.average-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.prognosis {
  padding: 20px;
  border-radius: var(--border-radius);
  background: var(--bg-light);
  color: var(--text-muted);
}

.prognosis-placeholder {
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.prognosis-success {
  background: rgba(40, 167, 69, 0.1);
  border: 2px solid var(--success-color);
}

.prognosis-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 2px solid var(--warning-color);
}

.prognosis-danger {
  background: rgba(220, 53, 69, 0.1);
  border: 2px solid var(--danger-color);
}

.prognosis h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prognosis-success h3 {
  color: var(--success-color);
}

.prognosis-warning h3 {
  color: #b38600;
}

.prognosis-danger h3 {
  color: var(--danger-color);
}

.prognosis p {
  margin-top: 12px;
  margin-bottom: 0;
}

.prognosis p:first-of-type {
  margin-top: 0;
}

.prognosis ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.prognosis li {
  margin-bottom: 4px;
}

.prognosis li:last-child {
  margin-bottom: 0;
}

.prognosis .direct-success-note {
  margin-top: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.prognosis .other-degrees {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.prognosis .direct-success-note strong,
.prognosis .other-degrees strong {
  color: var(--text-muted);
}

.sankey-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  margin-top: 0;
  margin-bottom: 12px;
}

.sankey-chart {
  width: 100%;
  height: 220px;
}

.sankey-empty {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

.legend-green {
  background: var(--success-color);
}

.legend-yellow {
  background: var(--warning-color);
}

.legend-red {
  background: var(--danger-color);
}

body.a11y-mode .legend-color {
  width: 36px;
  height: 12px;
  border-radius: 0;
  background: transparent;
  border: none;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 100% 12px;
}

body.a11y-mode .legend-green {
  background-image: linear-gradient(to bottom, #000000 0 4px, transparent 4px);
  background-repeat: no-repeat;
  background-size: 100% 12px;
  background-position: left center;
  transform: translateY(4px);
}

body.a11y-mode .legend-yellow {
  background-image: linear-gradient(
    to bottom,
    #000000 0 2px,
    transparent 2px 4px,
    #000000 4px 8px,
    transparent 8px
  );
  transform: translateY(2px);
}

body.a11y-mode .legend-red {
  background-image: linear-gradient(
    to bottom,
    #000000 0 2px,
    transparent 2px 3px,
    #000000 3px 5px,
    transparent 5px 6px,
    #000000 6px 10px,
    transparent 10px
  );
  transform: translateY(1px);
}

.info-card details {
  cursor: pointer;
}

.info-card summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card summary::-webkit-details-marker {
  display: none;
}

.info-card summary::before {
  content: '▶';
  font-size: 0.8rem;
  color: var(--primary-color);
  transition: transform 0.45s ease;
}

.info-card details[open] > summary::before {
  transform: rotate(90deg);
}

.info-card summary h2 {
  margin-bottom: 0;
  cursor: pointer;
}

.info-card .info-section {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.info-card .info-section:last-of-type {
  border-bottom: none;
  padding-bottom: 16px;
}

.info-card .info-section summary {
  gap: 8px;
}

.info-card .info-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.info-card .info-section-body {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    margin 0.45s ease;
}

.info-card details[open] > .info-section-body {
  max-height: 480px;
  opacity: 1;
  margin: 8px 0 2px;
}

.info-card > details > .info-content {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  transition:
    max-height 0.6s ease,
    opacity 0.4s ease,
    padding-top 0.6s ease;
}

.info-card > details[open] > .info-content {
  max-height: 2000px;
  opacity: 1;
  padding-top: 20px;
}

.info-content p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.info-content p.info-heading {
  margin-bottom: 0;
}

.info-content p.info-reference {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  text-align: right;
}

.info-content p.info-reference a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.info-content p + ul {
  margin-top: 0;
}

.info-content p:last-child {
  margin-bottom: 0;
}

.info-content ul {
  margin: 0 0 14px;
  padding-left: 30px;
}

.info-content ul li {
  font-size: 0.9rem;
}

.info-content ul li {
  margin-bottom: 0;
}

.info-content ul li:last-child {
  margin-bottom: 0;
}

.info-note {
  padding: 10px 15px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
  color: var(--text-muted);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.info-note ul {
  margin: 0;
}

.text-danger {
  color: var(--danger-color);
}

footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 20px 20px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(12px);
  animation: cardStaggerIn 0.6s ease forwards;
  animation-delay: calc(var(--footer-stagger, 6) * 120ms);
  transition: color 0.25s ease;
}

footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

footer a:hover {
  color: white;
}

footer p {
  margin: 0 0 36px;
}

.footer-break {
  display: inline;
}

footer .disclaimer {
  margin-top: 10px;
  font-size: 0.8rem;
  opacity: 0.8;
}

footer .badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  row-gap: 2px;
  margin-bottom: 15px;
}

footer .badges img {
  height: 20px;
}

.badge-break {
  flex-basis: 100%;
  height: 0;
}

.badge-break-desktop {
  flex-basis: 100%;
  height: 0;
}

.badge-break:not(.badge-break-desktop) + a {
  margin-top: 6px;
}

footer .badges .impressum-link {
  font-size: 0.8rem;
}

footer .badges .cc-license-badge {
  height: 40px;
  width: auto;
  opacity: 0.8;
}

footer .badges .a11yproject-badge {
  display: none;
}

footer .badges .cc-license-badge {
  margin-top: 8px;
}

footer .badges .cc-license-badge--docker {
  margin-left: 10px;
  height: 34px;
  position: relative;
  top: 10px;
}

footer .badges a:last-child {
  margin-bottom: 120px;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 10px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .title-break {
    display: block;
  }

  header .subtitle {
    font-size: 1rem;
  }

  footer .badges a:last-child {
    margin-bottom: 0;
  }

  .card {
    padding: 20px;
  }

  .grades-table {
    overflow-x: visible;
  }

  .grades-header,
  .grade-row {
    min-width: 0;
    grid-template-columns: 1fr 90px 44px;
  }

  .add-subject {
    flex-direction: column;
  }

  .legend {
    flex-direction: column;
    gap: 10px;
  }

  .footer-break {
    display: block;
  }

  .badge-break-desktop {
    display: none;
  }

  .import-export .btn {
    height: 60px;
    font-size: 0.85rem;
  }
}

body.a11y-mode .card h2,
body.a11y-mode .card:not(#calculator-card) h2,
body.a11y-mode .info-card summary h2 {
  color: #000000;
}

body.a11y-mode .card,
body.a11y-mode #calculator-card {
  border: 3px solid #000000 !important;
}

@media print {
  html,
  body {
    background: white !important;
    background-image: none !important;
    color: #000;
    animation: none;
  }

  * {
    color: #000 !important;
    text-shadow: none !important;
  }

  body,
  header,
  footer,
  .print-summary,
  .print-summary * {
    text-align: left;
    font-size: 1rem;
  }

  .print-summary h2,
  .print-summary h3 {
    font-weight: 600;
  }

  header {
    display: none;
  }

  header h1 {
    text-shadow: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
  }

  header .subtitle {
    color: #000 !important;
    opacity: 1 !important;
  }

  .print-summary h2,
  .print-summary h3 {
    text-align: left;
    font-size: 1.2rem;
  }

  header .title-break {
    display: inline;
  }

  .language-switcher,
  .language-hint,
  .beta-banner,
  .import-export,
  .print-action,
  .add-subject,
  .grades-table,
  .target-selection,
  .average-display,
  .legend-card,
  .info-card,
  #prognosis-card,
  #prognosis-sankey,
  #calculator-card,
  details,
  footer .badges,
  #granim-canvas,
  .plane,
  .silhouette,
  .containership {
    display: none;
  }

  #prognosis-card,
  #prognosis-sankey,
  #calculator-card {
    display: none !important;
  }

  .card {
    box-shadow: none !important;
    border: none !important;
    background: none !important;
  }

  .print-summary {
    display: block;
    color: #000;
  }

  .print-meta {
    column-gap: 4px;
    row-gap: 0;
    font-size: 0.8rem;
    margin-top: 2.4rem !important;
  }

  .print-meta,
  .print-meta * {
    font-size: 0.8rem !important;
  }

  footer {
    color: #000;
  }

  footer a {
    color: #000;
  }

  footer p {
    display: none;
  }

  footer {
    padding: 0 0 20px;
  }

  footer p {
    white-space: nowrap;
    margin: 0 0 16px;
  }

  footer .footer-break {
    display: none;
  }

  .print-page-break {
    break-after: auto;
    page-break-after: auto;
  }

  .print-block {
    margin-top: 8px;
  }

  .print-average {
    margin-top: 6px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grade-row {
  animation: fadeIn 0.3s ease;
}

@keyframes cardStaggerIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes betaStaggerIn {
  from {
    opacity: 0;
    transform: rotate(-45deg) translateY(12px);
  }
  to {
    opacity: 1;
    transform: rotate(-45deg) translateY(0);
  }
}

@keyframes betaPulse {
  0% {
    transform: rotate(-45deg) translateY(0) scale(1);
    box-shadow: var(--shadow);
  }
  50% {
    transform: rotate(-45deg) translateY(0) scale(1.08);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  }
  100% {
    transform: rotate(-45deg) translateY(0) scale(1);
    box-shadow: var(--shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  main > .card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  footer {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .beta-banner {
    opacity: 1;
    transform: rotate(-45deg);
    animation: none;
  }
}

@media print {
  body {
    background: white;
    padding: 0;
  }

  .container {
    max-width: 100%;
    padding: 20px;
  }

  .card {
    box-shadow: none !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    page-break-inside: avoid;
  }

  header {
    padding: 0;
  }

  .print-summary {
    padding: 0;
  }

  .add-subject,
  .delete-btn {
    display: none;
  }

  .print-prognosis-card {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    padding: 0;
    margin-top: 32px;
    border-radius: 0;
  }

  .print-prognosis-card.card {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
  }

  #print-prognosis ul {
    margin: 8px 0 0;
    padding-left: 22px;
    list-style-position: outside;
  }

  #print-prognosis h3 {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 6px;
  }

  #print-prognosis,
  #print-prognosis * {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    text-decoration-color: #000 !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }

  #print-prognosis .prognosis-icon {
    display: inline-block;
  }

  .print-prognosis-card h2 {
    display: none;
  }

  #print-prognosis li {
    margin-bottom: 4px;
  }

  #print-prognosis li:last-child {
    margin-bottom: 0;
  }
}
/* Alexander Henkes (2026) – Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) */
