/*
Theme Name: Portfolio26
Author: Blentux
Version: 0.1
Description: Sehr schlichtes Theme für ein Portfolio
*/

/* Basis Styling */
html { scroll-behavior: smooth; margin: 0 !important; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
}

main#site-content {
    flex: 1 0 auto;
}

.container {
    max-width: 1100px;
    margin: 0 80px;
    padding: 0 20px;
    display: block;
}

#about-btn {
    background-color: rgb(255, 132, 0);
    color: white;
    padding: 15px 30px;
    /* width: 60px; */
    border-radius: 30px;
    font-size: 1.8rem;
    border: none;
    margin-top: 15px;
}

#about-btn a {
    text-decoration: none;
    color: white;
}

header, footer {
    background: #111;
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
}

section { font-size: 1.8rem; }

h2 { font-size: 3rem; }

header a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    /* padding: 100px 0; */
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%,-50%);
    object-fit: cover;
}

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

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    width: 100%;
}

.hero-content h1 {
    font-size: 3rem;
    margin: 0 0 10px 0;
}

.hero-content p {
    font-size: 2rem;
    margin: 0;
}

/* ABOUT */
.about {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.img-container {
    width: 400px;
    height: 400px;
    margin: auto;
}

.img-container img {
    width: 100%;
    height: 100%;
    border-radius: 300px;
}

.img_meee {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.img_meee:hover {
    transform: rotate(360deg) scale(1.1);
}

/* CERT */
.sub-section { font-size: 2rem; }
.information { width: 60%; margin: auto; color: white; }
.quote-text { margin: 0; }
.quote-source { text-align: right; }
.about-section, .information {
    color: #000;
    font-size: 1.8rem;
}
.cert { color: white; }

/* SLIDER */
/* 1. Das Sichtfenster (Definiert die maximale Breite von EINEM Zitat) */

/* 2. Die Schiene (Nutzt Grid, um alle Slides in eine Reihe zu zwingen) */
.slider-container {
    max-width: 1200px;
    min-height:  60vh;
    margin: 0 auto;
    overflow: hidden;
}

.slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    width: 100%;
    height: 40vh;
    /* Sanfter Übergang bei der Bewegung */
    transition: transform 0.5s ease-in-out; 
}

.slide {
    box-sizing: border-box;
    padding: 3rem;
    text-align: left;
    color: #fff;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4a4a4a;
    transition: background-color 0.3s ease;
}

/* Wenn der Punkt die Klasse .active hat, leuchtet er */
.dot.active, .dot:hover {
    background-color: #f5f5f5;
}

/* PROJECTS */
#projects div h2 { text-align: center; }
.projects-container {
    margin: auto;
    max-width: auto;
    color: #fff;
    max-width: 1500px;
}
.projects-container h4 { text-align: center; }
.project-grid {
    display: grid;
    justify-content: center;
    margin: 60px 0;
    grid-template-columns: repeat(auto-fit, 600px);
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    gap: 40px;
    width: 100%;
}

.project-card {
    /* border: 5px solid #fff; */
    display: flex;
    flex-direction: column;
    border-radius: 25px;
    background-color: #fff;
    color: #000;
    /* padding: 20px; */
    max-width: 700px;
    transition: all 300ms;
}

.project-card:hover {
    transform: scale(1.02);
    background-color: #00aeff;
    color: #fff;
    /* box-shadow: 0 0 12px 8px rgba(255, 255, 255, 0.5); */
    box-shadow: 0 0 12px 8px rgba(0, 195, 255, 0.5);
    cursor: pointer;
    /* border: 5px solid #0073aa; */
}

.project-title {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 2rem;
    padding: 15px;
}

.project-text {
    margin-top: 0;
    font-size: 1.7rem;
    padding: 15px;
}

.excerpt-desktop { display: block; }
.excerpt-mobile { display: none; }

.project-card a {
    display: inline-block;
    margin-top: auto;
    margin-left: 15px;
    margin-bottom: 15px;
    background-color: #00aeff;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 15px;
    transition: all 300ms;
    border: 2px solid #00aeff;
    align-self: start;
}

.project-card a:hover {
    background-color: #fff;
    color: #000;
}

.project-card-thumbnail {
    height: 400px;
    width: auto;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
}

/* ARTICLE */
.article-hero {
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: #fff;
    font-size: 2rem;
    min-height: 30vh;
    background-size: cover;
    background-position: 0 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}



@media (max-width: 1023px){
    .hero-video {
        display: none;
    }

    .article-hero {
        background-image: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('https://florianbloehs.de/PortfolioWP/wordpress/wp-content/uploads/2026/06/hero-fallback.png');
        background-size: cover;
        background-position: center;
    }

    .article-hero h1 { font-size: 2.2rem; }

    /* .reference-slider { height: 36vh; } */

    .slider-container {
        min-height: 40vh;
    }

    .quote-text, .quote-source {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px){

    .container {
        margin: 0;
        max-width: 100%;
    }

    .container h2 {
        font-size: 2.2rem;
    }

    .container p { font-size: 1.1rem; }

    .img-container {
        width: 200px;
        height: 200px;
        margin-top: 50px;
    }

    .slide { padding: 1.5rem; }
    
    .reference-slider {
        height: 65vh;
    }

    .slider-container {
        height: 65vh;
    }

    .quote-text {
        font-size: 1.05rem;
    }
    .quote-source {
        font-size: 1.3rem;
    }

    .information {
        width: 100%;
        font-size: 1rem;
    }

    .information h2 {
        font-size: 2rem;
    }

    .projects-container h4 {
        font-size: 1.2rem;
    }

    .project-card {
        width: 280px;
        margin: auto;
    }

    .project-card-thumbnail {
        height: 30vh;
    }

    .project-card a { font-size: 1rem; }

    .project-title {
        font-size: 1.2rem;
        text-align: left;
        padding: 0 10px 10px 10px;
    }

    .project-text {
        font-size: 1rem;
        padding: 0 15px 0 15px;
    }

    .excerpt-mobile { display: block; }
    .excerpt-desktop { display: none; }

    /* POST MOBILE */
    .post-container h1 { font-size: 1.3rem; }   
}

/* WORDPRESS CLASSES */
/* Zentrierte Bilder */
.custom-project-article .entry-content .aligncenter {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
}

/* Links ausgerichtete Bilder (Text fließt rechts vorbei) */
.custom-project-article .entry-content .alignleft {
    float: left;
    margin: 5px 20px 20px 0;
    max-width: 100%;
}

/* Rechts ausgerichtete Bilder (Text fließt links vorbei) */
.custom-project-article .entry-content .alignright {
    float: right;
    margin: 5px 0 20px 20px;
    max-width: 100%;
}

/* Listen im Text einrücken */
.custom-project-article .entry-content ul, 
.custom-project-article .entry-content ol {
    margin-bottom: 24px;
    padding-left: 30px;
}

.custom-project-article .entry-content li {
    margin-bottom: 8px;
    font-size: 1.7rem;
}

/* Schickes Styling für den Zitat-Block */
.custom-project-article .entry-content blockquote {
    font-style: italic;
    font-size: 20px;
    border-left: 4px solid #0073aa; /* Farbiger Balken links */
    padding-left: 20px;
    margin: 30px 0;
    color: #555555;
}

/* Responsive Fix: Auf dem Handy das Fließen aufheben, sonst wird es zu quetschig */
@media (max-width: 600px) {
    .custom-project-article .entry-content .alignleft,
    .custom-project-article .entry-content .alignright {
        float: none;
        display: block;
        margin: 20px auto;
    }
    .custom-project-article .entry-content li {
        font-size: 1.2rem;
    }
}

/* --- BUTTONS IM BLOGPOST --- */

/* 1. Der umschließende Container (für Abstände nach oben/unten) */
.custom-project-article .entry-content .wp-block-button {
    margin-top: 24px;
    margin-bottom: 24px;
}

/* Zentrierte Buttons im Editor abfangen */
.custom-project-article .entry-content .wp-block-button.aligncenter {
    text-align: center;
}

/* 2. Der eigentliche Button (Das Design) */
.custom-project-article .entry-content .wp-block-button__link {
    display: inline-block;
    background-color: #0073aa; /* Deine Wunschfarbe */
    color: #ffffff !important;  /* Textfarbe weiß */
    padding: 12px 28px;        /* Innenabstand (Größe des Buttons) */
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;     /* Unterstreichung entfernen */
    border-radius: 50px;        /* Leicht abgerundete Ecken */
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
    cursor: pointer;
}

/* Hover-Effekt (Wenn man mit der Maus drüberfährt) */
.custom-project-article .entry-content .wp-block-button__link:hover {
    background-color: #005177; /* Dunklerer Ton beim Hovern */
    text-decoration: none;
}

/* Klick-Effekt (Gibt haptisches Feedback) */
.custom-project-article .entry-content .wp-block-button__link:active {
    transform: scale(0.98);
}

/* --- RESPONSIVE ANPASSUNG (Für Handys) --- */
@media (max-width: 768px) {
    /* Optional: Buttons auf dem Handy über die ganze Breite gehen lassen */
    .custom-project-article .entry-content .wp-block-button__link {
        display: block;
        text-align: center;
        padding: 14px 20px; /* Etwas mehr Touch-Fläche fürs Smartphone */
        font-size: 15px;
    }
}

/* Styling für den Kontur-Button (Variante ohne Hintergrund) */
.custom-project-article .entry-content .wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid #0073aa;
    color: #0073aa !important;
}

.custom-project-article .entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #0073aa;
    color: #ffffff !important;
}

