/* Loaded only by /vorlagen/stundenzettel. Homepage files stay unchanged. */
.timesheet-page #content p { line-height: 1.5; }
.timesheet-page #top_banner_tool {
  padding-top: 54px;
  margin-bottom: 16px;
  text-align: center;
  background: var(--pale-blue);
}
.timesheet-page #top_banner_innen h1 { font-size: 18px; line-height: 1.4; color: var(--blue); }
.timesheet-page #top_banner_innen h2 { max-width: 1090px; margin: 16px auto 0; text-wrap: balance; }
.timesheet-page #top_banner_innen p { max-width: 1090px; margin: 24px auto 0; }
/* The color boundary bisects the image; top padding stays pale blue. */
.timesheet-page #tool_icon_banner {
  padding-top: 32px;
  background: linear-gradient(to bottom, var(--pale-blue) 50%, var(--white) 0);
  background-origin: content-box;
  background-clip: content-box;
}
.timesheet-page #tool_icon { width: min(300px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.timesheet-page #tool_icon img { width: 100%; height: auto; }

/* Original download lists and sidebar, in their original reading order. */
.timesheet-page #stundenzettel_vorlagen_breite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 64px;
  padding-bottom: 96px;
}
.timesheet-page #stundenzettel_vorlagen,
.timesheet-page #vorlage_bewerten { min-width: 0; }
.timesheet-page #stundenzettel_vorlagen h2 { font-size: 30px; line-height: 1.15; text-align: left; }
.timesheet-page #stundenzettel_vorlagen ul { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.timesheet-page #stundenzettel_vorlagen ul + h2 { margin-top: 48px; }
.timesheet-page .download-link {
  width: 100%;
  justify-content: flex-start;
  gap: 16px;
  text-align: left;
  white-space: normal;
}
/* PDF and generator rows share the original site's typography, frame and icon. */
.timesheet-page .download-link:is([href*="/pdf-"], [href$="/stundenzettel-generator"]) {
  display: block;
  min-height: 0;
  padding: 5px 30px 5px 25px;
  color: #000a3d;
  background: var(--white) url('../assets/Icons/svg/download_icon_vorlagen.svg') right 20px center / auto no-repeat;
  border: 1px solid #646a7d;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 400;
  line-height: 33px;
  box-shadow: none;
  filter: none;
  transform: none;
  transition: none;
}
.timesheet-page .download-link:is([href*="/pdf-"], [href$="/stundenzettel-generator"])::after { content: none; }
.timesheet-page #stundenzettel_vorlagen ul:has(.download-link:is([href*="/pdf-"], [href$="/stundenzettel-generator"])) { gap: 15px; }
.timesheet-page .download-link::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-left: auto;
  background: url('../assets/Icons/svg/download_icon_vorlagen.svg') center / 48px 48px no-repeat;
}
/* Both template sidebars share the popup's content styles and capsule CTA. */
.timesheet-page #vorlage_bewerten .sidebar-promotion {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--soft-gray);
  text-align: center;
}
.timesheet-page #vorlage_bewerten .popup-promotion-title { font-size: 24px; line-height: 1.25; text-align: center; }
.timesheet-page #vorlage_bewerten .popup-promotion-photo { width: 100%; }
.timesheet-page #vorlage_bewerten .popup-promotion-link { margin-top: 24px; }

/* Keep the existing independent FAQ toggles; no new accordion/scroll effects. */
.timesheet-page .element_top_bottom { position: relative; }
.timesheet-page #content_innen > div:has(> .element_top_bottom) { background: var(--soft-gray); }
.timesheet-page .element_small { max-width: 1090px; margin-inline: auto; }
.timesheet-page .element_center { text-align: center; margin-bottom: 48px; }
.timesheet-page .h2_text { margin-top: 16px; }
.timesheet-page .element_open_box + .element_open_box { margin-top: 32px; }
.timesheet-page .element_open_box > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 0;
  color: var(--navy);
  background: transparent;
  text-align: left;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  transition: color 180ms;
}
.timesheet-page .element_open_box > button::after {
  content: "";
  flex: none;
  width: 26px;
  height: 16px;
  background: url('../assets/Icons/svg/Arrow.svg') center / cover no-repeat;
  transform: rotate(180deg);
  transition: transform 180ms;
}
.timesheet-page .element_open_box > .element_close_box_icon::after { transform: none; }
.timesheet-page .element_open_box_text { padding-top: 24px; color: var(--text); }
.js .timesheet-page .element_open_box_text { display: none; }
.timesheet-page .element_open_box_text > * + * { margin-top: 16px; }
.timesheet-page .element_open_box_text ol,
.timesheet-page .element_open_box_text ul { padding-left: 24px; margin-bottom: 0; }
.timesheet-page .element_open_box_text ol { list-style: decimal; }
.timesheet-page .element_open_box_text ul { list-style: disc; }
.timesheet-page .element_open_box_text li + li { margin-top: 8px; }

