* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer-nav {
        display: none;
}

main {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.container {
  max-width: 960px;
  margin: auto;
}

nav {
  background: #d63384;
  color: white;
  padding: 12px 20px;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  color: white;
  text-decoration: none;
  margin-top: 5px;
}

a {
  color: #d63384;
  text-decoration: none;
}

.flash {
    padding: 12px;
    margin: 15px 0;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.flash.show {
    opacity: 1;
    transform: translateY(0);
}
.flash.success {
    background-color: #d4edda;
    color: #155724;
}
.flash.error {
    background-color: #f8d7da;
    color: #721c24;
}

.burger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-wrapper ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

ul {
  list-style-position: inside;
  padding-left: 0;
}

.content {
  display: block;
  align-items: center;
  text-align: center;
}

.back-button {
  display: none;
}

.container {
  max-width: 1000px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.4rem;
  margin: 0.4rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rescard {
  background: #e0fce0;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.4rem;
  margin: 0.4rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cardKunde {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.4rem;
  margin: 0.4rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  justify-content: space-between;
}

.card.active {
  background-color: #e0fce0; /* leichtes Grün */
  border-left: 4px solid #2ecc71;
}

.cardLink {
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cardName {
  padding-right: 4px;
}

.cardLinkKunde {
  color: #000;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.profile_img {
  border-radius: 50%;
  width: 70px;
  height: 70px;
  margin-right: 8px;
}

.circle-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 32px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-right: 8px;
}

form {
  background: white;
  padding: 0.4rem;
  border-radius: 8px;
  margin: 0.4rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.formOptionAdd {
  border: none;
  box-shadow: none;
  display: flex;
}

.formCatAdd {
  border: none;
  box-shadow: none;
  display: flex;
}

.inputOption {
  margin: 0;
  margin-right: 8px;
}

.deleteOption {
  margin-left: 8px;
}

.buttonAdd {
    width: 35px;
    border: none;
    background-color: transparent;
    font-size: 32px;
    font-weight: bold;
    color:#3498db;
    cursor: pointer;
}
.spanOptions {
  display: inline-block;
  white-space: nowrap;
  border: 1px solid #ccc;
  background-color: #cccccc1c;
  border-radius: 4px;
  margin-right: 8px;
  margin-top: 8px;
  padding: 0.2rem;
}

.search {
  width: 100%;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="checkbox"],
select {
  width: 15px;
  margin: 0;
}

/* Ganztägig-Checkbox: horizontal ausrichten */
.checkbox-row {
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

main {
  flex: 1;
  padding: 2rem;
}

h2 {
  justify-content: center;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 8px;
}

.button {
  background-color: #e91e63;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: medium;
}

.buttonKunde {
  background-color: #e91e63;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: medium;
}

.section-header {
  margin-bottom: 0.5rem;
}

.toggle-btn {
  float: right;
  color:#3498db;
  margin-top: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.toggle-btn.open {
  transform: rotate(180deg);
}

.termine-wrapper {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}

.termine-wrapper.open {
  max-height: 1000px; /* groß genug, damit Inhalt hineinpasst */
}

#calendar {
  max-width: 1000px;
  margin: 20px auto;
}

.fc-toolbar-title {
  font-size: 1.4em;
}

/* Modal-Stil */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.4);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
}

.button:hover {
  background-color: #d81b60;
}

footer {
  background-color: #d63384;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 8px;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
  form input,
  form textarea,
  form select {
    font-size: 1.2rem;
  }
  body {
    font-size: 1.2rem;
  }
  header nav ul {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }
  .header-image {
    margin-right: 32px;
    width: 300px;
    height: 90px;
  }
  .burger {
    width: 30px;
    height: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1100;
  }
  .burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    background-color: #000;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* Animation zu "X" */
  .burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger.open span:nth-child(2) {
    opacity: 0;
  }
  .burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Optional: Hintergrund abdunkeln, wenn Menü offen ist */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-wrapper {
    position: fixed;
    top: 0;
    right: -250px; /* Menü ist erstmal außerhalb sichtbar */
    width: 250px;
    height: 100vh;
    background-color: #d63384;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    padding: 2rem 1rem;
  }

  .nav-wrapper.open {
    right: 0;
  }

  .nav-wrapper ul {
    flex-direction: column;
    padding: 10px;
  }

  nav h1 {
    display: inline-block;
    margin-right: auto;
  }

  main {
    padding: 0;
  }

  nav {
    align-items: flex-start;
    font-size: 16px;
  }

  .container {
    padding: 10px;
  }

  .fc-toolbar-title {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1.2rem;
  }
  header nav h1 {
    font-size: 1.2rem;
  }

  form input,
  form textarea,
  form select {
    font-size: 1.2rem;
  }
  input[type="date"],
  input[type="time"],
  select {
    width: 90%;
  }
  .search {
    font-size: 1.2rem;
  }

  .kunden-scrollbereich {
    max-height: 25vh; /* oder z. B. 60vh für 60% der Höhe des Bildschirms */
    overflow-y: auto;
    padding-right: 10px; /* etwas Abstand rechts, damit Scrollbar nicht überlappt */
  }

  /* Optional: Scrollbar schön machen (nur bei WebKit-Browsern wie Chrome/Safari) */
  .kunden-scrollbereich::-webkit-scrollbar {
    width: 8px;
  }
  .kunden-scrollbereich::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }

  .cardKunde {
    flex-direction: row;
    padding: 0;
    justify-content: space-between;
  }
  .cardLinkKunde {
    flex-direction: row;
    justify-content: space-between;
  }
  .cardNameEmail {
    display: none;
  }
  .profile_img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin: 0;
    margin-right: 8px;
  }

  .circle-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%; /* Rund machen */
    background-color: #3498db; /* Hintergrundfarbe */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 8px;
  }

  .buttonKundeDelete {
    padding: 0.1rem 0.4rem;
    margin-right: 8px;
    border: none;
    background: none;
    cursor: pointer;
  }
  .container {
    align-items: unset;
  }

  .header-with-back {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
  }

  .back-button {
    display: unset;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    color:#3498db;
    font-size: 32px;
    border: none;
    background: none;
    cursor: pointer;
  }
  footer {
    height: 70px;
  }
  .footer-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        border-top: 1px solid #ccc;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 0;
        height: 70px;
    }

    .footer-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #444;
        text-decoration: none;
        margin: 0;
        margin-bottom: 32px;
    }

    .footer-item .icon {
        font-size: 20px;
    }

    .footer-item:hover {
        color: #c2185b;
    }

    .footer-copy {
        display: none; /* Ausgeblendet unter mobiler Navigation */
    }
}
