/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* =========================
   FRONTEND NAV
========================= */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #111;
  border-bottom: 1px solid #222;
}

.logo img {
  height: 50px;
}

.menu {
  display: flex;
  gap: 25px;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  transition: 0.3s;
}

.menu a:hover,
.menu a.active {
  color: #8DD615;
}

.icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.login-icon {
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.login-icon:hover {
  color: #8DD615;
}

/* MOBILE */
.burger {
  display: none;
}

@media (max-width:768px){
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #111;
    padding: 20px;
  }

  .menu.active {
    display: flex;
  }

  .burger {
    display: block;
    cursor: pointer;
  }
}

/* =========================
   HERO
========================= */

.hero {
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  color: #8DD615;
  font-size: 42px;
}

/* =========================
   GALLERY
========================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 15px;
  padding: 20px;
}

.gallery img {
  width: 100%;
  border-radius: 12px;
  transition: 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* =========================
   FORMS
========================= */

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input, textarea, select {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #222;
  color: #fff;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid #8DD615;
}

button {
  background: #8DD615;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

/* =========================
   FOOTER
========================= */

.footer {
  background: #111;
  padding: 15px 30px;
  border-top: 1px solid #222;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-links a {
  color: #fff;
  margin-left: 15px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #8DD615;
}

/* =========================
   LOGIN MODAL
========================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #222;
  padding: 25px;
  border-radius: 12px;
  width: 320px;
}

/* =========================
   ADMIN LAYOUT
========================= */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background: #111;
  border-right: 1px solid #222;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.admin-logo img {
  width: 140px;
  margin-bottom: 30px;
}

.sidebar a {
  color: #aaa;
  padding: 12px;
  margin-bottom: 6px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.3s;
}

.sidebar a:hover {
  background: #1f1f1f;
  color: #8DD615;
}

.sidebar .logout {
  margin-top: auto;
  color: #ff4d4d;
}

.admin-content {
  flex: 1;
  padding: 30px;
  background: #1a1a1a;
  min-width: 0;
}

/* =========================
   TABLE
========================= */

.ui-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #1f1f1f;
  border-radius: 10px;
  overflow: hidden;
}

.ui-table th {
  background: #111;
  color: #8DD615;
  padding: 14px;
  text-align: left;
}

.ui-table td {
  padding: 14px;
  border-bottom: 1px solid #333;
}

/* =========================
   STATUS
========================= */

.status {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  display: inline-block;
}

.status.offen { background: #444; }
.status.in { background: #8DD615; color: #000; }
.status.fertig { background: #00c853; color: #000; }

/* =========================
   ICON BUTTONS
========================= */

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-right: 8px;
  transition: 0.2s;
}

.icon-btn.edit { color: #8DD615; }
.icon-btn.delete { color: #ff4d4d; }

.icon-btn:hover {
  transform: scale(1.2);
}

/* =========================
   BUTTON
========================= */

.btn {
  background: #8DD615;
  color: #000;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

/* =========================
   PAGE WRAPPER FIX (IMPRINT / DSGVO)
========================= */

.page-wrapper {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px;
  background: #222;
  border: 1px solid #333;
  border-radius: 12px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page-wrapper {
    margin: 20px;
    padding: 20px;
  }
}

/* =========================
   ANIMATION
========================= */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}