/* ============================================================
   1) RESET & BASE STYLES
   ============================================================ */
:root {
  --bg: #f5f5f5;
  --fg: #1a1a1a;
  --card-bg: #f5f5f5;
  --border: #d0d0d0;
  --icon-color: #333;
  --titlebar-button-fg: #000;
  --toolbar-height: 42px;
  text-decoration: none;
}

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

html,
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f8fafc;
  color: #1e293b;
  height: 100%;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

input,
button,
select,
textarea {
  font-family: inherit;
}


/* ============================================================
   2) LAYOUT (Header, Footer, Container, Grid)
   ============================================================ */

.start-logo {
  width: 240px;
  height: auto;
  background-image: url('/Images/MSC_Logo_trans.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  background: #1e293b;
  color: white;
  padding: 15px 20px;
}

.footer {
  background: #e2e8f0;
  padding: 15px 20px;
  text-align: center;
  font-size: 14px;
  color: #475569;
}

/* -------------------------------------------------- */
/* LAYOUT: Modern Sidebar + Header Layout             */
/* -------------------------------------------------- */

.layout-body {
  background: #f1f5f9;
}

.layout-wrapper {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: #1e293b;
  color: white;
  padding: 20px 0;
  transition: width 0.25s;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 30px;
}

.sidebar-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.nav-item {
  padding: 12px 20px;
  color: #cbd5e1;
  font-size: 16px;
  transition: background 0.2s, padding-left 0.2s;
}

.nav-item:hover {
  background: #334155;
  padding-left: 28px;
}

/* COLLAPSED SIDEBAR */
.sidebar-collapsed .sidebar {
  width: 70px;
}

.sidebar-collapsed .nav-item {
  text-align: center;
  padding-left: 0;
}

/* MAIN AREA */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.header {
  background: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* CONTENT */
.content {
  padding: 30px;
}

/* FOOTER */
.footer {
  background: #e2e8f0;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  color: #475569;
}



/* ============================================================
   3) COMPONENTS (Buttons, Inputs, Cards, Alerts, Modals)
   ============================================================ */

/* Buttons */
.btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn:active {
  transform: scale(0.97);
}

/* Inputs */
.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.input:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Cards */
.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-left: auto;
  max-width: 100%;
  /* oder was du willst */
  margin: 0 auto;
  width: 100%;
}

/* Alerts */
.alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 600;
}

.alert-error {
  background: #fee2e2;
  color: #b91c1c;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
}


/* ============================================================
   4) PAGES (Login, Privacy, Dashboard, etc.)
   ============================================================ */

/* ----------------------------- */
/* DASHBOARD                     */
/* ----------------------------- */

/* Dashboard */
.dashboard-container {
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  max-width: 100% !important;
  width: 100%;
}

.dashboard-grid {
  display: flex !important;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

.dash-tile {
  display: block;
  padding: 20px;
  background: rgba(102, 177, 250, 0.70);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  text-align: center;
  font-size: 18px;
  color: #333;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
  flex: 0 1 600px;
  min-height: 200px;
  max-width: 800px;
}

.dash-tile:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
}

/* Profile / Settings / Files / Messages (vereinheitlicht) */

.card {
  background: rgba(102, 177, 250, 0.70);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  min-width: 600px;
}

/* ----------------------------- */
/* MAILVERSAND                   */
/* ----------------------------- */

.mail-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  padding: 20px;
}

.contact-toolbar {
  height: var(--toolbar-height);
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  position: sticky;
  top: 0;
  z-index: 20;
  /* Sichtbarkeit über der Tabelle */
  background: #f5f5f5;
  /* oder dein Farbton */
  padding: 0;
  /* wichtig */
  /* Win11-Style Schatten */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.contact-list {
  max-height: 700px;
  /*max-height: calc(100vh - 40px);*/
  overflow-y: auto;
}

.contact-list table thead th {
  position: sticky;
  top: var(--toolbar-height);
  background: #f5f5f5;
  z-index: 15;
}

.contact-list table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.contact-list th,
.contact-list td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.contact-row:hover {
  background: #f0f0f0;
  cursor: pointer;
}

.mail-editor label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.mail-editor input[type=text],
.mail-editor textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.mail-editor textarea {
  resize: vertical;
}

.send-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 6px;
}

.tb-btn {
  position: relative;
  font-family: "Segoe Fluent Icons";
  font-size: 20px;
  padding: 6px 12px;
  border: none;
  background: #e5e5e5;
  border-radius: 6px;
  cursor: pointer;
}

