/* styles.css */
:root {
  --primar: #006699;
  --hell: #f0f8ff;
  --grau: #f4f4f4;
  --dunkel: #333;
  --abstand: 1rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: var(--hell);
  padding: var(--abstand);
  color: var(--dunkel);
}

.wochen-uebersicht {
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primar);
}

.woche {
  background-color: white;
  border: 1px solid #ccc;
  border-left: 5px solid var(--primar);
  border-radius: 6px;
  margin-bottom: var(--abstand);
  padding: var(--abstand);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.kopfzeile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.kopfzeile h2 {
  font-size: 1.2rem;
}

.kopfzeile .hinweis {
  background-color: var(--primar);
  color: white;
  padding: 0.3em 0.6em;
  font-size: 0.8rem;
  border-radius: 3px;
}

.kw-link {
  text-decoration: none;
  color: var(--primar);
}
.kw-link:hover {
  text-decoration: underline;
}


.tasks {
  list-style: none;
  padding-left: 1rem;
}

.tasks li {
  margin: 0.3rem 0;
}

.tasks .summe {
  margin-top: 0.5rem;
  font-weight: bold;
  color: #0a0;
}

.status-zeile {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status {
  font-weight: bold;
}

.status.ausbezahlt {
  color: green;
}

.status.nicht-ausbezahlt {
  color: red;
}

.btn {
  background-color: var(--primar);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #004d66;
}

.uebersicht-menue {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}

.uebersicht-menue ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding-left: 0;
}

.uebersicht-menue a {
  text-decoration: none;
  color: var(--primar);
  font-weight: bold;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.uebersicht-menue a:hover {
  background-color: var(--primar);
  color: white;
}


/* Responsive */
@media (max-width: 600px) {
  .kopfzeile {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .kopfzeile h2 {
    font-size: 1rem;
  }
}

/* Schnellerfassung */
.schnellerfassung {
  max-width: 500px;
  margin: 2rem auto;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.schnellerfassung label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

.schnellerfassung select,
.schnellerfassung button {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.schnellerfassung button {
  margin-top: 1.5rem;
}

/* Erfassung */
.full-entry-form {
  max-width: 600px;
  margin: 2rem auto;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.full-entry-form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}
.full-entry-form input,
.full-entry-form button,
.full-entry-form datalist {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
}
.full-entry-form button {
  margin-top: 1.5rem;
}
/* Settings */
.einstellungen {
  max-width: 500px;
  margin: 2rem auto;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.einstellungen label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

.einstellungen input,
.einstellungen button {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.einstellungen button {
  margin-top: 1.5rem;
}

/* Details */
.wochen-details {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.wochen-details h1 {
  color: var(--primar);
  margin-bottom: 0.5rem;
}

.zurueck {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primar);
  text-decoration: none;
  font-size: 0.9rem;
}

.zurueck:hover {
  text-decoration: underline;
}

.wochen-tabelle {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.wochen-tabelle th,
.wochen-tabelle td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.wochen-tabelle th {
  background-color: var(--hell);
  font-weight: bold;
}

.wochen-tabelle tfoot td {
  font-weight: bold;
  background-color: #f9f9f9;
  border-top: 1px solid #ccc;
}

@media (max-width: 600px) {
  .wochen-tabelle th, .wochen-tabelle td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}
