:root {
  --green:       #0a9d4a;
  --green-dark:  #07863c;
  --green-light: #1fd66a;
  --bg:          #0b0f14;
  --bg-2:        #0f1620;
  --panel:       #161d27;
  --panel-light: #1e2733;
  --text:        #eef2f7;
  --text-dim:    #8b98a6;
  --border:      #28323f;
  --accent:      #ffd23f;
  --danger:      #e05555;
  --radius:      14px;
  --radius-lg:   20px;
  --shadow:      0 8px 30px rgba(0,0,0,.35);
  --shadow-sm:   0 2px 10px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100%;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
body {
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(31,214,106,.10), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(10,157,74,.08), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

/* ── Logo (gezeichneter Golfer, kein Emoji) ── */
.logo { width: 30px; height: 30px; display: block; flex-shrink: 0; }
.logo .body { stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.logo .club { stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; fill: none; opacity: .75; }
.logo .head { fill: currentColor; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(180deg, var(--green-light), var(--green));
  color: #042a14; border: none;
  padding: 12px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: filter .15s, transform .08s, box-shadow .15s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(16,160,80,.28);
}
.btn:hover  { filter: brightness(1.06); box-shadow: 0 6px 22px rgba(16,160,80,.38); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-ghost  {
  background: rgba(255,255,255,.05); color: var(--text);
  border: 1px solid var(--border); box-shadow: none; font-weight: 600;
}
.btn-ghost:hover { background: rgba(255,255,255,.09); filter: none; box-shadow: none; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: none; }
.btn-danger:hover { background: #c04444; filter: none; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn-full { width: 100%; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.field input, .field textarea, .field select {
  background: var(--panel-light); border: 1px solid var(--border);
  color: var(--text); padding: 11px 14px; border-radius: var(--radius);
  font-size: 15px; font-family: inherit;
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green);
}
.field textarea { resize: vertical; min-height: 80px; }

/* ── Cards ── */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm);
}

/* ── Nav ── */
nav.topbar {
  background: rgba(13,18,24,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding: 13px 20px; display: flex; align-items: center; gap: 11px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
nav.topbar .logo { width: 28px; height: 28px; color: var(--green-light); }
nav.topbar h1 { font-size: 17px; font-weight: 800; flex: 1; letter-spacing: -.4px; }
nav.topbar .nav-links { display: flex; gap: 8px; }

/* ── Layout helpers ── */
.page  { max-width: 960px; margin: 0 auto; padding: 28px 18px 60px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row   { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ── Badge ── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.badge-green { background: rgba(10,125,60,.25); color: #5dff8f; }
.badge-dim   { background: var(--panel-light); color: var(--text-dim); }
.badge-accent { background: rgba(255,210,63,.15); color: var(--accent); }

/* ── Toast ── */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  padding: 12px 22px; border-radius: 20px; font-size: 14px; font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,.4); z-index: 9999;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
#toast.show { opacity: 1; }

/* ── Loading overlay ── */
.spinner {
  width: 22px; height: 22px; border: 3px solid var(--border);
  border-top-color: var(--green); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ── */
.empty {
  text-align: center; padding: 60px 24px;
  color: var(--text-dim); display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty .empty-icon { font-size: 48px; opacity: .6; }
.empty h3 { font-size: 17px; color: var(--text); }
.empty p  { font-size: 14px; max-width: 300px; line-height: 1.55; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .page { padding: 18px 14px 50px; }
  nav.topbar h1 { font-size: 15px; }
}
