@import url("../fonts/fonts.css");

:root {
  --brand-primary: #608278;
  --brand-deep: #3d5951;
  --bg-a: #d9e4e0;
  --bg-b: #f3f8f6;
  --bg-c: #e4efeb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --text-main: #2f4741;
  --text-soft: #4f6f67;
  --accent: #608278;
  --accent-strong: #3d5951;
  --focus: #1f4f47;
  --shadow: 0 18px 40px rgba(40, 74, 65, 0.16);
  --radius-lg: 22px;
  --radius-md: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  min-height: 100vh;
  color: var(--text-main);
  font-family: "Nunito Sans", "Trebuchet MS", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(140, 171, 160, 0.42), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(96, 130, 120, 0.22), transparent 58%),
    linear-gradient(165deg, var(--bg-a) 0%, var(--bg-b) 45%, var(--bg-c) 100%);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -200%;
  z-index: 999;
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  background: var(--accent-strong);
  border-radius: 8px;
  text-decoration: none;
  transition: top 140ms ease-out;
}

.skip-link:focus {
  top: 0.75rem;
}

.page-shell {
  width: min(1180px, calc(100% - 2.2rem));
  margin: 1.3rem auto 2.4rem;
}

.noscript-note {
  margin: 0;
  padding: 0.8rem 1rem;
  text-align: center;
  color: #ffffff;
  background: var(--brand-deep);
}

.site-header {
  padding: 1.15rem 1.4rem 0.55rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 76px;
  height: 76px;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  flex: 0 0 auto;
  display: block;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 700;
}

.site-title {
  margin: 0.22rem 0 0.14rem;
  font-family: "Fraunces", "Garamond", serif;
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  line-height: 1.12;
  font-weight: 500;
  color: var(--brand-deep);
}

.date-label {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.daily-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.visual-panel,
.text-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
  backdrop-filter: blur(1.5px);
}

.visual-panel {
  padding: 1.25rem 1rem 1.15rem;
  text-align: center;
}

.card-title {
  margin: 0;
  font-family: "Fraunces", "Garamond", serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 500;
  color: var(--brand-deep);
}

.card-meta {
  margin: 0.44rem 0 0.88rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.card-figure {
  margin: 0;
}

#card-image {
  width: min(100%, 430px);
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(199, 127, 104, 0.22);
  box-shadow: 0 12px 24px rgba(96, 55, 43, 0.11);
}

#card-image.is-missing {
  border-style: dashed;
  border-color: rgba(96, 130, 120, 0.35);
  box-shadow: none;
}

.image-status {
  margin: 0.65rem 0 0;
  min-height: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.text-panel {
  padding: 1.25rem 1rem 1.3rem;
}

.section-title {
  margin: 0.2rem 0 0.58rem;
  font-family: "Fraunces", "Garamond", serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--brand-deep);
}

.section-subtitle {
  margin: 1rem 0 0.45rem;
  font-family: "Fraunces", "Garamond", serif;
  font-size: 1.03rem;
  font-weight: 500;
  color: var(--brand-deep);
}

.content-block {
  margin: 0 0 1rem;
  padding: 0.78rem 0.86rem;
  border-radius: 11px;
  background: rgba(255, 251, 247, 0.92);
  border: 1px solid rgba(96, 130, 120, 0.22);
}

.content-block p {
  margin: 0;
}

.content-block p + p {
  margin-top: 0.72rem;
}

.content-item-title {
  margin: 0 0 0.48rem;
  font-family: "Fraunces", "Garamond", serif;
  font-size: 1.02rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--brand-deep);
}

.content-list {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem 0.85rem 1.35rem;
  border-radius: 11px;
  background: rgba(255, 251, 247, 0.92);
  border: 1px solid rgba(96, 130, 120, 0.22);
}

.content-list li + li {
  margin-top: 0.5rem;
}

.tts-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.read-aloud {
  margin-top: 0.95rem;
  padding-top: 0.78rem;
  border-top: 1px dashed rgba(96, 130, 120, 0.28);
}

.voice-picker {
  margin: 0.2rem 0 0.7rem;
}

.voice-label {
  display: inline-block;
  margin: 0 0 0.32rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  font-weight: 700;
}

.voice-select {
  width: min(100%, 460px);
  border: 1px solid rgba(61, 89, 81, 0.35);
  border-radius: 10px;
  padding: 0.5rem 0.62rem;
  background: #f6faf8;
  color: var(--brand-deep);
  font-size: 0.9rem;
  line-height: 1.3;
}

