@import url("phosphor.css");

/* ============================================================
   DESIGN SYSTEM — Verarbeitungssoftware
   ============================================================ */

/* ── Variablen ── */
:root {
  --graphite:       #353535ff;
  --stormy-teal:    #3c6e71ff;
  --white:          #ffffffff;
  --alabaster-grey: #d9d9d9ff;
  --yale-blue:      #284b63ff;
}


/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--graphite);
  background: #f4f4f2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 0 2rem;
}

#headline {
  padding: 0 2rem;
}

.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}


/* ============================================================
   HEADER
   ============================================================ */

.header {
  background: var(--yale-blue);
  border-bottom: 3px solid var(--stormy-teal);
  width: 100%;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 32px;
  height: 32px;
  background: var(--stormy-teal);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-logo svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.header-title {
  font-size: 15px;
  font-weight: normal;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.25);
  margin: 0 4px;
}

.header-subtitle {
  font-size: 11px;
  color: rgba(217,217,217,0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-badge {
  font-size: 10px;
  color: var(--stormy-teal);
  background: rgba(60,110,113,0.15);
  border: 1px solid rgba(60,110,113,0.4);
  border-radius: 3px;
  padding: 2px 8px;
  letter-spacing: 0.06em;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
}

.header-avatar {
  width: 26px;
  height: 26px;
  background: var(--stormy-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}

.header-username {
  font-size: 12px;
  color: rgba(217,217,217,0.85);
  letter-spacing: 0.04em;
}

.header-nav {
  background: var(--graphite);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 40px;
  gap: 2px;
}

.nav-item {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(217,217,217,0.65);
  padding: 0 14px;
  height: 40px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-item:hover  { color: var(--white); }
.nav-item.active { color: var(--white); }

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--stormy-teal);
}

.nav-separator {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.1);
  margin: 0 4px;
}

.nav-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: rgba(217,217,217,0.45);
  letter-spacing: 0.06em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5cba8a;
}

.breadcrumb {
  background: var(--alabaster-grey);
  padding: 0 2rem;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(53,53,53,0.12);
}

.breadcrumb-item {
  font-size: 11px;
  color: rgba(53,53,53,0.55);
  letter-spacing: 0.04em;
}

.breadcrumb-sep {
  font-size: 11px;
  color: rgba(53,53,53,0.3);
}

.breadcrumb-item.current {
  color: var(--graphite);
  font-weight: 600;
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--graphite);
  border-top: 3px solid var(--stormy-teal);
  width: 100%;
  margin-top:5px;
}

.footer-status-bar {
  background: var(--yale-blue);
  padding: 0 2rem;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(217,217,217,0.4);
}

.status-item strong {
  color: rgba(217,217,217,0.65);
  font-weight: normal;
}

.status-dot-green {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5cba8a;
  flex-shrink: 0;
}

.status-dot-amber {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8903a;
  flex-shrink: 0;
}

.status-spacer { margin-left: auto; }

