/* Fredericianer.dk – fælles stylesheet */

:root {
  color-scheme: light dark;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #f0f4f2;
  --border: #e2e8e5;
  --text: #16221d;
  --text-muted: #5b6b64;
  --accent: #1f9d6f;
  --accent-hover: #17835d;
  --accent-light: #e6f5ef;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1512;
    --surface: #17211c;
    --surface-2: #131b17;
    --border: #263229;
    --text: #e7f0ea;
    --text-muted: #9db3a7;
    --accent-light: rgba(31,157,111,.15);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); }

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}
.topbar nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 20px;
}
.topbar nav a:hover { color: var(--accent); }

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}
.hero h1 {
  font-size: 26px;
  margin: 0 0 8px 0;
}
.hero p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-header h2 {
  font-size: 16px;
  margin: 0;
}
.card-body { padding: 20px 22px; }

.status {
  font-size: 13px;
  color: var(--text-muted);
}
.status.error { color: #c0392b; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
}

table.enhanced-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.enhanced-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
table.enhanced-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.enhanced-table tr:last-child td { border-bottom: none; }
table.enhanced-table a { text-decoration: none; }
table.enhanced-table a:hover { text-decoration: underline; }

.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  padding: 24px 20px;
}

/* Generisk side-container (bruges af about.php og adm.php) */
.container {
  max-width: 700px;
  margin: 32px auto;
  padding: 0 20px;
}