.tb-btn:hover {
  background: #d0d0d0;
}

/* Tooltip */
.tb-btn::after {
  font-family: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  content: attr(data-tip);
  position: absolute;
  bottom: -42px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0078d4;
  /* background: rgba(32, 32, 32, 0.92);*/
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  /* Win11‑like smoothness */
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.tb-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tb-separator {
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.18);
  margin: 0 10px;
  align-self: center;
  border-radius: 1px;
}

.tb-group {
  display: flex;
  gap: 8px;
}

.file-popup {
  position: absolute;
  top: 60px;
  left: 20px;
  width: 260px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 10px 0;
  z-index: 200;
  animation: fadeIn 0.15s ease-out;
}

.hidden {
  display: none;
}

.file-popup-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
}

.popup-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.file-popup-list {
  max-height: 300px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.file-item:hover {
  background: #e5e5e5;
}

.file-icon {
  font-family: "Segoe Fluent Icons";
  font-size: 18px;
}

/* ----------------------------- */
/* LOGIN PAGE                    */
/* ----------------------------- */

body.login-page {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
}

.login-box {
  background: white;
  padding: 40px;
  width: 400px;
  max-width: 1000px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.4s ease-out;
}

.login-box:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.25s ease;
}

.login-box h2 {
  margin-bottom: 25px;
  text-align: center;
  color: #1e293b;
}

