﻿/* Grundlegendes Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333333;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.main-title {
    font-family: 'Dosis', sans-serif;
    font-size: 3rem;
    color: #3498db;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.nicht-gesehen {
    color: red;
    font-weight: bold;
}

.gesehen {
    color: green;
    font-weight: bold;
}

/* Seite komplett zentrieren */
.page-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 8vh;
}

/* Logo + Titel nebeneinander */
.title-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Titel-Optik */
.main-title {
    font-family: 'Dosis', sans-serif;
    font-weight: 600;
    margin: 0;
}

/* Top-Bar: Tabs und Suchfeld */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #dddddd;
    padding-bottom: 0px;
}

/* Tabs */
.tab-buttons {
    display: flex;
    gap: 0px;
}

/* Einzelne Tab-Schaltflächen */
.tab-button {
    padding: 4px 10px;
    cursor: pointer;
    background-color: #f4f4f9;
    border: 1px solid #cccccc;
    border-radius: 6px 6px 0 0;
    text-align: center;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

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

.tab-button.active {
    background-color: #3498db;
    color: #ffffff;
    border-bottom: 2px solid #3498db;
}

/* Tab-Inhalte */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Suchformular */
.search-form {
    display: flex;
    align-items: center;
}

.search-form select {
    padding: 6px 12px;
    border: 1px solid #cccccc;
    border-radius: 20px;
    background-color: #ffffff;
    font-size: 14px;
    margin-left: 8px;
    cursor: pointer;

    width: 100%;
    max-width: 200px;
    min-width: 100px;

    transition: max-width 0.3s ease;

    height: 28px;
    line-height: 1.2;
    box-sizing: border-box;
}

.search-form select:focus {
    max-width: 350px;
    outline: none;
}

.search-form input[type="text"] {
    padding: 6px 12px;
    border: 1px solid #cccccc;
    border-radius: 20px;
    outline: none;
    width: 100%;
    max-width: 200px;
    min-width: 100px;
    transition: width 0.3s ease;
    height: 28px;
    line-height: 1.2;
}

.search-form input[type="text"]:focus {
    width: 100%;
    max-width: 350px;
    min-width: 100px;
}

.search-form button {
    margin-left: 8px;
    padding: 6px 12px;
    border: none;
    background-color: #3498db;
    color: #ffffff;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 28px;
    line-height: 1.2;
}

.search-form button:hover {
    background-color: #0056b3;
}

/* Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 6px;
    text-align: left;
    border: 1px solid #dddddd;
}

/* Tabellen-Header */
th {
	background-color: #333333;
    color: #ffffff;
}

th:hover {
    background-color: #444444;
}

th a:hover {
    color: #3498db;
}

/* Links in der Tabelle (allgemein) */
table a, td a {
    text-decoration: none;
    color: inherit;
    padding: 5px;
}

table a:hover, td a:hover {
    color: #3498db;
}

/* Gesehen-Status: Zeiger beim Überfahren */
td.toggle-gesehen {
	pointer-events: none; /* deaktiviert die Klick-Funktion */
    /* cursor: pointer; */
    text-align: center;
    vertical-align: middle;
}

/* Bewertungssterne */
.stars {
    font-size: 24px;
    color: #ffd700;
}

.star {
    font-size: 1.2em;
    color: #d3d3d3;
	vertical-align: middle;
    line-height: 1;
    margin-right: 1px;
}

.star.half-filled {
    position: relative;
    color: #d3d3d3; /* Hintergrundstern (grau) */
}

.star.half-filled::before {
    content: '★';
    color: #ffd700; /* Vordergrundhälfte (gold) */
    position: absolute;
    width: 50%;
    overflow: hidden;
    left: 0;
    top: 0.05em;
}

.star.filled {
    color: #ffd700;
}

/* Detailseiten-Styling */
.detail-container {
    max-width: 800px;
    margin: 30px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.detail-container h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: #333333;
}

.film-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.film-cover {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px #00000026;
}

.details {
    width: 100%;
}

.details p {
    font-size: 18px;
    margin: 10px 0;
    color: #555555;
}

.details strong {
    color: #222222;
}

.navigation-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    text-decoration: none;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background-color 0.3s;
    text-align: center;
    width: auto;
}

.back-link:hover {
    background-color: #2980b9;
}

/* Responsives Design */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
    }

    h1 {
        font-size: 24px;
    }
	
	.star.half-filled::before {
			top: 0.09em;
	}
}

@media (max-width: 480px) {
		table {
			font-size: 12px;
		}

		th, td {
			padding: 5px;
		}

		h1 {
			font-size: 20px;
		}

		.details p {
			font-size: 14px;
		}

		.star.half-filled::before {
			top: 0.09em;
		}
}