* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111;
}

.app {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.card {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  overflow: hidden; /* ← DAS IST ENTSCHEIDEND */
}

/* CONTENT */
.card-content {
  padding: 28px 24px 32px;
  text-align: center;
}

h1 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 24px;
}

/* INPUTS */
input, select {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  width: auto;
  height: 100%;
  margin: 0;
  border: none;
  background: transparent;
  color: #888;
  font-size: 12px;
  letter-spacing: 0.2px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.password-toggle:hover {
  color: #555;
}

.password-toggle:active {
  transform: scale(0.98);
}

.reset-link {
  width: auto;
  margin: 6px 0 0;
  padding: 0;
  background: transparent;
  color: #888;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.reset-link:hover {
  color: #555;
}

.reset-link.hidden {
  display: none;
}

.auth-error {
  margin: 6px 0 0;
  font-size: 13px;
  color: #b00020;
  display: none;
}

.row {
  display: flex;
  gap: 8px;
}

.row input {
  flex: 1;
}

.row select {
  width: 120px;
}

.field-label {
  display: block;
  margin: 6px 0 6px;
  font-size: 12px;
  color: #666;
  text-align: left;
}

/* BUTTONS */
button {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  border-radius: 14px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

button.secondary {
  background: #f2f2f2;
  color: #000;
}

.topbar-link {
  width: auto;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.topbar-link:hover {
  opacity: 0.7;
}

.menu-panel {
  margin: 12px 0;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 8px;
}

.menu-item {
  text-align: left;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: #f7f7f7;
  color: #111;
  font-size: 14px;
  cursor: pointer;
}

.menu-item:hover {
  background: #efefef;
}

button.small {
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 12px;
}

/* CHECKBOX */
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-top: 12px;
  text-align: left;
}

/* STATUS */
#status {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.6;
}

#result {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
}

.places {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
}

.places-status {
  margin: 6px 0 0;
  font-size: 12px;
  color: #888;
}

.map-wrap {
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
}

.map-embed {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}
.card-hero {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.card-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* TOP BAR */
.topbar {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
}

/* HERO CARD */
.hero-card {
  position: relative;
  width: 100%;
  height: 240px;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px 24px 0 0;
}

.hero-overlay {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  color: #fff;
}

.hero-overlay h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.hero-overlay p {
  margin-top: 4px;
  font-size: 14px;
  opacity: 0.9;
}

/* INFO GRID */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.info-card {
  background: #f4f4f4;
  border-radius: 16px;
  padding: 14px;
  font-size: 14px;
}

.info-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
}
.dashboard-header {
  padding: 20px 24px 8px;
  text-align: left;
}

.dashboard-header h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.dashboard-header p {
  margin-top: 4px;
  font-size: 14px;
  opacity: 0.6;
}

.profile-panel {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #f7f7f7;
  text-align: left;
}

.profile-panel h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.profile-label {
  margin: 0 0 4px;
  font-size: 12px;
  color: #666;
}

.profile-value {
  margin: 0;
  font-size: 14px;
  color: #111;
  white-space: pre-line;
}

.health-panel {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #f7f7f7;
  text-align: left;
}

.health-panel h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.health-item {
  margin: 0 0 6px;
  font-size: 14px;
  color: #111;
}

.health-item[data-status="overdue"] {
  color: #b00020;
  font-weight: 600;
}

.section {
  margin-top: 8px;
  text-align: left;
}

.section-title {
  margin: 0 0 8px;
  font-size: 12px;
  color: #666;
}

.visits-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.button-inline {
  width: auto;
  margin-top: 0;
}

.visit-form {
  margin: 8px 0 12px;
}

.visits-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-divider {
  height: 1px;
  background: #eee;
  margin: 6px 0 12px;
}

.visits-summary select {
  width: auto;
  padding: 6px 10px;
  padding-right: 26px;
  margin-bottom: 0;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-size: 12px;
  color: #666;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.visits-summary select:focus {
  outline: none;
  border-color: #ccc;
}

.spend-total {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.health-log {
  margin-top: 6px;
  font-size: 13px;
  color: #111;
}

.health-log-item {
  margin: 0 0 8px;
  line-height: 1.3;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7f7f7;
}

.log-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.log-row > span {
  flex: 1;
  min-width: 0;
}

.log-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.log-button {
  width: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: #666;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.log-button:hover {
  color: #111;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.modal-card {
  position: relative;
  z-index: 101;
  max-width: 320px;
  margin: 20vh auto 0;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.modal-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.modal-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #555;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
