/* Albverein Aichtal — öffentliches Design, 2026 */

:root {
  --color-red: #8a1c2e;
  --color-red-dark: #6d1523;
  --color-green: #2e4d33;
  --color-green-light: #4c7a52;
  --color-cream: #faf8f4;
  --color-surface: #ffffff;
  --color-text: #262420;
  --color-text-muted: #6b665e;
  --color-border: #e7e0d3;
  --shadow-sm: 0 1px 2px rgba(38, 36, 32, 0.06), 0 1px 3px rgba(38, 36, 32, 0.08);
  --shadow-md: 0 4px 12px rgba(38, 36, 32, 0.10), 0 2px 4px rgba(38, 36, 32, 0.06);
  --radius: 14px;
  --max-width: 1180px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header / Nav --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(38, 36, 32, 0.06), 0 6px 20px -12px rgba(38, 36, 32, 0.18);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.7rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand img { height: 44px; width: auto; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { color: var(--color-red); font-size: 1.05rem; font-weight: 700; }
.brand__text span { color: var(--color-green); font-size: 0.85rem; font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-green);
  padding: 0.25rem 0.5rem;
}

nav.main-nav { flex: 1; display: flex; justify-content: flex-end; }
nav.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav.main-nav li { position: relative; }

nav.main-nav > ul > li > a,
nav.main-nav > ul > li > span.nav-label {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li:hover > span.nav-label,
nav.main-nav > ul > li.is-open > span.nav-label {
  background: var(--color-green);
  color: #fff;
}

/* --- Header CTA-Gruppe (Instagram / Newsletter / Mitglied werden) --- */

.header-cta { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-icon:hover { transform: translateY(-1px); text-decoration: none; }
.btn-instagram {
  background: radial-gradient(circle at 30% 110%, #ffdb73 0%, #fdb32e 12%, #f2521f 35%, #d92d77 55%, #b6238e 70%, #6228d7 100%);
  box-shadow: 0 2px 8px rgba(217, 45, 119, 0.35);
}

/* --- Nav-Extras (Instagram/Newsletter), nur im mobilen Menü sichtbar --- */

.nav-extra {
  display: none;
}

nav.main-nav .submenu {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  min-width: 240px;
  display: none;
  z-index: 60;
}

nav.main-nav li:hover > .submenu,
nav.main-nav li.is-open > .submenu { display: block; }

nav.main-nav .submenu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
}
nav.main-nav .submenu a:hover { background: var(--color-cream); text-decoration: none; }

/* --- Hero --- */

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(160deg, var(--color-green) 0%, var(--color-green-light) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.14), transparent 55%);
}
.hero .container { position: relative; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 0.9rem; font-weight: 800; letter-spacing: -0.01em; }
.hero p.lead { font-size: 1.15rem; max-width: 60ch; color: rgba(255,255,255,0.92); }

.hero--photo {
  padding: 6.5rem 0 4.5rem;
  background-size: cover;
  background-position: center;
}
.hero--photo::after {
  background: linear-gradient(160deg, rgba(20, 33, 22, 0.82) 0%, rgba(20, 33, 22, 0.72) 55%, rgba(20, 33, 22, 0.6) 100%);
}
.hero--photo h1, .hero--photo p.lead { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }

/* --- Seiten-Titelbild (Wandern, Familien, etc.) --- */

.page-banner { width: 100%; height: 320px; overflow: hidden; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .page-banner { height: 200px; } }

/* --- Section layout --- */

.section { padding: 3rem 0; }
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  gap: 1rem;
}
.section-title h2 { font-size: 1.5rem; margin: 0; color: var(--color-red); }
.section-title a.more { font-weight: 600; font-size: 0.92rem; white-space: nowrap; }

.home-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; } }

/* --- Cards --- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card__body { padding: 1.1rem 1.25rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card__date { color: var(--color-text-muted); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.card__title { font-size: 1.12rem; margin: 0.35rem 0 0.5rem; color: var(--color-text); font-weight: 700; }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--color-red); text-decoration: none; }
.card__excerpt { color: var(--color-text-muted); font-size: 0.94rem; flex: 1; }
.card__link { margin-top: 0.8rem; font-weight: 600; font-size: 0.9rem; }

/* --- Event list (sidebar + full page) --- */

.event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.event-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}
.event-item__date {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  background: var(--color-red);
  color: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.2rem;
  font-weight: 700;
}
.event-item__date .day { display: block; font-size: 1.25rem; line-height: 1; }
.event-item__date .month { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em; }
.event-item__body a { font-weight: 700; color: var(--color-text); }
.event-item__body a:hover { color: var(--color-red); }
.event-item__meta { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.15rem; }

.sidebar-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-box + .sidebar-box { margin-top: 1.5rem; }
.sidebar-box h3 { margin-top: 0; color: var(--color-green); font-size: 1.1rem; }

/* --- Content page --- */

.content-page h1 { color: var(--color-red); font-size: 2rem; margin-bottom: 1.2rem; }
.prose { font-size: 1.03rem; max-width: 72ch; }
.prose img { border-radius: 12px; margin: 1.2rem 0; box-shadow: var(--shadow-sm); }
.prose h2 { color: var(--color-green); font-size: 1.35rem; margin-top: 2rem; }
.prose h3 { color: var(--color-green); font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.92rem;
}
.prose table td, .prose table th {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  white-space: nowrap;
}
.prose blockquote {
  border-left: 4px solid var(--color-green-light);
  margin: 1.2rem 0;
  padding: 0.4rem 1rem;
  color: var(--color-text-muted);
  background: var(--color-cream);
  border-radius: 0 8px 8px 0;
}

.breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--color-text-muted); }

.document-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.document-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
}
.document-list .doc-icon { color: var(--color-red); font-weight: 700; }
.document-list .doc-size { margin-left: auto; color: var(--color-text-muted); font-size: 0.85rem; }

/* --- Pagination --- */

.pagination { display: flex; gap: 0.5rem; margin-top: 2rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.2rem; height: 2.2rem; padding: 0 0.5rem;
  border-radius: 8px; border: 1px solid var(--color-border);
  background: var(--color-surface); font-weight: 600; font-size: 0.9rem;
}
.pagination a:hover { background: var(--color-cream); text-decoration: none; }
.pagination .current { background: var(--color-red); color: #fff; border-color: var(--color-red); }

/* --- Termine: Ansichts-Umschalter (Liste/Monat/Jahr) --- */

.view-tabs { display: flex; gap: 0.4rem; margin: -0.4rem 0 1.6rem; }
.view-tabs a {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
}
.view-tabs a:hover { color: var(--color-text); text-decoration: none; }
.view-tabs a.is-active { background: var(--color-red); color: #fff; border-color: var(--color-red); }

/* --- Termine: Monats-/Jahresansicht --- */

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.calendar-nav h3 { margin: 0; color: var(--color-red); font-size: 1.3rem; min-width: 12ch; text-align: center; }
.calendar-nav .btn { padding: 0.45rem 0.9rem; }

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.month-grid__weekday {
  text-align: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 0.4rem;
}
.month-grid__day {
  min-height: 96px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
.month-grid__day--empty { background: transparent; border-color: transparent; }
.month-grid__day.is-today { border-color: var(--color-red); box-shadow: inset 0 0 0 1px var(--color-red); }
.month-grid__daynum { font-weight: 700; font-size: 0.85rem; color: var(--color-text-muted); }
.is-today .month-grid__daynum { color: var(--color-red); }
.month-grid__event {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-green);
  background: #eef3ec;
  border-radius: 5px;
  padding: 2px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.month-grid__event:hover { background: var(--color-green); color: #fff; text-decoration: none; }

@media (max-width: 700px) {
  .month-grid__day { min-height: 64px; font-size: 0.85rem; }
  .month-grid__event { font-size: 0; padding: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--color-red); }
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}
.mini-month {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease;
}
.mini-month:hover { box-shadow: var(--shadow-md); }
.mini-month__header { text-decoration: none; color: inherit; }
.mini-month__header:hover h4 { color: var(--color-red-dark); }
.mini-month h4 { margin: 0 0 0.6rem; color: var(--color-red); font-size: 0.98rem; text-align: center; }
.mini-month__grid-link { display: block; text-decoration: none; color: inherit; }
.mini-month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mini-month__weekday { text-align: center; font-size: 0.62rem; color: var(--color-text-muted); font-weight: 700; }
.mini-month__grid span:not(.mini-month__weekday) {
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text);
  border-radius: 4px;
  padding: 2px 0;
}
.mini-month__grid .has-event { background: #eef3ec; color: var(--color-green); font-weight: 700; }
.mini-month__grid .is-today { box-shadow: inset 0 0 0 1px var(--color-red); font-weight: 700; }

.mini-month__events {
  list-style: none;
  margin: 0.7rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.mini-month__events a {
  display: flex;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.3;
}
.mini-month__events a:hover { color: var(--color-red); }
.mini-month__event-date { flex-shrink: 0; font-weight: 700; color: var(--color-green); }
.mini-month__empty { font-size: 0.76rem; color: var(--color-text-muted); font-style: italic; }

/* --- Footer --- */

.site-footer { background: var(--color-text); color: rgba(255,255,255,0.85); margin-top: 3rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 0 2rem;
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin: 0 0 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-grid a { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.1rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-red); color: #fff; }
.btn-primary:hover { background: var(--color-red-dark); }
.btn-outline { background: transparent; color: var(--color-green); border: 1.5px solid var(--color-green); }
.btn-outline:hover { background: var(--color-green); color: #fff; }

/* --- Responsive nav --- */

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  nav.main-nav.is-open { display: block; }
  .site-header__bar { flex-wrap: wrap; }
  nav.main-nav > ul { flex-direction: column; align-items: stretch; }
  nav.main-nav .submenu { position: static; box-shadow: none; border: none; display: none; padding-left: 1rem; }
  nav.main-nav li.is-open > .submenu { display: block; }

  .header-cta__instagram, .header-cta__newsletter { display: none; }

  .nav-extra {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--color-border);
  }
  .nav-extra a {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    background: var(--color-cream);
    color: var(--color-text) !important;
    font-weight: 600;
    font-size: 0.88rem;
  }
  .nav-extra a:hover { background: var(--color-green); color: #fff !important; text-decoration: none; }
}

/* --- 404 --- */
.error-page { text-align: center; padding: 5rem 0; }
.error-page h1 { font-size: 3rem; color: var(--color-red); margin-bottom: 0.5rem; }
