/* Datum & Zeit -- Route "Kalenderwoche berechnen".
   Uebernommen aus kukanilea-kalenderwoche/styles.css (Stand 5cb179a3f): genau die
   Regeln, die styles.css dieser Werkstatt nicht schon gleichlautend
   traegt. Laedt NACH styles.css; die Shell-Bloecke (KUK-SHELL:CSS,
   KUK-ZIELGROESSEN) kommen von dort und stehen hier nicht. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.tool-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.tool-status { font-size: 14px; color: var(--ink-3); min-height: 1.4em; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 20px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form-field input[type="text"], .form-field input[type="number"], .form-field input[type="date"], .form-field select { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 16px; font-family: var(--font-sans); color: var(--ink); background: var(--white); max-width: 280px; }
.form-field select { appearance: auto; cursor: pointer; }
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.form-field input:disabled { background: var(--paper); color: var(--ink-4); cursor: not-allowed; }
.field-hint { font-size: 13px; color: var(--ink-4); margin: 0; }
.date-grid, .region-grid, .input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 20px; margin: 0 0 20px; align-items: end; }
.kw-result { margin-top: 4px; }
.kw-result-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kw-stat { background: var(--blue-tint); border: 1px solid var(--blue-soft); border-radius: var(--radius-sm); padding: 14px 16px; }
.kw-stat.is-primary { background: var(--blue); border-color: var(--blue-2); }
.kw-stat.is-primary .kw-stat-label { color: rgba(255,255,255,.75); }
.kw-stat.is-primary .kw-stat-value { color: var(--white); }
.kw-stat-label { font-size: 12px; color: var(--ink-4); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.kw-stat-value { font-size: 22px; font-weight: 700; color: var(--blue-2); margin-top: 4px; }
.kw-stat-sub { font-size: 12.5px; color: var(--ink-4); margin-top: 2px; }
.year-boundary-note { margin-top: 16px; padding: 12px 16px; background: var(--warn-soft); border: 1px solid #f3d3ab; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--warn-ink); }
.kw-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 6px; }
.kw-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kw-table caption { text-align: left; padding: 10px 12px; font-size: 12px; color: var(--ink-4); }
.kw-table th, .kw-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.kw-table th:first-child, .kw-table td:first-child { font-weight: 700; }
.kw-table thead th { color: var(--ink-4); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; background: var(--paper); position: sticky; top: 0; }
.kw-table tbody tr:nth-child(even) { background: var(--paper); }
.kw-table tbody tr.is-current-week { background: var(--blue-tint); }
.kw-table tbody tr.is-current-week td:first-child { color: var(--blue-2); }
.kw-table tbody tr.is-current-week td:first-child::after { content: " (heute)"; font-weight: 400; font-size: 11.5px; color: var(--blue); }
.source-note { font-size: 12.5px; color: var(--ink-4); margin-top: 16px; }
.source-note a { color: var(--ink-4); text-decoration: underline; }
@media print {
  .site-header, .site-footer, .tool-actions, .privacy-note { display: none; }
  body { background: var(--white); }
  .tool-card { box-shadow: none; border: none; padding: 0; margin: 0 0 20px; }
  .kw-table-wrap { border: none; overflow: visible; }
  .kw-table { font-size: 11px; }
  .kw-table th, .kw-table td { padding: 4px 6px; }
  .faq-list { display: none; }
  a[href]::after { content: ""; }
}

/* Abweichung vom Original, nur Barrierefreiheit (2026-10-16): die
   Unterzeile der Hauptkachel stand in --ink-4 auf --blue, Kontrast
   1,65:1 (axe color-contrast, WCAG 1.4.3). Sie bekommt die Farbe der
   Beschriftung darueber. kukanilea-kalenderwoche traegt den Befund weiter. */
.kw-stat.is-primary .kw-stat-sub { color: rgba(255,255,255,.75); }