/* Wrapper für Login- und Register-Seiten */
.login-wrapper {
  display: flex;
  flex-direction: column;
  /* WICHTIG */
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-logo {
  width: 120px;
  height: 120px;
  background-image: url('/Images/MSC_Logo_trans.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  font-weight: 600;
  color: #334155;
}

.login-button {
  width: 100%;
  padding: 12px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.login-button:hover {
  background: #2563eb;
}

.error-message {
  background: #fee2e2;
  color: #b91c1c;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
}


/* ============================================================
   5) ANIMATIONS
   ============================================================ */

/* Razor-safe keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================================
   6) DARK MODE (optional)
   ============================================================ */

:root.dark {
  --bg: #0f172a;
  --fg: #e2e8f0;
}

:root.dark body {
  background: var(--bg);
  color: var(--fg);
}

/* ============================================================
   6) TITELZEILE
   ============================================================ */

.nav-user {
  margin-right: 12px;
  font-weight: 600;
  color: var(--fg);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.nav-btn {
  padding: 8px 14px;
  margin-right: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  transition: background 0.2s, color 0.2s;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Popups */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-window {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.popup-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

/* Tabellen (modern-grid) */

.modern-grid {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 15px;
}

.modern-grid th {
  background: var(--accent-bg, #f3f3f3);
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
}

.modern-grid td {
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
}

.modern-grid tr:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* --- Pagination (Win11-Style) --- */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.pagination a {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: 0.2s;
}

.pagination a:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Aktive Seite */
.pagination a.active {
  background: #0078d4;
  color: white;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.content-card {
  background: rgba(102, 177, 250, 0.70);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 800px;
  max-width: 1000px;
  min-height: 500px;
  max-height: 800px;
  margin-bottom: 20px;
}

/* ============================================================
   FORM ELEMENTS (ergänzt für Mailversand-Seite)
   ============================================================ */

/* Labels */
.form-label {
  font-weight: 600;
  color: #334155;
  display: block;
  margin-bottom: 6px;
}

/* Einzeilige Textareas (Betreff, Empfänger) */
.form-line {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  resize: none;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-line:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Mehrzeilige Textareas (Bemerkung) */
.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  background: white;
  resize: vertical;
  min-height: 200px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Buttons unter dem Formular */
.content-card button {
  margin-right: 10px;
  margin-top: 10px;
}

.start-tile {
  display: block;
  margin-left: auto;
  margin-right: auto;
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
  padding: 20px;
  background: rgba(102, 177, 250, 0.70);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  text-align: center;
  font-size: 18px;
  color: #333;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
  flex: 0 1 800px;
  min-height: 600px;
  max-width: 800px;
}

/* Zentrierte Hilfstexte / Links unter Buttons */
.text-center {
  text-align: center;
}

/* Login-/Register-Link unter dem Formular */
.login-register-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.login-register-link:hover {
  text-decoration: underline;
}

/* Form-Gruppen auf der Login/Registrieren-Seite */
.form-group {
  margin-bottom: 18px;
}

/* Eingabefelder im Formular (Login + Register) */
.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Labels im Formular */
.form-label {
  font-weight: 600;
  color: #334155;
  display: block;
  margin-bottom: 6px;
}

/* Fade‑In Animation */
@keyframes fadeInSoft {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-box {
  animation: fadeInSoft 0.45s ease-out;
}

/* Overlay */
.msgbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Box */
.msgbox {
  background: var(--win11-layer-bg, #ffffff);
  padding: 20px;
  border-radius: 12px;
  width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: msgbox-fadein 0.2s ease-out;
}

/* Titel */
.msgbox h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Text */
.msgbox p {
  margin-bottom: 20px;
  white-space: pre-line;
}

/* OK-Button */
.msgbox button {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  background: #0067c0;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease-in-out;
}

.msgbox button:hover {
  background: #0053a0;
}

/* Animation */
@keyframes msgbox-fadein {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Profilseite Container --- */
.profile-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

/* --- Überschriften --- */
.profile-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.profile-subtitle {
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: 20px;
}

/* --- Datenzeilen --- */
.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-label {
  font-weight: 600;
  color: #333;
}

.profile-value {
  opacity: 0.85;
  font-weight: 500;
}

/* --- Formularbereich --- */
.profile-form {
  margin-top: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.form-control {
  width: 100%;
  padding: 6px 10px;
  /* reduziert die Höhe */
  line-height: 1.2;
  /* verhindert unnötige Vertikalhöhe */
  height: auto;
  /* Browser soll die Höhe nicht erzwingen */
  min-height: 32px;
  /* angenehme Standardhöhe */
  border-radius: 6px;
  border: 1px solid #ccc;
  background: rgba(255, 255, 255, 0.8);
  transition: border 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.25);
  outline: none;
}

/* --- Button --- */
.btn-primary {
  background: #0078d4;
  color: white;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: #006cbe;
}

.btn-primary:active {
  transform: scale(0.97);
}

/* --- Meldung --- */
.profile-message {
  margin-top: 20px;
  padding: 12px 16px;
  background: #0078d4;
  color: white;
  border-radius: 8px;
  font-weight: 500;
}

.profile-card {
  max-width: 600px;
  margin: 0 auto;
  max-width: 620px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.table-scroll {
  max-height: 70vh;
  /* Höhe der Tabelle */
  overflow-y: auto;
  /* nur Tabelle scrollt */
  overflow-x: auto;
  /* horizontales Scrollen falls nötig */
  border-radius: 8px;
  background: white;
  /* optional */
  padding: 0;
}

/* Optional: Header fixieren */
.table-scroll thead th {
  position: sticky;
  top: 0;
  background: #f5f5f5;
  z-index: 2;
}

/* Tabelle mit Rahmen + Gitterlinien */
.upload-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  /* Fixe Spaltenbreiten */
  background: #fff;
  border: 1px solid #ccc;
}

.upload-table th,
.upload-table td {
  border: 1px solid #ccc;
  /* Gitterlinien */
  padding: 8px 10px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Kopfzeile */
.upload-table th {
  background: #f5f5f5;
  font-weight: bold;
}

/* Spaltenbreiten */
.upload-col-name {
  width: 45%;
}

.upload-col-size {
  width: 15%;
}

.upload-col-date {
  width: 20%;
}

.upload-col-actions {
  width: 20%;
}

/* Buttons schöner machen */
.btn-small {
  padding: 4px 10px;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
}

.btn-download {
  background: #4caf50;
  color: white;
  border: none;
}

.btn-delete {
  background: #e53935;
  color: white;
  border: none;
}

.btn-info {
  background: #2196f3;
  /* Win11 Blau */
  color: white;
  border: none;
  padding: 4px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  /* Win11 Rundung */
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.btn-info:hover {
  background: #1e88e5;
  /* etwas dunkler */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
  /* leichter Lift */
}

.btn-info:active {
  background: #1976d2;
  /* gedrückt */
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-info:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.35);
  /* Win11 Fokusring */
}

.mail-editor {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 15px;
  line-height: 1.4;
  color: #222;
}

/* Mini-Tabelle in der Dash-Tile */
.event-scroll {
  max-height: 120px;
  min-height: 110px;
  /* ca. 2 Zeilen */
  overflow-y: auto;
  margin: 10px 0;
}

.event-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  /* leicht kleiner als Titel */
}

.event-mini-table td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.event-name {
  text-align: left;
}

.event-count {
  text-align: right;
  font-weight: bold;
}

/* Buttons unten in der Kachel */
.tile-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.btn-tile {
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: 0.2s;
}

.btn-tile:hover {
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}