/* =============== */
/* Design Tokens   */
/* =============== */
:root{
  /* Logo-inspiriert: Navy + Gold + neutrales Grau */
  --c-bg: #0b0f16;
  --c-surface: #101827;
  --c-surface-2: #0f1624;

  --c-text: #e7ecf5;
  --c-muted: #aab4c5;

  --c-border: rgba(255,255,255,.10);

  --c-primary: #0b2a5b;   /* Navy */
  --c-accent: #d4b15f;    /* Gold */
  --c-accent-2: #f0d58a;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);

  --container: 760px;
}

/* =============== */
/* Base            */
/* =============== */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--c-text);
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(212,177,95,.18), transparent 60%),
    radial-gradient(900px 600px at 80% 10%, rgba(11,42,91,.30), transparent 55%),
    var(--c-bg);
}

a{ color: inherit; }
a:hover{ opacity: .92; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px;
}

h1{ font-size: 32px; letter-spacing: .2px; margin: 18px 0 14px; }
h2{ font-size: 20px; margin: 0 0 12px; }
h3{ font-size: 16px; margin: 0 0 10px; color: var(--c-text); }

p{ line-height: 1.55; color: var(--c-text); }
small, .muted{ color: var(--c-muted); }

/* =============== */
/* App Layout      */
/* =============== */
.app-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,15,22,.70);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.app-header__inner{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
}

.app-main{
  padding: 10px 0 28px;
}

.app-footer{
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
  padding: 14px 0 18px;
}

/* =============== */
/* Brand / Logo    */
/* =============== */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__logo{
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--c-border);
  box-shadow: 0 10px 18px rgba(0,0,0,.25);
}

.brand__text{
  display: grid;
  line-height: 1.05;
}

.brand__name{
  font-weight: 800;
  letter-spacing: .8px;
}

.brand__sub{
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: .4px;
}

/* =============== */
/* Cards           */
/* =============== */
.card{
  background: linear-gradient(180deg, rgba(16,24,39,.95), rgba(15,22,36,.95));
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.card + .card{ margin-top: 12px; }

/* =============== */
/* Buttons / Links */
/* =============== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 12px;
  border-radius: 12px;

  border: 1px solid rgba(212,177,95,.35);
  background: linear-gradient(180deg, rgba(212,177,95,.22), rgba(212,177,95,.12));
  color: var(--c-text);

  text-decoration: none;
  cursor: pointer;
  font-weight: 650;
}

.btn:hover{
  border-color: rgba(212,177,95,.55);
  background: linear-gradient(180deg, rgba(212,177,95,.28), rgba(212,177,95,.14));
}

.btn:active{ transform: translateY(1px); }

/* Plain link styling inside cards */
.card a{
  color: var(--c-accent-2);
  text-decoration: none;
}
.card a:hover{ text-decoration: underline; }

/* =============== */
/* Lists           */
/* =============== */
ul{
  margin: 10px 0 0;
  padding-left: 18px;
}
li{ margin: 8px 0; }
li small{ display: inline-block; margin-top: 4px; color: var(--c-muted); }

/* =============== */
/* Forms           */
/* =============== */
label{ color: var(--c-muted); font-weight: 600; }
input, textarea, select{
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: rgba(255,255,255,.04);
  color: var(--c-text);
  outline: none;
}
textarea{ min-height: 92px; resize: vertical; }
input:focus, textarea:focus, select:focus{
  border-color: rgba(212,177,95,.55);
  box-shadow: 0 0 0 3px rgba(212,177,95,.16);
}

/* Django form.as_p spacing */
form p{ margin: 12px 0; }

/* =============== */
/* Navigation      */
/* =============== */
.app-nav{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.app-nav__logout{
  margin: 0;
}

/* =============== */
/* Header Layout tweak */
/* =============== */
/* Logo mittig "in der App": Header-Inhalt sauber ausrichten */
.app-header__inner{
  justify-content: space-between; /* statt center, damit nav rechts Platz hat */
  gap: 14px;
}

/* Optional: Logo etwas kompakter im Header (200x200 ist riesig für sticky header) */
.brand__logo{
  width: 120px;
  height: 120px;
}

/* =============== */
/* Button Variants */
/* =============== */
.btn--ghost{
  border: 1px solid var(--c-border);
  background: rgba(255,255,255,.04);
}

.btn--ghost:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(212,177,95,.35);
}

.btn--primary{
  border-color: rgba(212,177,95,.70);
  background: linear-gradient(180deg, rgba(212,177,95,.35), rgba(212,177,95,.18));
}
img{
  max-width: 100%;
  height: auto;
  display: block;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  border:1px solid var(--c-border);
  background: rgba(255,255,255,.04);
  color: var(--c-muted);
}

.badge--today{
  border-color: rgba(212,177,95,.45);
  background: rgba(212,177,95,.12);
  color: var(--c-text);
}

.badge--done{
  border-color: rgba(120, 220, 160, .35);
  background: rgba(120, 220, 160, .10);
  color: var(--c-text);
}

.badge--open{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--c-muted);
}
.session-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:6px;
}

.session-actions{
  display:flex;
  gap:12px;
  align-items:center;
  white-space:nowrap;
}

/* optional: extra Status */
.badge--missed{
  border-color: rgba(240, 80, 80, .35);
  background: rgba(240, 80, 80, .10);
  color: var(--c-text);
}

.badge--muted{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--c-muted);
}
