/* ============================================
   TIM Hummelshain – Main Stylesheet
   All colors/fonts via CSS Custom Properties
   ============================================ */

/* --- Design Tokens --- */
:root {
  --tim-green:       #1e3d2b;
  --tim-green-light: #2a5239;
  --tim-green-pale:  #e9f0ec;
  --tim-accent:      #4caf6a;
  --tim-cream:       #f4f7f5;
  --tim-white:       #ffffff;
  --tim-text:        #1a2e22;
  --tim-text-mid:    #3a5544;
  --tim-text-light:  #6a8575;
  --tim-error:       #9a3a2a;
  --tim-alert:       #dd3333;

  --tim-shadow-card: 0 1px 8px rgba(0,0,0,0.04);
  --tim-shadow-btn:  0 4px 16px rgba(76,175,106,0.3);

  --tim-radius-card:   10px;
  --tim-radius-banner: 14px;
  --tim-radius-pill:   30px;
  --tim-radius-btn:    8px;

  --tim-max-width:   1060px;
  --tim-padding-x:   24px;
  --tim-nav-height:  90px;
  --tim-hero-height: 520px;

  --tim-font-heading: 'Source Serif 4', Georgia, serif;
  --tim-font-body:    'Source Sans 3', 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--tim-nav-height); }

body {
  font-family: var(--tim-font-body);
  background: var(--tim-cream);
  color: var(--tim-text);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--tim-accent); text-decoration: none; }
a:hover { color: var(--tim-green-light); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--tim-accent); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--tim-font-heading);
  color: var(--tim-green);
  line-height: 1.2;
}

/* --- Utilities --- */
.tim-container {
  max-width: var(--tim-max-width);
  margin: 0 auto;
  padding-left: var(--tim-padding-x);
  padding-right: var(--tim-padding-x);
}

.tim-section {
  padding: 28px 0 24px;
}

.tim-section-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tim-accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.tim-section-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 20px;
}

.tim-section-desc {
  font-size: 19px;
  color: var(--tim-text-mid);
  max-width: 650px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--tim-white);
  clip: auto !important;
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: auto; width: auto;
  left: 5px; top: 5px;
  padding: 15px 23px;
  z-index: 100000;
}

/* --- Buttons --- */
.tim-btn-primary {
  display: inline-block;
  background: var(--tim-accent);
  color: var(--tim-white);
  font-size: 20px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: var(--tim-radius-btn);
  border: none;
  cursor: pointer;
  font-family: var(--tim-font-body);
  transition: background .2s, transform .15s;
  text-align: center;
}
.tim-btn-primary:hover { background: var(--tim-green-light); color: var(--tim-white); transform: translateY(-1px); }

.tim-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--tim-green);
  font-size: 20px;
  font-weight: 500;
  padding: 16px 36px;
  border-radius: var(--tim-radius-btn);
  border: 1.5px solid var(--tim-green);
  cursor: pointer;
  font-family: var(--tim-font-body);
  transition: background .2s;
  text-align: center;
}
.tim-btn-outline:hover { background: var(--tim-green); color: var(--tim-white); }

.tim-btn-outline-white {
  display: inline-block;
  background: transparent;
  color: var(--tim-white);
  font-size: 20px;
  font-weight: 500;
  padding: 16px 36px;
  border-radius: var(--tim-radius-btn);
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  font-family: var(--tim-font-body);
  transition: background .2s;
  text-align: center;
}
.tim-btn-outline-white:hover { background: rgba(255,255,255,0.12); color: var(--tim-white); }

.tim-btn-pill {
  display: inline-block;
  background: var(--tim-accent);
  color: var(--tim-white);
  font-size: 22px;
  font-weight: 700;
  padding: 18px 44px;
  border-radius: var(--tim-radius-pill);
  border: none;
  cursor: pointer;
  font-family: var(--tim-font-body);
  box-shadow: var(--tim-shadow-btn);
  transition: background .2s, transform .15s;
  text-align: center;
}
.tim-btn-pill:hover { background: var(--tim-green-light); transform: translateY(-1px); color: var(--tim-white); }

/* --- Navbar --- */
.tim-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--tim-green);
  height: var(--tim-nav-height);
}

.tim-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.tim-navbar__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--tim-white);
}

.tim-navbar__logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tim-font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--tim-white);
  flex-shrink: 0;
}