.footer-timestamp {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(217,217,217,0.25);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  width: 20px;
  height: 20px;
  background: var(--stormy-teal);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo svg {
  width: 11px;
  height: 11px;
  fill: var(--white);
}

.footer-name {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.footer-sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.12);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.footer-link {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(217,217,217,0.4);
  padding: 0 10px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover { color: rgba(217,217,217,0.85); }

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-session {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(217,217,217,0.35);
}

.footer-session-label { color: rgba(217,217,217,0.25); }
.footer-session-value { color: rgba(60,110,113,0.9); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 28px;
  background: rgba(0,0,0,0.15);
}

.footer-copy {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(217,217,217,0.25);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-meta-item {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(217,217,217,0.25);
}

.footer-meta-item span {
  color: rgba(217,217,217,0.45);
}


/* ============================================================
   DASHBOARD / KACHELMENÜ
   ============================================================ */

.dashboard {
  padding: 2.5rem 2rem;
}

.dashboard-title {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(53,53,53,0.45);
  margin-bottom: 1.5rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 90%;
}

.menu-tile {
  background: var(--white);
  border: 1px solid var(--alabaster-grey);
  border-top: 3px solid var(--yale-blue);
  border-radius: 3px;
  padding: 2rem 1.5rem 1.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: border-top-color 0.15s, background 0.15s;
  cursor: pointer;
}

.menu-tile:hover {
  border-top-color: var(--stormy-teal);
  background: #fafafa;
}

.menu-tile:hover .tile-icon  { background: var(--stormy-teal); }
.menu-tile:hover .tile-arrow { opacity: 1; }

.tile-icon {
  width: 52px!important;
  height: 52px!important;
  background: var(--yale-blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.tile-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-body { flex: 1; width: 100%; }

.tile-title {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: bold;
  color: var(--graphite);
  margin-bottom: 4px;
}

.tile-desc {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(53,53,53,0.5);
  line-height: 1.5;
}

.tile-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--alabaster-grey);
}

.tile-handler {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  color: rgba(53,53,53,0.3);
}

.tile-arrow {
  opacity: 0;
  transition: opacity 0.15s;
}

.tile-arrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--stormy-teal);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ============================================================
   TYPOGRAFIE
   ============================================================ */

h1 {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: normal;
  color: var(--yale-blue);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 1rem;
  border-left: 4px solid var(--stormy-teal);
  padding: 0.5rem 0 0.5rem 14px;
}

.headlineBtn { vertical-align: top;
margin-left: 15px !important; }

h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: normal;
  color: var(--yale-blue);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--alabaster-grey);
}

h3 {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: bold;
  color: var(--graphite);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

h4 {
  font-family: monospace;
  font-size: 13px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stormy-teal);
  margin-bottom: 0.4rem;
}

h5 {
  font-family: monospace;
  font-size: 11px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(53,53,53,0.55);
  margin-bottom: 0.3rem;
}

p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--graphite);
  margin-bottom: 1rem;
}

p:last-child { margin-bottom: 0; }

a {
  color: var(--stormy-teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(60,110,113,0.35);
  transition: border-color 0.15s;
}

a:hover { border-color: var(--stormy-teal); }

strong, b { font-weight: bold; color: var(--graphite); }
em, i     { font-style: italic; }

small {
  font-size: 12px;
  color: rgba(53,53,53,0.55);
  font-family: monospace;
}

code {
  font-family: monospace;
  font-size: 13px;
  background: var(--alabaster-grey);
  color: var(--yale-blue);
  padding: 2px 6px;
  border-radius: 3px;
}

pre {
  font-family: monospace;
  font-size: 13px;
  background: var(--graphite);
  color: var(--alabaster-grey);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  line-height: 1.6;
  margin-bottom: 1rem;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

blockquote {
  border-left: 3px solid var(--stormy-teal);
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 1rem 0;
  color: rgba(53,53,53,0.7);
  font-style: italic;
  font-size: 15px;
}

hr {
  border: none;
  border-top: 1px solid var(--alabaster-grey);
  margin: 1.5rem 0;
}

mark {
  background: rgba(60,110,113,0.18);
  color: var(--graphite);
  padding: 1px 4px;
  border-radius: 2px;
}

ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

ul { list-style: none; }

ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.65;
}

ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--stormy-teal);
}

ol li {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.65;
}

ol li::marker {
  color: var(--stormy-teal);
  font-family: monospace;
  font-size: 13px;
}


/* ============================================================
   FORMULARELEMENTE
   ============================================================ */

label {
  display: block;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(53,53,53,0.6);
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
  display: block;
  width: 100%;
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--graphite);
  background: var(--white);
  border: 1px solid var(--alabaster-grey);
  border-radius: 3px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
  border-color: var(--stormy-teal);
  box-shadow: 0 0 0 3px rgba(60,110,113,0.12);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--alabaster-grey);
  color: rgba(53,53,53,0.45);
  cursor: not-allowed;
}

input::placeholder,
textarea::placeholder {
  color: rgba(53,53,53,0.35);
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233c6e71' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--alabaster-grey);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 0;
}

