@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/montserrat-latin-400-normal.woff2) format('woff2');}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/montserrat-latin-600-normal.woff2) format('woff2');}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/montserrat-latin-700-normal.woff2) format('woff2');}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/montserrat-latin-800-normal.woff2) format('woff2');}
:root {
    --navy: #0F172A;
    --cyan-d: #007A96;
    --cyan: #0099BB;
    --bg: #F9FAFB;
    --dim: #4B5563;
    --line: #E5E7EB;
    --card: #FFFFFF;
    --red: #B91C1C;
    --green: #15803D;
    --amber: #B45309;
    --grau-dunkel: #8899A6;
    --cyan-hell: #22C2E0;
    --tint: #E0F4F9;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--navy);
    font: 400 16px/1.5 "Montserrat", Arial, sans-serif;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 16px; padding-bottom: 48px; }
a { color: var(--cyan-d); }
h1, h2, h3 { font-family: "Montserrat", Arial, sans-serif; }
h1 { font-size: 1.5rem; font-weight: 800; margin: .4em 0 .6em; }
h2 { font-size: 1.1rem; font-weight: 700; margin: 0 0 .6em; }
h3 { font-size: 1rem; font-weight: 700; margin: 1.2em 0 .4em; }
.dim, .hint { color: var(--dim); }
.hint { font-size: .875rem; margin: .4em 0 1em; }
.note { color: var(--dim); font-size: .9rem; }
.warn { color: var(--amber); font-weight: 600; }
.neg { color: var(--red); }
.r { text-align: right; }
.nw { white-space: nowrap; }
em { color: var(--dim); }

