/* ========== Fluid Typography & Spacing Tokens ========== */
:root {
  --fs-base: clamp(15px, 3.9vw, 18px);
  --fs-sm: clamp(0.78rem, 0.72rem + 0.4vw, 0.9rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 2.4vw, 2.1rem);
  --fs-date: clamp(0.8rem, 0.75rem + 0.5vw, 1rem);
  --fs-btn: clamp(0.8rem, 0.75rem + 0.4vw, 0.95rem);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --space-1: clamp(4px, 0.6vw, 8px);
  --space-2: clamp(8px, 1.2vw, 14px);
  --space-3: clamp(14px, 2vw, 22px);
  --space-4: clamp(20px, 3vw, 34px);
  --shadow-btn: 0 4px 12px rgba(0,0,0,.22);
  --shadow-btn-hover: 0 8px 24px rgba(0,0,0,.32);

  /* Neue warme Palette */
  --clr-bg: #f7f3ee;
  --clr-surface: #fdf9f3;
  --clr-surface-alt: #fbf5ee;
  --clr-border: #e7ddcf;
  --clr-border-soft: #efe6db;
  --clr-error-bg: #fce9e6;
  --clr-error-border: #e9b4ae;
  --clr-info-bg: #e8f0fe;
  --clr-info-border: #a9c1f5;
}

body {
  margin: 0;
  font-family: 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
  background: var(--clr-bg);
  color: #2a261f;
  -webkit-font-smoothing: antialiased;
  font-size: var(--fs-base);
  line-height: 1.4;
}

html,
body {
  height: 100%;
}

body.layout {
  margin: 0;
  min-height: 100%;
  display: block;
  background: #f4f6fa;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: linear-gradient(135deg, rgba(60,70,190,0.90), rgba(40,62,168,0.82));
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 15px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(90,70,40,0.18);
  color: white;
  /* border-radius: 8px; */
}

header h2 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .28);
  text-align: center;
}

.date-display {
  margin-top: 6px;
  font-size: var(--fs-date);
  font-weight: 500;
  letter-spacing: .5px;
}

.content {
  max-width: 1180px;
  margin: 25px auto 110px auto;
  padding: 0 22px;
  flex: 1;
  background: transparent;
}



.error-message {
  display: block;
  padding: 0.55em 0.75em;
  background: var(--clr-error-bg);
  border: 1px solid var(--clr-error-border);
  color: #7a3028;
  font-size: 0.78rem;
  border-radius: 4px;
  margin-top: 4px;
}

/* Mobile Optimierung verstärken */
@media (max-width:650px) {
  header h2 {
    font-size: 1.55rem;
  }

  .content {
    padding: 0 var(--space-2);
    margin: var(--space-2) auto 120px;
  }

  .date-display {
    font-size: .82rem;
    padding: 0;
  }

}