/* Stylesheet fuer die eigenstaendigen Detailseiten unter temperatur/
   (Temp24h.php etc.) - das Hauptdashboard (index.html) hat sein Styling
   inline; diese Datei bringt dieselbe Franzenhof-Optik (Farben, Schrift,
   Card-Look) auf die separaten Detailseiten, die sie per <link> einbinden. */

:root {
  --forest: #204430;
  --field: #d9b547;
  --cream: #f8f4e8;
  --text: #1f231f;
  --card: #ffffff;
  --line: rgba(32, 68, 48, 0.14);
  --shadow: 0 14px 40px rgba(19, 47, 34, 0.2);
  --chart-muted: #7c8a75;
  --chart-grid: #e4e8df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, #ffffff 0%, #f8f4e8 36%, transparent 58%),
    radial-gradient(circle at 88% 12%, #dbefd5 0%, #f8f4e8 34%, transparent 56%),
    var(--cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: var(--forest);
  margin: 0 0 14px;
  line-height: 1.2;
}

.legacy-page {
  margin: 0;
  min-height: 100vh;
}

.legacy-shell {
  width: min(1000px, 100% - 2rem);
  margin: 2rem auto;
}

.legacy-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 34px);
  overflow-x: auto;
}

.legacy-content h1,
.legacy-content h2,
.legacy-content h3 {
  margin-top: 0;
}

.legacy-content a {
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}

.legacy-content a:hover {
  text-decoration: underline;
}

.legacy-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.data-range {
  font-size: 0.85rem;
  color: var(--chart-muted);
  margin: -0.4rem 0 1.2rem;
}

.chart-wrap {
  position: relative;
  min-height: 320px;
  margin: 20px 0;
}

.legacy-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: #fff;
}

.legacy-content table th,
.legacy-content table td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.6rem;
  text-align: left;
}

.legacy-content table th {
  background: rgba(32, 68, 48, 0.06);
}

.legacy-content table tr:nth-child(even) {
  background: rgba(32, 68, 48, 0.03);
}

footer {
  padding: 20px;
  text-align: center;
  color: #314338;
}

footer a {
  color: var(--forest);
  font-weight: 700;
}
