/* =========================
   RESET & BASIS
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f2f4f8;
    color: #333;
}

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

#header {
    background-color: #1f2937;
    color: white;
    padding: 20px 30px;
}

.page-title {
    margin: 0;
    font-size: 26px;
}

/* =========================
   MAIN
========================= */

#main-content {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

/* =========================
   SECTION-KARTEN
========================= */

.section {
    background-color: #ffffff;
    padding: 22px 26px;
    margin-bottom: 28px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.section-title {
    margin: 0 0 18px 0;
    font-size: 22px;
    color: #1f2937;
}

/* =========================
   WILLKOMMEN
========================= */

#welcome-section {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.welcome-text {
    font-size: 18px;
    margin: 0;
}

/* =========================
   KURSINFOS
========================= */

#course-section p {
    margin: 6px 0;
}

/* =========================
   FEEDBACK – BOXEN
========================= */

.feedback-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 18px;
}

/* Datum */
.feedback-date {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 6px;
}

/* Titel */
.feedback-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #111827;
}

/* Text */
.feedback-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

/* =========================
   BUTTONS & LINKS
========================= */

#feedback-button {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

#feedback-button:hover {
    background: #1e40af;
}

#back-to-dashboard {
    display: inline-block;
    margin-bottom: 22px;
    color: #7c3aed;
    font-weight: 500;
    text-decoration: none;
}

#back-to-dashboard:hover {
    text-decoration: underline;
}

/* =========================
   TEILNEHMERLISTE (FIX)
========================= */

#participants-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#participants-list li {
    padding: 12px 4px;
    font-size: 1rem;
    color: #374151;
}

/* NUR eine Linie zwischen echten Einträgen */
#participants-list li + li {
    border-top: 1px solid #e5e7eb;
}

/* =========================
   HINWEISTEXTE
========================= */

#no-feedback-text,
#no-feedbacks-text {
    color: #6b7280;
    font-style: italic;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {
    .page-title {
        font-size: 22px;
    }

    .section {
        padding: 18px;
    }

    #feedback-button {
        width: 100%;
        text-align: center;
    }
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 30px;

    background-color: #1f2937;
    color: white;
}

/* Linke Seite */

.project-name {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

/* Rechte Seite */

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.header-username {
    font-size: 14px;
}

.logout-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Abstand für Content */

#main-content {
    margin-top: 30px;
}

/* =========================
   FORMULAR STYLING - FEEDBACK ADMIN
========================= */

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f2937;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    font-family: inherit;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-button:hover {
    background: #1e40af;
}


/* FORMATING - PROFILE SEITE */

body {
    background-color: #e5e7eb;
}

h2 {
    max-width: 900px;
    margin: 40px auto 20px auto;
    padding: 0 30px;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

form {
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 30px 40px;
    background-color: #f3f4f6;
    border-radius: 16px;
}

form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

form input,
form textarea {
    width: 260px;
    padding: 8px 10px;
    margin-bottom: 22px;
    border-radius: 6px;
    border: 1px solid #9ca3af;
    font-size: 14px;
    font-family: inherit;
    background-color: #ffffff;
}

form textarea {
    width: 300px;
    height: 90px;
    resize: vertical;
}

form button {
    padding: 6px 14px;
    border-radius: 6px;
    background-color: #e5e7eb;
    border: 1px solid #9ca3af;
    font-size: 14px;
    cursor: pointer;
}

form button:hover {
    background-color: #d1d5db;
}

/* Feedback-Liste Bereich */

.section:last-of-type {
    background-color: #f3f4f6;
    border-radius: 16px;
    padding: 30px 40px;
}

/* Einzelne Feedback-Box */

.feedback-box {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 22px;
}

.feedback-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
}

.feedback-date {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.feedback-text {
    font-size: 15px;
    color: #374151;
}


/* =========================
   TABELLE – IM DESIGN SYSTEM
========================= */

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin-top: 10px;
}

th {
    background-color: #f3f4f6;
    color: #1f2937;
    text-align: left;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

td {
    padding: 14px 18px;
    font-size: 14px;
    color: #374151;
}

/* Linie nur zwischen echten Einträgen */
tr + tr td {
    border-top: 1px solid #e5e7eb;
}

/* Hover im gleichen Stil wie Sections */
tbody tr:hover {
    background-color: #f9fafb;
    transition: background-color 0.15s ease;
}

/* Button in Tabelle im gleichen Stil wie #feedback-button */
table button {
    padding: 8px 14px;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

table button:hover {
    background: #1e40af;
}



/* =========================
   LOGIN SPEZIFISCH
========================= */

#login-email-section input,
#login-password-section input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    margin-top: 8px;
}

#login-email-section input:focus,
#login-password-section input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

#login-button,
#register-button {
    width: 100%;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

#login-button {
    background: #2563eb;
    color: white;
}

#login-button:hover {
    background: #1e40af;
}

#register-button {
    background: #e5e7eb;
    color: #111827;
}

#register-button:hover {
    background: #d1d5db;
}


/* =========================
   LOGIN WRAPPER
========================= */

#login-wrapper {
    max-width: 600px;
    margin: 0 auto;       /* zentriert */
}



/* =========================
   LOGIN SPEZIFISCH
========================= */

#login-email-section input,
#login-password-section input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    margin-top: 8px;
}

#login-email-section input:focus,
#login-password-section input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

#login-button,
#register-button {
    width: 100%;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

#login-button {
    background: #2563eb;
    color: white;
}

#login-button:hover {
    background: #1e40af;
}

#register-button {
    background: #e5e7eb;
    color: #111827;
}

#register-button:hover {
    background: #d1d5db;
}


/* =========================
   LOGIN WRAPPER
========================= */

#login-wrapper {
    max-width: 600px;
    margin: 0 auto;       /* zentriert */
}