/* =====================================================================
   Intranet A & M Solutions – Stylesheet
   Corporate Design übernommen aus der Personalplanung
   (C:\dev\planungstool\frontend\src\index.css). Farben dort und hier
   gleich halten.
   ===================================================================== */

/* Schrift Inter (lokal, SIL Open Font License – siehe fonts/LICENSE-Inter.txt) */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #3d5c7b;
  --accent-dark: #2f4860;
  --navy: #0f172a;
  --tint: #e9eef3;       /* = --color-holiday der Personalplanung */
  --tint-strong: #d6e2ee; /* = --color-today der Personalplanung */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ---------- Kopfzeile (wie Personalplanung) ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: max(0.5rem, env(safe-area-inset-top)) 12px 0.5rem;
  background: #fff;
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid var(--line);
}
.kopf img { height: 36px; display: block; }
.kopf .trenner { width: 1px; height: 28px; background: var(--line); }
.kopf .titel { font-weight: 700; color: var(--navy); }
.kopf .datum { margin-left: auto; font-size: 0.875rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 599px) { .kopf .datum { display: none; } }
@media (min-width: 768px) {
  .kopf { padding-left: 20px; padding-right: 20px; }
  .kopf img { height: 40px; }
  .kopf .titel { font-size: 1.125rem; }
}

/* ---------- Inhalt ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}
.einleitung h1 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.einleitung p { margin: 0 0 24px; color: var(--muted); }
@media (min-width: 768px) {
  main { padding-top: 40px; }
  .einleitung h1 { font-size: 1.875rem; }
}

/* ---------- Kacheln ---------- */
.kacheln {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .kacheln { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .kacheln { grid-template-columns: repeat(3, 1fr); } }

.kachel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.kachel:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px -8px rgba(15, 23, 42, .25);
  transform: translateY(-2px);
}
.kachel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.kachel .symbol {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--accent);
  transition: background .15s, color .15s;
}
.kachel:hover .symbol { background: var(--accent); color: #fff; }
.kachel .symbol svg { width: 24px; height: 24px; }

/* Symbol links, Name rechts daneben */
.kachel .kopfzeile { display: flex; align-items: center; gap: 12px; }
.kachel h2 { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--navy); }
.kachel p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.kachel .adresse {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.kachel .adresse svg { width: 18px; height: 18px; color: var(--accent); transition: transform .15s; }
.kachel:hover .adresse svg { transform: translateX(3px); }

/* ---------- Fußzeile ---------- */
.fuss {
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .kachel, .kachel .symbol, .kachel .adresse svg { transition: none; }
  .kachel:hover { transform: none; }
}
