/* Custom Styles für bauer-sw.de */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Skills */
.skill-badge {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    background: var(--light-bg);
    border-radius: 20px;
    font-weight: 500;
    color: var(--primary-color);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.skill-badge i {
    margin-right: 5px;
    color: var(--secondary-color);
}

/* Project Cards */
.project-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: var(--light-bg);
}

.project-card .card-body {
    padding: 1.5rem;
}

.project-card .card-title {
    font-weight: 600;
    color: var(--primary-color);
}

.tech-tag {
    display: inline-block;
    padding: 3px 10px;
    margin: 2px;
    font-size: 0.75rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 12px;
}

/* No Image Placeholder */
.no-image {
    height: 200px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3rem;
}

/* Contact Form */
.contact-section {
    background: var(--light-bg);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Admin Styles */
.admin-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
}

.admin-sidebar {
    background: var(--dark-bg);
    min-height: calc(100vh - 56px);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-content {
    padding: 2rem;
}

/* Table Styles */
.table-actions {
    white-space: nowrap;
}

/* Image Preview */
.image-preview {
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

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

    .profile-image {
        width: 150px;
        height: 150px;
        margin-bottom: 2rem;
    }

    .section {
        padding: 50px 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Buy Me a Coffee Button */
.btn-warning {
    background-color: #ffdd00;
    border-color: #ffdd00;
    color: #000;
}

.btn-warning:hover {
    background-color: #e6c700;
    border-color: #e6c700;
    color: #000;
}

/* Projekt Detail Page */
.projekt-content {
    line-height: 1.8;
}

.projekt-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-bg);
}

.projekt-content h2:first-child {
    margin-top: 0;
}

.projekt-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.projekt-content p {
    margin-bottom: 1rem;
    color: #555;
}

.projekt-content ul,
.projekt-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.projekt-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

.projekt-content strong {
    color: var(--primary-color);
}

.projekt-content code {
    background: var(--light-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent-color);
}

.projekt-content pre {
    background: var(--dark-bg);
    color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.projekt-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.projekt-content a {
    color: var(--secondary-color);
    text-decoration: none;
}

.projekt-content a:hover {
    text-decoration: underline;
}

/* Breadcrumb styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item a {
    opacity: 0.8;
}

.breadcrumb-item a:hover {
    opacity: 1;
}
