
/* ========== GRUNDLAYOUT ========== */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #fdfdfb; /* fast weiß */
  color: #111;
  height: 100%;
  overflow: auto;
}
body {
  display: flex;
  flex-direction: column;
}

/* ========== ÜBERSCHRIFT OBEN ========== */
h2 {
  margin: 0;
  padding: 20px;
  background-color: #5a3a63; /* angepasst aus Logo/CI */
  color: white;
  position: sticky;
  top: 0;
  z-index: 30;
}

/* ========== STICKY-EINGABEBLOCK ========== */
.sticky-block {
  position: sticky;
  top: 60px;
  z-index: 20;
  background-color: #fdfdfb;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========== FORMULARZEILE ========== */
.eintrag-formular {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}

.eintrag-formular input,
.eintrag-formular select,
.eintrag-formular button {
  font-size: 14px;
  height: 38px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: white;
  color: #111;
}

/* ========== SCROLLBEREICH ========== */
.scroll-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 0 20px;
  background-color: #fdfdfb;
  box-sizing: border-box;
}

/* ========== TABELLE ========== */
.daten-tabelle {
  width: max-content;
  border-collapse: collapse;
  background-color: white;
  color: #111;
}

/* ========== STICKY-KÖPFE ========== */
.daten-tabelle thead th {
  background: linear-gradient(to bottom, #f2f2f2, #ffffff);
  color: #111;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  border: 1px solid #ccc;
  padding: 8px;
}

.daten-tabelle .monat-header th {
  top: -10px;
  background-color: #5a3a63;
  color: white;
  z-index: 6;
}

.daten-tabelle .summenzeile-pv th {
  top: 37px;
  background-color: #cdddf8;
  color: black;
  z-index: 5;
}

.daten-tabelle .summenzeile-pk th {
  top: 74px;
  background-color: #d4ecd4;
  color: black;
  z-index: 4;
}

/* ========== TABELLENINHALT ========== */
.daten-tabelle td {
  border: 1px solid #ccc;
  height: 42px;
  font-size: 14px;
  text-align: center;
  background-color: white;
  color: #111;
  min-width: 150px;
}

.daten-tabelle td input,
.daten-tabelle td select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background-color: white;
  color: #111;
}

/* ========== BUTTONS ========== */
button {
  background: linear-gradient(to bottom, #eeeeee, #ffffff);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: bold;
  color: #111;
  font-size: 15px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #ddd;
  transition: background 0.2s;
}
button:hover {
  background: linear-gradient(to bottom, #dddddd, #f9f9f9);
}

.steuer-button {
  background: linear-gradient(to bottom, #f2f2f2, #ffffff);
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 14px;
  font-weight: bold;
  color: #111;
  cursor: pointer;
  text-align: center;
  font-size: 14px;

  /* Sichtbarer Schatten wie Menübuttons */
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 #eee,
    0 4px 6px rgba(0, 0, 0, 0.25) !important;

  transition: all 0.2s ease-in-out;
}

.steuer-button:hover {
  background-color: #e6e0f0;
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 #eee,
    0 6px 10px rgba(0, 0, 0, 0.3) !important;
}

.loeschen-button {
  background-color: #b42e2e;
}

.loeschen-button:hover {
  background-color: #992d22;
}

/* ========== BETRAG MIT € ========== */
.betrag-feld {
  position: relative;
}

.betrag-feld::after {
  content: "€";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  font-size: 14px;
  pointer-events: none;
}

.betrag-feld input {
  padding-right: 24px;
}

/* ========== LEERZEILE ========== */
.leerzeile {
  height: 42px;
}

/* ========== ZELLEN MIT TERMIN ========== */
.terminzelle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminzelle select {
  width: 120px;
}

/* ========== KOMPAKTES FORMULAR ========== */
.kompakt-formular {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
}

.kompakt-formular .form-row {
  display: flex;
  flex-direction: column;
}

.kompakt-formular label {
  font-weight: bold;
  margin-bottom: 4px;
}

.kompakt-formular input,
.kompakt-formular select,
.kompakt-formular button {
  width: 100%;
  padding: 6px 8px;
  box-sizing: border-box;
  font-size: 1rem;
}

/* ========== ZWEIZEILIGER BUTTON ========== */
.zweizeilig-button {
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  font-weight: bold;
  padding: 10px;
  background: #eee;
  border: 1px solid #aaa;
  border-radius: 4px;
}

/* fix logo visibility */
.header .logo{
  display:inline-block;
  height:40px;
  margin:8px 12px;
  vertical-align:middle;
  position:relative;
  z-index:1000;
}
