/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    opacity: 0;
}

.skip-link:focus {
    top: 6px;
    left: 6px;
    opacity: 1;
}

/* Header and Navigation */
.site-header {
    border-bottom: 1px solid #000;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none !important;
    color: #000;
    border: none !important;
    outline: none !important;
}

.site-title::before,
.site-title::after {
    display: none !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-toggle-icon span {
    width: 20px;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.6;
}

.nav-lang a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main content */
main {
    min-height: calc(100vh - 120px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.home-page section {
    margin-bottom: 60px;
}

/* Homepage Blog Preview */
.blog-preview {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 30px;
}

.blog-item {
    border-bottom: 1px solid #000;
    padding-bottom: 30px;
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-item-header h3 {
    margin-bottom: 8px;
}

.blog-item-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.blog-item-summary {
    margin-bottom: 20px;
    line-height: 1.7;
}

.blog-item-image {
    margin-top: 15px;
}

.blog-item-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border: 1px solid #000;
    transition: opacity 0.3s ease;
}

.blog-item-image img:hover {
    opacity: 0.8;
}

.section-link,
.contact-links {
    text-align: center;
    margin-top: 30px;
}

.btn-link {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #000;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background: #000;
    color: #fff;
    opacity: 1;
}

/* Hero Section with Image */
.hero-with-image {
    width: 100vw !important;
    height: 700px;
    background: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-background img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    text-align: center;
    padding: 20px;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Lists in content areas only */
.page-description ul,
.page-description ol,
.post-content ul,
.post-content ol,
.list-page ul,
.list-page ol {
    margin-bottom: 1rem;
    margin-left: 0;
    padding-left: 2.5rem;
    list-style-position: outside;
}

.page-description ul,
.post-content ul,
.list-page ul {
    list-style-type: disc;
}

.page-description ol,
.post-content ol,
.list-page ol {
    list-style-type: decimal;
}

.page-description li,
.post-content li,
.list-page li {
    margin-bottom: 0.5rem;
}

a {
    color: #000;
    text-decoration: underline;
}

a:hover {
    opacity: 0.6;
}

/* Portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.portfolio-item {
    text-align: center;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border: 1px solid #000;
    transition: opacity 0.3s ease;
}

.portfolio-item img:hover {
    opacity: 0.8;
}

/* Film Strip Effect */
.film-strip-container {
    margin: 40px 0 60px 0;
    padding: 0;
}

.film-strip {
    position: relative;
    background: #b0b0b0;
    padding: 18px 0;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.film-strip:active {
    cursor: grabbing;
}

.film-strip-content {
    display: flex;
    gap: 20px;
    padding: 0 40px;
    min-width: min-content;
    position: relative;
}

/* Filmstreifen Perforationen oben */
.film-strip-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    width: 100%;
    height: 12px;
    background: repeating-linear-gradient(
        to right,
        #b0b0b0 0px,
        #b0b0b0 3px,
        #f0f0f0 3px,
        #f0f0f0 10px,
        #b0b0b0 10px,
        #b0b0b0 18px
    );
    z-index: 2;
}

/* Filmstreifen Perforationen unten */
.film-strip-content::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    width: 100%;
    height: 12px;
    background: repeating-linear-gradient(
        to right,
        #b0b0b0 0px,
        #b0b0b0 3px,
        #f0f0f0 3px,
        #f0f0f0 10px,
        #b0b0b0 10px,
        #b0b0b0 18px
    );
    z-index: 2;
}

.film-frame {
    flex-shrink: 0;
    width: 280px;
    background: #000;
    border: 8px solid #333;
    border-top-width: 18px;
    border-bottom-width: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.film-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.film-frame a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #fff;
    height: 100%;
}

.film-frame a:hover {
    opacity: 1;
}

.film-frame img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border: 2px solid #000;
    filter: grayscale(20%) contrast(1.1);
}

.film-frame .no-image {
    width: 100%;
    height: 200px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

.frame-title {
    height: 35px;
    line-height: 35px;
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    background: #333;
    color: #fff;
    border-top: 1px solid #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar Styling für Filmstreifen */
.film-strip::-webkit-scrollbar {
    height: 8px;
}

.film-strip::-webkit-scrollbar-track {
    background: #999;
}

.film-strip::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

.film-strip::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Portfolio Single Page */
.portfolio-single {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 40px;
}

.portfolio-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.portfolio-meta {
    color: #666;
    font-size: 0.95rem;
}

.portfolio-hero {
    margin: 40px 0 60px 0;
}

.portfolio-hero img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border: 1px solid #000;
}

.portfolio-description {
    max-width: 800px;
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.portfolio-gallery h2 {
    text-align: center;
    font-size: 1.8rem;
    margin: 60px 0 40px 0;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.gallery-item {
    position: relative;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid #000;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item a {
    display: block;
    height: 100%;
    text-decoration: none;
}

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

.gallery-item img {
    height: 100%;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.9;
}

.portfolio-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 60px 0 40px 0;
    padding-top: 40px;
    border-top: 1px solid #000;
}

.nav-prev,
.nav-next {
    flex: 1;
    max-width: 48%;
}

.portfolio-nav a {
    display: block;
    text-decoration: none;
    color: #000;
    padding: 15px 20px;
    border: 1px solid #000;
    transition: background 0.3s ease;
}

.portfolio-nav a:hover {
    background: #000;
    color: #fff;
    opacity: 1;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    opacity: 0.6;
    font-weight: 400;
}

.nav-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
    margin-left: auto;
}

.back-link {
    text-align: center;
    margin: 40px 0;
}

.back-link a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid #000;
    display: inline-block;
    transition: background 0.3s ease;
}

.back-link a:hover {
    background: #000;
    color: #fff;
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    transition: opacity 0.3s ease;
    font-weight: 300;
    line-height: 1;
    z-index: 10000;
    display: none;
}

.lightbox.active .lightbox-close,
.lightbox.active .lightbox-prev,
.lightbox.active .lightbox-next {
    display: block;
}

.lightbox-close {
    top: 20px;
    right: 30px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

/* List pages (Portfolio overview, Blog overview) */
.page-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.list-item {
    border-bottom: 1px solid #000;
    padding-bottom: 40px;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-header h2 {
    margin-bottom: 10px;
}

.list-item-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.list-item-summary {
    margin-bottom: 20px;
    line-height: 1.7;
}

.list-item-image {
    margin-top: 20px;
}

.list-item-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border: 1px solid #000;
    transition: opacity 0.3s ease;
}

.list-item-image img:hover {
    opacity: 0.8;
}

/* Blog posts */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-post {
    border-bottom: 1px solid #000;
    padding-bottom: 30px;
}

.blog-post:last-child {
    border-bottom: none;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.post-featured-image {
    margin: 30px 0 40px 0;
}

.post-featured-image img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border: 1px solid #000;
}

/* Two-column layout for pages with featured image */
.has-featured-image .post-with-image-container,
.has-featured-image .page-with-image-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
    margin-top: 30px;
}

.has-featured-image .post-content,
.has-featured-image .page-description {
    order: 1;
}

.has-featured-image .post-featured-image,
.has-featured-image .page-featured-image {
    order: 2;
    margin: 0;
    position: sticky;
    top: 80px;
}

.has-featured-image .post-featured-image img,
.has-featured-image .page-featured-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border: 1px solid #000;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Responsive: Stack on mobile */
@media (max-width: 900px) {
    .has-featured-image .post-with-image-container,
    .has-featured-image .page-with-image-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .has-featured-image .post-featured-image,
    .has-featured-image .page-featured-image {
        position: static;
        margin: 0 auto;
        max-width: 400px;
    }
}

/* Network cards */
.network-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.network-card {
    display: block;
    padding: 40px 30px;
    border: 1px solid #000;
    text-decoration: none;
    color: #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.network-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.network-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.network-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    color: #333;
}

/* Responsive: Stack cards on mobile */
@media (max-width: 768px) {
    .network-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 40px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #000;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
}

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

.form-submit {
    background: #000;
    color: #fff;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.form-submit:hover {
    opacity: 0.8;
}

/* Footer */
.site-footer {
    border-top: 1px solid #000;
    padding: 30px 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-social h3,
.footer-legal h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.social-links,
.legal-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 0;
    margin-left: 0;
}

.footer-info {
    font-size: 0.9rem;
    color: #666;
}

.privacy-note {
    margin-top: 10px;
    font-size: 0.8rem;
}

/* Responsive design */
@media (max-width: 768px) {
    /* Hero responsive */
    .hero-with-image {
        height: 500px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    /* Film strip responsive */
    .film-frame {
        width: 220px;
    }

    .film-frame img {
        height: 160px;
    }

    .film-strip-content {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #000;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Portfolio gallery mobile fixes */
    .gallery-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-item {
        height: auto;
        width: 100%;
    }

    .gallery-item img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
    }

    /* Portfolio navigation mobile fixes */
    .portfolio-nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-prev,
    .nav-next {
        max-width: 100%;
        width: 100%;
    }

    .nav-next {
        margin-left: 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .social-links,
    .legal-links {
        flex-direction: row;
        gap: 15px;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .nav-toggle,
    .contact-form {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}