.tim-navbar__logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.tim-navbar__logo-text {
  font-family: var(--tim-font-heading);
  font-size: 24px;
  color: var(--tim-white);
  font-weight: 600;
  line-height: 1.2;
}

.tim-navbar__logo-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--tim-font-body);
  font-weight: 400;
}

/* Seasonal icon next to logo */
.tim-seasonal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  animation: tim-icon-shake 4.5s ease-in-out infinite;
}

.tim-seasonal-icon svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}

@keyframes tim-icon-shake {
  0%, 88% { transform: rotate(0deg); }
  89% { transform: rotate(-12deg); }
  91% { transform: rotate(12deg); }
  93% { transform: rotate(-8deg); }
  95% { transform: rotate(8deg); }
  97% { transform: rotate(-4deg); }
  100% { transform: rotate(0deg); }
}

/* Desktop nav */
.tim-navbar__nav { display: flex; gap: 4px; list-style: none; }
.tim-navbar__nav li a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 19px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.tim-navbar__nav li a:hover,
.tim-navbar__nav li.current-menu-item a,
.tim-navbar__nav li.current_page_item a,
.tim-navbar__nav li.current-menu-ancestor > a {
  color: var(--tim-white);
  font-weight: 600;
  background: rgba(255,255,255,0.1);
}

/* Dropdown chevron */
.tim-dropdown-chevron {
  vertical-align: middle;
  margin-left: 2px;
  transition: transform .2s;
}

/* Desktop dropdown */
.tim-navbar__nav .tim-has-dropdown {
  position: relative;
}

.tim-navbar__nav .tim-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--tim-green);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  padding: 8px 0;
  list-style: none;
  z-index: 100;
}

.tim-navbar__nav .tim-has-dropdown:hover > .tim-dropdown,
.tim-navbar__nav .tim-has-dropdown.is-open > .tim-dropdown {
  display: block;
  animation: tim-dropdown-in .2s ease;
}

.tim-navbar__nav .tim-has-dropdown:hover > a .tim-dropdown-chevron,
.tim-navbar__nav .tim-has-dropdown.is-open > a .tim-dropdown-chevron {
  transform: rotate(180deg);
}

.tim-navbar__nav .tim-dropdown li a {
  padding: 12px 24px;
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  border-radius: 0;
  transition: background .15s, color .15s;
}

.tim-navbar__nav .tim-dropdown li a:hover,
.tim-navbar__nav .tim-dropdown li.current-menu-item a {
  background: rgba(255,255,255,0.1);
  color: var(--tim-white);
}

@keyframes tim-dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile dropdown */
.tim-mobile-menu .tim-dropdown {
  display: none;
  list-style: none;
  padding-left: 16px;
  margin-top: 2px;
}

.tim-mobile-menu .tim-dropdown.is-open {
  display: block;
}

.tim-mobile-menu .tim-dropdown li a {
  font-size: 18px;
  padding: 12px 18px;
  color: rgba(255,255,255,0.55);
}

.tim-mobile-menu .tim-dropdown li a:hover,
.tim-mobile-menu .tim-dropdown li.current-menu-item a {
  color: var(--tim-white);
  background: rgba(255,255,255,0.08);
}

.tim-mobile-menu .tim-has-dropdown > a .tim-dropdown-chevron {
  transition: transform .2s;
}

.tim-mobile-menu .tim-has-dropdown.is-open > a .tim-dropdown-chevron {
  transform: rotate(180deg);
}

/* Hamburger */
.tim-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--tim-white);
}
.tim-hamburger svg { width: 32px; height: 32px; }

/* Mobile menu */
.tim-mobile-menu {
  display: none;
  position: fixed;
  top: var(--tim-nav-height);
  left: 0; right: 0;
  background: var(--tim-green);
  padding: 12px var(--tim-padding-x) 24px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.tim-mobile-menu.is-open { display: block; }
.tim-mobile-menu ul { list-style: none; }
.tim-mobile-menu ul li a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  padding: 14px 18px;
  border-radius: 8px;
  text-decoration: none;
}
.tim-mobile-menu ul li a:hover,
.tim-mobile-menu ul li.current-menu-item a,
.tim-mobile-menu ul li.current_page_item a {
  color: var(--tim-white);
  background: rgba(255,255,255,0.1);
}

