 /* ================= Reset & Body ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  color: #333;

  position: relative;
  z-index: 1;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: url("bild4.jpg") center/cover no-repeat;

  filter: blur(8px); /* UNSCHÄRFE */
  transform: scale(1.1); /* verhindert weiße Ränder */

  z-index: -1;
}

main {
  flex: 1;
}

/* ================= Header ================= */
header {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  text-align: center;

  width: 90%;
  max-width: 1100px;
  margin: 20px auto;

  padding: 60px 20px;

  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);

  position: relative;
  overflow: hidden;
}

header h1 {
  font-size: 50px;
  letter-spacing: 1.5px;
}

.subtitle {
  margin-top: 10px;
  font-size: 25px;
  color: #94a3b8;
}

/* ================= Navigation ================= */
nav {
  background: #ffffff;

  width: 90%;
  max-width: 1100px;
  margin: 20px auto;

  padding: 12px;

  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: #2c3e50;
  margin: 5px 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;

  padding: 8px 14px;
  border-radius: 8px;

  transition: 0.3s;
}

.nav-links a:hover {
  background: #2c3e50;
  color: #fff;
}

/* ================= Hamburger Button ================= */
.menu-toggle {
  display: none;
  font-size: 32px;
  cursor: pointer;
  color: #2c3e50;

  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 10001;

  padding: 8px 12px;
  background: #fff;

  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* ================= Slider ================= */
.slider {
  position: relative;

  width: 90%;
  max-width: 1100px;
  height: 450px;

  margin: 30px auto;

  overflow: hidden;
  border-radius: 20px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;

  position: absolute;
  top: 0;
  left: 0;

  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* ================= Inhalt ================= */
section {
  background: #fff;

  width: 90%;
  max-width: 1100px;

  margin: 25px auto;
  padding: 35px;

  border-radius: 18px;

  box-shadow: 0 8px 25px rgba(0,0,0,0.1);

  line-height: 1.6;
}

h2 {
  margin-bottom: 15px;
  color: #1e293b;
}

/* ================= WhatsApp Button ================= */
.whatsapp-button {
  display: inline-block;

  background: #25D366;
  color: white;

  text-decoration: none;

  padding: 12px 22px;
  border-radius: 30px;

  margin-top: 20px;

  font-weight: bold;

  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.whatsapp-button:hover {
  background: #128C7E;
  transform: translateY(-2px) scale(1.05);
}

/* ================= Footer ================= */
footer {
  background: #0f172a;
  color: #cbd5e1;

  text-align: center;

  width: 90%;
  max-width: 1100px;

  margin: 40px auto 20px;

  padding: 25px 15px;

  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;

    flex-direction: column;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(255,255,255,0.95);

    justify-content: center;
    align-items: center;

    z-index: 9999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 15px;
    font-size: 20px;
  }

  .slider {
    height: 450px;
  }

  section {
    padding: 20px;
  }
}

@media (max-width: 480px) {

  .slider {
    height: 400px;
  }

  .whatsapp-button {
    padding: 10px 16px;
    font-size: 14px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }
}
/* ================= LOGIN ================= */
.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-form input {
  width: 100%;
  max-width: 300px;

  padding: 12px;
  margin: 10px 0;

  border-radius: 8px;
  border: 1px solid #ccc;

  font-size: 14px;

  transition: 0.3s;
}

.login-form input:focus {
  border-color: #2c3e50;
  outline: none;
  box-shadow: 0 0 5px rgba(44,62,80,0.3);
}

.login-form button {
  background: #2c3e50;
  color: white;

  padding: 12px 25px;
  border: none;

  border-radius: 25px;

  font-weight: bold;
  cursor: pointer;

  transition: 0.3s;
}

.login-form button:hover {
  background: #1e293b;
  transform: scale(1.05);
}
/* ================= EDIT FORM ================= */
.edit-form {
  display: flex;
  flex-direction: column;
}

.edit-form input,
.edit-form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;

  border-radius: 10px;
  border: 1px solid #ccc;

  font-size: 14px;
}

.edit-form textarea {
  min-height: 150px;
  resize: vertical;
}

.edit-form button {
  background: #2c3e50;
  color: white;

  padding: 12px;
  border: none;

  border-radius: 10px;
  font-weight: bold;

  cursor: pointer;
  transition: 0.3s;
}

.edit-form button:hover {
  background: #1e293b;
  transform: scale(1.03);
}
/* ================= ADMIN TOPBAR ================= */
.admin-topbar {
  width: 90%;
  max-width: 1100px;
  margin: 15px auto;

  display: flex;
  justify-content: flex-end;
}

/* Logout Button */
.logout-btn {
  background: #e74c3c;
  color: white;

  padding: 10px 18px;
  border-radius: 10px;

  text-decoration: none;
  font-weight: bold;

  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.3s;
}

.logout-btn:hover {
  background: #c0392b;
  transform: scale(1.05);
}
/* ================= ADMIN MOBILE ================= */
@media (max-width: 600px) {
  .admin-topbar {
    justify-content: center; /* mittig auf Handy */
  }

  .logout-btn {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }
}