input[type="radio"] { border-radius: 50%; }

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: var(--stormy-teal);
  border-color: var(--stormy-teal);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(40deg);
}

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.datetime-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 680px;
}

.datetime-wrap .field      { flex: 1; }
.datetime-wrap .field-time { flex: 0 0 140px; }

.datetime-sep {
  font-family: monospace;
  font-size: 18px;
  color: var(--alabaster-grey);
  padding-bottom: 10px;
  flex-shrink: 0;
}

.field-hint {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(53,53,53,0.4);
  margin-top: 5px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-family: Georgia, serif;
  color: var(--graphite);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 1.5rem;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0 1.5rem;
}

.form-grid-5 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 0 1.5rem;
}


.form-grid-6 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 0 1.5rem;
}


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

.costs-table td {
  padding: 8px 12px;
  vertical-align: middle;
  color: var(--graphite);
  border-bottom: 1px solid rgba(217,217,217,0.5);
}

.costs-table td:first-child { width: 65%; font-family: Georgia, serif; }
.costs-table td:last-child  { width: 35%; }

.input-euro { display: flex; align-items: center; gap: 6px; }

.input-euro input {
  width: 100%;
  font-family: monospace;
  font-size: 14px;
  color: var(--graphite);
  background: var(--white);
  border: 1px solid var(--alabaster-grey);
  border-radius: 3px;
  padding: 6px 10px;
  outline: none;
  text-align: right;
  transition: border-color 0.15s, box-shadow 0.15s;
  -moz-appearance: textfield;
}

.input-euro input::-webkit-outer-spin-button,
.input-euro input::-webkit-inner-spin-button { -webkit-appearance: none; }

.input-euro input:focus {
  border-color: var(--stormy-teal);
  box-shadow: 0 0 0 3px rgba(60,110,113,0.12);
}

.euro-sign { font-family: monospace; font-size: 13px; color: rgba(53,53,53,0.45); flex-shrink: 0; }

/* Block-Header */
.costs-table tr.block-header td {
  background: var(--yale-blue);
  color: rgba(255,255,255,0.8);
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-bottom: none;
}

/* Zwischensumme */
.costs-table tr.sub-sum td {
  border-top: 2px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
  background: rgba(53,53,53,0.04);
  padding-top: 9px;
  padding-bottom: 9px;
}

.costs-table tr.sub-sum td:first-child {
  font-family: monospace;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--graphite);
}

.costs-table tr.sub-sum .input-euro input {
  font-weight: bold;
  color: var(--graphite);
  background: rgba(53,53,53,0.04);
  border-color: rgba(53,53,53,0.15);
  pointer-events: none;
}

/* Abstandszeile zwischen Blöcken */
.costs-table tr.block-spacer td {
  padding: 4px;
  border-bottom: none;
  background: transparent;
}

/* Erstattungssumme */
.costs-table tr.total-row td {
  border-top: 2px solid var(--graphite);
  border-bottom: 3px double var(--graphite);
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(40,75,99,0.06);
}

.costs-table tr.total-row td:first-child {
  font-family: monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yale-blue);
}

.costs-table tr.total-row .input-euro input {
  font-weight: bold;
  font-size: 15px;
  color: var(--yale-blue);
  /*background: rgba(40,75,99,0.04);
  border-color: rgba(40,75,99,0.2);
  pointer-events: none;*/
}

.costs-table tr.total-row .euro-sign {
  color: var(--yale-blue);
  font-weight: bold;
  font-size: 14px;
}



/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  line-height: 1;
}

.btn:hover { border-bottom: 1px solid transparent; }

.btn-primary {
  background: var(--yale-blue);
  color: var(--white);
  border-color: var(--yale-blue);
}

.btn-primary:hover {
  background: var(--stormy-teal);
  border-color: var(--stormy-teal);
}

.btn-secondary {
  background: transparent;
  color: var(--yale-blue);
  border-color: var(--yale-blue);
}

.btn-secondary:hover {
  background: var(--yale-blue);
  color: var(--white);
}

