/* Basis-Styling */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f6f8;
  color: #2c3e50;
}

h1, h2, h3 {
  color: #2c3e50;
  margin-top: 0;
}

a {
  color: #2980b9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Navigation */
nav {
  background-color: #2c3e50;
  padding: 10px 0;
  color: white;
  text-align: center;
}

nav a {
  color: white;
  margin: 0 15px;
  font-weight: 500;
}

/* Beitragskarten */
.beitrags-kachel {
  background-color: white;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.beitragsbild {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: block;
}

.beitrags-kachel p {
  line-height: 1.6;
  font-size: 1.05em;
}

.beitrags-kachel h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

/* Startseitenbild */
header img {
  width: 100%;
  max-width: 700px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

header h1 {
  font-size: 2.2em;
  margin-bottom: 10px;
}

header p {
  color: #555;
  font-size: 1.2em;
  margin-top: 0;
}

/* Formular */
form {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

input[type="submit"],
.btn {
  background-color: #2980b9;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

input[type="submit"]:hover,
.btn:hover {
  background-color: #1c5980;
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}

.pagination {
  text-align: center;
}

.page-btn {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  background-color: #ecf0f1;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  border: 1px solid #bdc3c7;
  transition: background-color 0.2s, color 0.2s;
}

.page-btn:hover {
  background-color: #3498db;
  color: white;
}

.page-btn.active {
  background-color: #2c3e50;
  color: white;
  pointer-events: none;
}

/* Was dich erwartet – Feature-Boxen */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Zwei Spalten */
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr; /* Mobile: 1 Spalte */
  }
}

.feature-box {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.2s ease;
}

.emoji {
  font-size: 28px;
  margin-bottom: 10px;
}

/* Feedback-Messages */
.message {
  padding: 12px;
  margin: 20px 0;
  border-radius: 5px;
  font-weight: bold;
}

.message.success {
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #b2d8b2;
}

.message.error {
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #ebcccc;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding: 10px;
  }

  nav {
    font-size: 14px;
    flex-direction: column;
    gap: 8px;
  }

  .beitragsbild {
    max-width: 100%;
  }

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