/* Anpassung des SimpleSAMLphp-Erscheinungsbildes an CALM-Booking.
   Ausgelagert in eine Datei, weil die Content-Security-Policy
   (style-src 'self') eingebettetes CSS verwirft.
   Eingebunden ueber modules/calmtheme/themes/calm/default/_head.twig */

:root {
    --calm-primary:      #0d6efd;
    --calm-primary-dark: #0a58ca;
    --calm-border:       #dee2e6;
    --calm-bg:           #f8f9fa;
    --calm-surface:      #ffffff;
    --calm-text:         #212529;
    --calm-muted:        #6c757d;
  }

  body, #layout {
    background: var(--calm-bg) !important;
    color: var(--calm-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }

  /* Kopfbereich: statt des roten SimpleSAMLphp-Balkens das CALM-Logo */
  #header {
    background: var(--calm-surface) !important;
    border-bottom: 1px solid var(--calm-border);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
  }
  #header #logo {
    background: url('https://webportale.ls.tum.de/calm-booking/Web/uploads/images/custom-logo.png')
                left center / contain no-repeat;
    height: 52px;
    width: 260px;
    max-width: 60vw;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
  }
  #header #logo span { display: none; }

  /* Inhaltsbereich als Karte, wie die Bootstrap-Oberflaeche von CALM-Booking */
  #content .wrap {
    background: var(--calm-surface);
    border: 1px solid var(--calm-border);
    border-radius: .5rem;
    padding: 1.75rem 2rem;
    margin: 2rem auto;
    max-width: 46rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.05);
  }
  #content h2 { margin-top: 0; font-size: 1.4rem; font-weight: 600; }
  #content p  { color: var(--calm-muted); }

  /* Auswahlseite: Optionen als klare Schaltflaechen untereinander */
  ul { list-style: none; padding-left: 0; }
  li.authsource { margin: .6rem 0; }
  .pure-button, input[type=submit] {
    background: var(--calm-primary) !important;
    color: #fff !important;
    border: 0;
    border-radius: .375rem;
    padding: .65rem 1.1rem;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background .15s ease-in-out;
  }
  .pure-button:hover, input[type=submit]:hover { background: var(--calm-primary-dark) !important; }
  .pure-button-active { outline: 3px solid rgba(13,110,253,.25); }

  /* Anmeldeformular */
  .pure-form input[type=text], .pure-form input[type=password] {
    border: 1px solid var(--calm-border);
    border-radius: .375rem;
    padding: .5rem .75rem;
    font-size: 1rem;
  }
  .pure-form input:focus {
    border-color: var(--calm-primary);
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.2);
    outline: none;
  }
  .message-box.error { border-left: 4px solid #dc3545; }
  .message-box.warning { border-left: 4px solid #ffc107; }

  /* Fussbereich entfaerben */
  #foot, #footer {
    background: var(--calm-surface) !important;
    border-top: 1px solid var(--calm-border);
    color: var(--calm-muted);
  }
  #foot a, #footer a { color: var(--calm-muted); }

/* Fussbereich: Abstand zwischen den Rechtslinks */
#footer .calm-sep { margin: 0 .75rem; opacity: .6; }
#footer .copyrights a { text-decoration: none; }
#footer .copyrights a:hover { text-decoration: underline; }
