/* Nachbarschaftsinitiative – Modern Urban Design */

:root {
  --color-primary: #1e293b;       /* Slate 800 - dark, modern */
  --color-primary-light: #334155; /* Slate 700 */
  --color-accent: #f59e0b;        /* Amber 500 - warm contrast */
  --color-accent-hover: #d97706;  /* Amber 600 */
  --color-bg: #f8fafc;            /* Slate 50 */
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-light: #64748b;    /* Slate 500 */
  --color-border: #e2e8f0;        /* Slate 200 */
  --color-draft-bg: #fef3c7;      /* Amber 100 */
  --color-draft-border: #f59e0b;
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 960px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

* {
  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.7;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--color-primary);
  color: white;
  padding: 1.5rem 0 1rem;
  border-bottom: 3px solid var(--color-accent);
}

/* Language switcher */
.lang-nav {
  margin-bottom: 0.8rem;
}

.lang-nav ul {
  display: flex;
  gap: 0.4rem;
  list-style: none;
}

.lang-nav li a {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.lang-nav li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.lang-nav li.active a {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}

.site-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.site-title a {
  color: white;
  text-decoration: none;
}

.site-subtitle {
  font-size: 0.82rem;
  opacity: 0.7;
  font-weight: 400;
  margin-bottom: 1rem;
}

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

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--color-accent);
  color: white;
}

/* Main content */
.site-main {
  padding: 2.5rem 0 3rem;
}

/* Hero section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 4rem 2.5rem;
  border-radius: var(--radius);
  margin-bottom: 3rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://www.sonninpark.hamburg/wp-content/uploads/2023/01/DSC03217.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Image gallery section */
.quarter-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.quarter-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.quarter-images img:hover {
  transform: scale(1.02);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature {
  background: var(--color-surface);
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--color-primary);
}

.feature p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Sections */
section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-accent);
  letter-spacing: -0.02em;
}

.about-area {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.about-area p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

/* CTA */
.cta {
  background: var(--color-surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.8rem;
  background: var(--color-accent);
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Article / Page content */
.page {
  line-height: 1.8;
}

.page h1, .page h2, .page h3 {
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  letter-spacing: -0.02em;
}

.page h1 {
  font-size: 1.6rem;
  font-weight: 800;
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 0.5rem;
}

.page h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.page h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.page p {
  margin-bottom: 1rem;
}

.page ul, .page ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.page li {
  margin-bottom: 0.4rem;
}

.page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.page th, .page td {
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.page th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

.page tr:nth-child(even) {
  background: #f8fafc;
}

.page blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-text-light);
}

.page hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* DRAFT banner */
.draft-banner {
  background: var(--color-draft-bg);
  border: 2px solid var(--color-draft-border);
  color: #92400e;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.site-footer p {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

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

.site-footer .disclaimer {
  margin-top: 1rem;
  font-style: italic;
  opacity: 0.6;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-title {
    font-size: 1rem;
  }

  .main-nav ul {
    gap: 0.15rem 0.6rem;
  }

  .main-nav a {
    font-size: 0.78rem;
  }

  .hero {
    padding: 2.5rem 1.5rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

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

  .quarter-images {
    grid-template-columns: 1fr;
  }

  .quarter-images img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .lang-nav ul {
    gap: 0.3rem;
  }

  .hero {
    padding: 2rem 1.2rem;
  }

  .hero h2 {
    font-size: 1.3rem;
  }
}

/* Membership Form */
.membership-form {
  margin-top: 2rem;
  max-width: 600px;
}

.membership-form .form-group {
  margin-bottom: 1.25rem;
}

.membership-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.membership-form input[type="text"],
.membership-form input[type="email"],
.membership-form input[type="tel"],
.membership-form input[type="number"],
.membership-form select {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-family: var(--font-main);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.membership-form input:focus,
.membership-form select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.membership-form.submitted input:invalid,
.membership-form.submitted select:invalid {
  border-color: #ef4444;
}

.membership-form .form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.membership-form .form-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.membership-form .form-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.membership-form .btn-submit {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-main);
  color: var(--color-primary);
  background: var(--color-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.membership-form .btn-submit:hover {
  background: var(--color-accent-hover);
}

.membership-form .btn-submit:active {
  transform: scale(0.98);
}

.membership-form .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
}

.form-message-success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
}

.form-message-error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.form-field-error {
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #ef4444;
  border-radius: 6px;
  font-weight: 500;
}
