/*
  xxs 0px - 450px
  xs  450px
  s   600px 
*/

/* =================================== */
/* ============== FONTS ============== */
/* =================================== */

  /* roboto-condensed-300 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/roboto-condensed-v27-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* roboto-condensed-300italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto Condensed';
    font-style: italic;
    font-weight: 300;
    src: url('fonts/roboto-condensed-v27-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* roboto-900 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 900;
    src: url('fonts/roboto-v47-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* roboto-900italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 900;
    src: url('fonts/roboto-v47-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }

/* =================================== */
/* ============== COLORS ============= */
/* =================================== */
  :root {
    --color-white: #F4F4F4;
    --color-light-grey: #E9E2E2;
    --color-mid-grey: #DACECE;
    --color-grey: #726666;
    --color-black: #2B2A2A;
    --color-blue: #366E8C;
    --color-yellow: #CAB25E;

    --color-green-dark: #2c5236;        
    --color-green: #5E8C6A;
    --color-green-light: #cadfcf;     

    --color-red-dark:   #7a2222;   /* passend zu --color-green-dark */
    --color-red:        #b84a4a;   /* passend zu --color-green */
    --color-red-light:  #f5cccc;   /* passend zu --color-green-light */

    --color-lightboxbackdrop: #FFFFFF99;   


  --color-secondary-2-light: #FAC0BD;
  --color-secondary-2-20pc: #FF0D0020;
  --color-secondary-2-4: #B70900;

  }

/* =================================== */
/* ======= META INSTRUCTIONS ========= */
/* =================================== */

  @viewport {
    zoom: 1;
    width: device-width;
  }

/* =================================== */
/* ============== BODY =============== */
/* =================================== */
  body{
    font-family: 'Roboto Condensed';
    background-color: var(--color-white);
  }

  .inv{
    display: none !important;
  }

/* =================================== */
/* ============== MAIN =============== */
/* =================================== */
  main.ui.text.container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: center;
  }

  main.ui.text.container > div,
  main.ui.text.container > nav {  
    position: relative;
    background-color: var(--color-light-grey);
    position: relative;
    border-radius: 20px;
    padding: 40px 30px 30px 30px;
    margin-right: 20px;
    margin-left: 20px;
    flex-shrink: 0;
  }

  main.ui.text.container > div {
    width: 300px;
  }

  main.ui.text.container > div#pinboard,
  main.ui.text.container > div#task {
    width: 510px;
  }

  main.ui.text.container > div.active {
    background-color: var(--color-white);
    border: 3px solid var(--color-blue);
  }

  h3{
    color:var(--color-white);
    top:-28px;    
    left: 40px;
    font-size: 40px;
    position:absolute;
    font-family: 'Roboto';
    font-weight: 900;
    text-shadow:
      4px 0 0 var(--color-light-grey),
      -4px 0 0 var(--color-light-grey),
      0 4px 0 var(--color-light-grey),
      0 -4px 0 var(--color-light-grey),
      2px 2px 0 var(--color-light-grey),
      -2px 2px 0 var(--color-light-grey),
      2px -2px 0 var(--color-light-grey),
      -2px -2px 0 var(--color-light-grey);
  }

  main.ui.text.container > div.active h3{  
    text-shadow:
      4px 0 0 var(--color-blue),
      -4px 0 0 var(--color-blue),
      0 4px 0 var(--color-blue),
      0 -4px 0 var(--color-blue),
      2px 2px 0 var(--color-blue),
      -2px 2px 0 var(--color-blue),
      2px -2px 0 var(--color-blue),
      -2px -2px 0 var(--color-blue);
  }

