*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: -webkit-fill-available;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #2c5f2e;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
}

/* ============================================================
   Hintergrundbild — immer sichtbar
   ============================================================ */

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* ============================================================
   Seiteninhalt (über Hintergrundbild)
   ============================================================ */

.site-main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 7rem;
  width: 100%;
}

/* ============================================================
   Startseite — Hero-Content zentriert
   ============================================================ */

.hero-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  z-index: 10;
  width: 100%;
  padding: 2rem;
  pointer-events: none;
}
.hero-content * { pointer-events: auto; }
.hero-content h1 {
  font-size: 4rem;
  font-weight: 300;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.1em;
}
.hero-content p { font-size: 1.1rem; }
.hero-content a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
  transition: opacity 0.3s ease;
}
.hero-content a:hover { opacity: 0.8; }

/* ============================================================
   Sprachumschalter (oben rechts)
   ============================================================ */

.language-switcher {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.language-switcher a {
  display: flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  opacity: 0.6;
}
.language-switcher a.current {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.language-switcher a:hover {
  transform: scale(1.1);
  opacity: 1;
}
.language-switcher a[href="/lang/de"] {
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 33.33%,
    rgba(221,0,0,0.7) 33.33%, rgba(221,0,0,0.7) 66.66%,
    rgba(255,206,0,0.7) 66.66%, rgba(255,206,0,0.7) 100%
  );
}
.language-switcher a[href="/lang/hu"] {
  background: linear-gradient(to bottom,
    rgba(206,41,57,0.7) 0%, rgba(206,41,57,0.7) 33.33%,
    rgba(255,255,255,0.7) 33.33%, rgba(255,255,255,0.7) 66.66%,
    rgba(71,112,80,0.7) 66.66%, rgba(71,112,80,0.7) 100%
  );
}

/* ============================================================
   Navigation / Admin Tools (unten links)
   ============================================================ */

.admin-tools {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 100;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255,255,255,0.6) inset;
}
.admin-tools .tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.4rem 0.55rem;
  min-width: 52px;
  background: transparent;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  font-size: 1.5rem;
  transition: background 0.2s ease;
  cursor: pointer;
}
.admin-tools .tool-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}
.admin-tools .tool-btn.active {
  background: rgba(44, 95, 46, 0.18);
  color: #2c5f2e;
}
.admin-tools .tool-btn.active .tool-label {
  color: #2c5f2e;
}
.tool-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #555;
  white-space: nowrap;
}
.admin-tools .additional-tools {
  display: flex;
  gap: 0.1rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
  pointer-events: none;
}
.admin-tools.logged-in .additional-tools {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* ============================================================
   Footer (unten rechts)
   ============================================================ */

.footer-links {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.3s ease;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.footer-links a:hover { color: white; text-decoration: underline; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary       { background: #2c5f2e; color: white; }
.btn-primary:hover { background: #234d25; }
.btn-outline       { background: transparent; color: white; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-secondary       { background: rgba(0,0,0,0.12); color: #333; border-color: rgba(0,0,0,0.15); }
.btn-secondary:hover { background: rgba(0,0,0,0.2); }
.btn-danger        { background: #dc2626; color: white; }
.btn-danger:hover  { background: #b91c1c; }
.btn-sm            { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
.btn-full          { width: 100%; justify-content: center; }
.btn-add {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border-radius: 50%;
  font-size: 1.3rem;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  box-shadow: none !important;
  text-shadow: none;
}
.btn-add:hover {
  background: rgba(255, 255, 255, 0.95);
}

/* ============================================================
   Formulare
   ============================================================ */

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #444;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color .15s;
  background: rgba(255,255,255,0.95);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2c5f2e;
  box-shadow: 0 0 0 3px rgba(44,95,46,.15);
}
.form-group textarea { min-height: 100px; resize: vertical; }

/* ============================================================
   Alerts
   ============================================================ */

.alert {
  padding: 0.65rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-error   { background: rgba(254,242,242,0.92); color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: rgba(240,253,244,0.92); color: #166534; border: 1px solid #bbf7d0; }

/* ============================================================
   Login
   ============================================================ */

.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 10rem);
}
.login-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255,255,255,0.6) inset;
  border: 1px solid rgba(255,255,255,0.5);
}
.login-card h1 { font-size: 1.6rem; text-align: center; margin-bottom: 0.2rem; }
.login-card h2 { font-size: 0.95rem; font-weight: 500; text-align: center; color: #666; margin-bottom: 1.75rem; }

/* ============================================================
   Content-Panel (Textseiten wie Impressum)
   ============================================================ */

.content-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  color: #1a1a1a;
}
.content-panel h2 { font-size: 1.4rem; margin: 1.5rem 0 0.5rem; }
.content-panel h3 { font-size: 1.05rem; margin: 1.2rem 0 0.3rem; color: #333; }
.content-panel p  { margin-bottom: 0.75rem; }
.content-panel a  { color: #2c5f2e; }

/* ============================================================
   Seiten-Header (Überschrift bei Unterseiten)
   ============================================================ */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}
.page-header h1 { font-size: 1.5rem; }

/* ============================================================
   Inhalts-Karten (semi-transparent)
   ============================================================ */

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #666;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  border: 2px dashed rgba(0,0,0,0.15);
}

/* Buchungen — Kalender */
.cal-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.cal-nav-title {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
}
.cal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  color: #333;
  text-decoration: none;
  transition: background .15s;
}
.cal-nav-btn:hover { background: rgba(255,255,255,0.9); }

.cal-grid {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.5);
}
.cal-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: rgba(0,0,0,0.06);
}
.cal-weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cal-weekday.cal-weekend { color: #888; }

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid rgba(0,0,0,0.06);
}
.cal-day {
  min-height: 4.5rem;
  min-width: 0;
  padding: 0.3rem 0;
  border-right: 1px solid rgba(0,0,0,0.05);
  position: relative;
  vertical-align: top;
  overflow: hidden;
}
.cal-day:last-child { border-right: none; }
.cal-week .cal-day:nth-child(6),
.cal-week .cal-day:nth-child(7) { background: rgba(0,0,0,0.04); }
.cal-day--other .cal-day-num { color: #bbb; }
.cal-day--today .cal-day-num {
  background: #3b82f6;
  color: #fff;
  border-radius: 50%;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-day-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  margin: 0 auto 0.2rem;
  border-radius: 50%;
  transition: background .12s;
}
.cal-day-num:hover { background: rgba(0,0,0,0.08); }

/* Buchungs-Balken */
.booking-bar {
  display: block;
  font-size: 0.68rem;
  line-height: 1.4;
  padding: 1px 0.35rem;
  margin: 1px -1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  color: inherit;
  transition: filter .12s;
}
.booking-bar:hover { filter: brightness(0.9); }

/* Linke Kante abrunden beim Check-in */
.booking-bar.is-checkin  { border-radius: 3px 0 0 3px; margin-left: 3px; }
/* Rechte Kante abrunden am letzten Nacht */
.booking-bar.is-last-night { border-radius: 0 3px 3px 0; margin-right: 3px; }
/* Einzelne Buchung (1 Nacht) */
.booking-bar.is-single { border-radius: 3px; margin-left: 3px; margin-right: 3px; }

/* Farben nach Status */
.booking-bar.status-pending   { background: #fef3c7; color: #92400e; }
.booking-bar.status-confirmed { background: #d1fae5; color: #065f46; }
.booking-bar.status-cancelled { background: #fee2e2; color: #991b1b; opacity: 0.7; }
.booking-bar.status-completed { background: #e5e7eb; color: #374151; }

.bar-name { font-weight: 600; }

/* Legende */
.cal-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.legend-item { display: flex; align-items: center; gap: 0.3rem; color: #333; }
.legend-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  flex-shrink: 0;
}
.legend-item.status-pending   .legend-dot { background: #fef3c7; border: 1px solid #92400e; }
.legend-item.status-confirmed .legend-dot { background: #d1fae5; border: 1px solid #065f46; }
.legend-item.status-cancelled .legend-dot { background: #fee2e2; border: 1px solid #991b1b; }
.legend-item.status-completed .legend-dot { background: #e5e7eb; border: 1px solid #6b7280; }

/* Buchungs-Detail */
.booking-detail {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.5);
}
.detail-status { margin-bottom: 1.25rem; }
.detail-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.detail-section:last-of-type { border-bottom: none; }
.detail-section h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin: 0 0 0.75rem;
}
.detail-dl { display: grid; grid-template-columns: 8rem 1fr; gap: 0.4rem 0.75rem; margin: 0; }
.detail-dl dt { color: #666; font-size: 0.85rem; }
.detail-dl dd { margin: 0; font-weight: 500; font-size: 0.9rem; }
.detail-notes { font-size: 0.9rem; color: #444; white-space: pre-wrap; margin: 0; }
.detail-section--meta .detail-dl dt,
.detail-section--meta .detail-dl dd { font-size: 0.78rem; color: #888; font-weight: 400; }
.detail-danger { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(0,0,0,0.07); }

/* Buchungs-Formular */
.booking-form { background: rgba(255,255,255,0.88); backdrop-filter: blur(6px); border-radius: 10px; padding: 1.5rem; border: 1px solid rgba(255,255,255,0.5); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: #555; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 6px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.8);
  font-family: inherit;
}
.form-group textarea { resize: vertical; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.form-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.header-actions { margin-left: auto; }

/* Buchungen — alte Listen-Ansicht (nicht mehr genutzt, aber behalten) */
.booking-list { display: flex; flex-direction: column; gap: 0.5rem; }
.booking-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  color: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.5);
  display: grid;
  grid-template-columns: 7rem 1fr 1fr auto;
  align-items: center;
  gap: 1rem;
  transition: all .15s;
}
.booking-card:hover { background: rgba(255,255,255,0.96); box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.booking-number { font-size: 0.8rem; font-family: monospace; color: #666; }
.booking-guest  { font-weight: 600; }
.booking-dates  { font-size: 0.85rem; color: #555; }
.booking-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.status-pending   .booking-status { background: #fef3c7; color: #92400e; }
.status-confirmed .booking-status { background: #d1fae5; color: #065f46; }
.status-cancelled .booking-status { background: #fee2e2; color: #991b1b; }
.status-completed .booking-status { background: #e5e7eb; color: #374151; }

/* Filter-Bar */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  background: rgba(255,255,255,0.5);
  color: #333;
  transition: all .15s;
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(255,255,255,0.95);
  font-weight: 600;
}

/* Todos */
.todo-group { margin-bottom: 1.25rem; }
.todo-group-header {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.todo-group-header.status-open       { background: rgba(219,234,254,0.9); color: #1e40af; }
.todo-group-header.status-inprogress { background: rgba(254,243,199,0.9); color: #92400e; }
.todo-group-header.status-done       { background: rgba(220,252,231,0.9); color: #065f46; }
.todo-group-count { background: rgba(0,0,0,0.12); border-radius: 20px; padding: 0 0.4rem; font-size: 0.72rem; }
.todo-list { display: flex; flex-direction: column; gap: 0.5rem; min-height: 2rem; }
.todo-item-ghost { opacity: 0.4; }
.todo-drag-handle {
  font-size: 1.1rem;
  color: rgba(0,0,0,0.25);
  cursor: grab;
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
}
.todo-drag-handle:active { cursor: grabbing; }
.todo-item {
  position: relative;
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.todo-item.status-open       { background: rgba(219, 234, 254, 0.75); }
.todo-item.status-inprogress { background: rgba(254, 243, 199, 0.75); }
.todo-item.status-done       { background: rgba(220, 252, 231, 0.75); }
.todo-priority-icon {
  width: 2rem;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
}
.priority-high   .todo-priority-icon { color: #dc2626; }
.priority-medium .todo-priority-icon { color: #f59e0b; }
.todo-body  { flex: 1; min-width: 0; }
.todo-title { font-weight: 500; }
.todo-title.done { text-decoration: line-through; color: #888; }
.todo-desc  { font-size: 0.82rem; color: #666; margin-top: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-meta  { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; font-size: 0.78rem; }
/* Drag-Between-Groups Feedback */
body.is-dragging .todo-list {
  min-height: 3rem;
  border-radius: 8px;
  outline: 2px dashed rgba(0, 0, 0, 0.15);
  outline-offset: 2px;
  transition: outline-color 0.15s, background 0.15s;
}
body.is-dragging .todo-group.drag-target .todo-list {
  outline: 2px solid rgba(44, 95, 46, 0.6);
  background: rgba(44, 95, 46, 0.06);
}
body.is-dragging .todo-group.drag-target .todo-group-header {
  transform: scale(1.04);
  transition: transform 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.status-select {
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
}
.status-select:focus { outline: none; box-shadow: 0 0 0 2px rgba(44,95,46,.3); }
.status-select { background: rgba(255,255,255,0.7); color: #333; }
.todo-due  { color: #888; }
.todo-edit-btn {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: rgba(0, 0, 0, 0.45);
  font-size: 0.8rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.15s;
  cursor: pointer;
  padding: 0;
}
.todo-edit-btn:hover {
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.3);
}

/* Form-Card */
.form-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 600px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Notizen */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.note-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 0.75rem 1rem 0.9rem;
  color: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.5);
  transition: all .15s;
  position: relative;
}
.note-card:hover { background: rgba(255,255,255,0.96); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.note-card .todo-edit-btn { top: 0.5rem; transform: none; }
.note-card.pinned { border-color: rgba(251,191,36,0.8); background: rgba(255,251,235,0.9); }
.note-card-ghost { opacity: 0.4; }
.note-drag-handle {
  position: absolute;
  top: 0.5rem;
  right: 2.5rem;
  font-size: 1.1rem;
  color: rgba(0,0,0,0.25);
  cursor: grab;
  line-height: 1;
  user-select: none;
}
.note-drag-handle:active { cursor: grabbing; }
.note-title { font-size: 1rem; margin-bottom: 0.4rem; padding-right: 2rem; }
.note-preview { font-size: 0.85rem; color: #666; }
.note-content {
  font-size: 0.82rem;
  color: #444;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
  padding-right: 2rem;
}
.note-content p { margin: 0 0 0.3rem; }
.note-content h1, .note-content h2, .note-content h3 { font-size: 0.88rem; font-weight: 700; margin: 0.2rem 0; }
.note-content ul, .note-content ol { padding-left: 1.2rem; margin: 0 0 0.3rem; }
.note-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 0.2rem 0; }
.note-content a { color: #2c5f2e; }
.note-content blockquote { border-left: 3px solid #ccc; padding-left: 0.5rem; margin: 0.3rem 0; color: #666; }

/* Quill Editor */
.quill-editor {
  background: rgba(255,255,255,0.95);
  border-radius: 0 0 6px 6px;
  min-height: 280px;
}
.ql-toolbar {
  border-radius: 6px 6px 0 0 !important;
  background: rgba(255,255,255,0.95);
  border-color: #d1d5db !important;
}
.ql-container {
  border-color: #d1d5db !important;
  border-radius: 0 0 6px 6px !important;
  font-size: 0.95rem;
  font-family: system-ui, -apple-system, sans-serif;
}
.ql-editor { min-height: 260px; }
.ql-editor img { max-width: 100%; border-radius: 6px; }
.ql-editor:focus { outline: none; }
.ql-container.ql-snow:focus-within {
  border-color: #2c5f2e !important;
  box-shadow: 0 0 0 3px rgba(44,95,46,.15);
}
.note-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.6rem; }
.note-tag {
  font-size: 0.72rem;
  background: rgba(44,95,46,0.12);
  color: #2c5f2e;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  text-decoration: none;
}
.note-tag:hover { background: rgba(44,95,46,0.22); }

/* Tag-Input im Formular */
.tag-input-wrapper {
  background: rgba(255,255,255,0.6);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  cursor: text;
}
.tag-input-wrapper:focus-within { border-color: #2c5f2e; box-shadow: 0 0 0 2px rgba(44,95,46,.2); }
.tag-pills { display: contents; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(44,95,46,0.15);
  color: #2c5f2e;
  font-size: 0.82rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}
.tag-pill-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #2c5f2e;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  margin-left: 0.1rem;
}
#tag-input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.9rem;
  min-width: 140px;
  padding: 0.15rem 0;
  flex: 1;
}
.form-hint { font-size: 0.78rem; color: #888; margin-top: 0.25rem; display: block; }
.tag-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.tag-suggestion {
  background: rgba(44,95,46,0.08);
  color: #2c5f2e;
  border: 1px solid rgba(44,95,46,0.2);
  border-radius: 20px;
  padding: 0.15rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all .12s;
}
.tag-suggestion:hover { background: rgba(44,95,46,0.18); }
.tag-suggestion.tag-suggestion-active {
  background: rgba(44,95,46,0.85);
  color: white;
  border-color: transparent;
}

/* Dateien */
.folders-scroll-wrap {
  position: relative;
  margin-bottom: 1.25rem;
  height: 80px;
}
.folders-scroll-btn {
  position: absolute;
  top: 0;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 14px;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 1;
}
.folders-scroll-btn--left  { left: 0; border-radius: 0 6px 6px 0; }
.folders-scroll-btn--right { right: 0; border-radius: 6px 0 0 6px; }
.folders-scroll-btn:hover { background: rgba(0,0,0,0.65); }

.folders-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.folders-grid::-webkit-scrollbar { display: none; }
.folder-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 10px;
  padding: 0.9rem 0.5rem;
  width: 90px;
  height: 80px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.folder-tile:hover { background: rgba(255,255,255,0.96); }
.folder-tile i,
.folder-tile span { pointer-events: none; }
.folder-tile i { font-size: 2rem; color: #e8a020; }

.folder-icon-wrap { position: relative; display: inline-flex; }
.folder-badge {
  position: absolute;
  bottom: -4px; right: -8px;
  background: #555;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}
.folder-tile-up i { color: #666; }
.folder-tile-new { opacity: 0.75; border-style: dashed; background: none; cursor: pointer; border: 1px dashed rgba(0,0,0,0.2); }
.folder-tile-new i { color: #aaa; font-size: 2rem; }
.folder-tile-new:hover { opacity: 1; background: rgba(255,255,255,0.7); }

.folder-tile-wrap { position: relative; flex-shrink: 0; }

.folder-tile span { font-size: 0.78rem; font-weight: 600; text-align: center; word-break: break-all; }

.files-list { display: flex; flex-direction: column; gap: 0.5rem; }
.file-item {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.file-type-icon { font-size: 1.3rem; color: #555; flex-shrink: 0; }
.file-name { flex: 1; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 0.8rem; color: #888; white-space: nowrap; }

.file-item { cursor: pointer; }
.file-item .todo-edit-btn { position: relative; top: auto; right: auto; transform: none; flex-shrink: 0; }
.drag-handle {
  font-size: 1.1rem;
  color: rgba(0,0,0,0.25);
  cursor: grab;
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
}
.drag-handle:active { cursor: grabbing; }
.file-item[draggable] { cursor: default; }
.file-item.dragging { opacity: 0.4; }
.file-item-ghost { opacity: 0.4; }
.file-item.drag-above { border-top: 2px solid #4a90e2; }
.file-item.drag-below { border-bottom: 2px solid #4a90e2; }
.edit-dialog {
  border: none;
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 300px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}
.edit-dialog::backdrop { background: rgba(0,0,0,0.4); }
.edit-dialog h3 { margin: 0 0 1rem; font-size: 1rem; }
.edit-dialog-actions { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.edit-dialog-actions .btn-secondary { margin-left: auto; }

.folder-translations-details { margin-top: 1rem; }
.folder-translations-details summary { cursor: pointer; font-size: 0.85rem; color: #666; user-select: none; }
.folder-translations-details summary:hover { color: #333; }
.folder-translations-body { margin-top: 0.75rem; }

.folder-tile.drag-over,
.folder-tile-wrap.drag-over .folder-tile {
  background: rgba(232, 160, 32, 0.25);
  border-color: #e8a020;
  outline: 2px dashed #e8a020;
}

/* Ghost im Ordner-Wrap ausblenden */
.folder-tile-wrap .file-item.sortable-ghost {
  display: none;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .file-name { font-size: 0.82rem; }

  .footer-links { bottom: 1rem; right: 1rem; }
  .footer-links a { font-size: 0.65rem; }

  /* Icons mittig, knapp über dem Footer-Link */
  .admin-tools { bottom: 2.5rem; left: 50%; transform: translateX(-50%); padding: 0.4rem 0.6rem; }
  .admin-tools .tool-btn { font-size: 1.6rem; min-width: 48px; }
  .tool-label { font-size: 0.6rem; }

  .site-main { padding: 2rem 1rem 7rem; }

  .booking-card { grid-template-columns: 1fr 1fr; }
  .cal-day { min-height: 3.5rem; }
  .booking-bar { font-size: 0.62rem; padding: 1px 0.2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group--full { grid-column: 1; }
  .detail-dl { grid-template-columns: 6rem 1fr; }
}

@media (max-width: 480px) {
  .admin-tools { gap: 0rem; padding: 0.35rem 0.4rem; }
  .admin-tools .tool-btn { font-size: 1.35rem; min-width: 42px; padding: 0.35rem 0.4rem; }
  .tool-label { font-size: 0.55rem; }
}
