/* =========================================================
   CASAFAIR ZÜRICH – WEBSITE-VORLAGE
   Die wichtigsten Farben kannst du direkt hier ändern.
   ========================================================= */

:root {
  --green: #97be0d;
  --green-dark: #78990a;
  --green-light: #f1f6df;
  --cream: #f5f5f2;
  --ink: #000000;
  --muted: #555555;
  --line: #dedede;
  --white: #ffffff;
  --max-width: 1180px;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--green-dark); }

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  background: #fbfcf9;
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  min-height: 132px;
  padding-top: 28px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
  flex: 0 0 auto;
}

.brand-logo {
  width: 132px;
  height: auto;
  display: block;
}


.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  color: var(--green-dark);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 650;
  padding-block: 8px;
  border-bottom: 2px solid transparent;
}

.main-nav a[aria-current="page"],
.main-nav a:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}

/* Allgemein */
main { min-height: 60vh; }

section { padding: 72px 0; }

.eyebrow {
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 800;
  color: var(--green-dark);
  margin: 0 0 12px;
}

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  max-width: 980px;
  margin-bottom: 22px;
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 18px;
}

h3 { font-size: 1.35rem; margin-bottom: 10px; }

.lead {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  max-width: 760px;
  color: #3e4741;
}

.meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head p {
  max-width: 610px;
  color: var(--muted);
  margin: 0;
}

.soft { background: var(--cream); }
.green-soft { background: var(--green-light); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  background: var(--green);
  color: var(--white);
}

.button.secondary {
  background: transparent;
  color: var(--green-dark);
  border: 1px solid var(--green-dark);
}

.button.secondary:hover {
  background: var(--green-light);
}

/* Hero */
.hero {
  padding: 76px 0 74px;
  background: #fbfcf9;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr);
  gap: 64px;
  align-items: end;
}

.hero-note {
  border-left: 4px solid var(--green);
  padding: 6px 0 6px 20px;
  color: var(--muted);
}

.hero-note strong {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card p:last-child { margin-bottom: 0; }

.card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 750;
  color: var(--green-dark);
}

.tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 800;
  padding: 6px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* Veranstaltungen */
.event {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.event:last-child { border-bottom: 1px solid var(--line); }

.event-date {
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.05;
}

.event-date .day {
  display: block;
  font-size: 2.5rem;
}

.event-date .month {
  font-size: .82rem;
  text-transform: none;
  letter-spacing: 0;
}

.event p { margin-bottom: 0; color: var(--muted); }

/* Themen */
.topic {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topic-number {
  color: var(--green);
  font-weight: 800;
  font-size: .85rem;
}

/* Archiv */
.archive-year {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.archive-year h2 {
  font-size: 2.4rem;
  margin: 0;
}

.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-list li {
  padding: 10px 0;
  border-bottom: 1px solid #ecefec;
}

.archive-list a {
  font-weight: 700;
}

/* Kontakt */
.contact-box {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--green-dark);
  color: var(--white);
}

.contact-box a { color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}


/* Newsletter */
.newsletter-section {
  background: var(--green-light);
  padding: 54px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(340px, 1.2fr);
  gap: 56px;
  align-items: center;
}

.newsletter-inner h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.newsletter-inner p {
  margin: 0;
  color: var(--muted);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

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

.newsletter-form input[type="email"] {
  width: 100%;
  min-width: 0;
  border: 1px solid #b8c48c;
  background: var(--white);
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  color: var(--ink);
}

.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}

.newsletter-form .button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  font: inherit;
}

.newsletter-note {
  margin-top: 9px !important;
  font-size: .82rem;
}

/* Footer */
.site-footer {
  background: #172019;
  color: #eef3ee;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 7px; }

.footer-links a { color: #eef3ee; }

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.2);
  color: #bfc8c0;
  font-size: .88rem;
}

/* Inhaltsseite */
.page-hero {
  padding: 72px 0 46px;
  border-bottom: 1px solid var(--line);
}

.prose {
  max-width: 780px;
}

.prose p, .prose li {
  font-size: 1.06rem;
}

.placeholder {
  border: 2px dashed #b5bdb7;
  background: #fafbf9;
  border-radius: 12px;
  padding: 22px;
  color: #647068;
}

/* Responsive */
@media (max-width: 980px) {
  .menu-button { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 132px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 18px 20px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav.open { display: flex; }

  .hero-grid,
  .newsletter-inner,
  .grid-3,
  .grid-2,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid { gap: 36px; }

  .event {
    grid-template-columns: 80px 1fr;
  }

  .event .button { grid-column: 2; width: fit-content; }

  .archive-year {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 620px) {

  .brand-logo { width: 112px; }
  .container { width: min(calc(100% - 28px), var(--max-width)); }
  section { padding: 54px 0; }
  .hero { padding-top: 52px; }

  .header-inner { min-height: 116px; padding-top: 24px; padding-bottom: 16px; }
  .main-nav { top: 116px; }

  .newsletter-form { flex-direction: column; }

  .newsletter-form .button { width: 100%; }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .event {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .event .button { grid-column: 1; }

  .event-date .day,
  .event-date .month {
    display: inline;
    font-size: 1rem;
    letter-spacing: normal;
    text-transform: none;
  }

  .event-date .day::after { content: ". "; }

  h1 { font-size: clamp(2.6rem, 15vw, 4.4rem); }
}


/* Bilder in Karten */
.card-image {
  width: calc(100% + 48px);
  margin: -24px -24px 20px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--green-light);
}

.card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-image.person img {
  height: 280px;
  object-position: center 30%;
}

.image-placeholder {
  width: 100%;
  height: 220px;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(151,190,13,.10), rgba(151,190,13,.22));
  font-size: 0.95rem;
}

.card-image.person .image-placeholder {
  height: 280px;
}

@media (max-width: 620px) {
  .card-image img,
  .image-placeholder {
    height: 190px;
  }

  .card-image.person img,
  .card-image.person .image-placeholder {
    height: 240px;
  }
}
