/* CSS RESET */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

@import url('https://fonts.cdnfonts.com/css/open-sauce-one');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    color: #000;
    font-family: "Open Sauce One",-apple-system,SF Pro,sans-serif;
    line-height: 1.6;
}

a {
    color: #1D1D1D;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #666;
}

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

.hero-section {
    margin-top: 40px;
    margin-bottom: 60px;
}

.card-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.card-item {
    border-radius: 25px;
    margin: 10px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
    flex-grow: 1;
    transition: transform 0.3s ease;
}

.card-item h1{
    font-size: 40px;
    line-height: 47px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.card-item h2{
    font-size: 32px;
    line-height: 38px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.card-item p{
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 151.34%;
    margin-bottom: 10px;
}

.card-item .button-row {
    margin-top: auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.card-item.image{
    width: calc( 40vw - 40px );
    min-width: 200px;
    max-width: 460px;
    height: 500px;
    max-height: 570px;
}

.button,
button.button {
    background: #1D1D1D;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
}

.button:hover,
button.button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
}

.button-secondary {
    background: transparent;
    color: #1D1D1D;
    border: 2px solid #1D1D1D;
}

.button-secondary:hover {
    background: #1D1D1D;
    color: white;
}

.filter-container {
    margin: 40px auto 30px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 12px 24px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    outline: none;
}

.filter-btn:hover {
    background: #e8e8e8;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.filter-btn.active {
    background: #1D1D1D;
    color: white;
    border-color: #1D1D1D;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(29,29,29,0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px auto 80px;
    padding: 0 20px;
    max-width: 1140px;
}

.project-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    opacity: 0;
    transform: scale(0.8) translateY(30px);
}

.project-card.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.project-card.hiding {
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
}

.project-card:hover {
    transform: scale(1) translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.project-link {
    display: block;
    color: inherit;
}

.project-image {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #f5f5f5;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 80px;
    font-weight: 700;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.88);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    color: white;
    text-align: center;
}

.project-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-meta {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.project-description {
    font-size: 14px;
    line-height: 1.5;
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.project-fach {
    font-size: 14px;
    color: #666;
}

.about-section,
.contact-section {
    margin: 60px auto;
}

.about-card,
.contact-card {
    background: #f5f5f5;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    margin-top: 20px;
}

.contact-info a {
    color: #1D1D1D;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.footer {
    background: #1D1D1D;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

.footer p {
    margin: 10px 0;
    font-size: 14px;
}

.footer a {
    color: white;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
    color: #ccc;
}

.project-nav-top {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-link {
    font-weight: 600;
    font-size: 16px;
}

.project-header {
    padding: 60px 0 40px;
    background: #f9f9f9;
}

.project-header-content {
    max-width: 900px;
    margin: 0 auto;
}

.project-main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.project-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.meta-item {
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
}

.project-hero {
    margin: 0 auto;
    max-width: 1200px;
    padding: 40px 20px;
}

.hero-image {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.project-description {
    padding: 60px 20px;
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

/* Video Section */
.project-video {
    padding: 40px 20px;
    background: #000;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.project-gallery {
    padding: 60px 20px;
    background: #f9f9f9;
}

.gallery-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.zoom-icon {
    font-size: 40px;
}

.project-navigation {
    padding: 60px 20px;
    background: white;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: #f5f5f5;
    border-radius: 20px;
    flex: 1;
    min-width: 250px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #1D1D1D;
    color: white;
    transform: translateX(0);
}

.prev-btn:hover {
    transform: translateX(-5px);
}

.next-btn {
    justify-content: flex-end;
    text-align: right;
}

.next-btn:hover {
    transform: translateX(5px);
}

.arrow {
    font-size: 24px;
    font-weight: 700;
}

.nav-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-label {
    font-size: 12px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
}

.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-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: opacity 0.3s ease;
}

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

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

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

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

.lightbox-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
    }
    
    .card-item.image {
        width: calc(100% - 20px);
        max-width: 100%;
        height: 300px;
    }
    
    .card-item h1 {
        font-size: 32px;
        line-height: 38px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-main-title {
        font-size: 32px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .next-btn {
        justify-content: flex-start;
        text-align: left;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 10px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (min-width: 768px) {
    .card-item.title-tile  {
        min-width:500px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .card-item.title-tile  {
        max-width:700px;
        padding-right: 100px;
    }
}

@media (min-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1140px;
    }
}

/* ============================================
   LEGAL PAGES (Impressum & Datenschutz)
   ============================================ */

.legal-nav {
    background-color: #1a1a1a;
    padding: 20px 0;
    margin-bottom: 40px;
}

.legal-nav .back-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.legal-nav .back-link:hover {
    opacity: 0.7;
}

.legal-page {
    min-height: calc(100vh - 200px);
    padding: 40px 0 80px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 60px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legal-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a1a1a;
    line-height: 1.2;
}

.legal-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a1a1a;
    line-height: 1.3;
}

.legal-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333333;
    line-height: 1.4;
}

.legal-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #444444;
    line-height: 1.4;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333333;
}

.legal-content strong,
.legal-content b {
    font-weight: 700;
}

.legal-content em,
.legal-content i {
    font-style: italic;
}

.legal-content u {
    text-decoration: underline;
}

.legal-content ul, .legal-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.legal-content ul {
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #333333;
}

.legal-content a {
    color: #007bff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #0056b3;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-updated {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666666;
}

/* Footer für Legal Pages */
.legal-page + .footer {
    margin-top: 0;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 40px 30px;
    }
    
    .legal-content h1 {
        font-size: 32px;
    }
    
    .legal-content h2 {
        font-size: 24px;
    }
    
    .legal-content h3 {
        font-size: 20px;
    }
    
    .legal-content h4 {
        font-size: 16px;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .legal-content h1 {
        font-size: 28px;
    }
}