/* --- Hero --- */
.tim-hero {
  position: relative;
  min-height: var(--tim-hero-height);
  background-color: var(--tim-green);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.tim-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.tim-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
  width: 100%;
}

.tim-hero__overline {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  margin-bottom: 14px;
}

.tim-hero__title {
  font-size: 68px;
  font-weight: 700;
  color: var(--tim-white);
  margin-bottom: 16px;
  line-height: 1.1;
}

.tim-hero__subtitle {
  font-size: 22px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  max-width: 650px;
  line-height: 1.6;
}

.tim-hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- News Cards --- */
.tim-news-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  background: var(--tim-white);
  border-radius: var(--tim-radius-card);
  overflow: hidden;
  box-shadow: var(--tim-shadow-card);
  margin-bottom: 14px;
}

.tim-news-card__img {
  height: 160px;
  object-fit: contain;
  width: 100%;
  background: var(--tim-green-pale);
}

.tim-news-card__img-placeholder {
  height: 160px;
  background: var(--tim-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tim-text-light);
  font-size: 14px;
}

.tim-news-card__body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tim-news-card__date {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tim-accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.tim-news-card__title {
  font-family: var(--tim-font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--tim-green);
  margin-bottom: 6px;
  line-height: 1.3;
}
.tim-news-card__title a { color: inherit; text-decoration: none; }
.tim-news-card__title a:hover { color: var(--tim-accent); }

.tim-news-card__excerpt {
  font-size: 15px;
  color: var(--tim-text-light);
  line-height: 1.55;
}

/* --- Info Cards (4-grid) --- */
.tim-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tim-info-card {
  background: var(--tim-white);
  border-radius: var(--tim-radius-card);
  padding: 18px 20px;
  box-shadow: var(--tim-shadow-card);
}

.tim-info-card__label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tim-accent);
  font-weight: 700;
  margin-bottom: 4px;
}

.tim-info-card__value {
  font-family: var(--tim-font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--tim-green);
  line-height: 1.3;
}

.tim-info-card__sub {
  font-size: 13px;
  color: var(--tim-text-light);
  margin-top: 2px;
}

/* --- Two Column Layout (Info + Claim) --- */
.tim-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.tim-two-col--stretch {
  align-items: stretch;
}

.tim-two-col--stretch .tim-map {
  height: 100%;
  min-height: 260px;
}

/* --- Gallery Slideshow --- */
.tim-gallery {
  position: relative;
  border-radius: var(--tim-radius-card);
  overflow: hidden;
  background: var(--tim-white);
  box-shadow: var(--tim-shadow-card);
  align-self: start;
}

.tim-gallery__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.tim-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}

.tim-gallery__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.tim-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  background: var(--tim-green-pale);
}

.tim-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--tim-white);
}

.tim-gallery__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: var(--tim-white);
  color: var(--tim-green);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
  line-height: 1;
}

.tim-gallery__btn:hover {
  background: var(--tim-green-pale);
  border-color: var(--tim-accent);
}

.tim-gallery__dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.tim-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.12);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.tim-gallery__dot.is-active {
  background: var(--tim-accent);
  transform: scale(1.3);
}

.tim-gallery__dot:hover {
  background: var(--tim-green-light);
}

/* --- Feature Cards (2x2) --- */
.tim-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tim-feature-card {
  background: var(--tim-white);
  border-radius: var(--tim-radius-card);
  padding: 20px;
  box-shadow: var(--tim-shadow-card);
}

.tim-feature-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--tim-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 18px;
}

.tim-feature-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tim-green);
  margin-bottom: 4px;
}

.tim-feature-card__desc {
  font-size: 14px;
  color: var(--tim-text-light);
  line-height: 1.55;
}

/* --- "Was ist das TIM" Section --- */
.tim-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.tim-about-text h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

