:root {
  --blue:    #1a6fa8;
  --blue2:   #155d8e;
  --green:   #27ae60;
  --red:     #e74c3c;
  --orange:  #e67e22;
  --gray:    #6c757d;
  --light:   #f8f9fa;
  --border:  #dee2e6;
  --shadow:  0 2px 16px rgba(0,0,0,.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #eaf3fb; color: #222; }

/* ── Header ── */
header {
  background: linear-gradient(135deg, var(--blue) 0%, #0d4f7c 100%);
  color: white; padding: 20px 0; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
header h1 { font-size: 1.8rem; font-weight: 700; }
header p  { opacity: .85; margin-top: 4px; font-size: .95rem; }
.fish-icon { font-size: 2.4rem; display: block; margin-bottom: 6px; }

/* ── Layout ── */
main { max-width: 960px; margin: 32px auto; padding: 0 16px 60px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── Cards ── */
.card {
  background: white; border-radius: 14px; padding: 28px;
  box-shadow: var(--shadow); margin-bottom: 20px;
}
.card h2 { color: var(--blue); font-size: 1.15rem; margin-bottom: 16px; border-bottom: 2px solid #eaf3fb; padding-bottom: 8px; }

/* ── Stat Boxes ── */
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.stat {
  flex: 1; min-width: 120px; background: white; border-radius: 12px;
  padding: 18px 14px; text-align: center; box-shadow: var(--shadow);
}
.stat .val  { font-size: 2rem; font-weight: 700; color: var(--blue); }
.stat .lbl  { font-size: .78rem; color: var(--gray); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
.stat.green .val { color: var(--green); }
.stat.red   .val { color: var(--red);   }
.stat.orange .val { color: var(--orange); }

/* ── Sacknummer Grid ── */
.sack-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.sack-btn {
  width: 48px; height: 48px; border: 2px solid var(--blue); background: white;
  border-radius: 8px; font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: all .15s; color: var(--blue);
}
.sack-btn:hover:not(:disabled) { background: var(--blue); color: white; }
.sack-btn:disabled { background: #f0f0f0; border-color: #ccc; color: #aaa; cursor: not-allowed; }
.sack-btn.selected { background: var(--blue); color: white; border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(26,111,168,.3); }
.legend { display: flex; gap: 18px; font-size: .82rem; color: var(--gray); margin-top: 8px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }

/* ── Form ── */
.form-group { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; color: #444; }
input[type=text], input[type=email], input[type=tel], input[type=number],
textarea, select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .95rem; transition: border-color .2s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,111,168,.12);
}
.checkbox-group { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.checkbox-group label { font-weight: 400; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-group input[type=checkbox] { width: 18px; height: 18px; }

.price-hint { font-size: .8rem; color: var(--gray); margin-top: 2px; }

/* ── Buttons ── */
.btn, button[type=submit] {
  display: inline-block; padding: 12px 28px; border: none; border-radius: 9px;
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .15s; text-decoration: none;
}
.btn-primary  { background: var(--blue);  color: white; }
.btn-primary:hover  { background: var(--blue2); }
.btn-success  { background: var(--green); color: white; }
.btn-success:hover  { background: #219a52; }
.btn-danger   { background: var(--red);   color: white; }
.btn-sm       { padding: 6px 14px; font-size: .82rem; }
.btn-outline  { background: white; border: 2px solid var(--blue); color: var(--blue); }

/* ── Alert ── */
.alert { padding: 14px 18px; border-radius: 9px; margin-bottom: 16px; font-weight: 500; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── Table ── */
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { background: var(--light); color: var(--gray); text-transform: uppercase; letter-spacing: .5px;
     font-size: .75rem; padding: 10px 12px; text-align: left; border-bottom: 2px solid var(--border); }
td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f9fbfd; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-green { background: #d4edda; color: #155724; }
.badge-gray  { background: #e9ecef; color: #495057; }
.badge-blue  { background: #cce5ff; color: #004085; }

/* ── Summary box ── */
.price-box {
  background: var(--light); border: 2px solid var(--blue); border-radius: 12px;
  padding: 20px; margin-top: 16px;
}
.price-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: .9rem; }
.price-row.total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; color: var(--blue); }

/* ── Sack number display ── */
.sack-nr-display {
  font-size: 3.5rem; font-weight: 800; color: var(--blue);
  background: var(--light); border: 3px solid var(--blue); border-radius: 14px;
  padding: 16px 32px; text-align: center; margin: 12px 0;
}

/* ── Admin nav ── */
.admin-nav { background: #0d4f7c; padding: 10px 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.admin-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; padding: 6px 12px; border-radius: 6px; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.15); color: white; }

/* ── Footer ── */
footer { text-align: center; color: var(--gray); font-size: .8rem; padding: 20px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
  .stats   { flex-direction: column; }
  header h1 { font-size: 1.4rem; }
  .sack-btn { width: 42px; height: 42px; font-size: .85rem; }
}
