/* 
==================================================
  BASIS-STILE
==================================================
*/
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #000; /* Fallback-Hintergrundfarbe */
    overflow-x: hidden;     /* Verhindert horizontales Scrollen */
}

/* 
==================================================
  PARALLAX-HINTERGRUND
==================================================
*/
.page-container {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1; /* Hintergrund hinter allen Inhalten */
}

/* Standard: WebP für moderne Browser */
.page-back {
    width: 120%;
    height: 120%;
    position: absolute;
    top: -10%;
    left: -10%;
    background-image: url('images/backgroundimage.webp');
    background-size: cover;
    background-position: center;
    filter: blur(1px);
    -webkit-filter: blur(1px);
    transition: margin 0.1s ease-out;
}

/* Fallback: JPG für Browser ohne WebP-Unterstützung */
@supports not (background-image: url("image.webp")) {
    .page-back {
        background-image: url('images/backgroundimage.jpg');
    }
}


/* 
==================================================
  MENÜ-TRIGGER (SCROLL-LOGIK)
==================================================
*/
.menu-trigger {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    z-index: 999;
}

@media (min-width: 601px) {
    .menu-trigger {
        /* Optional: sichtbar machen für Desktop */
    }
}

@media (max-width: 600px) {
    .menu-trigger {
        display: none;
    }
}

/* 
==================================================
  NAVIGATION (MENÜLEISTE)
==================================================
*/
.menuleiste {
    background-color: #fff;
    width: 100%;
    padding: 15px 0;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: top 0.3s ease-in-out; /* Für das Ausblenden */
}

.menuleiste.hide {
    top: -100px; /* Aus dem Sichtfeld schieben */
}

/* 
==================================================
  HAMBURGER-BUTTON (FÜR MOBIL)
==================================================
*/
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    margin-left: 20px;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 
==================================================
  MENÜ-EINTRÄGE (UL, LI)
==================================================
*/
.menuleiste ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.menuleiste li {
    margin: 0 15px;
}

.menuleiste a {
    display: block;
    text-decoration: none;
    color: #000;
    font-size: 18px;
    transition: color 0.3s, background-color 0.3s;
    padding: 10px 15px;
    border-radius: 5px;
}

.menuleiste a:hover,
.menuleiste a.active-menu {
    color: #fff;
    background-color: #000;
}

/* 
==================================================
  LINKEDIN ICON: 
  Normalzustand + Hover-Zustand
==================================================
*/
.linkedin-link {
    position: relative; /* Wenn du magst */
    display: inline-block;
    pointer-events: auto;
}

.linkedin-icon {
    width: 24px; 
    height: auto;
    vertical-align: middle; 
    transition: width 0.3s ease;
}

/* 
   Wenn du das Icon per Hover wechseln möchtest, z. B. 
   von linkedin.ws.svg auf linkedin.sw.svg
*/
.linkedin-link:hover .linkedin-icon {
    content: url('images/linkedin.sw.svg');
}

