/* Schlichtes Platzhalter-Layout, siehe docs/DECISIONS.md ("M3: Vorläufiges
   eigenes Layout statt knowledgebase.dev-Template"). Wird ersetzt, sobald
   das echte Template vorliegt. */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    color: #222;
    background: #faf8f4;
}

a {
    color: #7a2e2e;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: #2c2321;
    color: #f4ecdf;
}

.site-header a {
    color: #f4ecdf;
    text-decoration: none;
}

.site-title {
    font-weight: bold;
    font-size: 1.2rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex: 1;
}

.identity-switcher,
.logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

main {
    padding: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.card-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.card-list li {
    padding: 0.75rem;
    border: 1px solid #ddd2bf;
    border-radius: 6px;
    background: #fff;
}

.section {
    margin: 1.5rem 0;
    padding-left: 0.75rem;
    border-left: 3px solid #ddd2bf;
}

.section.visibility-meister {
    border-left-color: #7a2e2e;
    background: #fbeeee;
}

.visibility-mark {
    font-family: monospace;
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 0.1em;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.4rem;
}

mark {
    background: #f4dfa0;
    padding: 0 0.1em;
}

.preview-banner {
    background: #efe6d1;
    color: #5a4a2a;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.card-list .short-text {
    color: #555;
    margin: 0.25rem 0 0;
}

.steckbrief {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.25rem 1rem;
    margin: 1rem 0;
}

.steckbrief dt {
    font-weight: bold;
}

.entity-block {
    margin: 1.5rem 0;
}

.entity-block h2 {
    font-size: 1.1rem;
    border-bottom: 1px solid #ddd2bf;
}

.attendance-absent {
    color: #999;
}

table.plain {
    border-collapse: collapse;
    width: 100%;
}

table.plain th,
table.plain td {
    border-bottom: 1px solid #ddd2bf;
    padding: 0.4rem 0.6rem;
    text-align: left;
    vertical-align: top;
}

.login-form {
    max-width: 320px;
    margin: 3rem auto;
    display: grid;
    gap: 0.75rem;
}

.error {
    color: #7a2e2e;
}

/* Ortskarte mit Markern der Kind-Orte, siehe docs/PLAN.md Abschnitt 9:
   "Kein Kartendienst, keine Kacheln" – nur ein Bild mit absolut
   positionierten Links darüber. */
.ortskarte {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.ortskarte img {
    display: block;
    max-width: 100%;
    height: auto;
}

.ortskarte-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    background: #2f2a20;
    color: #f5efe3;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
    text-decoration: none;
}

.ortskarte-marker:hover {
    background: #55483a;
}

.zeitleiste-eintrag {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 0 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #ddd2bf;
}

.zeitleiste-datum {
    color: #7a6f5c;
    white-space: nowrap;
}

.zeitleiste-session {
    font-weight: bold;
}
