/* Gesamtes Seiten-Layout */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 20px;
    color: #333;
}

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

h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.erklärung {
    font-size: 1em;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Fehlermeldung / Statusnachricht */
.message {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1em;
    color: #e74c3c;
    min-height: 1.2em;
}

/* Eingabefeld und Button inline */
.input-container {
  display: flex;
  justify-content: center;   /* zentriert horizontal */
  align-items: center;       /* vertikal bündig */
  gap: 8px;
  margin: 12px 0;
}

input#pseudonymInput {
    padding: 12px 15px;
    font-size: 1em;
    width: 320px;
    max-width: 90%;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input#pseudonymInput:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
    outline: none;
}

button#submitBtn {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button#submitBtn:disabled {
    background-color: #a0cfee;
    cursor: not-allowed;
}

button#submitBtn:not(:disabled):hover {
    background-color: #2980b9;
}

/* Containere für die Schul-Karten */
.spalten-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Einzelne Karten */
.spalte {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    width: 280px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}

.spalte:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.spalte.disabled {
    opacity: 0.6;
    cursor: not-allowed;
	pointer-events: none;
}

.spalte.selected {
    border: 2px solid #2563eb;
	background: #dbeafe; 
}

.spalte h2 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 8px;
    color: #34495e;
}

.spalte p {
    margin: 4px 0;
    color: #666;
    font-size: 0.95em;
}

/* Status (z.B. Voll Hinweis oder freie Plätze) */
.status {
    margin-top: 10px;
    font-size: 0.95em;
    color: #2c3e50;
	font-weight: bold;
}
.status.ok { color: #065f46; }
.status.full { color: #b91c1c; }

/* Liste der zugeordneten Pseudonyme */
.assigned-list {
    margin-top: 10px;
}

.assigned-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 0;
    margin: 0;
}

.assigned-list li {
    background-color: #e1ecf7;
    color: #2c3e50;
    font-size: 0.9em;
    padding: 6px 10px;
    border-radius: 12px;
    list-style: none;
    transition: background-color 0.2s;
}

.assigned-list li:hover {
    background-color: #d0e6fb;
}

/* ==== Phase-Hinweis (prominent) ==== */
.phase-hinweis {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  line-height: 1.35;
  justify-content: center;
  text-align: center;
}
.phase-hinweis::before {
  content: "ℹ️";
  font-size: 1.1em;
}

/* Varianten je nach Phase */
.phase--pre {
  background: #FEF3C7;      /* amber-100 */
  border-color: #F59E0B;    /* amber-500 */
  color: #92400E;           /* amber-800 */
}
.phase--pre::before { content: "⚠️"; }

.phase--pre-locked {
  background: #FEE2E2;      /* red-100 */
  border-color: #FCA5A5;    /* red-300 */
  color: #991B1B;           /* red-800 */
}
.phase--pre-locked::before { content: "⛔"; }

.phase--main {
  background: #DCFCE7;      /* green-100 */
  border-color: #86EFAC;    /* green-300 */
  color: #065F46;           /* green-800 */
}
.phase--main::before { content: "✅"; }


.autocomplete { 
	position: relative; 
	flex: 0 0 auto; 
}
/*.suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  max-height: 240px; overflow: auto;
}*/

/* Vorschlagsliste sichtbar über den Kacheln */
.suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  max-height: 240px;
  overflow: auto;

  z-index: 10000;            /* WICHTIG: über den Kacheln schweben */
}

.suggestions[hidden] { display: none; }

.suggestions li {
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 8px;
}
.suggestions li:hover,
.suggestions li:focus {
  background: #f3f4f6;
  outline: none;
}


#person_name {
  width: 280px;
  height: 42px;             
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

/* Button auf gleiche Höhe bringen */
#submitBtn {
  height: 48px;
  padding: 0 16px;          
  line-height: 1;
}  
