/* Spass AG e.V. - Minimal Responsive Website */

:root {
  --color-primary: #1e73be;
  --color-primary-dark: #155a94;
  --color-text: #2d2d2d;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-alt: #f8f9fa;
  --color-border: #e5e5e5;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --spacing: 1.5rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Header */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--spacing);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.logo-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  display: none;
}

/* Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 4rem var(--spacing);
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.2rem;
  opacity: 0.9;
}

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

.section {
  padding: 3rem 0;
}

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

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.news-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg-alt);
}

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

.news-card-content {
  padding: 1.25rem;
}

.news-card-date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card-title a {
  color: var(--color-text);
}

.news-card-title a:hover {
  color: var(--color-primary);
}

.news-card-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Single News Page */
.news-single {
  padding: 2rem 0 4rem;
}

.news-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.news-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.news-meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.news-content {
  max-width: 720px;
}

.news-content p {
  margin-bottom: 1rem;
}

.news-content img {
  margin: 1.5rem 0;
  border-radius: 8px;
}

.news-content h2 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
}

.news-content ul, .news-content ol {
  margin: 1rem 0 1rem 1.5rem;
}

.news-content li {
  margin-bottom: 0.5rem;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.news-gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Gallery Pages */
.gallery-single {
  padding: 2rem 0 4rem;
}

.gallery-header {
  margin-bottom: 2rem;
}

.gallery-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gallery-meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.gallery-content {
  margin-bottom: 2rem;
}

.gallery-content p {
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

.gallery-nav {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

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

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

/* Gallery Links (on main Bilder page) */
.gallery-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.gallery-link-card {
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-link-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.gallery-link-card h3 a {
  color: var(--color-text);
}

.gallery-link-card h3 a:hover {
  color: var(--color-primary);
}

.gallery-link-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

/* About / Vorstandschaft */
.about-content {
  max-width: 720px;
}

.about-content p {
  margin-bottom: 1.25rem;
}

.about-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.team-simple {
  background: var(--color-bg-alt);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.team-simple h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.team-simple ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.team-simple li {
  padding: 0.25rem 0;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #fff;
  padding: 2rem var(--spacing);
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --spacing: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    display: none;
    padding: 1rem;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0;
  }

  .hero {
    padding: 3rem var(--spacing);
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 2rem 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 1024px) {
  .logo-text {
    display: block;
  }
}

/* Utility */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.text-center {
  text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