/* --- WORDPRESS BILD-BLÖCKE (BLOCK IMAGES) --- */

/* 1. Der umschließende Container */
.custom-project-article .entry-content .wp-block-image {
    margin-top: 32px;
    margin-bottom: 32px;
}

/* 2. Das Bild selbst (Macht das Bild zu 100% responsiv) */
.custom-project-article .entry-content .wp-block-image img {
    display: block;
    max-width: 100%;  /* Verhindert, dass das Bild aus dem Layout bricht */
    height: auto;     /* Behält das richtige Seitenverhältnis bei */
    border-radius: 4px; /* Optional: Leicht abgerundete Ecken für modernen Look */
    transition: transform 300ms;
}

/* 3. Schickes Styling für Bildunterschriften (Captions) */
.custom-project-article .entry-content .wp-block-image figcaption {
    font-size: 14px;
    color: #666666;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.4;
}

/* --- ERWEITERTE AUSRICHTUNGEN (Gutenberg-Spezial) --- */

/* Wenn das Bild im Editor "Zentriert" eingestellt ist */
.custom-project-article .entry-content .wp-block-image.aligncenter img {
    margin-left: auto;
    margin-right: auto;
}

/* Wenn das Bild im Editor "Weite Breite" (Wide Width) nutzt */
.custom-project-article .entry-content .wp-block-image.alignwide img {
    max-width: 110%; /* Bricht dezent aus dem normalen Text-Container aus */
    margin-left: -5%;
}

