/* === Reset & Basis === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fbeaff, #e0f7ff);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

body {
  min-height: 100vh;
}

/* === Header === */
header {
  background: linear-gradient(to right, #8e2de2, #4a00e0);
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2rem;
}

nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

nav a:hover,
nav a.active {
  background: rgba(255,255,255,0.2);
}

/* === Footer === */
footer {
  background: #f3eaff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: auto;
  color: #555;
}

/* === Zentrierung Hauptbereich === */
.main-center {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.main-card,
.container,
.contact-card,
section {
  background-color: #fff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 700px;
  width: 100%;
  animation: fadeIn 0.5s ease-out;
  text-align: center;
}

/* === Formulare === */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

input,
select,
textarea {
  padding: 0.75rem;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  background-color: #fff;
  color: #333;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #8e2de2;
  outline: none;
  box-shadow: 0 0 10px #d1b3ff;
}

/* === Buttons === */
.btn,
button,
form a.btn {
  background: linear-gradient(to right, #8e2de2, #4a00e0);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  width: 100%;
  display: inline-block;
}

.btn:hover,
button:hover,
form a.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.btn.small {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === Rückmeldungen === */
.success {
  background-color: #e0ffe0;
  color: #227722;
  padding: 1rem;
  border-radius: 10px;
}

.error {
  background-color: #ffe0e0;
  color: #cc0000;
  padding: 1rem;
  border-radius: 10px;
}

/* === Spezialelemente === */
.flex-row {
  display: flex;
  gap: 1rem;
}

.flex-row input {
  flex: 1;
  min-width: 0;
}

.cta-wrapper {
  margin-top: 2rem;
  text-align: center;
}

.cta-button {
  margin-top: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 1000px;
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.artikel-block {
  background-color: #fdf0ff;
  border: 1px solid #e6cfff;
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}

.artikel-block div {
  display: flex;
  gap: 0.5rem;
}

.artikel-block div strong {
  width: 100px;
  display: inline-block;
}

.artikel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 12px;
  gap: 1rem;
}

.artikel-infos {
  text-align: center;
}

.artikel-action {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* === Admin Cards === */
.admin-menu-grid,
.admin-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem 1rem;
}

.admin-card {
  background-color: #fff;
  color: #333;
  padding: 2rem 1.5rem;
  width: 250px;
  height: 130px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-card a {
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #222;
  text-decoration: underline;
}

.admin-card:hover {
  transform: translateY(-5px);
  background-color: #faf5ff;
}

/* === Animation === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Mobile === */
@media (max-width: 600px) {
  html, body {
    font-size: 16px;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-card,
  .container,
  .contact-card,
  section {
    padding: 1.5rem;
    width: 95%;
  }

  .artikel-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 0.5rem;
  }

  .artikel-infos h3 {
    font-size: 1.1rem;
  }

  .artikel-infos p {
    font-size: 0.95rem;
  }

  .artikel-action,
  .btn.small {
    width: 100%;
    font-size: 1rem;
    justify-content: center;
  }

  .admin-card {
    width: 95%;
    height: auto;
  }
}

/* Einheitlicher Button-Stil für <a> und <button> mit .btn */
.btn, button.btn, a.btn {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  text-decoration: none !important;
  background: linear-gradient(to right, #8e2de2, #4a00e0);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.btn:hover, button.btn:hover, a.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

/* Entfernt Unterstreichung bei allen Links innerhalb von Buttons */
a.btn {
  text-decoration: none;
}

/* Einheitliche Breite für Buttons innerhalb von Formularen */
form .btn,
form button.btn,
form a.btn {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

form .btn,
form button.btn,
form a.btn {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: center;
  border: none;
  border-radius: 30px;
  background: linear-gradient(to right, #8e2de2, #4a00e0);
  color: #fff !important;
  text-decoration: none !important;
}

.section-block {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.section-block {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.main-card h2 {
  margin-bottom: 2rem; /* vorher evtl. 1rem */
}

.main-card h2 {
  margin-bottom: 2.5rem;
}