.btn-teal {
  background: var(--stormy-teal);
  color: var(--white);
  border-color: var(--stormy-teal);
}

.btn-teal:hover {
  background: var(--yale-blue);
  border-color: var(--yale-blue);
}

.btn-danger {
  background: transparent;
  color: #8b2e2e;
  border-color: #c47a7a;
}

.btn-danger:hover {
  background: #8b2e2e;
  color: var(--white);
  border-color: #8b2e2e;
}

.btn-sm { padding: 5px 12px; font-size: 10px; }
.btn-lg { padding: 12px 28px; font-size: 13px; }

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}


/* ============================================================
   TABELLE
   ============================================================ */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 1rem;
}

thead tr { background: var(--yale-blue); }

thead th {
  font-family: monospace;
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 10px 14px;
  text-align: left;
}

tbody tr {
  border-bottom: 1px solid var(--alabaster-grey);
  transition: background 0.1s;
}

tbody tr:hover { background: rgba(60,110,113,0.05); }
tbody tr:last-child { border-bottom: none; }

td {
  padding: 9px 14px;
  color: var(--graphite);
  line-height: 1.4;
  vertical-align: middle;
}

td.muted {
  color: rgba(53,53,53,0.5);
  font-family: monospace;
  font-size: 12px;
}

tfoot tr { background: var(--alabaster-grey); }

tfoot td {
  font-family: monospace;
  font-size: 12px;
  color: rgba(53,53,53,0.6);
  padding: 7px 14px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}


/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-block;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.badge-success {
  background: rgba(60,110,113,0.12);
  color: #2a5c5e;
  border: 1px solid rgba(60,110,113,0.25);
}

.badge-warning {
  background: rgba(180,130,40,0.12);
  color: #7a5010;
  border: 1px solid rgba(180,130,40,0.3);
}

.badge-danger {
  background: rgba(160,50,50,0.1);
  color: #7a2020;
  border: 1px solid rgba(160,50,50,0.25);
}

.badge-info {
  background: rgba(40,75,99,0.1);
  color: var(--yale-blue);
  border: 1px solid rgba(40,75,99,0.2);
}

.badge-neutral {
  background: rgba(53,53,53,0.08);
  color: rgba(53,53,53,0.6);
  border: 1px solid rgba(53,53,53,0.15);
}


/* ============================================================
   ALERTS / HINWEISBOXEN
   ============================================================ */

.alert {
  padding: 12px 16px;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 1rem;
  border-left: 3px solid;
  font-family: Georgia, serif;
}

