/* ==========================================================================
   Sächsische Bläserphilharmonie — intern.sbphil.music
   Schlichte, seriöse Basistypografie. Akzentfarbe in Anlehnung an das
   Erscheinungsbild des Hauses; Christian kann Logo und Farbwerte später
   ergänzen.
   ========================================================================== */
:root {
  --accent: #8a1b1b;      /* Burgunderrot */
  --accent-dark: #5e0f0f;
  --ink: #1b1b1b;
  --muted: #5a5a5a;
  --bg: #faf8f5;          /* warmes Elfenbein */
  --panel: #ffffff;
  --line: #e4ddcf;
  --soft: #f2ede3;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }

/* Kopfzeile ---------------------------------------------------------- */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}
.brand-main {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: .01em;
}
.brand-sub {
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.top-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
}
.top-nav a:hover { color: var(--accent); }
.greeting { color: var(--muted); font-size: .9rem; }
.inline-form { display: inline; margin: 0; padding: 0; }
.linklike {
  background: none; border: none; padding: 0;
  color: var(--ink); cursor: pointer; font: inherit;
}
.linklike:hover { color: var(--accent); }

/* Schaltflächen ------------------------------------------------------ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: .6rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  font: inherit;
  cursor: pointer;
  transition: background .15s ease;
}
.btn-primary:hover { background: var(--accent-dark); }

/* Hauptbereich ------------------------------------------------------- */
.site-main { padding: 2.5rem 0 4rem; min-height: 60vh; }

/* Hero / öffentliche Startseite -------------------------------------- */
.hero {
  background: var(--panel);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.1rem;
  margin: 0 0 .8rem;
}
.lede { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.2rem; }
.fineprint {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}
.cta-row { margin-top: 2rem; }

/* Dashboard ---------------------------------------------------------- */
.dashboard h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  margin: 0 0 .4rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.8rem 0 3rem;
}
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.6rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tile:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.tile-icon {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .3rem;
}
.tile-title {
  font-family: var(--serif);
  font-size: 1.2rem;
}
.tile-desc { color: var(--muted); font-size: .95rem; }

.notice {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}
.notice h2 { margin: 0 0 .3rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.notice p { margin: 0; color: var(--ink); }

/* Bereichs-Seite ----------------------------------------------------- */
.bereich h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.8rem;
  margin: 0 0 .4rem;
}
.breadcrumb { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.breadcrumb a { color: var(--muted); }
.bereich h2 { font-family: var(--serif); font-size: 1.2rem; margin-top: 2rem; }
.module-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.module-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: .2rem;
  column-gap: 1rem;
  align-items: center;
}
.module-list strong { font-family: var(--serif); font-size: 1.05rem; }
.module-list span { color: var(--muted); font-size: .95rem; grid-column: 1 / -1; }
.pill {
  justify-self: end;
  font-style: normal;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: var(--soft);
  padding: .2rem .55rem;
  border-radius: 999px;
}

/* Auth-Formulare ----------------------------------------------------- */
.auth {
  max-width: 420px;
  margin: 0 auto;
  background: var(--panel);
  padding: 2.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.auth h1 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0 0 .4rem; }
.auth-form { display: flex; flex-direction: column; gap: .4rem; margin-top: 1.2rem; }
.auth-form label { font-size: .88rem; color: var(--muted); }
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}
.auth-form input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.auth-form button { margin-top: .8rem; }
.auth .hint { color: var(--muted); font-size: .85rem; margin-top: 1.2rem; }

/* Meldungen ---------------------------------------------------------- */
.messages { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.msg { padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: .4rem; }
.msg-success { background: #e5f1e2; border: 1px solid #b8d7ae; }
.msg-error, .msg-danger { background: #fbe2e2; border: 1px solid #e4b7b7; }
.msg-info { background: var(--soft); border: 1px solid var(--line); }

/* Fußzeile ----------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: .9rem;
  background: var(--panel);
}
.site-footer a { color: var(--muted); }
