/* Annis Wochenplaner — Layout 1:1 nach der Planer-Vorlage (Querformat A4) */

@font-face {
  font-family: "Yeseva One";
  src: url("fonts/yeseva-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --creme: #fffbed;
  --gruen: #f7ffec;
  --braun: #736865;        /* Titel */
  --grau-dunkel: #6d655f;  /* Tageslabels, Linien */
  --grau-text: #5f5852;    /* Eintragstext */
  --grau-hell: #a9a29a;    /* WOCHE:-Label, Datum */
  --terrakotta: #a94f2e;   /* Heute-Markierung (aus der Zweig-Deko) */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: #ffffff; }

body {
  font-family: "Barlow", Arial, sans-serif;
  color: var(--grau-text);
  overflow-x: hidden;
}

.blatt {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 52px) 40px;
  z-index: 1;
}

/* ---------- Kopf ---------- */

.kopf { text-align: center; }

.kopf h1 {
  font-family: "Yeseva One", Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: 0.04em;
  color: var(--braun);
}

.divider {
  display: block;
  margin: 6px auto 0;
  width: min(560px, 72%);
  height: auto;
}

/* ---------- Deko-Zweige ---------- */

.deko {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  height: auto;
}
.deko-oben-rechts { top: 0; right: 8px; width: clamp(90px, 11vw, 170px); }
.deko-links       { left: -14px; top: 44%; width: clamp(80px, 9vw, 140px); }
.deko-unten-rechts{ right: 4px; bottom: 0; width: clamp(110px, 13vw, 210px); }

/* ---------- Steuerung (Blättern) ---------- */

.steuerung {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 10px 0 2px;
}

.steuerung button {
  font-family: "Barlow", Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--grau-dunkel);
  background: #fff;
  border: 1px solid #ddd6ca;
  border-radius: 999px;
  min-width: 38px;
  height: 34px;
  padding: 0 14px;
  cursor: pointer;
}
.steuerung button:hover { background: var(--creme); }
#btn-zurueck, #btn-vor { font-size: 20px; line-height: 1; padding: 0 12px; }

.speicher-status {
  font-size: 13px;
  color: var(--grau-hell);
  margin-right: auto;
  transition: opacity 0.6s;
}

/* ---------- Wochenblöcke ---------- */

.woche-label {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--grau-hell);
  text-transform: uppercase;
  margin: 14px 0 12px 4px;
}

.tage {
  display: grid;
  grid-template-columns: repeat(5, 1fr) 1.32fr;
  gap: 14px;
}

.tag-karte {
  border-radius: 12px;
  padding: 16px 12px 12px;
  min-height: clamp(220px, 30vh, 320px);
  display: flex;
  flex-direction: column;
}
.creme .tag-karte { background: var(--creme); }
.gruen .tag-karte { background: var(--gruen); }

.tag-name {
  font-weight: 700;
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.08em;
  color: var(--grau-dunkel);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-datum {
  font-weight: 500;
  font-size: 12px;
  color: var(--grau-hell);
  text-align: center;
  margin-top: 2px;
}

.tag-linie {
  border: 0;
  border-top: 2px solid var(--grau-dunkel);
  width: 78%;
  margin: 8px auto 10px;
}

.tag-karte textarea {
  flex: 1;
  width: 100%;
  background: transparent;
  border: 0;
  resize: none;
  outline: none;
  font-family: "Barlow", Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--grau-text);
}

/* Heute-Markierung */
.tag-karte.heute .tag-name,
.tag-karte.heute .tag-datum { color: var(--terrakotta); }
.tag-karte.heute .tag-linie { border-top-color: var(--terrakotta); }

.block-trenner {
  border: 0;
  border-top: 2px solid #e4e4e4;
  margin: 26px 0 2px;
}

.fuss {
  margin-top: 26px;
  text-align: center;
  font-size: 11px;
  color: #cfc9c0;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .tage { grid-template-columns: repeat(3, 1fr); }
  .tag-karte { min-height: 200px; }
  .deko-links { display: none; }
}

/* ---------- Handy ---------- */

@media (max-width: 640px) {
  .tage { grid-template-columns: 1fr; gap: 10px; }
  .tag-karte { min-height: 128px; padding: 12px 12px 10px; }
  .tag-name { font-size: 12px; }
  .tag-linie { margin: 6px auto 8px; }
  .kopf { padding: 26px 30px 0; }
  .kopf h1 { font-size: 22px; }
  .deko-oben-rechts { width: 58px; }
  .deko-unten-rechts { width: 90px; opacity: 0.85; }
  .steuerung { justify-content: center; }
  .speicher-status { margin-right: 0; width: 100%; text-align: center; order: 9; }
}