/* =================================== */
/* ========== MAIN - APPNAV ========== */
/* =================================== */

  main.ui.text.container nav#appnav {  
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;   
  }

  nav#appnav div.navbutton,
  .actionbuttons div.navbutton {
    background-color: var(--color-blue);
    color: var(--color-white);
    height:65px;
    width:90px;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    float: left;
    margin: 10px; 
    cursor: pointer;   
  }

  nav#appnav div.navbutton svg,
  .actionbuttons div.navbutton svg {
    /* SVG in der 1fr-Zeile zentrieren */
    justify-self: center;
    align-self: center;
  }

  nav#appnav div.navbutton .navtext,
  .actionbuttons div.navbutton .navtext{
    width: 100%;
    text-align: center;
    background-color: var(--color-blue);
    color: var(--color-white);
    font-family: 'Roboto';
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.25px;
  }
  
  nav#appnav div.navbutton.secondary, 
  nav#appnav div.navbutton.secondary .navtext,
  .actionbuttons div.navbutton.secondary,
  .actionbuttons div.navbutton.secondary .navtext {
    background-color: var(--color-yellow);
  }

  nav#appnav div.navbutton.specialcolorgreen  , 
  nav#appnav div.navbutton.specialcolorgreen   .navtext,
  .actionbuttons div.navbutton.specialcolorgreen  ,
  .actionbuttons div.navbutton.specialcolorgreen   .navtext {
    background-color: var(--color-green);    
  }

  /* ============= Extension: Actionbuttons ============== */
  .actionbuttons.spread {
    /*background-color: var(--color-light-grey);*/
    justify-content: space-between;
    display: flex;
  }

  .actionbuttons.spread .navbutton {
    margin-right: 0px;
  }  

/* =================================== */
/* ============== LOGO =============== */
/* =================================== */
  #logobox {
    position: absolute;
    top: 0px;
    right: 0px;              
  }
  #logo{
    width: 130px;
    height: 105px;
    position: relative;
  }
  svg#logogfx {
    position: absolute;
    top: 0px;
    right: 0px;
    overflow: visible; /* Stellt sicher, dass der Kreis sichtbar ist, auch wenn er über den Rand des SVGs hinausgeht */
  }
  svg#logogfxcross{
    position: absolute;
    top: 29px;
    right: 26px;
  }
  #logotext{
    position:absolute;
    left: 0px;
    bottom: 28px;
    z-index: 10;
  }      
  #logotextthin{
    font-family: 'Roboto Condensed';
    font-weight: 300;
    font-size: 20px;
    color: var(--color-blue);
    margin-bottom:3px;
    line-height: 20px;        
  }
  #logotextthick{
    width: 40px;
    text-align: center;
    background-color: var(--color-blue);
    color: var(--color-white);
    font-family: 'Roboto';
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.25px;
  }  

/* =================================== */
/* ============ NAVIGATION =========== */
/* =================================== */      
  #headline {
    background-repeat: no-repeat;
    height: 105px;
    width: 100% !important;
    position: relative;
    background: linear-gradient(
      to right,
      transparent 0%,
      transparent calc(100% - 159px),
      var(--color-light-grey) calc(100% - 159px),
      var(--color-light-grey) 100%
    ),  
    linear-gradient(
      180deg,
      var(--color-light-grey) 0%,
      var(--color-light-grey) 66px,
      var(--color-blue) 66px,
      var(--color-blue) 67px,
      var(--color-light-grey) 67px
    );
    margin:0px;
  }    
  nav {
    position: absolute;
    bottom: 28px;
    margin-left: 28px;
    display: flex;
    flex-direction: row;    
  }
  .navbutton {
    width: 50px;
    height: 50px;
    margin-right: 50px;    
    display: grid;
    grid-template-rows: 1fr auto;
    color: var(--color-blue);
    cursor: pointer;    
  } 
  .navbutton svg {
    /* SVG in der 1fr-Zeile zentrieren */    
    justify-self: center;
    align-self: center;
    pointer-events: none; 
  }
  .navbutton div {
    pointer-events: none; 
  }  
  .navtext{
    grid-row: 2;
    width: 100%;
    text-align: center;
    background-color: var(--color-blue);
    color: var(--color-white);
    font-family: 'Roboto';
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.25px;
  }
  nav.rightnav {
    right: 130px;
  }
  .xs {
    display: none;
  }
  .freebutton {
    background-color: var(--color-blue);
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;    
    justify-content: center;
    cursor: pointer;
  }
  .freebutton svg {
    margin: 15px;
  }
  .freebutton .buttontext {
    text-align: left;
    color: var(--color-white);
    font-family: 'Roboto';
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.25px;
  }
  @media screen and (min-width:450px) {
    .xs {
      display: block;
    }
    .xs.navbutton {
      display: grid;
    }
    .xxs-only {
      display: none;
    }
  }

