/* Basis */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
}

header, footer {
    background-color: #2c3e50;
    color: white;
    padding: 1em;
}

header h1 {
    margin: 0;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    margin-right: 1.2em;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 900px;
    margin: 1.5em auto;
    background: white;
    padding: 1.5em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
}

h2, h3 {
    color: #34495e;
}

form label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5em;
}

textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1em;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
}

button {
    background-color: #2980b9;
    border: none;
    color: white;
    padding: 0.7em 1.2em;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background-color: #3498db;
}

button:focus {
    outline: none;
    box-shadow: 0 0 3pt 2pt #3498db;
}

div.post {
    border: 1px solid #ddd;
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 6px;
    background-color: #fcfcfc;
}

div.post p.meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 0.5em;
}

form.inline-form {
    display: inline;
}

form.inline-form button {
    padding: 0.3em 0.6em;
    font-size: 0.85em;
}

a {
    color: #2980b9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.blackboard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.card {
    color: white;
    width: 280px;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card-header {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.post-type {
    font-size: 0.9em;
    font-weight: normal;
    opacity: 0.7;
    margin-left: 8px;
}

.card-content {
    flex-grow: 1;
    white-space: pre-wrap;
    font-size: 1em;
}

.card-footer {
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 12px;
}

.card-actions {
    margin-top: 10px;
    font-size: 0.9em;
}

.inline-form {
    display: inline;
}

.inline-form button {
    background: transparent;
    border: none;
    color: #eee;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: 0.9em;
}

.inline-form button:hover {
    color: #fff;
}


table.calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

table.calendar th {
    background-color: #2c3e50;
    color: white;
    padding: 8px 0;
}

table.calendar td {
    width: 14.28%;
    height: 100px;
    vertical-align: top;
    border: 1px solid #ddd;
    padding: 5px;
    background-color: #fefefe;
    position: relative;
}

table.calendar td.empty {
    background-color: #f5f5f5;
    border: none;
}

table.calendar .date {
    font-weight: bold;
    margin-bottom: 6px;
}

table.calendar .event {
    background-color: #2980b9;
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: 0.85em;
    cursor: pointer;
}

table.calendar .event a {
    color: white;
    text-decoration: none;
}

table.calendar .event a:hover {
    text-decoration: underline;
}


table.calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

table.calendar th {
    background-color: #222;   /* Dunkler Header, passend zu Pinnwand */
    color: white;
    padding: 8px 0;
    font-weight: 600;
}

table.calendar td {
    width: 14.28%;
    vertical-align: top;
    border: 1px solid #444;
    padding: 8px;
    background-color: #111;   /* dunkles Hintergrund */
    color: #eee;
    position: relative;
    height: 120px;
    box-sizing: border-box;
}

table.calendar td.empty {
    background-color: #747474;
    border: none;
}

table.calendar .date {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
}

table.calendar .event {
    background-color: #444;
    color: #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 6px;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

table.calendar .event:hover {
    background-color: #666;
    color: white;
}

table.calendar .event a {
    color: inherit;
    text-decoration: none;
}

.calendar-day {
    border: 1px solid #ccc;
    vertical-align: top;
    padding: 5px;
    min-height: 100px;
    background-color: #f9f9f9;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.calendar-event {
    background-color: #eef;
    border-left: 4px solid #339;
    margin-bottom: 5px;
    padding: 3px;
    border-radius: 4px;
}

.calendar-comment {
    font-size: 0.85em;
    color: #333;
    margin-top: 2px;
    background: #fff;
    padding: 2px;
    border-left: 2px solid #aaa;
}


@media (max-width: 600px) {
    main {
        margin: 1em;
        padding: 1em;
    }

    nav a {
        display: block;
        margin: 0.3em 0;
    }
}
