/* === Shared Styles — Wassergenossenschaften Sulzberg === */

:root {
  --color-bg: #e8f4f8;
  --color-bg-light: #f0f8fb;
  --color-primary: #1a3a5c;
  --color-primary-light: #2a5a8c;
  --color-accent: #3a8abd;
  --color-text: #2c3e50;
  --color-text-light: #5a6c7e;
  --color-white: #ffffff;
  --color-border: #c8dce8;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 900px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* === Landing Page === */

.landing-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-header {
  text-align: center;
  padding: 3rem 1.5rem 1.5rem;
}

.landing-header h1 {
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.landing-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

.coop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 700px;
  padding: 0 1.5rem 3rem;
}

.coop-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.2s, transform 0.2s;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.coop-card:not(.disabled):hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
  border-color: var(--color-accent);
}

.coop-card.disabled {
  opacity: 0.55;
  cursor: default;
}

.coop-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.coop-logo {
  width: 340px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.coop-card h2 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.coop-status {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coop-status.active {
  color: #2e7d32;
}

.coop-status.inactive {
  color: #90a4ae;
}

/* === Genossenschafts-Seite === */

.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 350px;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 58, 92, 0.3), rgba(26, 58, 92, 0.6));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-overlay h1 {
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.hero-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Navigation */
nav {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}

nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section:nth-child(even) {
  background: var(--color-bg-light);
  max-width: 100%;
}

.section:nth-child(even) .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  color: var(--color-primary);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

/* Kennzahlen */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-card .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
}

.stat-card .label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 0.3rem;
  display: block;
}

/* Gebührentabelle */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.fee-table th,
.fee-table td {
  padding: 0.9rem 1.2rem;
  text-align: left;
}

.fee-table thead {
  background: var(--color-primary);
  color: var(--color-white);
}

.fee-table tbody tr:nth-child(even) {
  background: var(--color-bg-light);
}

/* Wertespalten rechtsbündig, Header inklusive */
.fee-table th:not(:first-child),
.fee-table td:not(:first-child) {
  text-align: right;
}

.fee-table td:not(:first-child) {
  font-weight: 600;
}

/* Wasserqualität */
.water-quality-info {
  background: var(--color-white);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.water-quality-info .hardness {
  font-size: 1.3rem;
  color: var(--color-accent);
  font-weight: 600;
}

.pdf-embed {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Dokumente */
.doc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--color-white);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.2s, transform 0.2s;
}

.doc-link:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.doc-icon {
  font-size: 1.5rem;
}

/* Kontakt */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.contact-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}

.contact-card .role {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.contact-card p {
  margin-bottom: 0.4rem;
}

.contact-card a {
  color: var(--color-accent);
  text-decoration: none;
  /* lange E-Mail-Adressen sprengen sonst die schmalen Karten */
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-content p {
  margin-bottom: 0.2rem;
}

footer strong {
  color: rgba(255, 255, 255, 0.95);
}

footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .landing-header h1 {
    font-size: 1.5rem;
  }

  .coop-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 2rem;
  }

  .hero {
    height: 40vh;
  }

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

  nav ul {
    gap: 0.25rem;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
  }

  .section {
    padding: 2rem 1rem;
  }

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