html {
  position: relative;
  min-height: 100%;
  overscroll-behavior-y: contain;
}
body {
  margin-bottom: 60px;
  background-color: #e9ecef;
  overflow-x: hidden;
  color: #555;
}
body > .container {
  padding: 60px 15px 0;
}

html,
.fullscreen {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
}

.blink_me {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

a{
  text-decoration: none;
  color: #369;
}
a:hover{
  text-decoration: none;
  color: #264c72;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 500;
  line-height: 1.5;
}
.projekte h2,
.zeiterfassung h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1.5;
}
h2.accordion-header {
  margin-bottom: 0;
}

.small-header .h2 {
  margin-bottom: 0px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  padding: 5px 0;
}

.bg-white {
  background: #fff;
}

:focus, :focus-visible {
  border-color: #369 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

botton:focus-visible {
  border: 1px solid #264c72 !important;
}

button.accordion-button:focus, botton.accordion-button:focus-visible,
.btn-group button:focus, .btn-group botton:focus-visible{

}

.form-group {
  height: 90px;
}

.help-block {
  font-size: 12px;
}

#projekte_filter .btn-group button:focus {
  border: 1px solid transparent !important;
}

#termine_filter .btn-group button:focus {
  border: 1px solid transparent !important;
}

.verticalcut {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1; /* number of lines to show */
  line-height: 1;        /* fallback */
}

.small-header header {
  height: 65px;
}
header.projekt,
header.settings,
header.statusfilter,
header.statusfilterTermin,
header.termin {
  height: unset;
}
header {
  height: 80px;
  background-color: #fff;
  border: solid rgba(0, 0, 0, .15);
  border-width: 0 0 1px 0;
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
  overflow: hidden;
}
header .p-3 {
  padding: 15px 0 !important;
}
header .container {
  padding: 0 !important;
}
header .container .btn-group {
  width: 100%;
}
header .btn-group .btn {
  width: 33.33%;
  line-height: 16px;
  padding: 3px 20px;
}
header .btn-group.big .btn {
  line-height: 32px;
}
.e1-logo {
  max-width: 160px;
  height: auto;
  margin: 25px auto;
}

.main {
  margin-top: 80px;
  margin-bottom: 60px;
  padding-bottom: 40px;
}

.href-index,
.href-todo {
  cursor: pointer;
}

#todo,
#top-todo,
#top-zeiterfassung,
#top-mehr,
#vorherige,
#nicht-terminiert,
#zeiterfassung,
#zeiterfassung-gesamt,
#mehr {
  display: none;
}

.footer {
  position: fixed;
  bottom: 0;
  min-width: max-content;
  width: 100%;
  overflow: scroll;
  height: 60px;
  padding: 10px;
  background-color: #f5f5f5;
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0 0 0;
  box-shadow: 0 -0.125rem 0.25rem rgba(0,0,0,.075) !important;
  z-index: 1049;
}
.footer-icons {
  font-size: 30px;
}
.footer-links {
  display: block;
  font-size: 12px;
  cursor: pointer;
}
.footer span,
.footer span:hover {
  color: #2f4050;
  text-decoration: none;
}
.footer span.active i,
.footer span.active:hover i {
  color: #2f4050;
  padding-bottom: 3px;
  border-bottom: solid 4px #2f4050;
}

code {
  font-size: 80%;
}
.btn-check:active + .btn-outline-secondary:focus, .btn-check:checked + .btn-outline-secondary:focus, .btn-outline-secondary.active:focus, .btn-outline-secondary.dropdown-toggle.show:focus, .btn-outline-secondary:active:focus,
.btn-check:focus + .btn-outline-secondary, .btn-outline-secondary:focus {
  box-shadow: unset;
}
.btn-sm {
  padding: 7px 14px;
  border-radius: 0;
}
.btn-check:active + .btn-outline-secondary, .btn-check:checked + .btn-outline-secondary, .btn-outline-secondary.active, .btn-outline-secondary.dropdown-toggle.show, .btn-outline-secondary:active, .btn-outline-secondary:hover {
  color: #fff;
  background-color: #2f4050;
  border-color: #2f4050;
}
.btn-orange,
.btn-orange:hover {
  padding: 10px 14px;
  border-radius: 3px;
  background-color: #ff9c00;
  border: 1px solid #ff9c00;
  font-weight: 600;
  color: #fff;
  min-height: 46px;
}
.btn-blue {
  padding: 10px 14px;
  border-radius: 3px;
  background-color: #369;
  border: 1px solid #369;
  font-weight: 600;
  color: #fff;
  min-height: 46px;
}
.btn-blue:hover,
.btn-blue:focus {
  background-color: #264c72;
  border: 1px solid #264c72;
  color: #fff;
}
.dark-blue {
  color: #2f4050;
}
.orange {
  color: #ff9c00;
}
.blue {
  color: #369;
}

.login-logo {
  max-height: 100px;
  max-width: 230px;
  height: auto;
}

