/* asap-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: 'Asap';
  font-style: normal;
  font-weight: 300;
  src: url('../font/asap-v34-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* asap-regular - 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: 'Asap';
  font-style: normal;
  font-weight: 400;
  src: url('../font/asap-v34-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* asap-500 - 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: 'Asap';
  font-style: normal;
  font-weight: 500;
  src: url('../font/asap-v34-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* asap-600 - 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: 'Asap';
  font-style: normal;
  font-weight: 600;
  src: url('../font/asap-v34-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* asap-700 - 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: 'Asap';
  font-style: normal;
  font-weight: 700;
  src: url('../font/asap-v34-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* vollkorn-regular - 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: 'Vollkorn';
  font-style: normal;
  font-weight: 400;
  src: url('../font/vollkorn-v30-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* vollkorn-500 - 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: 'Vollkorn';
  font-style: normal;
  font-weight: 500;
  src: url('../font/vollkorn-v30-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* vollkorn-600 - 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: 'Vollkorn';
  font-style: normal;
  font-weight: 600;
  src: url('../font/vollkorn-v30-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* vollkorn-700 - 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: 'Vollkorn';
  font-style: normal;
  font-weight: 700;
  src: url('../font/vollkorn-v30-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

.material-icons {
  font-family: 'Material Symbols Sharp';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -moz-font-feature-settings: 'liga';
  -moz-osx-font-smoothing: grayscale;
}


:root {
  --bs-primary: #5a8061; 
  --background: #f7f5f1;
  --surface: #fbfaf7;
  --form-background: #f9f8f5;
  --input-border: rgb(216, 210, 202);
  --foreground: #251f1b;
  --muted-background: #e9e6df;
  --muted-foreground: #756b63;
  --border: #d8d0c5;
  --green: #2e6042;
  --green-light: #5a8061;
  --green-dark: #80996d;
  --brown: #74543e;
  --gold: #fed344;
  --gold-old: #cc9e33;
  --cream: #f5f0e6;
  --danger: #b52222;
  --content-width: 1400px;
  --radius: 8px;
  --shadow: 0 8px 22px rgba(37, 31, 27, 0.12);
  --shadow-light: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;

}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: "Asap", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
.brand,
.footer-title {
  margin-top: 0;
  font-family: "Vollkorn", serif;
  hyphens: auto;
}

ol, ul {
  padding-left: 1rem;
}

.alert ul,
.alert ol {
  margin-bottom: 0;
}

.btn > .material-icons {
  transform: translateY(6px);
  margin-right: 5px;
  display: inline-block;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-border-radius: 0.25rem;
  --bs-btn-hover-color: var(--gold);
  --bs-btn-hover-bg: #66875f;
  --bs-btn-padding-y: 0.75rem;
}

.btn-secondary {
  --bs-btn-border-radius: 0.25rem;
  --bs-btn-padding-y: 0.75rem;
  --bs-btn-bg: #b4beac;
  --bs-btn-hover-bg: #a5b19b;
  --bs-btn-border-color:#b4beac;
  --bs-btn-hover-border-color:#b4beac;
  --bs-btn-color: #2d451b;
  --bs-btn-hover-color: #1b3707;
}

#yform-formular-stayfield input {
  margin-right: 8px;
}

.pw-forgotten-link {
display: block;
margin-bottom: 1rem;
}

.brand span {
  display: block;
  background: #fff;
  padding: 8px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  overflow: hidden;
  width: 70px;
  position: absolute;
  top:0;
  left:0;
}


h1, .headline-1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.08;
}

h2, .headline-2 {
  margin-bottom: 4px;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.25;
}

h3, .headline-3 {
  margin-bottom: 12px;
  font-size: clamp(1rem, 5vw, 1.35rem);
  line-height: 1.3;
}
.bordered {
border-bottom: 3px solid var(--gold-old);
padding-bottom: 0.5rem;
}

.yform h1,
.yform h2,
.yform h3 {
  margin-bottom: 0.5em;
}

p {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  color: var(--cream);
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  box-shadow: 0 4px 16px rgba(25, 61, 41, 0.3);
}

.navigation {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  flex: 0 0 auto;
  color: var(--cream);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
    display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 74px;
}

.desktop-navigation {
  margin-left: auto;
}

.header-intern {
   background: var(--green-dark);
}

.desktop-navigation ul,
.mobile-navigation nav ul,
.header-intern ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-navigation ul,
.header-intern ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-intern ul {
  justify-content: flex-end;
}

.desktop-navigation a,
.mobile-navigation nav a,
.header-intern ul a {
  display: block;
  border-radius: 6px;
  color: var(--cream);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
  line-height: 1.2;
}

.desktop-navigation a,
.header-intern ul a {
  padding: 9px 13px;
}

.desktop-navigation a:hover,
.desktop-navigation a:focus-visible,
.mobile-navigation nav a:hover,
.mobile-navigation nav a:focus-visible {
  background: var(--green-light);
}

.header-intern ul a:hover,
.header-intern ul a:focus-visible {
  color: rgba(255,255,255,0.7);
}

.desktop-navigation a.rex-current,
.desktop-navigation a.rex-active,
.mobile-navigation nav a.rex-current,
.mobile-navigation nav a.rex-active
 {
  color: var(--gold);
  background: var(--green-light);
}

.header-intern ul a.rex-current,
.header-intern ul a.rex-active {
  color: var(--gold);
}

.header-intern-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 0;
}

.header-intern-account,
.header-intern-logout {
  color: var(--cream);
  text-decoration: none;
  padding: 4px 12px;
  background: #718d5d;
  border: 1px solid #416d4c;
  border-radius: 6px;
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
}

.header-intern-account i {
  font-style: normal;
}

.header-intern-account .material-icons,
.header-intern-logout .material-icons {
  transform: translateY(4px);
  margin-right: 4px;
}

.header-intern-logout .material-icons {
  font-size: 22px;
  transform: translateY(3px);
}

.mobile-navigation {
  display: none;
}

#main > .container {
  padding: 80px 0;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: var(--cream);
}

.hero img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 20%;
}


.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(25, 61, 41, 0.84), rgba(25, 61, 41, 0.04) 70%);
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: 42px;
  left: 0;
}

.hero-content h1 {
  max-width: 780px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--cream);
  font-size: 1.05rem;
}

.section {
  padding-block: 48px;
}

.section-intro {
  margin-bottom: 24px;
  color: var(--muted-foreground);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.9rem;
}

th,
td {
  padding: 8px 12px;
  text-align: center;
  white-space: nowrap;
}

thead,
tfoot {
  color: var(--cream);
  background: var(--green);
}

thead th,
tfoot th,
tfoot td {
  font-weight: 700;
}

thead th:first-child,
thead th:nth-child(5),
tbody th,
tfoot th {
  text-align: left;
}

thead th:nth-child(4),
tbody td:nth-child(4),
tfoot td:nth-child(4) {
  border-right: 1px solid rgba(245, 240, 230, 0.3);
}

tbody tr:nth-child(odd) {
  background: var(--cream);
}

tbody tr:nth-child(even) {
  background: var(--background);
}

tbody th {
  font-weight: 500;
}

tbody th:first-child {
  border-right: 1px solid var(--border);
}

.actual {
  color: var(--green);
  font-weight: 700;
}

.fallen {
  color: var(--danger);
}

.information {
  padding-block: 48px;
  background: var(--muted-background);
}

.information-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.information article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(37, 31, 27, 0.06);
}

.information article p {
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.site-footer {
  position: relative;
  padding-top: 130px;
  padding-bottom: 32px;
  color: var(--cream);
  text-align: center;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
}

.footer-title {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 600;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 8px;
  border-top: 1px solid var(--gold-old);
  padding-top: 1.5rem;
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.brand-footer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top:0;
  width: 90px;
  background: #fff;
  padding: 8px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  overflow: hidden;
}

.yform,
.text {
  box-shadow: var(--shadow-light);
  max-width: 600px;
  margin: 0 auto;
  background: var(--form-background);
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(35 15% 82%);
}
.text {
  max-width: 1000px;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  font-size: 1rem;
  line-height: 1.25rem;
  font-weight: 500;
  font-family: Asap,sans-serif;
  display: block;
  margin-bottom: .35rem;
}

label.control-label {
  color: #97a18e;
}

#yform-formular-notiz textarea {
  height: 100px;
}

.form-control {
  padding: 0.5rem 1rem;
  background: var(--background);
  border-radius: 0.5rem;
  border:1px solid var(--input-border);
  font-size: 1rem;
  line-height: 1.625;
  font-family: Asap,sans-serif;
}

.form-control[readonly],
.form-control[readonly]:focus {
  background:var(--form-background);
  cursor: default;
  border-color: transparent;
  padding: 0;
  box-shadow:none;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
}

.radio input {
  display: inline-block;
  margin-right: 6px;
}

.abschuss-uebersicht {
  margin: 15px 0;
}

@media (min-width: 1400px) {
  .is-admin .abschuss-uebersicht {
  width: calc(100vw - 50px);
  margin-left: calc((((100vw + 25px) - var(--content-width)) / 2) * -1);
  }
}

.abschuss-table thead th { text-align: center; vertical-align: middle; }
.abschuss-table thead th.text-start,
.abschuss-table tbody th,
.abschuss-table tfoot th { text-align: left; }
.abschuss-table thead th.art { font-weight: 400; font-size: 0.8rem; }
.abschuss-table td.fw { border-right: 1px solid var(--border); }
.abschuss-table tfoot tr.freigabe,
.abschuss-table tfoot tr.siv { border-top: 1px solid rgba(255, 255, 255, 0.3); }
.abschuss-table tfoot td.ueberschritten { color: var(--gold); }

/* Sticky-Header: Offset wird per JS im Modul gesetzt */
.abschuss-table.is-stuck thead {
  position: relative;
  z-index: 2;
  background: var(--green);
  transform: translateY(var(--thead-offset, 0));
}
.abschuss-table.is-stuck thead tr:last-child th { box-shadow: 0 4px 6px -2px rgba(37, 31, 27, 0.35); }