@media (hover: hover){
    .custom-project-article .entry-content .wp-block-image img:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
        cursor: pointer;
    }
}

/* --- RESPONSIVE FIX (Für Handys) --- */
@media (max-width: 768px) {
    .custom-project-article .entry-content .wp-block-image {
        margin-top: 20px;
        margin-bottom: 20px; /* Kleinere Abstände auf dem Smartphone */
    }
    
    /* Weite Breite auf dem Handy wieder zurücksetzen, damit nichts abgeschnitten wird */
    .custom-project-article .entry-content .wp-block-image.alignwide img {
        max-width: 100%;
        margin-left: 0;
    }
}

/* PARAGRAPH */
/* --- PARAGRAPHEN IM BLOGPOST --- */

.custom-project-article .entry-content p {
    font-size: 18px;            /* Perfekte Lesegröße für Desktop */
    line-height: 1.75;          /* Großzügiger Zeilenabstand verhindert Augenermüdung */
    color: #2c3e50;             /* Ein sehr dunkles Grau/Blau ist weicher als reines Schwarz (#000) */
    margin-top: 50px;
    margin-bottom: 28px;        /* Klarer Abstand zum nächsten Absatz */
    text-rendering: optimizeLegibility; /* Aktiviert schönere Buchstabenabstände im Browser */
    -webkit-font-smoothing: antialiased; /* Macht Schriften auf Macs/iPhones glatter */
}

/* Der "First-Paragraph"-Effekt (Optional, aber sehr edel für Portfolios) */
/* Macht den allerersten Absatz eines Artikels minimal größer als Einleitung */
.custom-project-article .entry-content > p:first-of-type {
    font-size: 20px;
    color: #1a252f;
    font-weight: 500;
}

/* --- RESPONSIVE ANPASSUNG (Für Handys) --- */
@media (max-width: 768px) {
    .custom-project-article .entry-content p {
        font-size: 16px;        /* Etwas kleiner auf dem Handy, um Zeilenumbrüche zu optimieren */
        line-height: 1.65;
        margin-bottom: 20px;    /* Kompakterer Abstand auf kleinen Bildschirmen */
    }

    /* Einleitungs-Absatz auf dem Handy wieder normalisieren */
    .custom-project-article .entry-content > p:first-of-type {
        font-size: 17px;
    }
}