.form-control {
  color: #555;
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid #ced4da;
}
textarea {
  color: #555;
  border: 1px solid #ced4da;
  border-radius: 3px;
  padding: 5px 10px;
}
textarea.neue-notiz {
  width: 100%;
  height: 320px;
}
textarea.neuanlage_beschreibung {
  width: 100%;
  height: 200px;
}
textarea:focus {
  color: #212529;
}
.text-left {
  text-align: left;
}
.text-lright {
  text-align: right;
}
.border-primary {
  border: solid rgba(0, 0, 0, .15) !important;
  border-width: 0 0 1px 0 !important;
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;

}
.card {
  border-radius: 0;
}
.card a,
.card a:hover,
.card a:active,
.card a:focus {
  color: unset;
  text-decoration: unset;
}
.card-header {
  padding: .5rem 1rem;
  margin-bottom: 0;
  background-color: #369;
  font-weight: 600;
  color: #fff;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,.125);
}
.card-header:first-child {
  border-radius: 0;
}
.back {
  margin: 8px -15px 0px 0px;
  font-size: 27px;
  float: left !important;
}
.back.orange a,
.back.orange a:hover {
  color: #ff9c00;
}

.headline_todo_custom {
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 24.15px;
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.6;
  margin-right: -3.5px;
}

.headline_todo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 38px;
  font-size: 24.15px;
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.3;
  margin-right: -3.5px;
}

.headline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 30px;
  height: 38px;
  line-height: 20px;
  font-size: 17px;
}

#accordionProjekte .accordion-button:not(.collapsed)::after {
  transform: rotate( -90deg );
}
.projekt_question {
  color: #ffe936;
  margin-right: 15px;
  font-size: 24px;
}
.projekt_done {
  color: #fff;
  margin-right: 15px;
  font-size: 24px;
}
.projekt_done_green {
  color: #4aff36;
  margin-right: 15px;
  font-size: 24px;
}
img.fotos {
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 3px;
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 10px;
  cursor: pointer;
}

.delfoto_div {
  position: relative;
  right: 0px;
  top: 40px;
}
.delfoto {
  padding: 12px;
  background: #fff;
  cursor: pointer;
  float: right;
}

p.card-text,
p.card-text a {
    color: #555;
}

.accordion-item {
  margin-bottom: 15px;
  background-color: unset !important;
  border: unset !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 0 2px #0009;
}
.accordion-button:focus {

  border-color: #369;
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #fff;
  background-color: #369;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.no_background::after{
  background-image: none!important;
}

.accordion-body {
  position:relative;
  overflow:hidden;
}

@media (min-width: 769px) {
  .container, .container-lg, .container-md, .container-sm {
    max-width: 738px;
  }
}

@media (max-width: 768px) {
  .container, .container-lg, .container-md, .container-sm {
    max-width: 100%;
  }
  .back {
  margin: 1px -15px 0px 0px;
  font-size: 25px;
  float: left !important;
  }
}

/** Animations **/
.slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
}

.slide.ng-enter {
  left: 100%;
}
.slide.ng-enter-active {
  left: 0;
}
.slide.ng-leave {
  left: 0;
}
.slide.ng-leave-active {
  left: -100%;
}

  /**ZEITERFASSUNG */
.zeitanzeige {
  font-size: 30px;
}


/** LOGIN **/
.login-form {
  margin-top: 50px;
}

/*** LOADING **/

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: grid;
  place-items: center;
  overflow: hidden;        /* Pseudo-Element sauber beschneiden */
  background-color: rgba(233,236,239,0.7); /* durchschauen erlaubt */
  /* optional: Klicks blockieren oder durchlassen */
  /* pointer-events: none;  // wenn man durchklicken soll */
}

.loading-screen div {
  z-index: 99999;
  font-size: large;
  font-weight: 600;
  color: #313030;
}

.loading-screen::before {
  content: "";
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: -120%;
  width: 180%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(233,236,239,0)   0%,
    rgba(233,236,239,0.0) 35%,
    rgba(233,236,239,0.6) 45%,
    rgba(233,236,239,0.6) 55%,
    rgba(233,236,239,0.0) 65%,
    rgba(233,236,239,0)   100%
  );
  will-change: transform;
  transform: translate3d(0,0,0);
  animation: shimmer-move 1.2s infinite;
  animation-timing-function: cubic-bezier(0.6, 0.2, 0.7, 0.1);
}

