/* Stylesheet für schieflage-records.de */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header und Navigation */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f39c12;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #f39c12;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/img_studio_1.jpg') center/cover;
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #f39c12;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #3498db;
}

.btn-secondary:hover {
    background: #2980b9;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

/* Main Content */
main {
    padding: 3rem 0;
}

.content-section {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 3px solid #f39c12;
    padding-bottom: 0.5rem;
}

.content-section h3 {
    color: #34495e;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Poster */
.poster-container {
    text-align: center;
    margin: 2rem 0;
}

.poster-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Projekte Liste */
.projects-list {
    display: grid;
    gap: 1.5rem;
}

.project-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.project-card h3 {
    color: #2c3e50;
    margin-top: 0;
}

.project-card .project-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.project-card .project-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

/* Status-Farben (für Projektkarten und Sidebar) */
.status-draft {
    background: #95a5a6;
    color: #fff;
}

.status-ordered {
    background: #3498db;
    color: #fff;
}

.status-in_production {
    background: #f39c12;
    color: #fff;
}

.status-completed {
    background: #27ae60;
    color: #fff;
}

.project-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

/* Formulare */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 5px;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Musikstile */
.styles-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.styles-table-wrapper {
    flex: 2;
}

.styles-songtext {
    flex: none;
    width: max-content;
    white-space: nowrap;
}

.styles-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.styles-table th,
.styles-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.styles-table th {
    background: #34495e;
    color: #fff;
    font-weight: 600;
}

.styles-table tr:hover {
    background: #f8f9fa;
}

.styles-table audio {
    width: 100%;
    max-width: 300px;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: #f39c12;
    text-decoration: none;
}

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

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f39c12;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Homepage Layout mit Sidebar */
.homepage-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.homepage-main {
    flex: 1;
    min-width: 0;
}

.homepage-sidebar {
    flex: 0 0 260px;
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 1rem;
}

.sidebar-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.25rem;
    border-top: 4px solid #f39c12;
}

.sidebar-box h3 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sidebar-list li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sidebar-list a {
    color: #2980b9;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    word-break: break-word;
}

.sidebar-list a:hover {
    color: #f39c12;
    text-decoration: underline;
}

.sidebar-status {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
}

.sidebar-empty {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
    .homepage-layout {
        flex-direction: column;
    }

    .homepage-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .project-actions {
        flex-direction: column;
    }

    .styles-table {
        font-size: 0.9rem;
    }
}