.timesheet-page #tipp_box_innen { display: flex; align-items: flex-start; gap: 40px; }
.timesheet-page #tipp_box_innen_icon { flex: none; width: 96px; }
.timesheet-page #tipp_box img { width: 100%; height: auto; }
.timesheet-page #tipp_box_innen_text { min-width: 0; max-width: 1090px; }
.timesheet-page #tipp_box h2 { font-size: 30px; line-height: 1.15; text-align: left; }
.timesheet-page #tipp_box p { margin-top: 16px; }
.timesheet-page #tipp_box a { text-decoration: underline; text-underline-offset: 4px; }
.timesheet-page #footer_banner { background: var(--pale-blue); }
.timesheet-page #footer_banner h2 { text-align: left; }
.timesheet-page #footer_banner .main_link { margin-top: 32px; }
.timesheet-page #footer_banner .button { max-width: 100%; white-space: normal; text-align: center; }

/* These adjustments apply only to vorlagen/stundenzettel.php. */
.timesheet-page.timesheet-detail-page #stundenzettel_vorlagen_breite { max-width: 1440px; }


@media (hover: hover) {
  .timesheet-page .download-link:is([href*="/pdf-"], [href$="/stundenzettel-generator"]):hover {
    color: var(--white);
    border-color: var(--blue);
    background-color: var(--blue);
    background-image: url('../assets/Icons/svg/download_icon_vorlagen_white.svg');
  }
  .timesheet-page .element_open_box > button:hover,
  .timesheet-page #tipp_box a:hover { color: var(--blue); }
}
@media (max-width: 1199px) {
  .timesheet-page #stundenzettel_vorlagen_breite { gap: 40px; }
}
@media (max-width: 1023px) {
  .timesheet-page #stundenzettel_vorlagen_breite { grid-template-columns: minmax(0, 1fr) 266px; gap: 32px; }
}
@media (max-width: 767px) {
  .timesheet-page #top_banner_tool { margin-bottom: 12px; }
  .timesheet-page #top_banner_innen h2 { font-size: 26px; }
  .timesheet-page #stundenzettel_vorlagen_breite { grid-template-columns: minmax(0, 1fr); gap: 54px; }
  .timesheet-page #stundenzettel_vorlagen h2,
  .timesheet-page #tipp_box h2 { font-size: 26px; }
  .timesheet-page #stundenzettel_vorlagen ul + h2 { margin-top: 40px; }
  .timesheet-page .element_open_box > button { font-size: 20px; gap: 16px; }
  .timesheet-page .element_open_box + .element_open_box { margin-top: 24px; }
  .timesheet-page #tipp_box_innen { flex-direction: column; gap: 24px; }
  .timesheet-page #tipp_box_innen_icon { width: 64px; }
  .timesheet-page #footer_banner .button { width: 100%; }
}
@media (max-width: 374px) {
  .timesheet-page #top_banner_innen h2 { font-size: 24px; }
  .timesheet-page #stundenzettel_vorlagen h2,
  .timesheet-page #tipp_box h2 { font-size: 24px; }
  .timesheet-page .download-link { padding-inline: 16px; gap: 12px; }
}
@media print {
  .timesheet-page .element_open_box_text { display: block !important; }
  .timesheet-page #stundenzettel_vorlagen_breite { display: block; }
  .timesheet-page #vorlage_bewerten { margin-top: 32px; }
}