@keyframes shimmer-move {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(100%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .loading-screen::before { animation: none; }
}
.loading-icon {
  z-index: 9998;
}
.loading {
  filter:blur(4px);
}

.status_filter {
  float: right;
  margin-top: 3px;
  font-size: 28px;
  line-height: 28px;
  cursor: pointer;
}

.neuanlage_projekt {
  float: left;
  margin-top: 3px;
  font-size: 28px;
  line-height: 28px;
  cursor: pointer;
}

.filter_anzahl {
  position: absolute;
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 10px;
  background-color: #000;
  font-size: 12px;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
  margin-top: -30px;
  margin-left: -10px;
  z-index: 10;
}

.notizentop_left {
  float: left;
  width: calc(100% - 90px);
}
.notizentop_right {
  float: left;
  text-align: right;
  width: 90px;
  padding: 0 10px;
  font-size: 19px;
  white-space: nowrap;
}

.accordion-button {
  border: 1px solid #fff;
  color: #555;
}
.accordion-button .notizentop_right i {
  color: #fff;
  padding: 10px;
}
.accordion-button.collapsed .notizentop_right i {
  color: #369;
}

.control-group {
  padding: 15px 0 15px 15px;
}
.control {
    font-family: arial;
    display: block;
    position: relative;
    margin: 0 15px 8px 0;
    padding: 4px 0 8px 35px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 16px;
}
    .control input {
        position: absolute;
        z-index: -1;
        opacity: 0;
    }
.control_indicator {
    position: absolute;
    top: 3px;
    left: 0;
    height: 24px;
    width: 24px;
    background: #e6e6e6;
    border: 0px solid #336699;
    border-radius: 0px;
}
.control:hover input ~ .control_indicator,
.control input:focus ~ .control_indicator {
    background: #cccccc;
}

.control input:checked ~ .control_indicator {
    background: #336699;
}
.control:hover input:not([disabled]):checked ~ .control_indicator,
.control input:checked:focus ~ .control_indicator {
    background: #0e6647d;
}
.control input:disabled ~ .control_indicator {
    background: #e6e6e6;
    opacity: 0.6;
    pointer-events: none;
}
.control_indicator:after {
    box-sizing: unset;
    content: '';
    position: absolute;
    display: none;
}
.control input:checked ~ .control_indicator:after {
    display: block;
}
.control-checkbox .control_indicator:after {
    left: 8px;
    top: 3px;
    width: 5px;
    height: 12px;
    border: solid #ffffff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.control-checkbox input:disabled ~ .control_indicator:after {
    border-color: #7b7b7b;
}
.control-checkbox .control_indicator::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 4.5rem;
    height: 4.5rem;
    margin-left: -1.3rem;
    margin-top: -1.3rem;
    background: #336699;
    border-radius: 3rem;
    opacity: 0.6;
    z-index: 99999;
    transform: scale(0);
}
@keyframes s-ripple {
    0% {
        transform: scale(0);
    }
    20% {
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}
@keyframes s-ripple-dup {
   0% {
       transform: scale(0);
    }
   30% {
        transform: scale(1);
    }
    60% {
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}
.control-checkbox input + .control_indicator::before {
    animation: s-ripple 250ms ease-out;
}
.control-checkbox input:checked + .control_indicator::before {
    animation-name: s-ripple-dup;
}

.btn-close {
    position: absolute;
    right: 0px;
    top: 0px;
    font-size: 26px;
    box-sizing: content-box;
    width: 30px;
    height: 30px;
    padding: 0.25em 0.25em;
    color: #555;
    background-color: #fff;
    border: 0;
    border-radius: 0;
    opacity: .9;
    z-index: 99;
    margin: 10px;
}
.modal {
    z-index: 999999;
}

.modal-dialog {
   margin: 0;
}

.modal-body {
  padding: unset;
}

.modal-content {
  border: 0;
}

.carousel-inner {
  top: 50%;
  transform: translateY(-50%);
}

.modal-img {
    max-height: 100vh;
    width: auto;
    margin: 0 auto;
    max-width: 100%;
    height: 100%;
    padding: 10px;
}

.notiz_status {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20%;
  z-index: -1;
  border-top-left-radius: 15px;
  border-top-right-radius: calc(.25rem - 1px);
  border-bottom-right-radius: 15px;
  border: 15px solid;
}


@media (min-width: 576px) {
   .modal-dialog {
      max-width: 100%;
      margin: 0;
    }
}

.versteckt {
  display: none;
}
.angezeigt {
  display: block;
}

.dynamic_name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Optional: modernisiertes Aussehen für Date-Feld */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
  cursor: pointer;
}

input {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
}

.teleport-placeholder {
  /*visibility: hidden;*/
  /*display: none;*/
}

.teleport-fixed {
  position: fixed;
  left: 0; top: 0;
  width: 0; height: auto;
  box-sizing: border-box;
  border: gray 1px solid;
}

.teleport-target {
  width: 100%;
  height: 320px;
  border-radius: 8px;

  background-color: #e9ecef;
  background-image: linear-gradient(
    90deg,
    #e9ecef 0%,
    #f8f9fa 20%,
    #e9ecef 40%
  );
  background-size: 200% 100%;

  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.swipe-container {
  position: relative;
  overflow: hidden;
}

.swipe-bg {
  position: absolute;
  inset: 0;
  background: #d32f2f;          /* Rot */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-end;     /* rechtsbündig */
  padding-right: 16px;
  font-weight: 600;
  pointer-events: none;          /* klickt nicht den Hintergrund */
  user-select: none;
}

.swipe-foreground {
  position: relative;
  display: block;                /* damit der <a>-Block vollflächig ist */
  background: transparent;       /* eigentlicher Inhalt hat eigene Farben */
  transform: translate3d(0,0,0); /* wird von der Directive verändert */
}
