/*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */

/**
 * 1. Change the default font family in all browsers (opinionated).
 * 2. Prevent adjustments of font size after orientation changes in IE and iOS.
 */

html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove the margin in all browsers (opinionated).
 */

body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */

/**
 * Add the correct display in IE 9-.
 * 1. Add the correct display in Edge, IE, and Firefox.
 * 2. Add the correct display in IE.
 */

article,
aside,
details, /* 1 */
figcaption,
figure,
footer,
header,
main, /* 2 */
menu,
nav,
section,
summary { /* 1 */
  display: block;
}

/**
 * Add the correct display in IE 9-.
 */

audio,
canvas,
progress,
video {
  display: inline-block;
}

/**
 * Add the correct display in iOS 4-7.
 */

audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Add the correct display in IE 10-.
 * 1. Add the correct display in IE.
 */

template, /* 1 */
[hidden] {
  display: none;
}

/* Links
   ========================================================================== */

/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 */

a {
  background-color: transparent; /* 1 */
  -webkit-text-decoration-skip: objects; /* 2 */
}

/**
 * Remove the outline on focused links when they are also active or hovered
 * in all browsers (opinionated).
 */

a:active,
a:hover {
  outline-width: 0;
}

/* Text-level semantics
   ========================================================================== */

/**
 * 1. Remove the bottom border in Firefox 39-.
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
 */

