
#pic_info {
  min-width:    5px;
      width:    5vw;
  max-width:    50px;
}

#pic_sprache {
  min-width:    5px;
      width:    5vw;
  max-width:    50px;
}

.login form label, .register form label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 12%;
  height: 50px;
  background-color: #3274d6;
  color: #ffffff;
}

.login form, .register form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
}

.login form input[type="password"], .login form input[type="text"], .login form input[type="email"], .register form input[type="password"], .register form input[type="text"], .register form input[type="email"] {
  width: 80%;
  height: 50px;
  border: 1px solid #dee0e4;
  margin-bottom: 20px;
  padding: 0 15px;
}


* {
  box-sizing: border-box;
  font-family: 'Verdana', sans-serif;
}

body {
  background-color: #0a1f44;
  margin: 0;
}

.login, .register {
  width: 400px;
  background-color: #ffffff;
  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  margin: 100px auto;
}

.login h1, .register h1 {
  text-align: center;
  color: #5b6574;
  font-size: 24px;
  padding: 20px 0 20px 0;
  border-bottom: 1px solid #dee0e4;
}

.login .links, .register .links {
  display: flex;
  padding: 0 15px;
}

.login .links a, .register .links a {
  color: #adb2ba;
  text-decoration: none;
  display: inline-flex;
  padding: 0 10px 10px 10px;
  font-weight: bold;
}
a {
  color: #5b6574;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  font-family: 'Verdana', sans-serif;
}

a:hover {
  color: #1674ED;
  text-decoration: unterline;
}
.login .links a:hover, .register .links a:hover {
  color: #9da3ac;
}

.login .links a.active, .register .links a.active {
  border-bottom: 3px solid #3274d6;
  color: #3274d6;
}


.login form input[type="submit"], .register form input[type="submit"] {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  background-color: #3274d6;
  border: 0;
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.2s;
  border-radius: 0;
  -webkit-border-radius: 0;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.login form input[type="submit"]:hover, .register form input[type="submit"]:hover {
  background-color: #2868c7;
  transition: background-color 0.2s;
}

.login form #rememberme, .register form #rememberme {
  font-size: 12px;
  position: relative;
  width: 50%;
  height: auto;
  margin-right: 50%;
  padding: 5px 20px;
  background-color: transparent;
  color: #000;
  justify-content: flex-start;
}

.login form .pwreset {
  font-size: 12px;
  width: 100%;
  height: auto;
  padding: 5px 20px;
  background-color: transparent;
  color: #000;
}
.login form .pwreset:hover {
  color: #666;
  text-decoration: underline;
  cursor: pointer;
}

.login form #rememberme input, .register form #rememberme input {
  transform: scale(1.3);
  margin-right: 7px;
}

.login form .msg, .register form .msg {
  padding: 10px 20px;
  width: 100%;
  font-size: 12px;
}

.login form .msg2, .register form .msg2 {
  padding: 10px 20px;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
}

.login form > a, .register form > a {
  text-decoration: none;
  color: #5b6574;
  width: 100%;
  padding: 5px 20px;
}

.login form > a:hover, .register form > a:hover {
  color: #394049;
}

.navtop {
  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.1);
  background-color: #fff;
  height: 50px;
  width: 100%;
  border: 0;
}

.navtop div {
  display: flex;
  margin: 0 auto 0 1%;
  width: 960px;
  height: 100%;
}

.navtop div h1, .navtop div a {
  display: inline-flex;
  align-items: center;
}
.navtop div h1 img {
  margin: 24px;
  width: 240px;
}

.navtop div h1 {
  flex: 1;
  font-size: 16px;
  padding: 0;
  margin: 0;
  color: #003366;
}

.navtop div a {
  font-family: 'Raleway', 'Verdana';
  font-size: 12px;
  margin: 0 0 0 10px;
  padding: 20px 15px 5px;
  text-decoration: none;
  color: #003366;
  text-transform: capitalize;
  border-top: 1px #003366 solid;
}

.navtop div a i {
  padding: 2px 8px 0 0;
}

.navtop div a:hover {
  border-top: 5px #003366 solid;
  padding: 16px 15px 5px;
}

.navtop div a:active {
  border-color: #000;
  color: #000;
}

body.loggedin {
  background-color: #def;
}

.content {
  width: 1000px;
  margin: 0 auto;
}

