/* ========================================
   Pulling – Ortsteil der Stadt Freising
   Stylesheet – Modern, clean, bayerisch
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --blue:        #1A4F96;
  --blue-dark:   #0D2B5E;
  --blue-light:  #2B6CC4;
  --gold:        #B8962E;
  --gold-light:  #D4AE4A;
  --gold-bg:     #FBF7EE;
  --text:        #1a1a2e;
  --text-light:  #555569;
  --bg:          #f5f6f8;
  --white:       #ffffff;
  --border:      #e0e4eb;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(26,79,150,0.08);
  --shadow-hover:0 6px 24px rgba(26,79,150,0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-dark);
}

/* ── HEADER ───────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.site-logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-logo-subtitle {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--blue);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── HERO ─────────────────────────────── */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.65;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,43,94,0.3) 0%,
    rgba(13,43,94,0.65) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.88);
  margin-top: 12px;
  font-weight: 400;
}

/* ── SECTION BASICS ───────────────────── */
.section {
  padding: 64px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-alt .section {
  /* already has max-width */
}

.section-header {
  margin-bottom: 36px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--blue-dark);
}

.section-title-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 12px;
  border-radius: 2px;
}

/* ── NEWS CARDS ───────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

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

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

.news-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.news-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-meta {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  flex: 1;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-light);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--white);
}

.section-footer {
  text-align: center;
  margin-top: 36px;
}

/* ── VEREINE GRID ─────────────────────── */
.vereine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.verein-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.verein-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: inherit;
}

.verein-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.verein-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.3;
}

.verein-desc {
  font-size: 0.875rem;
  color: var(--text-light);
  flex: 1;
}

.verein-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── KIRCHE SECTION ───────────────────── */
.kirche-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.kirche-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.kirche-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.kirche-text h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.kirche-text p {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

/* ── QUICK INFO BAR ───────────────────── */
.info-bar {
  background: var(--blue-dark);
  color: var(--white);
  padding: 20px 24px;
}

.info-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.info-item-icon { font-size: 1.4rem; }
.info-item-label { font-weight: 300; opacity: 0.7; font-size: 0.78rem; }
.info-item-value { font-weight: 600; }

/* ── ARTICLE PAGE ─────────────────────── */
.article-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 64px 24px 48px;
  text-align: center;
  color: var(--white);
}

.article-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 16px;
}

.article-header-meta {
  font-size: 0.88rem;
  opacity: 0.8;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-body p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}

.article-body h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
  color: var(--blue-dark);
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 24px 0 8px;
  color: var(--blue);
}

.article-img {
  border-radius: 12px;
  overflow: hidden;
  margin: 32px 0;
  box-shadow: var(--shadow-hover);
}

.article-img img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #f0f0f0;
}

.info-box {
  background: var(--gold-bg);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.info-box h3 {
  color: var(--gold);
  margin: 0 0 10px;
  font-size: 1rem;
}

.info-box p, .info-box li {
  font-size: 0.925rem;
  color: var(--text);
  margin-bottom: 4px;
}

.info-box ul { padding-left: 20px; }

/* ── VEREIN DETAIL ────────────────────── */
.verein-detail-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 56px 24px 40px;
  text-align: center;
  color: var(--white);
}

.verein-detail-header .verein-icon-large {
  font-size: 4rem;
  margin-bottom: 16px;
}

.verein-detail-header h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.verein-detail-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.verein-detail-body p {
  color: var(--text-light);
  margin-bottom: 14px;
  font-size: 0.975rem;
  line-height: 1.75;
}

.verein-detail-body h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--blue-dark);
}

/* ── BREADCRUMB ───────────────────────── */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  gap: 6px;
  align-items: center;
}

.breadcrumb a { color: var(--blue); }
.breadcrumb-sep { opacity: 0.4; }

/* ── FOOTER ───────────────────────────── */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  flex-shrink: 0;
}

.footer-brand-text h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.footer-brand-text p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
}

.footer-bottom a:hover { color: var(--gold-light); }

/* ── AKTUELLES PAGE ───────────────────── */
.aktuelles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* ── INNER PAGE HERO ──────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 56px 24px 40px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  margin-top: 10px;
  font-size: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── RESPONSIVE ───────────────────────── */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 2px solid var(--gold);
    box-shadow: var(--shadow-hover);
    gap: 4px;
  }

  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; }
  .nav-toggle { display: block; }

  .hero { height: 360px; }

  .kirche-section { grid-template-columns: 1fr; }
  .kirche-img { order: -1; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .info-bar-inner { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  .news-grid, .vereine-grid, .aktuelles-grid {
    grid-template-columns: 1fr;
  }
}
