/* === Reset & Basics === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #111827;
  background: #f9fafb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === Container === */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-block: 6rem;
}

/* === Hero Section (zurück wie am Anfang, nur cleaner) === */
.hero {
  position: relative;
  background: url('mountains-7857522_1280.jpg') center/cover no-repeat;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* leichtes dunkles Overlay */
}

.hero-content {
  position: relative;
  color: #fff;
  z-index: 1;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.btn-primary {
  display: inline-block;
  background: #2196f3;
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.25s ease;
}

.btn-primary:hover {
  background: #1976d2;
  transform: translateY(-2px);
}

/* === Projekt Section (wie am Anfang) === */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.project-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.project-text p {
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.7;
}

.project-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: none; /* kein Scale-Effekt */
}


/* === Features Section (modern & attraktiv) === */
.features {
  padding-block: 6rem;
}

.features h2 {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.4rem;
  font-weight: 700;
  color: #111827;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.feature-card.show {
  opacity: 1;
  transform: translateY(0);
}

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1f2937;
}

.feature-card p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
}

/* Hover Effekt → lebendiger */
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* Optional: leichtes Highlight beim Hover */
.feature-card:hover h3 {
  color: #2563eb;
  transition: color 0.3s ease;
}


/* === Signup Section === */
.signup {
  max-width: 600px;
  margin: 6rem auto;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  text-align: center;
}

.signup h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
}

.signup p {
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.signup-form input[type="email"] {
  padding: 1rem 1.2rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.signup-form input[type="email"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.3);
  outline: none;
}

.signup-form button {
  padding: 1rem 2rem;
  background: linear-gradient(90deg,#3b82f6,#2563eb);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}

.signup-form button:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg,#2563eb,#1d4ed8);
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 2rem;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 5rem;
  border-top: 1px solid #e5e7eb;
}

/* === Animations === */
.animate {
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive Breakpoints === */
@media (max-width: 900px) {
  .project {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero {
    min-height: 65vh;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .signup {
    padding: 2rem 1.5rem;
  }
}

/* === Community Cleaner Design === */
body {
  background-color: #f9fafb;
  color: #111827;
  font-family: "Inter", sans-serif;
}

.community-header {
  background: #ffffff;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.community-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4rem auto;
  max-width: 600px;
}

.auth-section, .community-section {
  width: 100%;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
}

.auth-section h2, .community-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.auth-section p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.auth-section input, .post-box textarea, .search-box input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid #d1d5db;
  border-radius: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  background-color: #f9fafb;
  transition: all 0.2s ease;
}

.auth-section input:focus,
.post-box textarea:focus,
.search-box input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
  outline: none;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background-color: #2563eb;
  color: #fff;
  border: 2px solid #2563eb;
}

.btn-primary:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-secondary:hover {
  background-color: #2563eb;
  color: #fff;
  transform: translateY(-2px);
}

.post-box {
  margin-top: 1.5rem;
  text-align: left;
}

.post-box textarea {
  height: 120px;
  resize: none;
}

.search-box {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.search-box input {
  flex: 1;
}

.post-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.post {
  background: #fff;
  border-radius: 1rem;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.post-user {
  font-weight: 600;
  color: #2563eb;
}

.post-content {
  margin: 0.5rem 0;
  color: #111827;
}

.post-date {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: right;
}

.auth-message {
  margin-top: 0.8rem;
}

.hidden {
  display: none;
}

/* Zweiter Hero-Button (Zur Community) */
.btn-secondary.small-btn {
  display: inline-block;
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.8rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-secondary.small-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}