b,
strong {
  font-weight: inherit;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * Add the correct font style in Android 4.3-.
 */

dfn {
  font-style: italic;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Add the correct background and color in IE 9-.
 */

mark {
  background-color: #ff0;
  color: #000;
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10-.
 */

img {
  border-style: none;
}

/**
 * Hide the overflow in IE.
 */

svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
pre,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct margin in IE 8.
 */

figure {
  margin: 1em 40px;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/* Forms
   ========================================================================== */

/**
 * 1. Change font properties to `inherit` in all browsers (opinionated).
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
select,
textarea {
  font: inherit; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Restore the font weight unset by the previous rule.
 */

optgroup {
  font-weight: bold;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 *    controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */

button,
html [type="button"], /* 1 */
[type="reset"],
[type="submit"] {
  -webkit-appearance: button; /* 2 */
  appearance: button; /* 2 */
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Change the border, margin, and padding in all browsers (opinionated).
 */

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Remove the default vertical scrollbar in IE.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
 */

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Correct the text style of placeholders in Chrome, Edge, and Safari.
 */

::-webkit-input-placeholder {
  color: inherit;
  opacity: 0.54;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 300;
  src: local(''),
       url(/assets/Ubuntu-Light-10bece4eef1c62763b0d4c22bd555da4ea25e67eafe5cad921192ff007846f0d.ttf) format('truetype')
}
@font-face {
  font-family: 'Ubuntu';
  font-style: italic;
  font-weight: 300;
  src: local(''),
       font-url(/assets/Ubuntu-LightItalic-0680e73aeb85925c63512287b4af43aef48682ca794d81ccbc1e04db7896d143.ttf) format('truetype')
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       font-url(/assets/Ubuntu-Regular-f316dcdafb82cec91182cffbd73db0163c555942ca7800b1ff181abb4138ddfc.ttf) format('truetype')
}
@font-face {
  font-family: 'Ubuntu';
  font-style: italic;
  font-weight: 400;
  src: local(''),
       font-url(/assets/Ubuntu-Italic-d457c445c428f73943e930eb2bf00d996db288cfb95a9267b6c40311405c4cc7.ttf) format('truetype')
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 500;
  src: local(''),
       font-url(/assets/Ubuntu-Medium-db01d20d6957f22a33b16e76decfb391dea17f50a88f58fcbb55764690931a3e.ttf) format('truetype')
}
@font-face {
  font-family: 'Ubuntu';
  font-style: italic;
  font-weight: 500;
  src: local(''),
       font-url(/assets/Ubuntu-MediumItalic-d1b502c37dafaefb4891d86db5aaaeb10be7bd07f5ce690d5ace1751464c1208.ttf) format('truetype')
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  src: local(''),
       font-url(/assets/Ubuntu-Bold-89a0424c0be1b9ab6174889e04a7d23585fd54dd5a03d782355889bd620c9ad6.ttf) format('truetype')
}
@font-face {
  font-family: 'Ubuntu';
  font-style: italic;
  font-weight: 700;
  src: local(''),
       font-url(/assets/Ubuntu-BoldItalic-2b784cc5b0d4f6da06c479d858d3848d49fe6f8870b809846183d7123c059780.ttf) format('truetype')
}
:root {
    --desktop_content_max_width:730px;
    --text: #666;
    --text_dunkler: #333;
    --text_heller: #8f8f8f;
    --grau_hell:#d9d9d9;
    --grau_ganz_hell:#eee;
    --grau_table_bg:#ededed;
    --grau_table_line:#e5e5e5;
    --grau_button:#e6e6e6;
    --grau_button_mittel:#dbdbdb;
    --grau_button_dunkel:#c2c2c2;
    --grau_button_hover:#cfcfcf;
    --grau_button_dunkel_hover:#9e9e9e;
    --orange: #f68b1f;
    --pink: #ec0281;
    --pink_bg:rgba(236,2,129,.35);
    --pink_button:#ffd9ee;
    --pink_button_dunkel:#ec0281;
    --pink_button_hover:#ffa1d6;
    --pink_button_dunkel_hover:#cc0275;
    --cyan: #2daf9e;
    --metric_font: 14px;
    --metric_font_bold: 18px;
    --metric_line_height_bold: 27px;
    --metric_line_height: 21px;
    --stroke_width:2px;
    --stroke_color_highlight:#13a01f;
    --stroke-width: 2px;
}
html,
body {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
}
* {
  box-sizing: border-box;
}
main {
  position: relative;
  text-align: left;
  margin: 3rem auto;
  max-width: 90%;
  padding: 2rem 1rem;
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.2);
  img.logo {
    display: block;
    width: 90%;
    margin: 0 auto 3rem auto;
  }
}
@media (min-width: 768px) {
  main {
    padding: 3rem 3rem;
    max-width: 640px;
  }
}

form {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  div.form-group {
    padding: 0.5rem 0;
    &.empty {
      display: none;
    }
    label {
      display: block;
      font-weight: 700;
    }
    input[type="text"],
    input[type="password"],
    input[type="email"] {
      display: block;
      width: 100%;
    }
  }
  p {
    margin-left: 0;
  }
}
p.meta {
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5rem;
  a {
    font-weight: normal;
    text-decoration: none;
    margin: 0 1rem;
    &:hover {
      text-decoration: underline;
    }
  }
}
/*The basic styling of HTML elements*/
body {
  line-height: 1.4;
  font-size: 14px;
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  background-color: white;
  color: var(--text);
}

h1 {
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--cyan);
  border-bottom: 10px solid var(--grau_hell);
  margin: 0 0 1rem 0;
}

h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--orange);
  margin: 0;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text_dunkler);
  margin: 0;
}

hr {
  margin: 3rem 0;
  border-width: 1px 0 0 0;
  border-color: var(--grau_hell);
}

section {
  & > div.breadcrumbs {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

div.no-margin {
  margin: 0;
}

@media (min-width: 768px) {
  turbo-frame {
    table {
      margin-left: 1rem;
    }
  }
  section {
    & > p,
    & > ul,
    & > ol,
    & > table,
    & > form,
    &div.scrolltable {
      margin-left: 1rem;
    }

    & > div {
      margin-left: 1rem;

      &.fullwidth {
        margin-left: 0;
      }
    }

    & > div.breadcrumbs {
      margin-left: 0;
    }
  }
}

p.alert,
p.alert strong,
span.alert,
strong.alert,
a.alert,
label.alert {
  color: var(--pink);
  font-weight: 700;
}

p.for_button {
  margin-top: 2rem;
  margin-bottom: 2rem;
  line-height: 3rem;

  a.button {
    margin-right: 2rem;
  }
}

p.ckeckmark {
  line-height: 1.5rem;

  & > svg {
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: bottom;
  }
}

strong {
  font-weight: 700;
}

a {
  font-weight: 700;
  color: var(--text_dunkler);
  text-decoration: underline;

  &:hover {
    color: var(--orange);
  }
}

sup {
  color: var(--pink);
  font-weight: 700;
}

select {
  padding: 0.2rem;
}

form {
  button[type="submit"],
  input[type="submit"],
  input[type="text"] {
    margin-right: 1rem;
    border-radius: 0.3rem;
  }
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"] {
  border: 1px solid var(--text_heller);
  border-radius: 3px;
  padding: 0.1rem 0.2rem;
}

.input_search {
  position: relative;

  input[type="search"],
  input[type="number"] {
    width: 100%;
    border: 1px solid var(--text_heller);
    border-radius: 3px;
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    &:focus {
      outline: 0;
      border-color: var(--text_dunkler);
    }
  }

  svg.for_search_input {
    width: 1.8rem;
    height: 1.8rem;
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    fill: var(--text);
  }
}

input[type="submit"],
button,
a.button {
  background: var(--grau_button);
  background-image: linear-gradient(
    to bottom,
    var(--grau_button),
    var(--grau_button_dunkel)
  );
  border-radius: 0.3rem;
  box-shadow: 0.2rem 0.2rem 0.6rem var(--grau_button_mittel);
  color: black;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  border-width: 0;
  white-space: nowrap;

  &:focus {
    outline: 0;
  }

  &:hover,
  &:focus {
    background: var(--grau_button_hover);
    background-image: linear-gradient(
      to bottom,
      var(--grau_button_hover),
      var(--grau_button_dunkel_hover)
    );
  }

  &.alert {
    background: var(--pink_button);
    background-image: linear-gradient(
      to bottom,
      var(--pink_button),
      var(--pink_button_dunkel)
    );

    &:hover {
      background: var(--pink_button_hover);
      background-image: linear-gradient(
        to bottom,
        var(--pink_button_hover),
        var(--pink_button_dunkel_hover)
      );
    }
  }

  &.small {
    padding: 0.3rem 0.6rem;
    border-radius: 0.75rem;
  }
}

textarea {
  border: 1px solid var(--text_heller);
  border-radius: 3px;
  padding: 0.1rem 0.2rem;
  width: 100%;
  height: 8rem;
}

div.flash {
  text-align: left;
  padding: 0.7rem 1rem;
  background-color: var(--grau_hell);
  color: var(--text_dunkler);
  margin: 0 0 2rem 0;
  display: flex;
  align-items: center;

  svg {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: block;
    fill: var(--text_dunkler);
    margin-right: 1rem;
  }

  div.message {
    font-weight: 700;
    vertical-align: middle;
  }

  &.error {
    svg {
      fill: var(--pink);
    }

    div.message {
      color: var(--pink);
    }
  }

  &.trial {
    background-color: var(--cyan);
    color: white;

    svg {
      fill: white;
    }
  }

  &.expired,
  &.explosion {
    background-color: var(--pink);
    color: white;

    a {
      color: white;
      text-decoration: underline;
    }

    svg {
      fill: white;
    }
  }
}

.right {
  text-align: right;
}

.center {
  text-align: center;
}

.left {
  text-align: left;
}

@media (min-width: 768px) {
  main {
    div.flash {
      max-width: var(--desktop_content_max_width);
    }
  }
}
div.edit_links {
  background-color: var(--grau_hell);
  margin-left: 0;
  margin-top: 2rem;
  padding: 0.5rem 1rem;

  a {
    display: block;
    line-height: 2.5rem;

    svg {
      display: inline-block;
      width: 1.2rem;
      height: 1.2rem;
      fill: var(--text);
      margin-right: 0.6rem;
      vertical-align: middle;
    }

    &:hover,
    &.active {
      color: var(--orange);

      svg {
        fill: var(--orange);
      }
    }
  }
}

div.expandable {
  max-height: 3rem;
  overflow: hidden;
  position: relative;
  margin-left: 0;

  &.expanded {
    max-height: inherit;
  }

  div.plus,
  div.minus {
    color: var(--text_dunkler);
    user-select: none;
    font-weight: bold;
    position: absolute;
    top: 0.5rem;
    right: 0;
    display: inline-block;

    &:hover {
      cursor: pointer;
      color: var(--orange);
    }

    span {
      line-height: 1rem;
      top: -0.75rem;
      position: relative;
      padding-left: 0.25rem;
      display: none;
      pointer-events: none;
    }

    svg {
      pointer-events: none;
      display: inline-block;
      width: 2rem;
      height: 2rem;
      fill: var(--text);
    }
  }

  div.minus {
    display: none;
  }

  div.plus {
    display: inline-block;
  }

  &.expanded {
    div.minus {
      display: inline-block;
    }

    div.plus {
      display: none;
    }
  }
}

@media (min-width: 768px) {
  div.expandable {
    margin-left: 1rem;

    div.plus,
    div.minus {
      span {
        display: inline-block;
      }
    }
  }
}

div.goal_input {
  text-align: center;
  margin: 0.5rem 20%;

  div.inner_frame {
    border: 1px solid var(--grau_table_line);

    div.date {
      border-bottom: 1px solid var(--grau_table_line);
      font-size: 1rem;
      padding: 0.5rem;
    }

    div.day {
      display: flex;

      div {
        flex-grow: 1;
        font-size: 4.5rem;
        text-align: center;
        padding: 0.25rem;
        height: 100%;
        vertical-align: middle;
        user-select: none;
      }

      div.minus,
      div.plus {
        &:hover {
          background-color: var(--grau_table_bg);
        }
      }
    }
  }
}

div.goal_bar {
  width: calc(100% - 3rem);
  height: 3rem;
  color: white;
  background-color: var(--text_dunkler);
  position: relative;

  div.actual_bar {
    background-color: var(--orange);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    transition: width 0.7s;
  }

  div.text {
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0;
    right: 0;
    text-align: center;

    span {
      color: white;
      font-size: 2rem;
      line-height: 2rem;
      padding: 0 0.5rem;
      /*text-shadow: 1px 1px 2px var(--text_dunkler);*/
    }
  }
}

div.month_box {
  margin-left: 0;

  div.title {
    text-align: left;
    font-size: 1.6rem;
    padding: 0.5rem 0 0 0;
  }

  div.week {
    display: flex;

    div.weekday {
      flex-grow: 1;
      width: 14.3%;
      padding: 0.25rem;
      overflow: hidden;

      div.short {
        display: block;
      }

      div.long {
        display: none;
      }

      &.Sonntag {
        color: var(--pink);
      }
    }

    div.day {
      flex-grow: 1;
      width: 14.3%;
      text-align: center;
      position: relative;
      border: 1px solid var(--grau_table_line);
      height: 5rem;

      &.empty {
        border-width: 0px;

        &:hover {
          background-color: white;
        }
      }

      div.value {
        position: absolute;
        top: 1rem;
        transition: top 0.5s;
        bottom: 1rem;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 2rem;
        vertical-align: middle;
      }

      &.with_value {
        div.plus,
        div.minus {
          user-select: none;
          position: absolute;
          top: 0;
          bottom: 0;
          display: none;

          div {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            top: 2.5rem;
            color: white;
            text-align: center;
            font-size: 2.5rem;
            line-height: 2rem;
          }

          &:hover {
            div {
              background-color: var(--grau_button_dunkel) !important;
            }
          }
        }

        div.minus {
          left: 0;
          right: 50%;
        }

        div.plus {
          right: 0;
          left: 50%;
        }

        &:hover {
          cursor: pointer;

          div.day_desc {
            display: none;
          }

          div.day_number {
            opacity: 0.5;
          }

          div.value {
            top: 0;
          }

          div.plus,
          div.minus {
            display: block;

            div {
              background-color: var(--grau_table_line);
            }
          }
        }
      }

      div.day_number {
        position: absolute;
        top: 0;
        left: 0;
        font-size: 0.75rem;
        padding: 0.25rem;
      }

      &.Sonntag,
      &.public {
        div.day_number {
          color: var(--pink);
        }
      }

      div.day_desc {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        line-height: 1.1;
        padding: 0.2rem 0;
        font-size: 0.6rem;
        overflow: hidden;
        text-align: center;
      }

      &.public {
        div.day_desc {
          color: var(--pink);
        }
      }

      &.school {
        div.day_desc {
          color: var(--cyan);
        }
      }
    }
  }
}

@media (min-width: 768px) {
  div.month_box {
    margin-left: 1rem;

    div.title {
      font-size: 2rem;
      padding: 3rem 0 0.5rem 0;
    }

    div.week {
      display: flex;

      div.weekday {
        div.short {
          display: none;
        }

        div.long {
          display: block;
        }
      }
    }
  }
}

div.image_grid {
  display: flex;
  flex-wrap: wrap;

  div.image {
    display: inline-block;
    width: 10rem;
    height: 10rem;
    border: 1px solid var(--grau_button_dunkel);
    background-color: var(--grau_table_line);
    text-align: center;
    margin: 0.5rem;

    img {
      max-width: 100%;
      max-height: 100%;
    }
  }
}

form.formula_form {
  #formula_input {
    &.invalid {
      border-color: red;
      &:active,
      &:focus {
        outline: 1px solid red;
      }
    }
  }
}

div.file_select {
  border: 1px solid var(--grau_table_line);
  width: 100%;
  overflow-x: none;
  overflow-y: auto;
  max-height: 20rem;

  &.no_grid {
    border-width: 0;

    div.user {
      border-width: 0;
      padding: 0.25rem 0.25rem 0.25rem 0;

      input[type="checkbox"] {
        margin-left: 0.1rem;
      }
    }

    & > div {
      border-width: 0;
    }
  }

  &.no_scroll {
    max-height: inherit;
    overflow-y: none;
  }

  div {
    border-bottom: 1px solid var(--grau_table_line);
    padding: 0.5rem;

    &.chapter {
      font-weight: 600;
    }

    &.subchapter {
      padding-left: 1.5rem;
    }

    &.document,
    &.user {
      padding-left: 2.5rem;

      input[type="checkbox"] {
        display: inline-block;
        width: 1.2rem;
        height: 1.2rem;
        vertical-align: bottom;
        margin: 0 0.5rem;
      }

      label {
        display: inline-block;
      }

      svg {
        display: inline-block;
        width: 1rem;
        height: 1rem;
        fill: var(--text_dunkler);
        margin-right: 0.4rem;
        vertical-align: middle;
      }

      &:hover svg {
        fill: var(--orange);
      }
    }

    &.aufgabe {
      padding-left: 2.5rem;
      position: relative;

      input[type="checkbox"] {
        position: absolute;
        left: 0;
        display: inline-block;
        width: 1.2rem;
        height: 1.2rem;
        vertical-align: bottom;
        margin: 0 0.5rem;
      }
    }

    &.user {
      padding-left: 0.5rem;
    }

    &:last-child {
      border-bottom-width: 0px;
    }
  }
}

.w100 {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 768px) {
  table.w100 {
    width: calc(100% - 1rem);
  }
}

.with_tooltip {
  position: relative;

  &.kennzahlen_tooltip {
    position: absolute;
    right: 0;

    svg.tooltip_icon {
      width: 1.2em;
      height: 1.2em;
    }

    &:hover {
      cursor: pointer;
    }
  }

  svg.tooltip_icon {
    width: 1em;
    height: 1em;
    margin-left: 0.3em;
    vertical-align: middle;
    position: relative;
    z-index: 3;

    &:hover {
      fill: var(--orange);

      ~ div.tooltip {
        display: block;
      }
    }
  }

  div.tooltip {
    width: 350px;
    display: none;
    position: absolute;
    font-weight: normal;
    line-height: 1.4;
    font-size: 1.1em;
    left: 0;
    color: white;
    background-color: var(--orange);
    border: 1px solid white;
    box-shadow: 2px 2px 4px gray;
    padding: 0.5rem;
    z-index: 5;
  }
}

div.tooltip {
  width: 350px;
  position: absolute;
  font-weight: normal;
  line-height: 1.4;
  font-size: 1.1em;
  color: white;
  background-color: var(--orange);
  border: 1px solid white;
  box-shadow: 2px 2px 4px gray;
  padding: 0.5rem;
  z-index: 100;
}

table.grid {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-collapse: collapse;

  th,
  td {
    background-color: white;
    padding: 0.75rem;
    border: 1px solid var(--grau_hell);

    &.top {
      vertical-align: top;
    }

    &.left {
      text-align: left;
    }

    &.right {
      text-align: right;
    }

    &.center {
      text-align: center;
    }

    &.bold {
      color: var(--text_dunkler);
      font-weight: 600;
    }
    .float-right {
      float: right;
      margin: 0;
      input {
        margin: 0;
      }
    }
  }

  tr.not_own {
    td {
      a {
        font-weight: 400;
      }
    }
  }

  tr.overdue {
    td {
      background-color: var(--pink_bg);
    }
  }

  tr:first-child {
    th.orange {
      border-width: 0 0 1px 0;
      color: var(--orange);
      line-height: 1.5;
      text-align: center;
    }
  }

  tr {
    th {
      background-color: var(--grau_table_bg);
      text-align: left;
      vertical-align: top;
      font-weight: normal;
      color: var(--text_dunkler);
    }
  }
}

form {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;

  div.form-group {
    padding: 0.5rem 0;

    &.empty {
      display: none;
    }

    label {
      display: block;
      font-weight: 700;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    textarea,
    select {
      display: block;
      width: 90%;
    }

    &.inlinelabel {
      label {
        display: inline;
      }
    }
  }

  div.columnblock {
    display: block;
    width: 100%;
  }

  h3 {
    width: 100%;
    margin-top: 1.5rem;
  }

  p {
    display: block;
    margin: 0.25rem 0;
    width: 100%;

    input[type="checkbox"] {
      display: inline-block;
      vertical-align: baseline;
      margin: 0.2rem 0.2rem 0 0.5rem;
    }
  }
}

img.portrait {
  width: 60%;
  height: auto;
  border: 1px solid var(--grau_hell);
  border-radius: 2px;
}

@media (min-width: 768px) {
  form {
    display: flex;
    flex-wrap: wrap;

    div.form-group {
      width: 50%;
      padding-left: 0;

      &.empty {
        display: block;
      }

      &.full-width {
        width: 100%;

        input[type="text"],
        input[type="email"],
        input[type="password"],
        input[type="date"],
        textarea,
        select {
          width: 100%;
        }
      }
    }

    div.columnblock {
      width: 50%;
      padding-left: 0;
    }
  }

  div.two_columns {
    display: flex;
    flex-wrap: wrap;

    div.column {
      width: 50%;
      padding-left: 0;
      height: 100%;

      & > * {
        margin-left: 0;
        margin-right: 1rem;
      }
    }
  }
}

div.two_columns {
  form {
    div.form-group {
      width: 100% !important;
    }
  }
}
/*
 * This is a manifest file for public pages.
 * It will only include the styles from the files listed below.
 *






 */