.freigabe td[colspan="2"],
.siv td[colspan="2"],
thead th,
tfoot td {border-right: 1px solid rgba(255, 255, 255, 0.3);}

/*
.gesamt-summen td:nth-child(6),
.gesamt-summen td:nth-child(8),
.gesamt-summen td:nth-child(10),
.gesamt-summen td:nth-child(12),
.gesamt-summen td:nth-child(14),
.gesamt-summen td:nth-child(16),
.gesamt-summen td:nth-child(18),
.gesamt-summen td:nth-child(20) {border-right: 1px solid rgba(255, 255, 255, 0.3);}
*/

@media (max-width: 1040px) {
  .desktop-navigation {
    display: none;
  }

  .mobile-navigation {
    position: relative;
    display: block;
    z-index: 100;
  }

  .mobile-navigation summary {
    display: grid;
    width: 44px;
    height: 44px;
    cursor: pointer;
    list-style: none;
    place-content: center;
    gap: 5px;
    border-radius: 6px;
  }

  .mobile-navigation nav ul {
  display: grid;
  gap: 3px;
}

  .mobile-navigation summary::-webkit-details-marker {
    display: none;
  }

  .mobile-navigation summary:hover,
  .mobile-navigation summary:focus-visible {
    background: var(--green-light);
  }

  .mobile-navigation summary span {
    display: block;
    width: 23px;
    height: 2px;
    background: var(--cream);
  }

  .mobile-navigation nav {
    position: absolute;
    top: 52px;
    right: 0;
    display: grid;
    width: min(300px, calc(100vw - 32px));
    gap: 3px;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--green);
    box-shadow: var(--shadow);
  }

  .mobile-navigation nav a {
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {

  .yform {
    padding: 1rem;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .container {
    width: min(calc(100% - 32px), var(--content-width));
    --bs-gutter-x: 0;
  }

  .brand {
    font-size: 0.9125rem;
    padding-left: 85px;
  }

  .hero {
    height: min(420px, 68vh);
  }

  
.header-intern-account i,
.header-intern-nav .rex-article-8 {
  display: none;
}

.header-intern-account,
.header-intern-logout {
  margin: 0 2px;
  height: 34px;
  padding: 4px 8px;
}

.header-intern-account .material-icons,
.header-intern-logout .material-icons {
margin: 0;
}

.header-intern ul {
  gap: 0px;
}

.header-intern ul a {
  padding: 10px 8px;
  font-size: 15px;
}

.brand span {
  width: 55px;
}

  .hero-content {
    bottom: 30px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

#main > .container {
  padding: 15px 0;
}

  .section,
  .information {
    padding-block: 36px;
  }

  .btn-group {
    flex-wrap: wrap;
  }

  .information-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Termine */
.termine {
  display: grid;
  gap: 16px;
}

.termin {
  display: flex;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(37, 31, 27, 0.06);
}

.termin-datum {
  display: flex;
  flex: 0 0 88px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 12px 8px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--green-dark);
  line-height: 1.1;
  text-align: center;
}

.termin-tag {
  font-size: 2rem;
  font-weight: 700;
}

.termin-monat {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
}

.termin-jahr {
  font-size: 0.8rem;
  opacity: 0.8;
}

.termin-inhalt {
  min-width: 0;
}

.termin-titel {
  margin-bottom: 4px;
}

.termin-meta {
  margin-bottom: 12px;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.termin-text > :last-child {
  margin-bottom: 0;
}

.termine-leer {
  color: var(--muted-foreground);
}

@media (max-width: 768px) {

  .termin {
    display: block;
    padding: 16px;
  }

  .termin-datum {
    display: block;
    border-radius: 0;
    margin-bottom: 16px;
    background: none;
    padding: 0 0 10px 0;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }

  .termin-tag,
  .termin-monat,
  .termin-jahr {
    font-size: 1.25rem;
    color:var(--green-dark);
  }
}

@media (max-width: 560px) {

  .btn-group {
    gap:5px;
  }

  .btn-group > .btn.me-2 {
    margin: 0 !important;
  }

}



@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