.tim-about-text p {
  font-size: 19px;
  color: var(--tim-text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* --- Donation Banner --- */
.tim-donation-banner {
  background: var(--tim-alert);
  border-radius: var(--tim-radius-banner);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border-left: 5px solid rgba(255,255,255,0.3);
}

.tim-donation-banner__title {
  font-family: var(--tim-font-heading);
  font-size: 21px;
  color: var(--tim-white);
  margin-bottom: 6px;
}

.tim-donation-banner__text {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.tim-donation-banner__action {
  text-align: center;
  flex-shrink: 0;
  margin-left: auto;
}

.tim-donation-banner__link {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
  display: block;
}

/* --- Events --- */
.tim-event-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  align-items: start;
}
.tim-event-row:last-child { border-bottom: none; }

.tim-event-row__date {
  font-family: var(--tim-font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--tim-green);
  padding-top: 1px;
  grid-row: 1 / 3;
}

.tim-event-row__title {
  font-family: var(--tim-font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--tim-green);
}
.tim-event-row__title a { color: inherit; text-decoration: none; }
.tim-event-row__title a:hover { color: var(--tim-accent); }

.tim-event-row__btn {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--tim-accent);
  text-decoration: none;
  padding: 7px 18px;
  border: 1.5px solid var(--tim-accent);
  border-radius: var(--tim-radius-btn);
  transition: background .2s, color .2s;
  white-space: nowrap;
  margin-top: 1px;
}

.tim-event-row__btn:hover {
  background: var(--tim-accent);
  color: var(--tim-white);
}

.tim-event-row__desc {
  font-size: 19px;
  font-weight: 400;
  color: var(--tim-text-light);
}

.tim-event-row__time {
  display: block;
  font-family: var(--tim-font-body);
  font-size: 19px;
  font-weight: 400;
  color: var(--tim-text-mid);
  margin-top: 2px;
}

.tim-event-row__meta {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.tim-event-row__meta-item {
  font-size: 19px;
  font-weight: 400;
  color: var(--tim-text-mid);
}

/* Event row sub-content spans middle column */
.tim-event-row__sub {
  grid-column: 2 / -1;
  margin-top: -4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
}

/* Badge under date */
.tim-event-row__badge-under {
  margin-top: 6px;
  text-align: center;
}

.tim-event-row__badge-under .tim-badge {
  display: block;
  width: 100%;
  text-align: center;
}

/* SVG pin icon for location */
.tim-pin-icon,
.tim-meta-icon {
  vertical-align: middle;
  margin-right: 3px;
  flex-shrink: 0;
  display: inline-block;
}

/* --- Event Detail Cards (single view) --- */
.tim-event-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.tim-event-details__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--tim-white);
  border-radius: var(--tim-radius-card);
  padding: 16px 18px;
  box-shadow: var(--tim-shadow-card);
}

.tim-event-details__icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--tim-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tim-event-details__label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tim-accent);
  font-weight: 700;
  margin-bottom: 2px;
}

.tim-event-details__value {
  font-family: var(--tim-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--tim-green);
  line-height: 1.3;
}

/* Badges */
.tim-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
}
.tim-badge--past   { color: var(--tim-error); background: rgba(154,58,42,0.08); }
.tim-badge--soon   { color: #fff; background: #e67e22; font-weight: 700; }
.tim-badge--cancelled { color: #fff; background: #dd3333; font-weight: 700; }
.tim-badge--plan   { color: var(--tim-text-light); background: rgba(0,0,0,0.04); }

/* Badge on its own line inside event rows */
.tim-event-row__badge {
  margin-top: 8px;
}

/* Archive list fade transition */
.tim-archive-list {
  transition: opacity .25s ease;
}

.tim-archive-toggle {
  text-align: center;
}

/* Past events slightly muted */
.tim-event-row--past {
  opacity: 0.65;
}
.tim-event-row--past:hover {
  opacity: 1;
}

/* --- Contact Card --- */
.tim-contact-card {
  background: var(--tim-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--tim-shadow-card);
}

.tim-contact-card__heading {
  font-family: var(--tim-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--tim-green);
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.tim-contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.tim-contact-row:last-child { border-bottom: none; padding-bottom: 0; }

.tim-contact-row__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tim-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.tim-contact-row__label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tim-accent);
  font-weight: 700;
  margin-bottom: 2px;
}

.tim-contact-row__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--tim-green);
  line-height: 1.4;
}

.tim-contact-row__note {
  font-size: 13px;
  color: var(--tim-error);
  margin-top: 4px;
}

/* --- Map --- */
.tim-map {
  border-radius: var(--tim-radius-card);
  height: 320px;
  margin-top: 20px;
  z-index: 1;
}

/* OSM iframe embed (startseite info section) */
.tim-osm-embed {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: none;
  border-radius: var(--tim-radius-card);
  display: block;
}

/* Kontakt page: iframe fills remaining height */
.tim-osm-embed--kontakt {
  height: 380px;
}