.alert-info    { background: rgba(40,75,99,0.07);   color: var(--yale-blue); border-color: var(--yale-blue); }
.alert-success { background: rgba(60,110,113,0.08); color: #2a5c5e;          border-color: var(--stormy-teal); }
.alert-warning { background: rgba(180,130,40,0.08); color: #7a5010;          border-color: #b08228; }
.alert-danger  { background: rgba(160,50,50,0.07);  color: #7a2020;          border-color: #a03030; }


/* ============================================================
   KARTEN / PANELS
   ============================================================ */

.card {
  background: var(--white);
  border: 1px solid var(--alabaster-grey);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-header {
  border-bottom: 1px solid var(--alabaster-grey);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.card-header h2,
.card-header h3 {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.card-footer {
  border-top: 1px solid var(--alabaster-grey);
  padding-top: 0.75rem;
  margin-top: 1rem;
}


/* ============================================================
   HILFSKLASSEN
   ============================================================ */

.text-muted  { color: rgba(53,53,53,0.5); }
.text-teal   { color: var(--stormy-teal); }
.text-blue   { color: var(--yale-blue); }
.text-small  { font-size: 12px; font-family: monospace; }
.text-mono   { font-family: monospace; }
.text-right  { text-align: right; }
.text-center { text-align: center; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-1        { gap: 0.5rem; }
.gap-2        { gap: 1rem; }

.hidden { display: none; }

/* Plus-Button */
.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 3px;
  border: 1px solid var(--yale-blue);
  background: var(--yale-blue);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-add:hover { background: var(--stormy-teal); border-color: var(--stormy-teal); }

.btn-add .btn-icon {
  font-size: 18px;
  line-height: 1;
  font-weight: 300;
}

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

.modal-overlay.open { display: flex; }

/* Modal */
.modal {
  background: var(--white);
  border-top: 3px solid var(--stormy-teal);
  border-radius: 3px;
  width: 100%;
  max-width: 480px;
  margin: 1rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--alabaster-grey);
  background: var(--yale-blue);
}

.modal-title {
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 3px;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
}

.modal-close:hover { background: rgba(255,255,255,0.2); color: white; }

.modal-body { padding: 24px; }

/* Formularzeilen im Modal */

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}


/* Modal Footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--alabaster-grey);
  background: #f9f9f7;
}

.modal-footer-hint {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(53,53,53,0.35);
}

.modal-footer-actions { display: flex; gap: 8px; }

/* Erfolgsmeldung */
.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  gap: 12px;
}

.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(60,110,113,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--stormy-teal);
}

.success-icon svg {
  width: 24px;
  height: 24px;
}

.success-title {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: bold;
  color: var(--graphite);
}

.success-sub {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(53,53,53,0.5);
}

/* Toolbar */
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: rgba(53,53,53,0.35);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.search-input {
  width: 100%;
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--graphite);
  background: var(--white);
  border: 1px solid var(--alabaster-grey);
  border-radius: 3px;
  padding: 7px 12px 7px 32px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
  border-color: var(--stormy-teal);
  box-shadow: 0 0 0 3px rgba(60,110,113,0.12);
}

.search-input::placeholder { color: rgba(53,53,53,0.35); }

.filter-select {
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--graphite);
  background: var(--white);
  border: 1px solid var(--alabaster-grey);
  border-radius: 3px;
  padding: 7px 28px 7px 10px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-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' stroke='%233c6e71' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s;
}

.filter-select:focus { border-color: var(--stormy-teal); outline: none; }

.table-count {
  margin-left: auto;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  color: rgba(53,53,53,0.4);
  white-space: nowrap;
}

/* Sortierbare Spaltenköpfe */
thead th.sortable { cursor: pointer; }

.th-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  transition: background 0.12s;
}

thead th.sortable:hover .th-inner    { background: rgba(255,255,255,0.08); }
thead th.sort-asc  .th-inner,
thead th.sort-desc .th-inner         { background: rgba(255,255,255,0.1); color: white; }

.sort-icon {
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0.3;
  flex-shrink: 0;
}

thead th.sort-asc  .sort-icon,
thead th.sort-desc .sort-icon { opacity: 1; }

.sort-icon span {
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.sort-icon .arr-up   { border-bottom: 4px solid rgba(255,255,255,0.4); }
.sort-icon .arr-down { border-top:    4px solid rgba(255,255,255,0.4); }

thead th.sort-asc  .arr-up   { border-bottom-color: white; }
thead th.sort-desc .arr-down { border-top-color: white; }
thead th.sort-asc  .arr-down { border-top-color: rgba(255,255,255,0.2); }
thead th.sort-desc .arr-up   { border-bottom-color: rgba(255,255,255,0.2); }

/* Versteckte Zeilen */
tbody tr.hidden { display: none; }

/* Keine Ergebnisse */
.no-results {
  display: none;
  padding: 24px;
  text-align: center;
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(53,53,53,0.4);
  border-bottom: 1px solid var(--alabaster-grey);
  background: var(--white);
}

/* Suchtreffer-Highlight */
mark {
  background: rgba(60,110,113,0.18);
  color: var(--graphite);
  padding: 0 2px;
  border-radius: 2px;
}

/* =========================================
  SUCHBARE TREFFER 
 ========================================= */


.searchable-select {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.ss-input-wrap {
  position: relative;
}

.ss-input {
  width: 100%;
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--graphite);
  background: var(--white);
  border: 1px solid var(--alabaster-grey);
  border-radius: 3px;
  padding: 8px 36px 8px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.ss-input:focus {
  border-color: var(--stormy-teal);
  box-shadow: 0 0 0 3px rgba(60,110,113,0.12);
}

.ss-input::placeholder { color: rgba(53,53,53,0.35); }

.ss-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.15s;
}

.ss-arrow svg {
  width: 12px; height: 12px;
  stroke: var(--stormy-teal); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  display: block;
}

.searchable-select.open .ss-arrow { transform: translateY(-50%) rotate(180deg); }

/* Dropdown */
.ss-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--stormy-teal);
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(53,53,53,0.12);
  z-index: 200;
  max-height: 240px;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.searchable-select.open .ss-dropdown { display: flex; }

