/* ------------------------------
   Variablen
------------------------------ */
:root {
  --color-text: #212121;
  --color-bg: #ffffff;
  --color-grey: #f6f6f6;

  --font-body: "source-sans-pro", Arial, sans-serif;
  --font-heading: dashiell-bright, Georgia, serif;

  --container-max: 1440px;

  --margin-desktop: 50px;
  --margin-mobile: 10px;
  --gutter-desktop: 40px;
  --gutter-mobile: 20px;

  --space-1: 12px;
  --space-2: 20px;
  --space-3: 32px;
  --space-4: 48px;
  --space-5: 72px;
  --space-6: 120px;

  --fs-body: 20px;
  --fs-small: 16px;
  --fs-h1: 50px;
  --fs-h2: 42px;
  --fs-h3: 28px;

  --lh-body: 1.45;
  --lh-heading: 1.12;
}

/* ------------------------------
   Reset
------------------------------ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

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

a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  font-weight: 700;
}

a:hover {
  opacity: 0.8;
}

.mail-link {
  font-weight: 400;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

p + p {
  margin-top: var(--space-2);
}

/* ------------------------------
   Typografie
------------------------------ */
h1,
h2,
h3,
.news-date,
.news-date-mobile {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 700;
  line-height: var(--lh-heading);
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

.section-title {
  margin-bottom: var(--space-5);
}

/* ------------------------------
   Layout
------------------------------ */
.container {
  width: min(100%, var(--container-max));
  margin: 0 auto;
  padding-left: var(--margin-desktop);
  padding-right: var(--margin-desktop);
}

.section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.section-light {
  background: var(--color-bg);
}

.section-grey {
  background: var(--color-grey);
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gutter-desktop);
}

/* ------------------------------
   Header
------------------------------ */
.site-header {
  background: var(--color-grey);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.site-title {
  max-width: 6ch;
}

/* ------------------------------
   Über uns
------------------------------ */
.intro-grid {
  align-items: start;
}

.intro-grid .col-1 {
  grid-column: 1 / 2;
}

.intro-grid .col-2 {
  grid-column: 2 / 4;
}

.intro-grid .col-3 {
  grid-column: 4 / 7;
}

.intro-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ------------------------------
   Aktuelles
------------------------------ */
.news-item {
  align-items: stretch;
  margin-bottom: var(--space-6);
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-date {
  grid-column: 1 / 2;
}

.news-date p,
.news-date-mobile {
  margin: 0;
}

.news-date-mobile {
  display: none;
  margin-bottom: 12px;
}

.news-image {
  grid-column: 2 / 4;
}

.news-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.news-content {
  grid-column: 4 / 7;
  display: flex;
  flex-direction: column;
}

.news-content h3 {
  margin-bottom: var(--space-3);
}

.news-text {
  margin-bottom: var(--space-3);
}

.news-link {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
}

/* ------------------------------
   Warum Angorakaninchen
------------------------------ */
.why-grid .col-1 {
  grid-column: 1 / 3;
}

.why-grid .col-5 {
  grid-column: 3 / 7;
}

.rabbit-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.rabbit-gallery img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ------------------------------
   Jahresprogramm
------------------------------ */
.program-grid {
  align-items: start;
}

.program-info {
  grid-column: 1 / 3;
  align-self: start;
}

.program-info h2 {
  margin-bottom: 18px;
}

.program-info p {
  max-width: 32ch;
}

.program-list {
  grid-column: 3 / 7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter-desktop);
  align-self: start;
}

.program-item {
  margin-bottom: var(--space-3);
}

.program-item:last-child {
  margin-bottom: 0;
}

.program-item h3 {
  margin-bottom: 6px;
}

/* ------------------------------
   Footer
------------------------------ */
.site-footer {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.footer-title {
  margin-bottom: var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter-desktop);
  margin-bottom: var(--space-5);
}

.footer-block p {
  margin-bottom: var(--space-1);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--fs-small);
  opacity: 0.8;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.footer-links a {
  font-size: var(--fs-small);
}

/* ------------------------------
   Rechtliches
------------------------------ */
.legal-content {
  max-width: 900px;
}

.legal-content h2 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.legal-content h2:first-child {
  margin-top: 0;
}

/* ------------------------------
   Breakpoint 1200
------------------------------ */
@media (max-width: 1200px) {
  :root {
    --fs-body: 18px;
    --fs-h1: 42px;
    --fs-h2: 36px;
    --fs-h3: 24px;
    --space-6: 96px;
  }
}

/* ------------------------------
   Breakpoint 900
------------------------------ */
@media (max-width: 900px) {
  .grid-6,
  .footer-grid,
  .program-list {
    grid-template-columns: 1fr;
  }

  .intro-grid .col-1,
  .intro-grid .col-2,
  .intro-grid .col-3,
  .why-grid .col-1,
  .why-grid .col-5,
  .program-info,
  .program-list,
  .news-date,
  .news-image,
  .news-content {
    grid-column: auto;
    grid-row: auto;
  }

  .site-title {
    max-width: none;
  }

  .news-item,
  .intro-grid,
  .why-grid,
  .program-grid {
    gap: var(--space-3);
  }

  .news-date {
    display: none;
  }

  .news-date-mobile {
    display: block;
  }

  .program-info p {
    max-width: 32ch;
  }

  .footer-grid {
    gap: var(--space-3);
  }
}

/* ------------------------------
   Breakpoint 600
------------------------------ */
@media (max-width: 600px) {
  :root {
    --fs-body: 16px;
    --fs-small: 13px;
    --fs-h1: 32px;
    --fs-h2: 28px;
    --fs-h3: 20px;

    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
  }

  .container {
    padding-left: var(--margin-mobile);
    padding-right: var(--margin-mobile);
  }

  .section,
  .site-footer {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }

  .site-header {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .grid-6 {
    gap: var(--gutter-mobile);
  }

  .rabbit-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .footer-bottom,
  .footer-links {
    flex-direction: row;
    justify-content: center;
  }
}