.content h2 {
  margin: 0;
  padding: 30px 0 10px;
  font-size: 20px;
  font-weight: normal;
  border-bottom: 1px solid #abc;
  color: #246;
}

.content .block {
  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.1);
  margin: 25px 0;
  padding: 25px;
  background-color: #fff;
}

.content .block table {
  width: 100%;
}

.content .block table td {
  overflow: hidden;
}

.content .block table td:first-child {
  font-weight: bold;
  color: #4a536e;
}

.content .block table td:last-child {
  word-break: break-all;
}

.content .block p {
  padding: 5px;
  margin: 0 0 10px 0;
}

.content.profile form label {
  display: block;
  padding: 10px 0 5px 0;
}

.content.profile form input[type="text"],  .content.profile form input[type="password"],
.content.profile form input[type="email"], .content.profile form select {
  padding: 10px;
  width: 250px;
  border: 1px solid #ddd;
}

.content.profile .profile-btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  background-color: #3274d6;
  margin: 15px 5px 0 0;
  padding: 10px 15px;
  border-radius: 0;
  -webkit-border-radius: 0;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.content .year {
  font-size: 16px;
}

.content .year_title {
  border-bottom: 1px solid #246;
  text-align: center;
  padding: 5px 0;
  margin: 0 66% 0 -5px;
  font-size: 16px;
  user-select: none;
  color: #246;
}
.content .year_title:hover {
  border-bottom: 4px solid #246;
  padding: 5px 0 2px;
  background: #f2f4f6;
  cursor: pointer;
}
.content .year_content {
  margin: 0 10px 10px 10px;
  font-size: 14px;
}
.content .month {
  font-size: 12px;
  margin: 2px 0 0 0;
}
.content .month_title {
  color: #246;
  padding: 5px 20px;
  margin: 0;
  font-size: 14px;
  user-select: none;
}
.content .month_title:hover {
  border-left: 4px solid #246;
  padding: 5px 20px 5px 18px;
  background: #f2f4f6;
  cursor: pointer;
}
.content .month_title .month_error {
  background: #eaa !important;
  color: #611 !important;
  padding: 0;
  margin: 0 0 0 20px;
  font-size: 13px;
  user-select: none;
  border-radius: 5px;
}
.month_content {
  background: #f2f4f6;
  border: solid 1px #fafcfe;
}
.month_content table {
  table-layout: fixed;

  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.1);
}
.month_content table tr td, .month_content table tr th {
  max-width: 14%;
  vertical-align: top;
  padding: 0px;
}
.month_content table tr th {
  font-weight: normal;
  font-size: 12px;
  padding: 7px 1px;
  color: #246;
  text-overflow: ellipsis;
  overflow: hidden;
  user-select: none;
}
.content .day {
  color: #246;
  padding: 0;
  margin: auto;
  word-break: normal;
  border-radius: 10px;
  font-size: 12px;
  text-align: center;
  border: solid 1px #e2e4e6;
  background: #fff;
}
.content .day_number {
  color: #246;
  font-size: 12px;
  min-width: 12px;
  max-width: 12px;
  height: 8px;
  text-align: right;
  white-space: nowrap;
  overflow: visible;
  margin: 0;
  padding: 0;
  font-weight: bold;
  user-select: none;
}
.content .day_content {
  display: flex;
  width: calc(100%);
  margin: 2px;
  padding: 0;
  gap: 2px;
  flex-wrap: wrap;
  font-size: 12px;
}
.content .day_add {
  width: 20px;
  margin: 0 8px 2px auto;
  padding: 0;
  font-weight: bold;
  background: #d2d4d6;
  text-align: center;
  border-radius: 10px;
  font-size: 14px;
  border: 0;
  order: 9999;
  user-select: none;
}
.content .day_add:hover, .content .day_add:focus {
  background: #e2e4e6;
  cursor: pointer;
  border: 0;
}
.content .time {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-weight: normal;
  order: 6666;
  padding: 0;
  margin: 0 4px 0 8px;
  width: calc(100% - 16px);
  text-align: center;
  border-radius: 5px;
}
.content .time .type {
  width: 20px;
  font-size: 14px;
  font-weight: bold;
  background: #c2c4c6;
  text-align: left;
  border-radius: 10px;
  margin: 0;
  padding: 0 0 0 5px;
  border: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-indent: 0px;
  text-overflow: '';
  user-select: none;
}
@-moz-document url-prefix() { 
  .content .time .type {
    padding: 0 0 0 1px;
  }
}
.content .time .type * {
  padding: 0;
  margin: 0;
  border: 0;
  font-size: 14px;
  font-weight: normal;
}
.content .time .type:focus, .content .time .type:hover {
  background: #d2d4d6;
  cursor: pointer;
  border: 0;
}
.content .time .start, .content .time .end {
  margin: 0 1px;
  padding: 0;
  border: 0;
  font-size: 12px;
  width: 42px;
  border-radius: 10px;
  text-align: center;
  background: none;
  color: #246;
}
.error {
  background: #eaa !important;
  color: #611 !important;
  border-radius: 5px;
}
.content .time .preset, .content .time .preset {
  color: #ccc;
}
.content .time .start {
  border-right: 1px #ccc solid;
}
.content .time .end {
  border-left: 1px #ccc solid;
}
.content .time .start:focus, .content .time .end:focus, .content .time .start:hover, .content .time .end:hover {
  background: #fff;
  cursor: pointer;
  border: 0;
}
.content .time .start::placeholder, .content .time .end::placeholder {
  color: #ccc;
  font-weight: normal;
}
.content .worktime_submit {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.content .worktime_submit button {
  display: inline-block;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  background-color: #3274d6;
  margin: 0;
  padding: 10px 15px;
  border-radius: 0;
  -webkit-border-radius: 0;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.content.profile .profile-btn:hover {
  background-color: #2868c7;
}

@media screen and (max-width: 400px) {
  .login, .register {
    width: 95%;
  }
}

.language {
    order:99999;
    position:absolute;
    left:50%;
    margin-left:466px;
    top:20px;
    width:32px;
    background-size:contain;
    background-position:50%;
    background-repeat:no-repeat;
    background-color: white;
}
.language div {
    border: 2px solid rgba(0, 0, 0, 0);
    width:32px;
    height:24px;
    background-size:contain;
    background-position:50%;
    background-repeat:no-repeat;
}
.language div:hover {
    border: 2px solid #003366;
    background-color: #003366;
}
.language .en {
    background-image: url(gb.svg);
}
.language .de {
    background-image: url(de.svg);
}
.language .pl {
    background-image: url(pl.svg);
}

@media screen and (max-width: 1000px) {
  .language {
    left: auto;
    margin:  auto;
    right:0px;
    top:20px;
    margin-right: 10px;
    width:45px;
    height:30px;
}
  .navtop {
    height: auto;
    padding: 0%;
  }
  .navtop div {
    flex-flow: wrap;
    width: 100%;
    margin: 0 auto;
  }
  .navtop div h1 {
    display: block;
    flex-basis: 100%;
  }
  .navtop div a {
    flex-basis: 47%;
  }
  .content {
    padding: 10px;
    width: 100%;
  }
  .content form input[type="text"], .content form input[type="password"], .content form input[type="email"] {
    width: 100%;
  }
}

.select-selected {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;  /* horizontal zentrieren */
    text-align: center;
    color: #5b6574;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    font-family: 'Verdana', sans-serif;
}

.select-selected img {
    width: 20px;
    margin-right: 8px;
}

.select-items {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    z-index: 99;
    width: 100%;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.select-item {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;  /* horizontal zentrieren */
    text-align: center;
}

.select-item img {
    width: 20px;
    margin-right: 8px;
}

.select-item:hover {
    background-color: #e0e0e0;
}

.menue_items {
  color: #5b6574 !important;
  font-size: 20px !important;
  font-weight: bold !important;
  text-decoration: none !important;
  font-family: 'Verdana', sans-serif !important;
}

.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    position: relative;
    justify-content: center;
  }

  .site-header__logo {
    margin: 0 auto;
    font-size: 1.25rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* Logo soll über Nav liegen */
  }

  .site-header__toggle {
    position: absolute;
    right: var(--spacing);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3; /* Höchste Sichtbarkeit */
  }

  .site-header__nav {
    z-index: 1;
  }
}

:root {
  --color-navy: #0a1f44;
  --color-gold: #c9a66b;
  --color-white: #fffefa;
  --color-gray-light: #f0f0f0;
  --spacing: 1rem;
}

.site-header {
  background: var(--color-navy);
  color: var(--color-white);
  font-family: serif;
}
.site-header__inner {
  display: flex;
  align-items: center;
  padding: var(--spacing);
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.site-header__logo {
  font-size: 2rem;
  color: var(--color-gold) !important;
  text-decoration: none;
  flex-shrink: 0;
  font-family: 'EB Garamond', serif;
  font-weight: normal !important;
}

/* Hamburger-Button (Mobile) */
.site-header__toggle {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  display: block;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-gold);
  margin: 0.35rem 0;
  transition: transform .3s ease;
}

/* Navigation (hidden by default on mobile) */
.site-header__nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-navy);
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.site-header__nav.is-open {
  transform: translateY(0);
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: var(--spacing);
}
.nav-list__item {
  margin-bottom: var(--spacing);
}
.nav-list__item--spacer {
  flex: 1;
}
.nav-link {
  color: var(--color-white);
  text-decoration: none;
  font-family: sans-serif;
}
.nav-link--highlight {
  color: var(--color-gold);
  font-weight: bold;
}
.welcome {
  display: block;
  color: var(--color-white);
  font-family: sans-serif;
  margin-bottom: 0.25rem;
}

