/* Gemeinsames Bildschirm-Design der Kursbuchung. Wird nach allen anderen Stylesheets geladen.
   Gilt nur am Bildschirm: Tickets, Zahlscheine und Listen drucken unveraendert. */
@media screen {
  :root {
    --sb-grund: #f4f6f4; --sb-flaeche: #fff; --sb-text: #1d2a26; --sb-leise: #566660; --sb-linie: #d5ddd8;
    --sb-marke: #17624c; --sb-dunkel: #0f4a39; --sb-hell: #e3f1ec; --sb-kopf: #edf2ef;
    color-scheme: light;
  }
  html { background: var(--sb-grund); }
  body {
    margin: 0; padding: 1.1rem 1.4rem 2.5rem; background: var(--sb-grund); color: var(--sb-text);
    font: 16px/1.5 system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  }
  td, th, p, li, label, input, select, textarea, button { font-family: inherit; font-size: 1rem; }
  td, th { color: inherit; padding: .45rem .7rem; vertical-align: middle; }

  h1, h2, h3, h4, h5, h6 { font-family: inherit; color: var(--sb-dunkel); line-height: 1.25; }
  h1 { font-size: 1.55rem; margin: .2em 0 .5em; }
  h2 { font-size: 1.25rem; margin: .6em 0 .4em; }
  h3 { font-size: 1.08rem; margin: .5em 0 .3em; }
  h4, h5 { font-size: 1rem; }
  h6 { font-size: 1.3rem; }
  label { color: var(--sb-text); font-weight: 600; }

  a, a:link, a:visited, a:active { color: var(--sb-marke); font-family: inherit; font-size: inherit; text-decoration: none; }
  a:hover { color: var(--sb-dunkel); font-size: inherit; text-decoration: underline; }
  a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
    outline: 3px solid #e0a100; outline-offset: 2px;
  }

  .headertable { width: 100%; height: auto; margin: 0 0 1rem; border: 0; border-bottom: 2px solid var(--sb-marke); }
  .headertable td { padding: 0 0 .35rem; }
  .headertable h1 { margin: 0; }

  table { max-width: 100%; background: transparent; }
  table:has(> tbody > tr > td.tableline), table:has(> tr > td.tableline) {
    background: var(--sb-flaeche); border: 1px solid var(--sb-linie); border-radius: 8px;
    border-collapse: separate; border-spacing: 0; overflow: hidden; margin-bottom: 1rem;
  }
  .headertable, table table { border-radius: 0; }
  .tableline { border-bottom: 1px solid var(--sb-linie); }
  .tableSummeline { background: var(--sb-kopf); color: var(--sb-dunkel); border-bottom: 1px solid #b9c7c0; font-weight: 700; }
  tr:hover > td.tableline { background: #f6faf8; }
  tr:last-child > td.tableline { border-bottom: 0; }

  input:not([type=checkbox], [type=radio], [type=image], [type=hidden], [type=submit], [type=button], [type=reset]), select, textarea {
    max-width: 100%; min-height: 40px; padding: .35rem .6rem; color: var(--sb-text); background: #fff;
    border: 1px solid #93a39c; border-radius: 6px; box-sizing: border-box;
  }
  textarea { min-height: 84px; }
  input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--sb-marke); vertical-align: middle; }
  input[type=submit], input[type=button], input[type=reset], button {
    min-height: 40px; padding: .35rem 1.1rem; color: #fff; background: var(--sb-marke); font-weight: 600;
    border: 1px solid var(--sb-marke); border-radius: 6px; cursor: pointer;
  }
  input[type=submit]:hover, input[type=button]:hover, button:hover { background: var(--sb-dunkel); }
  input[type=reset] { color: var(--sb-dunkel); background: #fff; }
  img[id^=f_trigger] { width: 28px; height: 28px; vertical-align: middle; cursor: pointer; border-radius: 4px; }

  .kursleiter, .kursleiteroben { position: static; float: right; margin: 0 0 1rem 1rem; }
  .ComputerTab, .HobbyTab, .SportTab, .SpracheTab { background: var(--sb-flaeche); border-radius: 8px; border-collapse: separate; }
  a.Computer, a.Hobby, a.Sport, a.Sprache { font-size: inherit; }
  a.Computer:link, a.Computer:visited { color: #003fb3; font-size: inherit; }
  a.Hobby:link, a.Hobby:visited { color: #027000; font-size: inherit; }
  a.Sport:link, a.Sport:visited { color: #9f0004; font-size: inherit; }
  a.Sprache:link, a.Sprache:visited { color: #530189; font-size: inherit; }

  a.sb-aktion, a.sb-aktion:link, a.sb-aktion:visited {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 1px;
    color: var(--sb-marke); border-radius: 6px; text-decoration: none;
  }
  a.sb-aktion:hover { background: var(--sb-hell); color: var(--sb-dunkel); text-decoration: none; }
  a.sb-gefahr, a.sb-gefahr:link, a.sb-gefahr:visited { color: #a4262c; }
  a.sb-gefahr:hover { background: #fbe9ea; color: #7f1d22; }
  .sb-nurleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sb-springen, input + .sb-springen {
    position: fixed; top: .7rem; right: .9rem; z-index: 50; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; min-height: 44px; padding: 0; color: #fff; background: var(--sb-marke);
    border: 1px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); cursor: pointer;
  }
  .sb-springen[hidden] { display: none; }

  @media (max-width: 640px) {
    body { padding: .8rem .8rem 2rem; }
    td, th { padding: .4rem .45rem; }
    table { display: block; overflow-x: auto; }
    .headertable { display: table; }
    .kursleiter, .kursleiteroben { float: none; margin: 0 0 1rem; }
  }
}
