/* news-page.css — dauerhafte News-Übersicht in der PWA-Shell
 *
 * Eigenständiges Stylesheet (nicht Teil von index.html), da diese Seite
 * unabhängig vom Splash/Modal-Ablauf der Shell aufgerufen wird. Nutzt
 * dieselben Design-Tokens (Farben, Fonts) wie index.html und das
 * bestehende tcm-tabbar.css-Muster der drei Fach-Apps - hier inline
 * mitgeliefert, weil die Shell bisher keine eigene Tab-Bar-CSS-Datei
 * hatte (sie wurde nie als Tab-Ziel gebraucht, bis jetzt).
 */

@font-face {
  font-family: 'DM Sans';
  src: local('DM Sans');
}

:root {
  --green: #077407;
  --green-mid: #3cae3c;
  --green-xlight: #f2f9f4;
  --accent: #d4a035;
  --text: #111a14;
  --text-2: #3d5245;
  --border: #dce8e0;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body.tcm-news-page {
  margin: 0;
  background: var(--green-xlight);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.news-page-header {
  background: var(--green);
  padding: 20px 20px 18px;
  padding-top: max(20px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-page-header .news-page-icon { font-size: 1.4rem; }

.news-page-header h1 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  font-weight: 400;
  margin: 0;
}

.news-page-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
  margin: 0 auto;
}

.news-page-empty {
  text-align: center;
  color: var(--text-2);
  margin-top: 40px;
  font-size: .9rem;
}

.news-page-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-page-card.is-expired {
  opacity: .55;
}

.news-page-card-head {
  padding: 14px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.news-page-card-head h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin: 0;
}

.news-page-badge {
  background: #f0f0f0;
  color: #999;
  font-size: .65rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-page-card-body {
  padding: 8px 18px 14px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text);
}

.news-page-card-body p { margin: 0 0 8px 0; }
.news-page-card-body p:last-child { margin-bottom: 0; }
.news-page-card-body strong { color: var(--green); }
.news-page-card-body a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.news-page-card-body ul { margin: 8px 0 8px 20px; }

.news-page-card-foot {
  padding: 0 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .72rem;
  color: var(--text-2);
  opacity: .8;
}

.news-page-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  opacity: 1;
}

/* ── Gemeinsame Tab-Bar (identisch zu buchung/survey/work) ── */
.tcm-tabbar {
  display: none;
}

@media (display-mode: standalone) {
  .tcm-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  }

  body.tcm-has-tabbar .news-page-list {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0));
  }

  .tcm-tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px 6px;
    text-decoration: none;
    color: #6b8070;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
  }

  .tcm-tabbar-icon {
    font-size: 1.35rem;
    line-height: 1;
  }

  .tcm-tabbar-item.is-active {
    color: var(--green);
  }

  .tcm-tabbar-item.is-active .tcm-tabbar-icon {
    transform: translateY(-1px);
  }
}
