/* 
 * Hoffbauer-Stiftung Style Guide
 * Adapted for Wassertage Werder and Potsdam
 */

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

:root {
  /* Brand Colors */
  --hoffbauer-blue: #004a99;
  --hoffbauer-sky: #00a0e3;
  --hoffbauer-red: #C41E3A;
  --hoffbauer-green: #7CB342;
  --hoffbauer-yellow: #ffcc00;
  --hoffbauer-grey: #333333;
  --hoffbauer-white: #f8f9fa;

  /* Semantic Variables (Mapping to project variables) */
  --primary: var(--hoffbauer-blue);
  --secondary: var(--hoffbauer-sky);
  --action: var(--hoffbauer-red);
  --highlight: var(--hoffbauer-green);
  --accent: var(--hoffbauer-yellow);
  --foreground: var(--hoffbauer-grey);
  --background: var(--hoffbauer-white);
  
  /* Layout & Spacing */
  --radius: 0.375rem;
  --spacing-section: 4rem;
  --spacing-card: 1.5rem;

  /* Typography */
  --font-family: 'Open Sans', sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--hoffbauer-blue);
  font-weight: 700;
  margin-bottom: 1rem;
}

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

a:hover { opacity: 0.8; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  background: white;
  padding: 1rem 0;
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.25rem;
}

.logo-container img { height: 40px; }

.btn-primary {
  background-color: var(--hoffbauer-red);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-accent {
  background-color: var(--hoffbauer-yellow);
  color: var(--hoffbauer-grey);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-accent:disabled {
  background-color: #ddd;
  cursor: not-allowed;
  opacity: 0.7;
}

.highlight-event {
  background-color: var(--hoffbauer-green);
  color: white;
  padding: var(--spacing-card);
  border-radius: var(--radius);
}

.highlight-event h3 {
  color: white;
}

.hero {
  background: linear-gradient(rgba(0, 74, 153, 0.85), rgba(0, 74, 153, 0.7)), url('../assets/hero.webp');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 8rem 1rem;
}

.hero h1 { color: white; font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.5rem; margin-bottom: 2rem; opacity: 0.9; }

.section { padding: var(--spacing-section) 0; }
.section-title { text-align: center; margin-bottom: 3.5rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

.card {
  background: white;
  border-radius: var(--radius);
  padding: var(--spacing-card);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.partner-list { columns: 2; column-gap: 2rem; list-style: none; }
.partner-item { margin-bottom: 0.75rem; padding-left: 1.5rem; position: relative; }
.partner-item::before { content: "•"; color: var(--secondary); position: absolute; left: 0; font-weight: bold; }

.rueckblick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.rueckblick-card { overflow: hidden; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.rueckblick-card img { width: 100%; height: 200px; object-fit: cover; display: block; }

.cta-box { background: var(--primary); color: white; padding: 4rem 2rem; border-radius: 8px; text-align: center; margin-top: 2rem; }
.cta-box h2 { color: white; margin-bottom: 1.5rem; }

footer {
  background: var(--hoffbauer-grey);
  color: white;
  padding: 3rem 0;
  text-align: center;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .partner-list { columns: 1; }
  .nav-inner { flex-direction: column; gap: 1rem; }
}
