/* css/style.css */
/* Astronomiekalender 2026 – Responsive Layout (Text links, Bild rechts)
   Hinweis: Alle Umlaute im HTML bitte als Entities (&auml; etc.). */

:root{
  --maxw: 1100px;
  --gap: 18px;
  --radius: 14px;

  --border: rgba(255,255,255,0.12);
  --bg: #0b1020;
  --card: rgba(255,255,255,0.06);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --link: rgba(140,190,255,0.95);

  --shadow: 0 10px 28px rgba(0,0,0,0.35);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(900px 600px at 80% 10%, rgba(120,160,255,0.14), transparent 55%),
    var(--bg);
}

a{ color: var(--link); text-decoration: none; }
a:hover{ text-decoration: underline; }

img{ max-width: 100%; display: block; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
header{
  padding: 28px 0 10px 0;
}

h1{
  margin: 0;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: 0.2px;
}

.subtitle{
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Monatsnavigation */
.month-nav{
  margin: 18px 0 22px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.month-nav h2{
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 600;
}

.thumb-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 980px){
  .thumb-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 620px){
  .thumb-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px){
  .thumb-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.thumb{
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(0,0,0,0.18);
  transition: transform .08s ease, border-color .08s ease, background .08s ease;
  text-align: center;
}

.thumb:hover{
  transform: translateY(-1px);
  border-color: rgba(140,190,255,0.35);
  background: rgba(0,0,0,0.26);
}

.thumb img{
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.thumb span{
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Monatssektionen */
main{ padding: 0 0 40px 0; }

.month-section{
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.month-header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.month-header h2{
  margin: 0;
  font-size: clamp(18px, 2.2vw, 26px);
}

.backtotop{
  font-size: 0.95rem;
  color: var(--muted);
}

/* Layout: links Text, rechts Bild; mobil stapeln */
.month-content{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 860px){
  .month-content{ grid-template-columns: 1fr; }
}

.month-text{
  min-width: 0;
}

.month-text p{
  margin: 0 0 10px 0;
}

.month-text ul{
  margin: 8px 0 0 18px;
  padding: 0;
}

.month-text li{
  margin: 4px 0;
}

.month-image{
  min-width: 0;
}

.month-image figure{
  margin: 0;
}

.month-image img{
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.20);
}

.month-image figcaption{
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer */
footer{
  padding: 22px 0 28px 0;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
}

.copyright{
  color: var(--muted);
  font-size: 0.95rem;
}

/* Optional: sanftere Sprunganimation bei Ankern */
html{
  scroll-behavior: smooth;
}

/* Optional: Druckansicht (Navigation ausblenden, Farben reduzieren) */
@media print{
  body{
    background: #ffffff !important;
    color: #000000 !important;
  }
  a{ color: #000000 !important; text-decoration: none !important; }
  .month-nav, .backtotop{ display: none !important; }
  .month-section{
    box-shadow: none !important;
    border: 1px solid #cccccc !important;
    background: #ffffff !important;
    break-inside: avoid;
  }
  .month-image img{
    max-height: none !important;
  }
  footer{
    background: #ffffff !important;
  }
}