/* 
==================================================
  SECTION-GRUNDEINSTELLUNGEN
==================================================
*/
section {
    scroll-margin-top: 80px; 
    padding: 120px 20px 80px 20px; 
    max-width: 1200px;
    margin: 0 auto 60px auto;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.active-section {
    opacity: 1;
    transform: translateY(0);
}

/* 
==================================================
  HOME SECTION
==================================================
*/
.home-section {
    background-color: transparent;
    color: #fff;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 80vh;
    padding-top: 80px; 
}

.home-logo {
    width: 400px;
    height: auto;
    margin-bottom: 20px;
    margin-top: -50px;
}

.name {
    font-family: 'Amatic SC', cursive;
    font-size: 48px;
    color: #fff;
    line-height: 1.2;
    opacity: 0;  
    animation: fadeIn 2s forwards;
    margin-top: -40px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 
==================================================
  ÜBER MICH SECTION
==================================================
*/
.ueber-mich-section {
    background-color: #f9f9f9;
    color: #333;
}

.ueber-mich-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.ueber-mich-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.ueber-mich-foto {
    width: 566px;
    height: 756px;
    object-fit: cover;
    margin: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.ueber-mich-text {
    max-width: 600px;
    text-align: left;
    margin: 20px;
    font-size: 18px;     
    line-height: 1.6;
    max-height: 300px; 
    overflow-y: auto;
    padding-right: 1rem; 
}

/* 
==================================================
  LEBENSLAUF SECTION
==================================================
*/
.lebenslauf-section {
    background-color: #f9f9f9;
    color: #333;
}

.lebenslauf-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.lebenslauf-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 18px;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 1rem; 
}

.lebenslauf-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.lebenslauf-section li {
    margin-bottom: 10px;
}

.lebenslauf-section a {
    color: #42587E;
    text-decoration: none;
    font-weight: bold;
}

.lebenslauf-section a:hover {
    text-decoration: underline;
}

/* 
==================================================
  WEBSHOP SECTION
==================================================
*/
.webshop-section {
    background-color: #fff;
    color: #333;
}

.webshop-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* 
   Beispiel: Bild links, Text rechts
*/
.webshop-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 900px; /* oder so */
    margin: 0 auto;   /* zentrieren */
    text-align: left; /* Bild + Text linksbündig */
}

.webshop-content img.webshop-img {
    width: 400px;   /* anpassen nach Geschmack */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 
==================================================
  BLOG SECTION
==================================================
*/
.blog-section {
    background-color: #f9f9f9;
    color: #333;
    padding-top: 60px; 
    padding-bottom: 150px;
}

.blog-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* 
  Blog-Beitrag: 
  Bild links, Text rechts
*/
.blog-post {
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    
    /* 
      Anordnung Bild links, Text rechts
      Du kannst auch grid verwenden, 
      hier ein Beispiel mit Flex:
    */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

/* Bild-Container für Blog */
.blog-image img {
    width: 200px; 
    height: auto;
    border-radius: 4px 0 0 4px; /* Optional: abgerundete Ecken */
    object-fit: cover;
    display: block;
}

/* Text-Container für Blog */
.blog-text {
    padding: 20px; /* Abstand vom Bild */
    flex: 1;       /* füllt den restlichen Platz aus */
}

.blog-post h3 {
    font-size: 24px;
    margin-top: 0;
}

.blog-post p {
    font-size: 16px;
    line-height: 1.5;
}

.blog-post a {
    display: inline-block;
    margin-top: 10px;
    color: #42587E;
    font-weight: bold;
    text-decoration: none;
}

.blog-post a:hover {
    text-decoration: underline;
}

/* 
==================================================
  PORTFOLIO SECTION
==================================================
*/
.portfolio-section {
    background-color: #fff;
    color: #333;
    padding-top: 60px; 
    padding-bottom: 150px;
}

.portfolio-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.portfolio-item {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.5s;
}

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

.portfolio-item h3 {
    font-size: 24px;
    margin: 10px 0;
}

.portfolio-item p {
    font-size: 16px;
    line-height: 1.4;
}

.projekt-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #42587E;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.projekt-link:hover {
    background-color: #333;
}

/* 
==================================================
  KONTAKT SECTION
==================================================
*/
.kontakt-section {
    background-color: #fff;
    color: #333;
}

.kontakt-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

#kontakt-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#kontakt-form label {
    font-size: 18px;
    margin-top: 10px;
}

#kontakt-form input,
#kontakt-form textarea {
    width: 80%;
    max-width: 500px;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
}

#kontakt-form button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #42587E;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#kontakt-form button:hover {
    background-color: #333;
}

/* 
==================================================
  KLEINES LOGO (FIXED)
==================================================
*/
.small-logo {
    width: 100px;
    height: 100px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 500;
}

.small-logo:hover {
    opacity: 1;
}

/* 
==================================================
  REVEAL-ANIMATION
==================================================
*/
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active-section {
    opacity: 1;
    transform: translateY(0);
}