.ss-search-wrap {
  padding: 8px;
  border-bottom: 1px solid var(--alabaster-grey);
  flex-shrink: 0;
}

.ss-search {
  width: 100%;
  font-family: monospace;
  font-size: 12px;
  color: var(--graphite);
  background: #f7f7f5;
  border: 1px solid var(--alabaster-grey);
  border-radius: 3px;
  padding: 6px 10px;
  outline: none;
  transition: border-color 0.15s;
}

.ss-search:focus { border-color: var(--stormy-teal); }
.ss-search::placeholder { color: rgba(53,53,53,0.35); }

.ss-list {
  overflow-y: auto;
  flex: 1;
}

.ss-option {
  padding: 8px 12px;
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--graphite);
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid rgba(217,217,217,0.4);
}

.ss-option:last-child { border-bottom: none; }
.ss-option:hover { background: rgba(60,110,113,0.07); }
.ss-option.selected { background: rgba(40,75,99,0.08); color: var(--yale-blue); font-weight: bold; }
.ss-option.placeholder { color: rgba(53,53,53,0.4); font-style: italic; }

.ss-option mark {
  background: rgba(60,110,113,0.18);
  color: var(--graphite);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: normal;
}

.ss-empty {
  padding: 12px;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(53,53,53,0.35);
  text-align: center;
  display: none;
}

/* Verstecktes natives Select für Formular-Submit */
.ss-hidden { display: none; }


