/* Catamaran (SIL Open Font License), lokal eingebunden – keine Verbindung zu Google */
@font-face { font-family: "Catamaran"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/catamaran-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Catamaran"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/catamaran-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Catamaran"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/catamaran-latin-800-normal.woff2") format("woff2"); }

/* TOP Fotobox Intern – Corporate Design von top-fotobox.de
   Petrol #026773 · Gold #B4A468 · Text #333 · Catamaran · eckige Kanten, Buttons in Versalien */
:root {
  --petrol: #026773;
  --petrol-dark: #014d56;
  --gold: #b4a468;
  --gold-dark: #9a8b52;
  --text: #333333;
  --muted: #6b7173;
  --line: #dfe3e4;
  --bg: #f4f6f6;
  --ok: #1d7a46;
  --warn: #a86a00;
  --err: #b3261e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Catamaran, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--petrol); }
h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
.center { text-align: center; }
.hint { color: var(--muted); font-size: .9rem; margin: .4em 0; }
code { background: #eef1f1; padding: 1px 5px; word-break: break-all; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--petrol); border-bottom: 4px solid var(--gold); padding-top: env(safe-area-inset-top); }
.topin { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { display: block; height: 36px; width: auto; }
.brand span { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a { color: #fff; text-decoration: none; padding: 6px 12px; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; }
.nav a:hover { background: var(--petrol-dark); }
.nav a.on { background: var(--gold); color: #fff; }

.main { padding-top: 24px; padding-bottom: 40px; min-height: 60vh; }
.foot { max-width: 1100px; margin: 0 auto; padding: 16px; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid var(--line); }

.card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--petrol); padding: 18px; margin: 0 0 20px; }
.card.narrow { max-width: 420px; margin-left: auto; margin-right: auto; }
.tablecard { padding: 0; overflow-x: auto; }
.tablecard > h2, .tablecard > p { padding: 16px 18px 0; margin-bottom: 0; }

label { display: block; font-weight: 700; font-size: .9rem; margin: 0 0 14px; }
label small { font-weight: 400; color: var(--muted); }
label.chk { font-weight: 400; display: flex; gap: 8px; align-items: center; }
label.chk input { width: auto; min-height: 0; margin: 0; }
input, select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; min-height: 46px;
  font: inherit; font-size: 16px; color: var(--text); background: #fff;
  border: 1px solid #b9c1c3; border-radius: 0;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--petrol); }
fieldset { border: 1px solid var(--line); margin: 0 0 18px; padding: 14px 14px 2px; min-width: 0; }
fieldset[disabled] { opacity: 1; }
fieldset[disabled] input, fieldset[disabled] select, fieldset[disabled] textarea { background: #f4f6f6; }
legend { font-weight: 800; padding: 0 8px; color: var(--petrol); }
.row2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.ratelist { display: grid; grid-template-columns: 1fr; gap: 0 14px; }

.btn {
  display: inline-block; cursor: pointer; border: 2px solid var(--petrol); background: var(--petrol); color: #fff;
  font: inherit; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em;
  padding: 12px 20px; min-height: 46px; text-decoration: none; text-align: center; border-radius: 0;
}
.btn:hover { background: var(--petrol-dark); border-color: var(--petrol-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--petrol); }
.btn.ghost:hover { background: #eaf3f4; }
.btn.gold { background: var(--gold); border-color: var(--gold); }
.btn.gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn.danger { background: #fff; color: var(--err); border-color: var(--err); margin-top: 6px; }
.btn.sm { padding: 6px 14px; min-height: 38px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; align-items: center; }
form.inline { display: inline; }

.flash { padding: 12px 14px; margin: 0 0 18px; border-left: 4px solid var(--ok); background: #e9f5ee; }
.flash.err { border-color: var(--err); background: #fbeceb; }
.flash.warn { border-color: var(--gold); background: #f8f4e6; }

.monthnav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 6px; }
.monthnav h1 { margin: 0; min-width: 11ch; text-align: center; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 20px; }
.tile { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--petrol); padding: 12px 14px; }
.tile span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.tile b { font-size: 1.35rem; font-weight: 800; }
.tile.accent { background: var(--petrol); border-color: var(--petrol); border-top-color: var(--gold); color: #fff; }
.tile.accent span { color: #d6ecee; }
.tile.warn { border-top-color: var(--gold); background: #f8f4e6; }

.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td small { display: block; color: var(--muted); }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl .act a { font-weight: 700; }
.tbl td.empty { text-align: center; color: var(--muted); padding: 24px; }
.tbl tr.sumrow td { font-weight: 800; background: #f4f6f6; border-top: 2px solid var(--line); }
.tbl input, .tbl select { margin: 0; min-height: 40px; }
.tbl.sum { max-width: 460px; margin-left: auto; margin-top: 14px; }

.badge { display: inline-block; padding: 2px 10px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: #e6e9ea; color: #444; vertical-align: middle; }
.b-submitted { background: #f8f4e6; color: var(--warn); }
.b-approved { background: #e1eff0; color: var(--petrol); }
.b-paid { background: #e9f5ee; color: var(--ok); }
.okt { color: var(--ok); font-weight: 700; }
.warnt { color: var(--warn); font-weight: 700; }
.errt { color: var(--err); font-weight: 700; }

.preview { background: #f8f4e6; border-left: 4px solid var(--gold); padding: 8px 12px; margin: -4px 0 14px; font-size: .92rem; }

.route .stoprow { position: relative; margin-bottom: 8px; }
.route .stoprow label { margin-bottom: 0; }
.route .stoprow .rm { position: absolute; right: 4px; top: 30px; border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--err); cursor: pointer; padding: 6px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { border: 1px solid var(--petrol); background: #fff; color: var(--petrol); padding: 5px 12px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.chip:hover { background: #eaf3f4; }
.sg { position: absolute; z-index: 20; left: 0; right: 0; background: #fff; border: 1px solid var(--petrol); border-top: 0; max-height: 240px; overflow-y: auto; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.sg button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 10px 12px; font: inherit; font-size: .92rem; cursor: pointer; }
.sg button:hover, .sg button:focus { background: #eaf3f4; }

.qrbox { display: inline-block; background: #fff; padding: 8px; line-height: 0; }
.paylist { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
.pay { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pay .big { font-size: 1.6rem; font-weight: 800; margin: 0; }
.pay h3 { margin-bottom: .2em; }

.public .main { padding-top: 40px; }

@media (min-width: 640px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .ratelist { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .paylist { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(6, 1fr); }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .top, .foot, .noprint, .flash { display: none !important; }
  .main { padding: 0; max-width: none; }
  .card { border: 0; padding: 0; }
  .tbl th, .tbl td { padding: 4px 6px; }
}

.rowact { display: flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.rowact form { margin: 0; }
.rowact .btn.danger { margin-top: 0; }

/* ============ Design 0.2 ============ */
:root { --shadow: 0 1px 2px rgba(2,50,58,.06), 0 4px 14px rgba(2,50,58,.07); --petrol-soft: #e6f1f2; }
body { background: #eef2f2; }
h1 { letter-spacing: -.01em; }

/* Kopf */
.top { background: linear-gradient(180deg, var(--petrol) 0%, var(--petrol-dark) 100%); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.topin { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
.brand img { height: 34px; }
.brand span { border-left: 1px solid rgba(255,255,255,.3); padding-left: 10px; }
.outlink { color: #cfe4e6; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; padding: 6px 4px; margin-left: auto; }
.outlink:hover { color: #fff; }
.nav { margin-left: 12px; flex: 1; }
.nav a { display: inline-flex; align-items: center; gap: 7px; border-bottom: 3px solid transparent; padding: 8px 12px; }
.nav a .ic { width: 18px; height: 18px; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav a.on { background: transparent; border-bottom-color: var(--gold); color: #fff; }
.foot .noprint { display: none; }

/* Karten */
.card { box-shadow: var(--shadow); border: 0; border-top: 3px solid var(--petrol); }
.tile { box-shadow: var(--shadow); border: 0; border-top: 3px solid var(--petrol); }
.btn { transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
input, select, textarea { border-color: #aeb9bb; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(180,164,104,.45); }
.badge { border-radius: 99px; padding: 3px 12px; }

/* Tabellen (Verwaltung) */
.tbl tbody tr:hover td { background: #f6fafa; }
.tbl th { background: #f6f8f8; }
.tbl td, .tbl th { padding: 11px 14px; }

/* Anmeldung */
body.public { background: radial-gradient(1200px 500px at 50% -10%, #0a8a99 0%, var(--petrol) 45%, var(--petrol-dark) 100%) fixed; min-height: 100vh; }
body.public .top { background: none; border: 0; box-shadow: none; position: static; }
body.public .topin { justify-content: center; padding-top: 34px; }
body.public .brand img { height: 56px; }
body.public .brand span { display: none; }
body.public .main { padding-top: 18px; min-height: 0; }
body.public .card { border-top: 4px solid var(--gold); padding: 26px 24px; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
body.public .card h1 { font-size: 1.5rem; margin-bottom: .2em; }
body.public .foot, body.public .foot a { color: #cfe4e6; border-color: rgba(255,255,255,.2); }
.logincard .btn { width: 100%; }

/* Mitarbeiter-Übersicht */
.hero { background: linear-gradient(160deg, var(--petrol) 0%, var(--petrol-dark) 100%); color: #fff; border-top: 4px solid var(--gold); box-shadow: var(--shadow); padding: 16px 16px 18px; margin: 0 0 18px; }
.hero .monthnav { margin: 0; gap: 8px; }
.hero h1 { color: #fff; font-size: 1.35rem; margin: 0; }
.navbtn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: #fff; background: rgba(255,255,255,.12); text-decoration: none; font-size: 1.6rem; line-height: 1; }
.navbtn:hover { background: rgba(255,255,255,.22); }
.hero .status { text-align: center; margin: 4px 0 6px; }
.hero .badge { background: rgba(255,255,255,.16); color: #fff; }
.hero .b-submitted { background: var(--gold); color: #fff; }
.hero .b-approved { background: #dff0f1; color: var(--petrol-dark); }
.hero .b-paid { background: #d8f0e2; color: var(--ok); }
.herosum { text-align: center; margin: 6px 0 14px; }
.herosum span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #cfe4e6; }
.herosum b { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.herostats { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.herostats > div { background: rgba(1,60,68,.55); padding: 9px 6px; text-align: center; }
.herostats b { display: block; font-size: 1.02rem; font-weight: 800; }
.herostats span { font-size: .72rem; color: #cfe4e6; text-transform: uppercase; letter-spacing: .04em; }
.meter { margin-top: 14px; }
.meterbar { height: 8px; background: rgba(255,255,255,.2); overflow: hidden; }
.meterbar i { display: block; height: 100%; background: var(--gold); }
.meter.hot .meterbar i { background: #f0b34a; }
.meter p { margin: 5px 0 0; font-size: .8rem; color: #cfe4e6; text-align: center; }

.listhead { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.listhead h2 { margin: 0; }
.emptybox { background: #fff; box-shadow: var(--shadow); padding: 28px 18px; text-align: center; color: var(--muted); }
.emptybox b { color: var(--text); display: block; margin-bottom: 4px; }
.emptybox p { margin: 0; }
.entries { display: grid; gap: 10px; margin-bottom: 18px; }
.entry { display: grid; grid-template-columns: 54px 1fr auto; gap: 4px 12px; align-items: center; background: #fff; box-shadow: var(--shadow); border-left: 4px solid var(--gold); padding: 12px 14px; }
.edate { text-align: center; background: var(--petrol-soft); padding: 6px 0; }
.edate b { display: block; font-size: 1.45rem; line-height: 1.05; font-weight: 800; color: var(--petrol); }
.edate span { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.ebody h3 { margin: 0; font-size: 1.02rem; }
.ebody p { margin: 0; font-size: .88rem; color: var(--muted); }
.ebody p.loc { color: var(--text); opacity: .75; overflow-wrap: anywhere; }
.eamt { text-align: right; }
.eamt b { font-size: 1.15rem; font-weight: 800; white-space: nowrap; }
.eact { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.eact form { margin: 0; }
.eact .btn.danger { margin-top: 0; }

.fab { position: fixed; right: 18px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 2rem; font-weight: 400; line-height: 56px; text-align: center; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.3); z-index: 25; }
.fab:hover { background: var(--gold-dark); }

/* Mobil: Tab-Leiste unten */
@media (max-width: 719px) {
  body.hasnav { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; flex-wrap: nowrap; gap: 0; background: #fff; border-top: 3px solid var(--gold); box-shadow: 0 -4px 16px rgba(0,0,0,.12); padding-bottom: env(safe-area-inset-bottom); overflow-x: auto; }
  .nav a { flex: 1 0 auto; min-width: 64px; flex-direction: column; gap: 2px; justify-content: center; color: var(--muted); font-size: .66rem; text-transform: none; letter-spacing: 0; padding: 8px 6px 7px; border: 0; text-align: center; }
  .nav a .ic { width: 22px; height: 22px; opacity: 1; }
  .nav a.on { color: var(--petrol); background: var(--petrol-soft); }
  .nav a:hover { background: var(--petrol-soft); }
  .foot { padding-bottom: 24px; }
  .herosum b { font-size: 2.3rem; }
  .entries { padding-bottom: 70px; }
  .listhead .btn { display: none; }
}
@media (min-width: 720px) {
  .fab { display: none; }
  .entry { grid-template-columns: 60px 1fr auto auto; }
  .eact { grid-column: auto; border: 0; padding: 0; margin: 0; }
  .hero { padding: 22px 26px; }
}
@media print { .nav, .fab, .outlink { display: none !important; } .entry, .hero { box-shadow: none; } }