/* Desktop ab 768px */
@media (min-width: 768px) {
  .site-header__toggle {
    display: none;
  }
  .site-header__nav {
    position: static;
    transform: none;
    display: block !important;
    margin-left: auto;
  }
  .nav-list {
    display: flex;
    align-items: center;
    padding: 0;
  }
  .nav-list__item {
    margin: 0 var(--spacing);
  }

  .nav-list__item--spacer {
    display: none;
  }

  .user-block {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .action-row {
    flex-direction: row;
    gap: 0.75rem;
  }

  .nav-button,
  .nav-button--info {
    width: auto;
  }

  .nav-button--logout {
    margin-top: 0;
    align-self: center;
  }

  .language-switch {
    margin-top: 0;
    margin-left: 1rem;
  }

  .nav-list__item {
    display: flex;
    align-items: center;
  }
}


.nav-button {
  background-color: #5572f3;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Verdana', sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

.nav-button:hover {
  background-color: #3352cc;
  cursor: pointer;
}

.nav-button--secondary {
  background-color: transparent;
  color: #c9a66b;
  font-weight: bold;
  text-decoration: underline;
}

.nav-button--secondary:hover {
  color: white;
  text-decoration: none;
}

.nav-button--logout {
  background-color: #444;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
}

.nav-button--logout:hover {
  background-color: #666;
}

.user-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--color-white);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-button {
  background-color: var(--color-gold);
  color: #0a1f44;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Verdana', sans-serif;
  text-decoration: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.nav-button:hover {
  background-color: #b28d5f;
}

.nav-button--info {
  background-color: transparent;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  font-weight: bold;
}

.nav-button--info:hover {
  background-color: var(--color-gold);
  color: #0a1f44;
}

.nav-button--logout {
  background-color: transparent;
  color: #ccc;
  font-size: 13px;
  text-decoration: underline;
  margin-top: 5px;
  align-self: flex-start;
}

.nav-button--logout:hover {
  color: var(--color-gold);
  text-decoration: none;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ccc;
  font-size: 14px;
  margin-top: 0.5rem;
}

.language-switch .flag {
  width: 20px;
  height: auto;
}

/* Responsive Optimierung */
@media (max-width: 767px) {
  .action-row {
    flex-direction: column;
    gap: 0.4rem;
  }

  .nav-button,
  .nav-button--info,
  .nav-button--logout {
    width: 100%;
    text-align: center;
  }

  .language-switch {
    justify-content: center;
  }
}


@media (min-width: 768px) {
  .nav-list__item {
    display: flex;
    align-items: center;
  }

  .user-block {
    flex-direction: row !important;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .action-row {
    flex-direction: row !important;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .nav-button,
  .nav-button--info {
    width: auto !important;
    text-align: center;
  }

  .nav-button--logout {
    margin-top: 0 !important;
    align-self: center;
    padding: 6px 12px;
  }

  .language-switch {
    margin-top: 0 !important;
    margin-left: 1rem;
    flex-shrink: 0;
  }

  .select-selected {
    justify-content: flex-start;
  }
}