/* =================================== */
/* ============= LIGHTBOX ============ */
/* =================================== */

  #lightboxbackdrop {
    position:fixed;
    z-index:99;    
    width:100%;
    height:100%;
    background-color: var(--color-lightboxbackdrop);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #lightbox {
    background-color: transparent;
    border: 0;
    width:100%;
    height:100%;
    display:block;
    z-index:100;
    position: absolute;
    min-width: 292px;
    min-height: 292px;
    padding: 0;
  }

  .lightbox__frame {
    pointer-events: none;
  }

  dialog.lightbox > svg {
    position: absolute;
    z-index: 101;
    pointer-events: none;
  }

  dialog.lightbox > .button {
    position: absolute; 
    top: 10px;
    right: 7px;
    z-index: 103;
    width: 48px;
    height: 48px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }

  dialog.lightbox > .lightbox__content-area{
    position: relative;
    top: 22px;
    left: 10px;
    z-index: 102;
    width: calc( 100% - 20px );
    height: calc( 100% - 103px );
    display: flex;
    flex-direction: column;
  }

  dialog.lightbox > .lightbox__content-area > .lightbox__header {
    position: relative;
    left: 60px;
    width: calc( 100% - 160px );
    z-index: 103;    
    line-height: 36px;
    text-align: left;
    font-family: 'Roboto';
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 0.5px;
    color: var(--color-blue);
    margin-bottom: 21px;
    pointer-events: none;
  }  

  dialog.lightbox > .lightbox__content-area > .lightbox__content {
    overflow: auto;
    max-height: calc( 100% - 38px );
    z-index: 103;
  }

  .lightboxnav {
    display: flex;
    flex-direction: column;    
    position: relative;
    bottom: 0px;
    margin-left: 0px;
  }

  .lightboxnav .navbutton {
    display: flex;
    flex-direction: row;
    width: calc(100% - 30px);
    margin: 5px;
    height: 48px;
    border: 2px solid var(--color-blue);
    cursor: pointer;
  }

  .lightboxnav .navbutton .navtext {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 10px;
    pointer-events: none;
  }
  
  .lightboxnav .navbutton svg {
    width: 24px;
    height: 24px;
    margin: 12px;
    color: var(--color-blue);
    pointer-events: none;
  }