.tim-map-pin {
  background: none !important;
  border: none !important;
}

.tim-map .leaflet-popup-content-wrapper {
  border-radius: 8px;
  font-family: var(--tim-font-body);
  font-size: 14px;
  color: var(--tim-green);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.tim-map .leaflet-popup-tip { border-top-color: var(--tim-white); }

.tim-map-placeholder {
  background: var(--tim-green-pale);
  border-radius: var(--tim-radius-card);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tim-text-light);
  font-size: 15px;
  margin-top: 20px;
}

/* --- Page Header (inner pages) --- */
.tim-page-header {
  background: var(--tim-green);
  padding: 40px 0 36px;
}

.tim-page-header__overline {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 8px;
}

.tim-page-header__title {
  font-size: 46px;
  font-weight: 700;
  color: var(--tim-white);
  line-height: 1.15;
}

.tim-page-header__desc {
  font-size: 19px;
  color: rgba(255,255,255,0.65);
  margin-top: 10px;
  max-width: 500px;
}

/* --- Footer --- */
.tim-footer {
  background: var(--tim-green);
  padding: 40px 0 0;
  margin-top: 32px;
}

.tim-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}

.tim-footer__col-title {
  font-family: var(--tim-font-heading);
  font-size: 16px;
  color: var(--tim-white);
  font-weight: 700;
  margin-bottom: 12px;
}

.tim-footer__text {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.tim-footer__links { list-style: none; }
.tim-footer__links li { margin-bottom: 6px; }
.tim-footer__links li a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s;
}
.tim-footer__links li a:hover { color: var(--tim-white); }

.tim-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  text-align: center;
}

.tim-footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.tim-footer__legal {
  margin-bottom: 8px;
}

.tim-footer__legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color .2s;
}

.tim-footer__legal a:hover {
  color: var(--tim-white);
}

.tim-footer__sep {
  margin: 0 10px;
  color: rgba(255,255,255,0.25);
}

/* --- WordPress Content --- */
.tim-content { padding: 28px 0 40px; }

.tim-content .entry-content > *:not(:last-child) {
  margin-bottom: 1.2em;
}

.tim-content .entry-content h2 { font-size: 32px; margin-top: 1.5em; }
.tim-content .entry-content h3 { font-size: 26px; margin-top: 1.3em; }
.tim-content .entry-content p  { font-size: 19px; line-height: 1.7; color: var(--tim-text-mid); }
.tim-content .entry-content ul,
.tim-content .entry-content ol { padding-left: 24px; color: var(--tim-text-mid); }
.tim-content .entry-content blockquote {
  border-left: 3px solid var(--tim-accent);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--tim-green-pale);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--tim-text-mid);
}

.tim-content .entry-content img {
  border-radius: var(--tim-radius-card);
}

/* Legal pages (Impressum, Datenschutz) */
.tim-legal h2 { font-size: 22px; margin-top: 2em; margin-bottom: 0.5em; }
.tim-legal h3 { font-size: 18px; margin-top: 1.5em; margin-bottom: 0.4em; }
.tim-legal p  { margin-bottom: 0.8em; }
.tim-legal ul, .tim-legal ol { margin-bottom: 1em; }
.tim-legal a { text-decoration: underline; }

/* Single post thumbnail – compact, scaled (never cropped) */
.tim-single-thumbnail {
  width: 100%;
  max-width: 480px;
  border-radius: var(--tim-radius-card);
  overflow: hidden;
  margin-top: 28px;
}

.tim-single-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--tim-radius-card);
}

.tim-single-thumbnail a {
  display: block;
  cursor: zoom-in;
}

/* Partners */
.tim-partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.tim-partners-grid a {
  display: block;
  font-size: 14px;
  color: var(--tim-text-mid);
  padding: 12px 20px;
  background: var(--tim-white);
  border-radius: var(--tim-radius-btn);
  box-shadow: var(--tim-shadow-card);
  transition: box-shadow .2s;
}
.tim-partners-grid a:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }

/* --- News card image link --- */
.tim-news-card__img-link {
  display: block;
  overflow: hidden;
}

.tim-news-card__img-link img { transition: transform .2s; }
.tim-news-card__img-link:hover img { transform: scale(1.03); }

/* Content images: zoom cursor */
.tim-content .entry-content img {
  cursor: zoom-in;
}