.voice-select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.voice-hint {
  margin: 0.42rem 0 0;
  min-height: 1.2rem;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.section-status {
  margin: 0.56rem 0 0;
  min-height: 1.2rem;
  color: var(--text-soft);
  font-size: 0.84rem;
}

button {
  border: 1px solid rgba(61, 89, 81, 0.45);
  border-radius: 999px;
  padding: 0.58rem 1.02rem;
  background: #eef5f2;
  color: var(--brand-deep);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #e3eee9;
}

button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.tts-status {
  margin: 0.62rem 0 0;
  color: var(--text-soft);
  min-height: 1.2rem;
}

/* ── Newsletter / Kontaktformular ─────────────────────── */

.newsletter-block {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem 1.3rem;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
  backdrop-filter: blur(1.5px);
}

.newsletter-title {
  margin: 0 0 0.3rem;
  font-family: "Fraunces", "Garamond", serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--brand-deep);
}

.newsletter-text {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.bot-field {
  display: none;
}

.nl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}

.nl-input {
  flex: 1 1 160px;
  border: 1px solid rgba(61, 89, 81, 0.35);
  border-radius: 10px;
  padding: 0.52rem 0.7rem;
  background: #f6faf8;
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.3;
}

.nl-input::placeholder {
  color: var(--text-soft);
  opacity: 0.75;
}

.nl-input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.nl-submit {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nl-status {
  margin: 0.6rem 0 0;
  min-height: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.nl-status.is-success {
  color: #2a6049;
  font-weight: 600;
}

.nl-status.is-error {
  color: #b83232;
}

.nl-privacy {
  margin: 0.55rem 0 0;
  font-size: 0.76rem;
  color: var(--text-soft);
}

.nl-privacy a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

/* ── Teilen-Block ─────────────────────────────────────── */

.share-block {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem 1.3rem;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
  backdrop-filter: blur(1.5px);
}

.share-title {
  margin: 0 0 0.3rem;
  font-family: "Fraunces", "Garamond", serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--brand-deep);
}

.share-text {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(61, 89, 81, 0.45);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: #eef5f2;
  color: var(--brand-deep);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: background 120ms ease, border-color 120ms ease;
}

.share-btn:hover {
  background: #e3eee9;
  border-color: rgba(61, 89, 81, 0.65);
}

.share-btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.share-copy-status {
  margin: 0.55rem 0 0;
  min-height: 1.1rem;
  font-size: 0.84rem;
  color: #2a6049;
  font-weight: 600;
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  margin-top: 0.95rem;
  padding: 0.6rem 0 0.2rem;
}

.cta-block {
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem 1.3rem;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
  backdrop-filter: blur(1.5px);
}

.cta-title {
  margin: 0 0 0.42rem;
  font-family: "Fraunces", "Garamond", serif;
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--brand-deep);
  font-weight: 600;
}

.cta-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.cta-link {
  display: inline-block;
  margin-top: 0.82rem;
  border: 1px solid rgba(61, 89, 81, 0.45);
  border-radius: 999px;
  padding: 0.5rem 0.96rem;
  background: #eef5f2;
  color: var(--brand-deep);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.cta-link:hover {
  background: #e3eee9;
}

.legal-links {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.46rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.legal-link {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

.legal-link:hover {
  color: var(--accent-strong);
}

.legal-separator {
  color: rgba(61, 89, 81, 0.56);
}

a:focus-visible,
button:focus-visible,
.voice-select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (min-width: 980px) {
  .page-shell {
    margin-top: 1.6rem;
  }

  .daily-layout {
    grid-template-columns: minmax(330px, 0.9fr) minmax(440px, 1.1fr);
    gap: 1.2rem;
    align-items: start;
  }

  .visual-panel {
    position: sticky;
    top: 1rem;
  }

  .text-panel {
    padding: 1.32rem 1.2rem 1.45rem;
  }

  .cta-block {
    padding: 1.32rem 1.2rem 1.45rem;
  }

  .newsletter-block {
    padding: 1.32rem 1.2rem 1.45rem;
  }

  .share-block {
    padding: 1.32rem 1.2rem 1.45rem;
  }

  .brand-logo {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 560px) {
  .brand-row {
    align-items: flex-start;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* INFO-BANNER: einmaliger Hinweis zur lokalen Speicherung */
#info-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface-strong);
  border: 1px solid rgba(96, 130, 120, 0.25);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(40, 74, 65, 0.2);
  padding: 18px 20px;
  z-index: 900;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-main, #2f4741);
}
#info-banner[hidden] { display: none; }
#info-banner .ib-title {
  font-family: "Fraunces", "Garamond", serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--brand-deep);
}
#info-banner .ib-text { margin-bottom: 12px; }
#info-banner .ib-text a { color: var(--brand-primary); text-decoration: underline; }
#info-banner .ib-actions { display: flex; justify-content: flex-end; }
#info-banner .ib-ok {
  padding: 8px 20px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: "Nunito Sans", "Trebuchet MS", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
#info-banner .ib-ok:hover { background: var(--brand-deep); }
@media (max-width: 480px) {
  #info-banner { bottom: 8px; left: 8px; right: 8px; padding: 14px 16px; }
}