/* =================================== */
/* ============ PINNBOARD ============ */
/* =================================== */

  #coord, #coord8{
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    align-items: center;
  }
  .coordrow{
    display: flex;
  }
  main{
    height: calc(100% - 180px);
  }
  #cell11, #cell12, #cell21, #cell22, #cell811, #cell812, #cell813, #cell814, #cell821, #cell822, #cell823, #cell824, #cell831, #cell832, #cell833, #cell834, #cell841, #cell842, #cell843, #cell844 {
    width: 120px;
    height: 120px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: var(--color-grey);
    transition: width 0.4s ease-in-out,
                height 0.4s ease-in-out;
  }
  
  #cell11.active, #cell12.active, #cell21.active, #cell22.active, #cell811.active, #cell812.active, #cell813.active, #cell814.active, #cell821.active, #cell822.active, #cell823.active, #cell824.active, #cell831.active, #cell832.active, #cell833.active, #cell834.active, #cell841.active, #cell842.active, #cell843.active, #cell844.active {
    background-color: var(--color-white);
  }

  #cell11, #cell12, #cell21, #cell22 {
    cursor: pointer;
  }  
  #cell11, #cell21, #cell812, #cell822, #cell832, #cell842 {
    border-right: 2px solid var(--color-grey);
  }
  #cell11, #cell12, #cell821, #cell822, #cell823, #cell824 {
    border-bottom: 2px solid var(--color-grey);
    height:140px;
    padding-bottom:40px;
  }
  #cell11 svg, #cell12 svg, #cell21 svg, #cell22 svg {
    position: relative;
    z-index: 0;
    pointer-events: none; /* Klicks durchgehen lassen */
  }
  #cell811 svg, #cell812 svg, #cell813 svg, #cell814 svg, #cell821 svg, #cell822 svg, #cell823 svg, #cell824 svg, #cell831 svg, #cell832 svg, #cell833 svg, #cell834 svg, #cell841 svg, #cell842 svg, #cell843 svg, #cell844 svg {
    position: relative;
    z-index: 0;
    cursor: pointer;
  }  
  #cell11 .number, #cell12 .number, #cell21 .number, #cell22 .number, #cell811 .number, #cell812 .number, #cell813 .number, #cell814 .number, #cell821 .number, #cell822 .number, #cell823 .number, #cell824 .number, #cell831 .number, #cell832 .number, #cell833 .number, #cell834 .number, #cell841 .number, #cell842 .number, #cell843 .number, #cell844 .number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    font-size: 32px;
    font-family: 'Roboto';
    font-weight: 900;
    color: var(--color-grey);
    pointer-events: none; /* Klicks durchgehen lassen */
    transition: display 0.2s ease-in-out;
  }

  #cell821 .number, #cell822 .number, #cell823 .number, #cell824 .number {
    top: calc(50% - 10px);
  }

  .coordtoptext{
    position: absolute;
    top: -20px;
    left: 5px;
    transition: left 0.4s ease-in-out;
  }
  .coordlefttext{
    position: absolute;
    top: -25px;
    left: 0px;
  }
  .coordrighttext{
    position: absolute;
    top: -25px;
    right: 0px;
  }
  .coordbottomtext{
    position: absolute;
    bottom: -20px;
    left: 5px;
    transition: left 0.4s ease-in-out;        
  }
  .centered{
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
  .ui.toggle.checkbox label, .ui.checkbox label {
    color: var(--color-grey);
  }
    
/* =================================== */
/* ========== NEW TASK FORM ========== */
/* =================================== */

/* Grund-Layout 
.ui.form {
  max-width: 400px;
  margin: 1em auto;
  background: #ffffff;
  padding: 1.5em;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
} */

/* Feld-Label */
.ui.form .field > label, .ui.form > label {
  color: var(--color-dark-grey);
  font-family: 'Roboto';
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.25px;
  margin-bottom: 0.3em;
}

/* Eingabefelder “Titel” */
.ui.form input[type="text"], .ui.form .field textarea {
  background: #e0f7f2;
  border: 1px solid var(--color-grey) !important;
}

/* Details-Textarea */
.ui.form .field textarea {
  resize: vertical;
  min-height: 100px;
  padding: .8em;
}

/* Expand-Button im Textarea */
.ui.form .field .ui.action.input .button {
  background: var(--color-light-grey);
  border-left: 1px solid var(--color-grey) !important;
}

/* Dropdown Kategorie */
.ui.selection.dropdown{
  border: 1px solid var(--color-grey);
  padding-bottom: 9px;
  padding-top: 9px;
}

.ui.selection.dropdown > .dropdown.icon {
  background-color: var(--color-light-grey);
  border: 1px solid var(--color-grey);  
  color: var(--color-grey);  
  margin-right: 0px;
  margin-top: -1px;
  top: 0px;
  right: 0px;
}

.ui.selection.dropdown .default.text {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.ui.selection.dropdown .menu .item i.icon {
  margin-right: 0.5em;
}
.ui.selection.dropdown .menu .item:hover {
  background: #f0fdfb;
}

/* Inline-Felder: Kategorie + Schraubenschlüssel-Button */
.inline.fields .field {
  margin-bottom: 1em;
}
.inline.fields .field button.ui.icon.button {
  background: var(--color-light-grey);
  border: 1px solid var(--color-grey) !important;
  margin-left: 0.5em;
}

.field .ui.icon.button.category-action:not(.animated):not(.compact):not(.labeled) {
  padding-bottom: 10px;
  padding-top: 10px;
}

.ui.fluid.selection.dropdown .item svg,
.ui.fluid.selection.dropdown .text svg {
  top: 2px;
  left: -4px;
  position: relative;
}

#sliderurg {
  padding-top: 0px;
}

#sliderurg>.labels {
    top: 20px;
}

#sliderurg>.labels .label::after {
    content: " "; 
}

#sliderimp>.labels .label::after {
    content: " ";  
}

#labelimp, #labelurg {
  width: 100%;
  text-align:center;
}