/* =========================================
    KALENDER 
   ========================================= */
   
  .agenda { max-width: 720px; }
  
  /* ── Tages-Gruppe ── */
  .agenda-day { margin-bottom: 1.75rem; }
  
  .agenda-day-header {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-bottom: 10px;
  }
  
  .day-badge {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   width: 48px;
   height: 52px;
   background: var(--yale-blue);
   border-radius: 4px;
   flex-shrink: 0;
  }
  
  .day-badge.today { background: var(--stormy-teal); }
  
  .day-num {
   font-family: monospace;
   font-size: 22px;
   font-weight: bold;
   color: var(--white);
   line-height: 1;
  }
  
  .day-mon {
   font-family: monospace;
   font-size: 9px;
   letter-spacing: 0.1em;
   text-transform: uppercase;
   color: rgba(255,255,255,0.65);
   margin-top: 2px;
  }
  
  .day-label {
   display: flex;
   flex-direction: column;
   gap: 2px;
  }
  
  .day-name {
   font-family: Georgia, serif;
   font-size: 15px;
   font-weight: bold;
   color: var(--graphite);
  }
  
  .day-name.today { color: var(--stormy-teal); }
  
  .day-rel {
   font-family: monospace;
   font-size: 10px;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   color: rgba(53,53,53,0.4);
  }
  
  .day-rel.today { color: var(--stormy-teal); }
  
  /* ── Terminliste ── */
  .event-list {
   margin-left: 60px;
   display: flex;
   flex-direction: column;
   gap: 8px;
  }
  
  .event-card {
   background: var(--white);
   border: 1px solid var(--alabaster-grey);
   border-left: 3px solid var(--yale-blue);
   border-radius: 0 3px 3px 0;
   padding: 12px 16px;
   display: flex;
   align-items: flex-start;
   gap: 14px;
   transition: border-left-color 0.15s;
  }
  
  .event-card:hover { border-left-color: var(--stormy-teal); }
  .event-card.today { border-left-color: var(--stormy-teal); }
  
  .event-time {
   font-family: monospace;
   font-size: 13px;
   color: var(--stormy-teal);
   white-space: nowrap;
   min-width: 42px;
   padding-top: 2px;
  }
  
  .event-body { flex: 1; }
  
  .event-title {
   font-family: Georgia, serif;
   font-size: 15px;
   font-weight: bold;
   color: var(--graphite);
   margin-bottom: 3px;
  }
  
  .event-meta {
   display: flex;
   align-items: center;
   gap: 10px;
   flex-wrap: wrap;
  }
  
  .event-loc {
   font-family: monospace;
   font-size: 11px;
   letter-spacing: 0.04em;
   color: rgba(53,53,53,0.5);
   display: flex;
   align-items: center;
   gap: 4px;
  }
  
  .event-loc svg {
   width: 11px; height: 11px;
   stroke: currentColor; fill: none;
   stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
   flex-shrink: 0;
  }
  
  .badge {
   display: inline-block;
   font-family: monospace;
   font-size: 10px;
   letter-spacing: 0.06em;
   text-transform: uppercase;
   padding: 1px 7px;
   border-radius: 3px;
  }
  
  .badge-info    { background: rgba(40,75,99,0.1);   color: var(--yale-blue); border: 1px solid rgba(40,75,99,0.2); }
  .badge-success { background: rgba(60,110,113,0.12); color: #2a5c5e;          border: 1px solid rgba(60,110,113,0.25); }
  .badge-warning { background: rgba(180,130,40,0.12); color: #7a5010;          border: 1px solid rgba(180,130,40,0.3); }
  
  .event-actions { flex-shrink: 0; padding-top: 2px; }
  
  .btn-sm {
   font-family: monospace;
   font-size: 10px;
   letter-spacing: 0.07em;
   text-transform: uppercase;
   padding: 5px 12px;
   border-radius: 3px;
   border: 1px solid var(--alabaster-grey);
   background: transparent;
   color: rgba(53,53,53,0.5);
   cursor: pointer;
   text-decoration: none;
   display: inline-block;
   transition: border-color 0.15s, color 0.15s;
  }
  
  .btn-sm:hover { border-color: var(--yale-blue); color: var(--yale-blue); }
  
  /* ── Leer-Zustand ── */
  .agenda-empty {
   padding: 2rem;
   text-align: center;
   font-family: monospace;
   font-size: 12px;
   letter-spacing: 0.08em;
   color: rgba(53,53,53,0.35);
   background: var(--white);
   border: 1px solid var(--alabaster-grey);
   border-radius: 3px;
  }
  
  /* ── Trennlinie zwischen Tagen ── */
  .agenda-day + .agenda-day .agenda-day-header::before {
   display: none;
  }
  
  /* ── Responsive ── */
  @media (max-width: 680px) {
    
    .menu-grid {
      grid-template-columns: repeat(1, 1fr);
    }
  
    .footer-main {
      flex-direction: column;
      align-items: flex-start;
      height: auto;
      padding: 14px 1rem;
      gap: 12px;
    }
  
    .footer-left {
      flex-wrap: wrap;
      gap: 8px;
    }
  
    .footer-right {
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      width: 100%;
    }
  
    .footer-session {
      flex-direction: row;
      gap: 8px;
    }
  
    /* Session-ID kürzen — die ist auf Mobile eh nicht lesbar */
    .footer-session-value {
      max-width: 200px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  
    .footer-sep { display: none; }
  
    .footer-bottom {
      flex-direction: column;
      height: auto;
      padding: 10px 1rem;
      gap: 4px;
    }
  
    .footer-meta { margin-top: 2px; }
  
    /* Statusleiste scrollbar statt überlaufend */
    .footer-status-bar {
      overflow-x: auto;
      gap: 14px;
      padding: 0 1rem;
    }
  
    .status-spacer { display: none; }
  
    .footer-timestamp { display: none; }
  }