/* ========== Basis & Design-Variablen ========== */

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

:root {
  --primary-green: #2d7a3e;
  --light-green: #4a9d5f;
  --dark-gray: #222222;
  --medium-gray: #666666;
  --light-gray: #f4f5f7;
  --white: #ffffff;
  --accent-blue: #2563eb;
  --light-green-bg: #f0f9f1;

  --border-radius-lg: 12px;
  --border-radius-md: 8px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fafafa;
  color: var(--dark-gray);
  line-height: 1.6;
}

a {
  color: var(--primary-green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ========== Layout-Helfer ========== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-section {
  padding: 3rem 0;
}

/* ========== Header / Navigation ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  color: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.logo-icon {
  font-size: 1.9rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.logo-subtitle {
  font-size: 0.8rem;
  opacity: 0.9;
}

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

.main-nav a {
  display: inline-block;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  opacity: 0.95;
  transition: border-color 0.3s, opacity 0.3s;
}

.main-nav a:hover {
  opacity: 1;
  border-bottom-color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.main-nav a.active {
  opacity: 1;
  border-bottom-color: var(--white);
}

/* Mobile Header */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .main-nav ul {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }
}

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(45, 122, 62, 0.25);
}

.btn-primary:hover {
  background: #245f31;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 122, 62, 0.35);
  text-decoration: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background: #f8f8f8;
  text-decoration: none;
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* ========== Hero-Startseite (wie im Bild) ========== */

.hero {
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  color: var(--white);
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600" opacity="0.05"><path d="M0 0h1200v600H0z" fill="none"/><path d="M600 300c0-165.69 134.31-300 300-300s300 134.31 300 300" stroke="white" stroke-width="2" fill="none"/><path d="M600 300c0 165.69-134.31 300-300 300S0 465.69 0 300" stroke="white" stroke-width="2" fill="none"/></svg>');
  background-size: cover;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-text {
  font-size: 1.1rem;
  max-width: 600px;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-simple {
  margin-top: 2.5rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--white);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
}

.hero-simple span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--white);
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.checklist li {
  position: relative;
  padding-left: 1.8rem;
  line-height: 1.5;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--white);
  font-weight: bold;
}

/* Hero responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-card {
    max-width: 500px;
  }
}

/* ========== Feature-Kacheln auf Startseite (wie im Bild) ========== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--primary-green);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: inline-block;
  width: 80px;
  height: 80px;
  background: var(--light-green-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--primary-green);
  font-weight: 600;
}

.feature-card p {
  color: var(--medium-gray);
  line-height: 1.6;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ========== Info-Strip (Startseite) ========== */

.info-strip {
  background: var(--light-green-bg);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.info-strip-text {
  font-size: 1.05rem;
  flex: 1;
  min-width: 300px;
}

.info-strip-text strong {
  color: var(--primary-green);
}

.info-strip-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== Seiten-Hero / Page Header ========== */

.page-header {
  background: var(--light-gray);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.page-header h1 {
  color: var(--primary-green);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--medium-gray);
  max-width: 800px;
  margin: 0 auto 1rem;
}

.page-header-simple {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  background: #e8f5e9;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  display: inline-block;
  max-width: 600px;
}

/* ========== Sprachcafé-Liste / Filterseite ========== */

.filter-section {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.6rem;
  margin-bottom: 2rem;
}

.filter-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.3rem;
}

.filter-header h2 {
  font-size: 1.4rem;
}

.filter-hint {
  font-size: 0.95rem;
  color: var(--medium-gray);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem 1.3rem;
  margin-bottom: 1.2rem;
}

.filter-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.6rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #d0d0d0;
  font-size: 0.95rem;
}

.filter-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.result-count {
  font-size: 0.95rem;
  color: var(--medium-gray);
}

/* Café-Karten */

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

.cafe-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.3rem 1.4rem 1.1rem;
  border-left: 5px solid var(--primary-green);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cafe-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.cafe-name {
  font-size: 1.15rem;
}

.stadtteil-badge {
  background: #e8f5e9;
  color: var(--primary-green);
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.cafe-meta {
  font-size: 0.9rem;
  color: var(--medium-gray);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.3rem;
}

.badge {
  font-size: 0.82rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--light-gray);
}

.badge-kostenlos {
  background: #e8f5e9;
  color: var(--primary-green);
}

.badge-kostenpflichtig {
  background: #fff3e0;
  color: #e65100;
}

.cafe-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: center;
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.cafe-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
}

.cafe-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.88rem;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--border-radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  color: var(--medium-gray);
}

/* ========== Über uns-Seite ========== */

.about-layout {
  max-width: 1000px;
  margin: 0 auto;
}

.content-section {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.2rem 2rem;
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
}

.content-section h3 {
  font-size: 1.25rem;
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--primary-green);
}

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

.content-section ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.content-section li {
  margin-bottom: 0.4rem;
}

/* ========== Kontakt / Anmeldeformular ========== */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.intro-section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--primary-green);
}

.intro-section p {
  margin-bottom: 0.8rem;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.info-card {
  background: var(--light-gray);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  text-align: center;
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--primary-green);
}

.form-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #d0d0d0;
  font-size: 0.95rem;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.required {
  color: #d32f2f;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.required-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--medium-gray);
  margin-top: 1rem;
}

.success-message {
  display: none;
  margin-top: 2rem;
  background: #e8f5e9;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  border-left: 4px solid var(--primary-green);
}

.success-message.show {
  display: block;
}

.success-message h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* ========== Rechtliche Seiten ========== */

.legal-content {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem 2rem;
  margin: 2rem auto;
  max-width: 900px;
}

.legal-content h1 {
  color: var(--primary-green);
  margin-bottom: 2rem;
  font-size: 2rem;
  border-bottom: 3px solid var(--light-green);
  padding-bottom: 1rem;
}

.legal-content h2 {
  color: var(--primary-green);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-content h3 {
  color: var(--primary-green);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.legal-content p, .legal-content li {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.legal-content li::before {
  content: "•";
  color: var(--primary-green);
  position: absolute;
  left: 0;
}

.info-box {
  background: #e8f5e9;
  border-left: 4px solid var(--primary-green);
  padding: 1.2rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0 2rem 0;
}

.info-box p {
  margin-bottom: 0.5rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.back-link-container {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--light-gray);
  text-align: center;
}

/* ========== Footer ========== */

.site-footer {
  background: #1f2424;
  color: var(--white);
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  margin-bottom: 0.7rem;
  color: var(--light-green);
}

.footer-section p,
.footer-section a {
  font-size: 0.9rem;
  color: var(--white);
  opacity: 0.9;
}

.footer-section a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 0.9rem 1.5rem 1.1rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ========== Responsive Anpassungen ========== */

@media (max-width: 768px) {
  .container {
    padding: 2rem 1rem;
  }
  
  .page-section {
    padding: 2rem 0;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-section {
    padding: 1.5rem 1rem;
  }
  
  .filters-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cafe-grid {
    grid-template-columns: 1fr;
  }
  
  .cafe-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .legal-content {
    padding: 1.5rem 1rem;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .info-strip {
    flex-direction: column;
    align-items: stretch;
  }
  
  .info-strip-actions {
    flex-direction: column;
  }
  
  .info-strip-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========== Hilfsklassen ========== */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ========== Accessibility ========== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Focus States für Barrierefreiheit ========== */

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* ========== Animationen ========== */

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card {
  animation: fadeIn 0.5s ease-in;
}

.feature-card:nth-child(2) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.2s;
}