/* --- Lightbox --- */
.tim-lb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.tim-lb.is-open {
  opacity: 1;
  visibility: visible;
}

.tim-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.tim-lb__stage {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tim-lb__img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  user-select: none;
  -webkit-user-drag: none;
}

.tim-lb__close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 36px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s;
}
.tim-lb__close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.tim-lb__prev,
.tim-lb__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 40px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.tim-lb__prev { left: 16px; }
.tim-lb__next { right: 16px; }
.tim-lb__prev:hover,
.tim-lb__next:hover { background: rgba(255,255,255,0.18); color: #fff; }

.tim-lb__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-family: var(--tim-font-body);
  font-weight: 500;
}

/* ============================================
   Responsive
   ============================================ */

/* --- Tablet (≤ 768px) --- */
@media (max-width: 768px) {
  .tim-navbar__nav { display: none; }
  .tim-hamburger { display: block; }

  .tim-hero { min-height: 360px; height: auto; }
  .tim-hero__title { font-size: 44px; }
  .tim-hero__subtitle { font-size: 18px; }
  .tim-hero__overline { font-size: 14px; letter-spacing: 2px; }
  .tim-hero__content { padding-bottom: 32px; }

  .tim-news-card { grid-template-columns: 140px 1fr; }
  .tim-news-card__img,
  .tim-news-card__img-placeholder { height: 120px; }

  .tim-two-col { grid-template-columns: 1fr; gap: 20px; }
  .tim-about-grid { grid-template-columns: 1fr; gap: 20px; }

  .tim-gallery__viewport { aspect-ratio: 16 / 10; }

  .tim-donation-banner { flex-direction: column; text-align: center; padding: 28px 24px; }
  .tim-donation-banner__text { max-width: none; }
  .tim-donation-banner__action { width: 100%; }

  .tim-event-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .tim-event-row__date { grid-column: 1 / -1; font-size: 15px; }
  .tim-event-row__sub { grid-column: 1 / -1; }

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

  .tim-contact-card { padding: 20px; }

  .tim-map { height: 260px; }

  .tim-footer__grid { grid-template-columns: 1fr; gap: 24px; }

  .tim-page-header__title { font-size: 30px; }
  .tim-page-header { padding: 32px 0 28px; }

  .tim-section-title { font-size: 26px; }

  .tim-single-thumbnail { max-width: 100%; }

  .tim-lb__prev,
  .tim-lb__next { width: 40px; height: 40px; font-size: 28px; }
  .tim-lb__prev { left: 8px; }
  .tim-lb__next { right: 8px; }
  .tim-lb__close { top: 10px; right: 10px; font-size: 30px; width: 40px; height: 40px; }
}

/* --- Mobile (≤ 480px) --- */
@media (max-width: 480px) {
  .tim-news-card { grid-template-columns: 1fr; }
  .tim-news-card__img,
  .tim-news-card__img-placeholder { height: 180px; }

  .tim-info-cards { grid-template-columns: 1fr; }
  .tim-features { grid-template-columns: 1fr; }

  .tim-event-details { grid-template-columns: 1fr; }

  .tim-event-row { grid-template-columns: 1fr; gap: 6px; }
  .tim-event-row__btn { width: 100%; text-align: center; justify-content: center; }
  .tim-event-row__sub { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; gap: 4px; }
  .tim-event-row__meta-item { font-size: 16px; }

  .tim-gallery__viewport { aspect-ratio: 4 / 3; }
  .tim-gallery__btn { width: 28px; height: 28px; font-size: 16px; }
  .tim-gallery__dot { width: 6px; height: 6px; }

  .tim-hero { min-height: 280px; height: auto; }
  .tim-hero__title { font-size: 36px; }
  .tim-hero__content { padding-bottom: 28px; }
  .tim-hero__subtitle { margin-bottom: 16px; font-size: 16px; }
  .tim-hero__buttons { flex-direction: column; }
  .tim-hero__buttons .tim-btn-primary,
  .tim-hero__buttons .tim-btn-outline-white { width: 100%; }

  .tim-donation-banner { padding: 24px 20px; border-radius: 10px; }
  .tim-donation-banner__title { font-size: 22px; }

  .tim-section { padding: 22px 0 20px; }
  .tim-container { padding-left: 16px; padding-right: 16px; }

  .tim-lb__prev,
  .tim-lb__next { display: none; }
}