.top { background: var(--navy); color: #fff; border-bottom: 4px solid var(--cyan); }
.topin { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 12px; line-height: 1.2; }
.brand img { width: 40px; height: 40px; display: block; flex: none; }
.brand span { display: flex; flex-direction: column; }
.brand small { font-weight: 400; color: var(--grau-dunkel); font-size: .75rem; }
.who { font-size: .85rem; color: #fff; text-align: right; }
.who a { color: var(--cyan-hell); }
.nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; align-items: center; }
.nav a { color: #fff; text-decoration: none; padding: 7px 12px; border-radius: 8px; white-space: nowrap; font-size: .95rem; }
.nav a.on { background: var(--cyan-d); color: #fff; }
.nav.admin { border-top: 1px solid rgba(136,153,166,.35); padding-top: 8px; }
.navlabel { color: var(--grau-dunkel); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding: 0 8px 0 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 16px; }
.card.narrow { max-width: 440px; margin: 32px auto; }
.flash { padding: 10px 14px; border-radius: 8px; margin: 0 0 12px; background: var(--tint); border: 1px solid var(--cyan); border-left-width: 4px; }
.flash.err { background: #FEF2F2; border-color: #FECACA; color: #7F1D1D; }
.flash.warn { background: #FFFBEB; border-color: #FDE68A; color: #78350F; }
.flash.ok { background: #F0FDF4; border-color: #BBF7D0; color: #14532D; }

label { display: block; margin: 0 0 12px; font-weight: 600; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time],
input[type=datetime-local], select {
    display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; color: var(--navy);
    border: 1px solid #CBD5E1; border-radius: 8px; background: #fff; min-height: 44px;
}
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 1px; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
label.check.inl { display: inline-flex; margin-right: 14px; }
label.check input { margin-top: 4px; width: 18px; height: 18px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 12px; padding: 8px 12px; }
legend { font-weight: 600; font-size: .92rem; padding: 0 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.inline label { margin: 0; }
.inline.between { justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }

.btn {
    display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid #CBD5E1; background: #fff;
    color: var(--navy); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; line-height: 1.4;
}
.btn.small { padding: 6px 12px; min-height: 36px; font-size: .9rem; }
.btn.primary { background: var(--cyan-d); border-color: var(--cyan-d); color: #fff; }
.btn.danger { background: #fff; border-color: var(--red); color: var(--red); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

.stampcard { text-align: center; padding: 24px 16px; }
.statusline { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 1.05rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dim); display: inline-block; }
.status-arbeitet .dot { background: var(--cyan-d); }
.status-pause .dot { background: var(--amber); }
.bigtime { font-size: 3.2rem; font-weight: 800; letter-spacing: .02em; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.stampform { display: flex; gap: 12px; margin-top: 20px; justify-content: center; flex-wrap: wrap; }
.stamp {
    flex: 1 1 200px; max-width: 320px; font: inherit; font-size: 1.5rem; font-weight: 700; padding: 22px 12px;
    border-radius: 14px; border: 0; color: #fff; cursor: pointer; min-height: 72px;
}
.stamp.go { background: var(--cyan-d); }
.stamp.pause { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.stamp.stop { background: var(--navy); }
.stamp[disabled] { opacity: .6; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.stat strong { font-weight: 800; font-size: 1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat small { color: var(--dim); }

.tw { overflow-x: auto; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
table.grid { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: .92rem; }
table.grid th, table.grid td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.grid th.r, table.grid td.r { text-align: right; }
table.grid thead th { background: #F3F4F6; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--dim); }
table.grid tfoot td { font-weight: 700; background: #F3F4F6; }
table.grid tr.muted td { color: var(--dim); background: var(--bg); }
table.grid tr.today td { background: var(--tint); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #E5E7EB; color: #1F2937; white-space: nowrap; }
.badge.green { background: #DCFCE7; color: #14532D; }
.badge.amber { background: #FEF3C7; color: #78350F; }
.badge.red { background: #FEE2E2; color: #7F1D1D; }
.badge.blue { background: var(--tint); color: var(--navy); }
.badge.grey { background: #E5E7EB; color: #374151; }

ul.plain { list-style: none; margin: 0 0 12px; padding: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--dim); }
dl.kv dd { margin: 0; }
code { background: #F3F4F6; padding: 2px 6px; border-radius: 4px; font-size: 1.05em; }
.pwbox { border-color: var(--cyan-d); border-width: 2px; }

.monthnav { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.monthnav strong { min-width: 9em; text-align: center; }

.req { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.req:last-child { border-bottom: 0; }
.decide { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.decide input[type=text] { width: 220px; margin: 0; }

table.cal { border-collapse: collapse; font-size: .8rem; background: var(--card); }
table.cal th, table.cal td { border: 1px solid var(--line); text-align: center; min-width: 28px; height: 32px; padding: 0 2px; }
table.cal th small { color: var(--dim); font-weight: 400; }
table.cal .name { text-align: left; min-width: 130px; padding: 0 8px; position: sticky; left: 0; background: var(--card); z-index: 1; font-weight: 600; white-space: nowrap; }
.we { background: #F3F4F6; }
.ft { background: #FEF3C7; }
th.today { background: var(--cyan); color: #fff; }
th.today small { color: #fff; }
.u { background: #B3E3EE; color: var(--navy); font-weight: 700; }
.pend { background: repeating-linear-gradient(45deg, #FEF3C7, #FEF3C7 4px, #FDE68A 4px, #FDE68A 8px); color: #78350F; font-weight: 700; }
.x { background: #E5E7EB; color: var(--navy); font-weight: 700; }
.k { background: #FECACA; color: #7F1D1D; font-weight: 700; }
.legend { font-size: .85rem; color: var(--dim); }
.sw { display: inline-block; min-width: 22px; height: 1.4em; line-height: 1.4em; vertical-align: middle; padding: 0 4px; text-align: center; border: 1px solid var(--line); margin: 0 2px 0 8px; font-weight: 700; }

@media (max-width: 560px) {
    .row2 { grid-template-columns: 1fr; }
    .bigtime { font-size: 2.6rem; }
    .stat strong { font-size: 1.35rem; }
}
@media (min-width: 760px) {
    .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
    .btn, .stamp { transition: filter .15s; }
    .btn:hover, .stamp:hover { filter: brightness(1.08); }
}

.stat strong, .bigtime, h1 { font-family: "Montserrat", Arial, sans-serif; }
.unik { width: 56px; height: 56px; display: block; margin: 0 auto 12px; }
.badge.cyan { background: var(--tint); color: var(--navy); }
tr.od td { background: #FEF2F2; }

table.cal.year { border-collapse: separate; border-spacing: 0; }
table.cal.year th.mh { min-width: 0; height: 28px; background: var(--navy); color: #fff; font-weight: 700; text-align: left; padding: 0 6px; }
table.cal.year th.mh a { color: #fff; text-decoration: none; }
table.cal.year td { min-width: 0; width: 8px; height: 26px; padding: 0; font-size: 0; border-width: 0 0 1px 0; }
table.cal.year td.nd { background: var(--card); }
table.cal.year td.m1 { border-left: 2px solid var(--navy); }
table.cal.year td.tdy { box-shadow: inset 0 0 0 2px var(--navy); }
table.cal.year td.name { font-size: .8rem; width: auto; border-right: 1px solid var(--line); }
table.cal.year tr.own td.name { background: var(--tint); }
table.cal.year tr.cnt td.name { font-weight: 700; }
.c1 { background: #B3E3EE; }
.c2 { background: var(--cyan); }
.c3 { background: var(--navy); }
