/* =========================
   Konsolidierte styles.css (für Grid + Cards + Icons + Buttons)
   Pfad: /media/lernplattform_taekwondo/styles.css
   ========================= */

:root{
  --bg:#f3f5f7;
  --fg:#1f2937;
  --muted:#6b7280;

  --primary:#0f3c68;
  --primary-soft:#e6eef6;

  --accent:#c62828;

  --card:#ffffff;
  --border:#e5e7eb;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--fg);
  background:var(--bg);
}

/* =========================
   Header
   ========================= */

header{
  background:var(--primary);
  color:#fff;
  padding:20px 28px;
}

header h1{
  margin:0 0 6px 0;
  font-size:1.6rem;
  font-weight:800;
  letter-spacing:.2px;
}

header p{
  margin:0;
  opacity:.9;
  font-size:.95rem;
}

/* =========================
   Main Layout
   ========================= */

main{
  max-width:1100px;
  margin:28px auto;
  padding:0 20px;
}

/* =========================
   Card / Section
   ========================= */

.card,
.section{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:22px;
  margin-bottom:22px;
}

.card h2,
.section h2{
  margin:0 0 14px 0;
  font-size:1.4rem;
}

h3{
  margin:0 0 6px 0;
  font-size:1.05rem;
}

.dim{
  color:var(--muted);
}

/* =========================
   Module Grid + Cards
   ========================= */

.module-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:10px;
}

@media (max-width:980px){
  .module-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:640px){
  .module-grid{ grid-template-columns:1fr; }
}

.module-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  transition:box-shadow .2s ease, transform .15s ease;
}

.module-card:hover{
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  transform:translateY(-2px);
}

.module-icon{
  width:46px;
  height:46px;
  border-radius:12px;
  background:var(--primary-soft);
  display:grid;
  place-items:center;
  font-size:22px;
  flex:0 0 46px;
}

.module-body p{
  margin:0 0 12px 0;
  font-size:.95rem;
  line-height:1.35;
}

/* =========================
   Buttons
   ========================= */

.btn{
  display:inline-block;
  padding:8px 14px;
  background:var(--primary);
  color:#fff;
  border-radius:8px;
  text-decoration:none;
  font-weight:800;
  font-size:.9rem;
  border:none;
  cursor:pointer;
}

.btn:hover{ filter:brightness(1.08); }

.button{
  display:inline-block;
  padding:7px 12px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
  color:var(--fg);
  cursor:pointer;
  font-weight:700;
}

.button:hover{
  background:#f7f7f7;
}

/* Normaler Link (außer Buttons) */
a:not(.btn){
  color:var(--primary);
}

/* =========================
   Tiles (Search UI)
   ========================= */

.tile{
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px 14px;
}

.tile:hover{
  box-shadow:0 8px 20px rgba(0,0,0,.07);
}

/* =========================
   Inputs / Selects
   ========================= */

input, select{
  border:1px solid var(--border);
  border-radius:8px;
  outline:none;
}

input:focus, select:focus{
  border-color:#c9d6e6;
  box-shadow:0 0 0 4px rgba(15,60,104,.12);
}

/* =========================
   Banner (Read-only / Demo)
   ========================= */

[data-readonly-banner]{
  display:none;
  background:#fff3cd;
  color:#664d03;
  border:1px solid #ffecb5;
  border-radius:10px;
  padding:14px 16px;
  margin:16px 0;
}

/* =========================
   Responsive
   ========================= */

@media (max-width:700px){
  header{ padding:18px 18px; }
  header h1{ font-size:1.35rem; }
  main{ margin:18px auto; padding:0 14px; }
  .card,.section{ padding:18px; }
}