.vertical-text {
  writing-mode: vertical-rl;   /* von oben nach unten */
  transform: rotate(180deg);   /* damit es von unten nach oben lesbar wird 
  height: 100%;
  display: flex;
  align-items: center;         /* vertikal mittig */
}

.ui.ButRight {               display: flex;     }
.ui.ButRight > .fluid.col {  flex: 1 1 auto;    }  /* Restbreite */
.ui.ButRight > .fixed.col {  
  flex: 0 0 45px;
  display: flex;
  justify-content: flex-end;  
}  /* fixe 45 px */

.ui.ButRight > .fixed.col > button{  
  margin-right: 0px;
}

#task > form > div:nth-child(4) > div > div:nth-child(1)

.ui.SliderGrid {
  display: flex;
  flex-direction: column;   
}
.ui.SliderGrid > .row1 {
  height:300px;
}
.ui.SliderGrid > .row > .fluid.col {
  flex: 1 1 auto;
}  /* Restbreite */
.ui.SliderGrid > .row > .fixed.col {  
  flex: 0 0 45px;
  display: flex;
  justify-content: flex-start;  
  height:100%
}  /* fixe 45 px */


.ui.icon.button.priority-action.fullheight  {
  height:100%;
}

/* Action-Button unten rechts (z.B. Löschen/Abbrechen) */
.ui.form .button.ui.icon.button {
  background: var(--color-light-grey);
  border: 1px solid var(--color-grey) !important; 
}

/* Entferne Fokus-Outline, setze eigenen Fokus */
.ui.form input:focus,
.ui.form textarea:focus,
.ui.form .ui.dropdown:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(54, 110, 140, 0.3) !important;
}

/* Responsive: auf engen Displays volle Breite */
@media (max-width: 480px) {
  .ui.form {
    padding: 1em;
  }
  .inline.fields .field {
    display: block !important;
    width: 100% !important;
  }
  .inline.fields .field button.ui.icon.button {
    width: 100%;
    margin: 0.5em 0 0 0;
  }
}

/* =================================== */
/* ============ TASK LIST ============ */
/* =================================== */

.ui.list .list>.item, .ui.list>.item, ol.ui.list li, ul.ui.list li {
    padding: 10px;
    line-height: 12px;
}

.ui.list .list>.item.active, 
.ui.list>.item.active, 
ol.ui.list li.active, 
ul.ui.list li.active {
    background-color: var(--color-white);
  }

.ui.relaxed.list:not(.horizontal)>.item:not(:first-child) {
    padding: 10px;
    line-height: 12px;
}
.ui.list .item .content .header {
    font-family: 'Roboto';
    font-weight: 900;
    cursor: text;
    color: var(--color-black);
}

.ui.divided.list>.item {
  border-top-color: var(--color-blue);
}

.padding {
  padding: 23px;
}

.ui.list>.item {
    display: flex !important;  
    align-items: center;
    cursor: pointer;
}
.ui.list>.item>svg.icon {
    flex: none;
    margin-right: 1em;
    display: block;
}
.ui.list>.item>.content {
    flex: 1 1 0;
    align-items: center;
    height: 30xp;
}

#catlist .item button,
#catlist .item input {
  margin-right: 0px;  
}

#catlist .item .fluid.col{
  padding-left: 5px;
  padding-right: 5px;  
}

/* =================================== */
/* =============== NAG =============== */
/* =================================== */

.ui.fixed.nags {
  z-index: 900;
}

.ui.nag.error {
  background: var(--color-red-light);
  box-shadow: 0 1px 2px 0 var(--color-red-light);
  color: var(--color-red-dark);
}

.ui.nag.error>.title {
  display: inline-block;
  margin: 0 0.5em;
  color: var(--color-red-dark);
  font-weight: 700;
}

.ui.nag.error>i.icon.close::before {
  color: var(--color-red-dark);  
}

.ui.nag.success {
  background: var(--color-green-light);
  box-shadow: 0 1px 2px 0 var(--color-green-light);
  color: var(--color-green-dark);
}

.ui.nag.success>.title {
  display: inline-block;
  margin: 0 0.5em;
  color: var(--color-green-dark);
  font-weight: 700;
}

.ui.nag.success>i.icon.close::before {
  color: var(--color-green-dark);  
}