/* 
==================================================
  RESPONSIVE DESIGN (max-width: 600px)
==================================================
*/
@media (max-width: 600px) {

    .hamburger {
        display: flex;
    }
    .menuleiste ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px; 
        left: 0;
        padding: 0;
        margin: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .menuleiste ul.active {
        display: flex;
    }
    .menuleiste ul li {
        margin: 15px 0;
        text-align: center;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Home */
    .home-content {
        padding-top: 60px;
    }
    .home-logo {
        width: 200px;
        margin-top: 20px;
    }
    .name {
        font-size: 35px;
        margin-top: 10px;
    }

    /* LinkedIn-Icon kleiner */
    .linkedin-icon {
        width: 20px; 
    }

    /* Portfolio (eine Spalte) */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-item img {
        height: 150px;
    }
    .portfolio-item h3 {
        font-size: 20px;
    }
    .portfolio-item p {
        font-size: 14px;
    }

    /* Über mich mobil */
    .ueber-mich-content {
        flex-direction: column;
    }
    .ueber-mich-text {
        max-width: 100%;
        text-align: center;
        max-height: 250px; 
    }

    /* Webshop mobil */
    .webshop-content {
        flex-direction: column;
    }
    .webshop-content img.webshop-img {
        width: 80%;
        margin-bottom: 15px;
    }
    .webshop-content p {
        text-align: center;
    }

    /* Blog mobil */
    .blog-post {
        flex-direction: column; /* Bild oben, Text unten */
        text-align: center;
    }
    .blog-image img {
        width: 100%;
        border-radius: 4px 4px 0 0; 
    }
    .blog-text {
        padding: 15px;
    }

    /* Kleines Logo */
    .small-logo {
        width: 80px;
        height: 80px;
        bottom: 15px;
        right: 15px;
    }
}

/* ===========================================
   SPEZIAL-ANPASSUNG FÜR iPhone 14 Pro Max
   =========================================== */
   @media only screen 
   and (min-device-width: 430px) 
   and (max-device-width: 932px) 
   and (-webkit-min-device-pixel-ratio: 3) {
 
     /* Allgemein: Bessere Skalierung */
     html, body {
         width: 100%;
         overflow-x: hidden;
         -webkit-text-size-adjust: 100%; /* Verhindert Textvergrößerung */
     }
 
     /* Menüleiste */
     .menuleiste {
         padding: 10px 0;
         flex-wrap: wrap;
     }
 
     /* Hamburger-Menü */
     .hamburger {
         display: flex;
         width: 40px;
         height: 35px;
     }
 
     /* Navigationslinks */
     .menuleiste a {
         font-size: 16px;
         padding: 10px 12px;
     }
 
     /* Home-Logo */
     .home-logo {
         width: 220px;
         margin-top: 10px;
     }
 
     /* Schriftgröße des Namens */
     .name {
         font-size: 36px;
         margin-top: 0;
     }
 
     /* Über mich */
     .ueber-mich-content {
         flex-direction: column;
         padding: 0 10px;
     }
 
     .ueber-mich-text {
         max-width: 100%;
         text-align: center;
         padding: 0 15px;
     }
 
     .ueber-mich-foto {
         width: 90%;
         height: auto;
     }
 
     /* Portfolio-Grid */
     .portfolio-grid {
         grid-template-columns: 1fr 1fr;
         gap: 15px;
     }
 
     .portfolio-item img {
         height: 140px;
     }
 
     /* Webshop */
     .webshop-content {
         flex-direction: column;
         gap: 15px;
     }
 
     .webshop-content img.webshop-img {
         width: 85%;
     }
 
     /* Blog */
     .blog-post {
         flex-direction: column;
     }
 
     .blog-image img {
         width: 100%;
     }
 
     /* Kontaktformular */
     #kontakt-form input,
     #kontakt-form textarea {
         width: 95%;
     }
 
     /* Footer */
     footer a {
         font-size: 14px;
     }
 
     /* Verhindert horizontales Scrollen */
     * {
         box-sizing: border-box;
     }
 }
 
/* 
==================================================
  RESPONSIVE DESIGN (max-width: 400px)
==================================================
*/
@media (max-width: 400px) {
    .menuleiste a {
        font-size: 16px;
        padding: 8px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-item img {
        height: 120px;
    }
    .portfolio-item h3 {
        font-size: 18px;
    }
    .portfolio-item p {
        font-size: 12px;
    }

    #kontakt-form input,
    #kontakt-form textarea {
        width: 90%;
    }

    .ueber-mich-foto {
        width: 283px;
        height: 378px;
    }

    .home-logo {
        width: 150px;
    }
    .name {
        font-size: 25px;
    }

    .small-logo {
        width: 60px;
        height: 60px;
        bottom: 10px;
        right: 10px;
    }
}

/* 
==================================================
  FOOTER
==================================================
*/
footer {
    background-color: #fff;
    color: #000;
    text-align: center;
    padding: 20px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

footer a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #42587E;
}
