/* --- style.css --- */

html {
    scroll-behavior: smooth;
    /* WICHTIG: Manchmal verhindert "height: 100%" auf html/body das Scrollen. 
       Falls du das irgendwo hast, nimm es raus. */
}
 :root {
            --bg-color: #ffffff;
            --text-color: #222;
            --light-text: #666;
            --accent-color: #000;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        /* Layout Container */
        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Navigation */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 40px 0;
        }

        .logo {
            font-size: 1.2rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-decoration: none;
            color: var(--accent-color);
        }

        nav a {
            margin-left: 25px;
            text-decoration: none;
            color: var(--light-text);
            font-size: 0.9rem;
            transition: color 0.2s;
        }

        nav a:hover {
            color: var(--accent-color);
        }

        /* Hero / Über mich */
        .hero {
            padding: 80px 0;
            display: grid;
            grid-template-columns: 1fr 300px; /* Text links, Bild rechts */
            gap: 60px;
            align-items: center;
        }

        .hero h1 {
            font-size: 2.8rem;
            margin: 0 0 20px 0;
            line-height: 1.1;
            letter-spacing: -1px;
        }

        .hero p {
            font-size: 1.1rem;
            color: var(--light-text);
            max-width: 500px;
        }

        
        .profile-img {
    /* Größe & Format */
    width: 150%;              /* Macht das Bild größer als seinen Container */
    aspect-ratio: 1.5 / 1;    /* Querformat behalten */
    object-fit: cover;        /* Bild füllt den Bereich ohne Verzerren */
    
    /* Optik */
    background-color: #f0f0f0;
    box-shadow: 20px 20px 0px rgba(0,0,0,0.05); /* Der Schatten */
    border-radius: 8px;       /* Abgerundete Ecken */
    
    /* POSITIONIERUNG: Nach links ziehen */
    /* Spiel mit diesem Wert: -50px ist wenig, -120px ist viel */
    margin-left: -10.25rem;
    transition: transform 0.5s ease;
        }
    /* Der Zoom-Effekt beim Drüberfahren */
    .profile-img:hover {
    transform: scale(1.03);   /* Zoomt auf 103% */
}

        /* Portfolio Bereich */
        #portfolio {
            padding: 60px 0 100px;
        }

        .section-title {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #999;
            margin-bottom: 40px;
            display: block;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 40px;
        }

        .card {
            text-decoration: none;
            color: inherit;
            
        }

        .card-img-container {
            width: 100%;
            aspect-ratio: 4 / 3;
            overflow: hidden;
            border-radius: 4px;
            background-color: #f4f4f4;
            margin-bottom: 15px;
        }

        .card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .card:hover img {
            transform: scale(1.05); /* Zoom-Effekt beim Drüberfahren */
        }

        .card h3 {
            font-size: 1.1rem;
            margin: 0;
            font-weight: 600;
        }

        .card span {
            font-size: 0.9rem;
            color: #888;
        }

        /* Footer */
        footer {
            border-top: 1px solid #eee;
            padding: 40px 0;
            text-align: center;
            color: #999;
            font-size: 0.8rem;
        }

        footer a { color: #555; text-decoration: none; margin: 0 10px; }

        /* Responsive Design (Handy) */
        @media (max-width: 768px) {
            .hero {
                grid-template-columns: 1fr; /* Untereinander */
                text-align: center;
                gap: 30px;
            }
            .hero p { margin: 0 auto; }
            .profile-img { max-width: 250px; margin: 0 auto; }
        }




/* Basis-Styling der Links */
nav a {
    position: relative;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 12px;
    display: inline-block;
    transition: color 0.2s ease;
    z-index: 1; /* Hält den Text über den Ecken, falls sie sich kreuzen */
}

/* Das Span-Element für die unteren Ecken */
nav a span {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hover-Farbe Text */
nav a:hover {
    color: #000;
}

/* --- GRUNDLAGE FÜR ALLE 4 ECKEN --- */
nav a::before, nav a::after,
nav a span::before, nav a span::after {
    content: '';
    position: absolute;
    width: 8px;  /* Feste Größe von Anfang an */
    height: 8px; /* Feste Größe von Anfang an */
    border-color: #000;
    border-style: solid;
    border-width: 0;
    opacity: 0;  /* Unsichtbar im Startzustand */
    
    /* Der "Pop"-Effekt: Schnell (0.3s) mit Rückfederung (cubic-bezier) */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- ECKE 1: OBEN LINKS --- */
nav a::before {
    top: 0; left: 0;
    border-top-width: 2px;
    border-left-width: 2px;
    /* Startposition: Innen (versteckt im Text) */
    transform: translate(10px, 10px); 
}

/* --- ECKE 2: OBEN RECHTS --- */
nav a::after {
    top: 0; right: 0;
    border-top-width: 2px;
    border-right-width: 2px;
    /* Startposition: Innen */
    transform: translate(-10px, 10px);
}

/* --- ECKE 3: UNTEN LINKS --- */
nav a span::before {
    bottom: 0; left: 0;
    border-bottom-width: 2px;
    border-left-width: 2px;
    /* Startposition: Innen */
    transform: translate(10px, -10px);
}

/* --- ECKE 4: UNTEN RECHTS --- */
nav a span::after {
    bottom: 0; right: 0;
    border-bottom-width: 2px;
    border-right-width: 2px;
    /* Startposition: Innen */
    transform: translate(-10px, -10px);
}

/* --- HOVER ACTION (Explosion nach außen) --- */

nav a:hover::before { /* Oben Links raus */
    opacity: 1;
    transform: translate(-4px, -4px);
}

nav a:hover::after { /* Oben Rechts raus */
    opacity: 1;
    transform: translate(4px, -4px);
}

nav a:hover span::before { /* Unten Links raus */
    opacity: 1;
    transform: translate(-4px, 4px);
}

nav a:hover span::after { /* Unten Rechts raus */
    opacity: 1;
    transform: translate(4px, 4px);
}



/* =========================================
   NEU: Styles für Profilseite & Wellen
   ========================================= */

/* Body Anpassung */
.profile-page {
    position: relative;
    overflow-x: hidden;
    background-color: #fcfcfc; /* Sehr helles Grau als Basis */
}

/* --- DER WELLEN CONTAINER --- */
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Die Hüllen (werden vom JS bewegt) */
.wave-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-out; /* Macht die Mausbewegung weicher */
}

.waves-background {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh; /* Höhe der Wellen am Bildschirm */
    z-index: -1;
    pointer-events: none;
}

.waves {
    width: 100%;
    height: 100%;
}

/* Animation */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes move-forever {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}
/* --- INHALTS-CONTAINER AUF DER PROFILSEITE --- */
/* Wir machen den Hintergrund der Box transparenter, damit man die Wellen sieht */
.profile-page .content-wrapper {
    background-color: rgba(255, 255, 255, 0.6); /* Transparenter */
    backdrop-filter: blur(5px); /* Milchglas-Effekt */
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border-radius: 12px;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 40px;
}

/* --- NAVIGATION ACTIVE STATE (Ecken aus) --- */
nav a.active {
    color: #000;
    font-weight: 700;
    cursor: default;
}
nav a.active::before, nav a.active::after,
nav a.active span::before, nav a.active span::after {
    display: none;
}

/* --- BIO SEKTION --- */
.profile-bio {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0 60px;
}

.bio-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.bio-text .lead {
    font-size: 1.2rem;
    color: #222;
    font-weight: 500;
    margin-bottom: 20px;
}

.profile-img-large {
    width: 100%;
    border-radius: 8px;
    box-shadow: 20px 20px 0 rgba(0,0,0,0.05);
    transition: transform 0.5s ease;
}

.profile-img-large:hover {
    transform: scale(1.02);
}

/* --- SKILLS & TOOLS --- */
.skills-section, .tools-section {
    padding: 40px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.progress-bar {
    width: 100%;
    height: 6px; /* Etwas feiner */
    background-color: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #333;
    width: 0;
    animation: fillProgress 1.5s ease-out forwards;
}

@keyframes fillProgress { from { width: 0; } }

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-card {
    background: rgba(255,255,255,0.8);
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 20px; /* Pill-Shape */
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
}

.tool-card:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-2px);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .profile-bio { grid-template-columns: 1fr; text-align: center; }
    .wave-container { height: 40vh; } /* Wellen am Handy etwas kleiner */
}


/* =========================================
   GLOBALES LAYOUT UPDATE (Für alle Seiten)
   ========================================= */

/* 1. Die Breite: Beide Seiten bekommen jetzt viel Platz (1250px) */
.container {
    max-width: 1250px !important; /* !important stellt sicher, dass es alles andere überschreibt */
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Der Box-Look (Milchglas): Gilt jetzt automatisch für Startseite UND Profil */
.content-wrapper {
    background-color: rgba(255, 255, 255, 0.6); /* Leicht transparent */
    backdrop-filter: blur(5px); /* Milchglas-Effekt */
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border-radius: 12px;
    
    /* Abstände der Box */
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 40px;
}

/* 3. Hintergrundfarbe (Body) */
/* Damit die weiße Box auch auf der Startseite gut aussieht, 
   brauchen wir dort auch das helle Grau im Hintergrund, nicht reines Weiß. */
body {
    background-color: #fcfcfc; 
}





/* =========================================
   FOTOGRAFIE UNTERSEITE STYLES
   ========================================= */

/* Kleiner Hero-Bereich für Unterseiten */
.hero-small {
    text-align: center;
    padding: 60px 0 40px;
}
.hero-text-center h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.hero-text-center p {
    color: #666;
}

/* --- 1. KARUSSELL STYLES (Soft Fade & Zoom) --- */
.carousel-section {
    margin-bottom: 60px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden; /* Wichtig für den Zoom */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute; /* Bilder liegen übereinander */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Standardmäßig unsichtbar */
    transition: opacity 1s ease-in-out; /* Weicher Übergang (1 Sekunde) */
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1; /* Nur das aktive Bild ist sichtbar */
    z-index: 2;
}

/* Bild Styling & Zoom Effekt */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease; /* Sehr langsamer Zoom beim Betrachten */
}

/* Wenn man mit der Maus über den Container fährt, zoomen wir etwas stärker */
.carousel-container:hover .carousel-slide.active img {
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

/* Caption */
.carousel-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    color: #222;
    z-index: 3;
    pointer-events: none;
}

/* Pfeile */
.carousel-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    color: white;
    font-size: 20px;
    background-color: rgba(0,0,0,0.3);
    border: none;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover { background-color: rgba(0,0,0,0.8); }
.next-btn { right: 20px; }
.prev-btn { left: 20px; }


/* --- NEU: KATEGORIEN KACHELN --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Breitere Kacheln */
    gap: 30px;
}

.gallery-category {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #000; /* Hintergrund schwarz falls Bild lädt */
}

.category-img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

/* Hover Effekt für Kategorien */
.gallery-category:hover img {
    transform: scale(1.05);
    opacity: 0.6; /* Bild wird dunkler, damit Text lesbar ist */
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    pointer-events: none;
}

.category-overlay h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}
.category-overlay span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- 3. LIGHTBOX (Vollbild Ansicht) --- */
#lightbox {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9); /* Fast schwarzer Hintergrund */
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 4px;
}
/* 3D model viewer block (3d-design.php) */
.model-showcase-section {
    padding: 24px 0 18px;
    text-align: center;
}

.model-showcase-intro {
    margin: 0 auto 24px;
    max-width: 640px;
    color: #666;
}

.model-viewer-frame {
    width: 100%;
    min-height: 360px;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.model-viewer-frame model-viewer {
    display: block;
    width: 100%;
    min-height: 360px;
    height: min(70vh, 620px);
    background-color: transparent;
    /* start invisible while the GLB is parsed; the poster stays visible */
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.model-viewer-frame model-viewer:not(:defined) > * {
    display: none;
}

.model-viewer-frame .progress-bar {
    display: block;
    width: 34%;
    height: 10px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background-color: rgba(0, 0, 0, 0.45);
    box-shadow: 0 3px 10px 3px rgba(0, 0, 0, 0.3);
}

.model-viewer-frame .progress-bar.hide {
    visibility: hidden;
    transition: visibility 0.3s;
}

.model-viewer-frame .update-bar {
    background-color: rgba(255, 255, 255, 0.9);
    width: 0;
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s;
}

.model-viewer-frame #ar-button {
    background-image: url("./assets/model-viewer/ar_icon.png");
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: 12px 50%;
    background-color: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    padding: 0 16px 0 40px;
    font-family: "Segoe UI", sans-serif;
    font-size: 14px;
    color: #4285f4;
    height: 36px;
    line-height: 36px;
    border-radius: 999px;
    border: 1px solid #dadce0;
    white-space: nowrap;
}

.model-viewer-frame #ar-button:active {
    background-color: #e8eaed;
}

.model-viewer-frame #ar-button:focus {
    outline: none;
}

.model-viewer-frame #ar-button:focus-visible {
    outline: 1px solid #4285f4;
}

@keyframes model-circle {
    from {
        transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg);
    }
}

@keyframes model-elongate {
    from {
        transform: translateX(100px);
    }
    to {
        transform: translateX(-100px);
    }
}

.model-viewer-frame model-viewer > #ar-prompt {
    position: absolute;
    left: 50%;
    bottom: 60px;
    animation: model-elongate 2s infinite ease-in-out alternate;
    display: none;
}

.model-viewer-frame model-viewer[ar-status="session-started"] > #ar-prompt {
    display: block;
}

.model-viewer-frame model-viewer > #ar-prompt > img {
    animation: model-circle 4s linear infinite;
}

@media (max-width: 768px) {
    .model-viewer-frame {
        min-height: 300px;
    }

    .model-viewer-frame model-viewer {
        min-height: 300px;
        height: min(60vh, 520px);
    }
}

/* =========================================
   FINALER SLIDER FIX (High Z-Index)
   ========================================= */

.comparison-section { padding: 40px 0 80px; text-align: center; }
.comparison-wrapper { margin-bottom: 60px; }
.comparison-wrapper h3 { margin-bottom: 20px; font-weight: 300; }

.img-comp-container {
    position: relative;
    height: 666px; 
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    /* WICHTIG: Cursor zeigt überall Ziehen an */
    cursor: ew-resize;
    /* Damit keine blauen Markierungen beim Ziehen entstehen */
    user-select: none;
    -webkit-user-select: none;
}

.img-comp-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* WICHTIG: Klicks müssen durch das Bild hindurchgehen zum Container */
    pointer-events: none; 
}

/* Hintergrundbild (Final) */
.img-comp-img img {
    display: block;
    width: 1000px; 
    height: 666px; 
    object-fit: cover;
    pointer-events: none; /* Keine Klicks auf Bild */
}

/* Vordergrundbild (Konzept) */
.img-comp-overlay {
    z-index: 2;
    width: 50%; /* Startwert */
    border-right: 1px solid rgba(255,255,255,0.5); /* Feine Hilfslinie */
}

/* DER REGLER (Muss sichtbar sein!) */
.img-comp-slider {
    position: absolute;
    z-index: 99; /* Extrem hoch, damit er immer oben liegt */
    top: 0;
    left: 50%; /* Startwert */
    
    /* Die sichtbare Linie */
    width: 2px;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    
    /* WICHTIG: Der Slider selbst darf keine Maus-Events fangen, 
       sonst flackert es. Der Container fängt alles ab. */
    pointer-events: none; 
}



/* Mobile */
@media (max-width: 1000px) {
    .img-comp-container { height: auto; aspect-ratio: 3/2; }
    .img-comp-img img { width: 100%; height: 100%; }
}
/* Slider smoothness refinements */
.img-comp-overlay {
    will-change: width;
    transition: width 140ms ease-out;
}

.img-comp-slider {
    will-change: left;
    transition: left 140ms ease-out;
}

.img-comp-container.is-dragging .img-comp-overlay,
.img-comp-container.is-dragging .img-comp-slider {
    transition: none;
}

/* Report section (Bildkonzeption) */
.report-section {
    padding: 20px 0 80px;
}

.report-section h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.report-section h3 {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.report-section h4 {
    margin-top: 16px;
    margin-bottom: 10px;
}

.report-section p,
.report-section li {
    color: #333;
}

.divider {
    border: 0;
    border-top: 1px solid #e6e6e6;
    margin: 36px 0;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 18px 0 10px;
    content-visibility: auto;
    contain-intrinsic-size: 800px 600px;
}

.report-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.report-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
    cursor: zoom-in;
    background: #f3f3f3;
}

.report-item p {
    margin: 10px 0 0;
    font-size: 0.95rem;
    color: #444;
}

.conclusion-box {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 4px solid #222;
    background: #f8f8f8;
    border-radius: 4px;
}

/* Bildkonzeption page: stronger image arrangement for sections 1 and 2 */
.bk-report-section .bk-strategy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.bk-report-section .bk-strategy-card {
    display: grid;
    gap: 12px;
}

.bk-report-section .bk-image-cluster {
    display: grid;
    gap: 10px;
}

.bk-report-section .bk-image-cluster-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bk-report-section .bk-image-cluster-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bk-report-section .bk-image-cluster img {
    aspect-ratio: 4 / 3;
}

.bk-report-section .bk-method-grid {
    grid-template-columns: minmax(0, 1fr);
}

.bk-report-section .bk-method-card {
    max-width: 760px;
    margin: 0 auto;
}

.bk-report-section .bk-method-card img {
    aspect-ratio: 16 / 9;
}

/* Unified profile image sizing/position across index + profil */
.hero {
    grid-template-columns: 1fr minmax(280px, 420px);
}

.profile-img,
.profile-img-large {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    margin-left: 0;
    border-radius: 8px;
    box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.05);
}

.hero .profile-img {
    justify-self: end;
}

.bio-image-container {
    justify-self: end;
    width: 100%;
    max-width: 420px;
}

.profile-img:hover,
.profile-img-large:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .profile-img,
    .profile-img-large {
        max-width: 280px;
        margin: 0 auto;
    }

    .bio-image-container {
        margin: 0 auto;
    }

    .bk-report-section .bk-strategy-grid {
        grid-template-columns: 1fr;
    }

    .bk-report-section .bk-image-cluster-two,
    .bk-report-section .bk-image-cluster-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .bk-report-section .bk-image-cluster-two,
    .bk-report-section .bk-image-cluster-three {
        grid-template-columns: 1fr;
    }
}

/* 3D Design page refinements */
.cg-report-section .cg-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.cg-report-section .cg-grid-large .report-item img {
    aspect-ratio: 16 / 10;
}

.cg-report-section .sources-fineprint {
    margin-top: 30px;
    font-size: 0.74rem;
    line-height: 1.45;
    color: #8d8d8d;
}

.cg-report-section .sources-fineprint h4 {
    margin: 0 0 8px;
    font-size: 0.76rem;
    font-weight: 500;
    color: #8d8d8d;
}

.cg-report-section .sources-fineprint ol {
    margin: 0;
    padding-left: 16px;
    /* split the list into two columns for better readability */
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 20px;
}

/* ensure single column on narrow viewports */
@media (max-width: 600px) {
    .cg-report-section .sources-fineprint ol {
        columns: 1;
    }
}

.cg-report-section .sources-fineprint li {
    margin-bottom: 3px;
}

.cg-report-section .sources-fineprint a {
    color: #8d8d8d;
}

@media (max-width: 900px) {
    .cg-report-section .cg-grid-large {
        grid-template-columns: 1fr;
    }
}

/* Service Design page */
.sd-report-section .sd-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 18px 0 8px;
}

.sd-report-section .sd-fact-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    display: grid;
    gap: 6px;
}

.sd-report-section .sd-fact-card strong {
    font-size: 0.92rem;
    color: #222;
}

.sd-report-section .sd-fact-card span {
    font-size: 0.92rem;
    color: #444;
}

.sd-report-section .sd-spread-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0 24px;
    align-items: start;
}

.sd-report-section .sd-placeholder {
    border: 1px dashed #bdbdbd;
    border-radius: 8px;
    background: repeating-linear-gradient(
        135deg,
        #f7f7f7,
        #f7f7f7 14px,
        #efefef 14px,
        #efefef 28px
    );
    aspect-ratio: var(--ratio, 16 / 10);
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #5a5a5a;
    font-size: 0.86rem;
    line-height: 1.35;
    padding: 10px;
    overflow: hidden;
}

.sd-report-section .sd-placeholder strong {
    color: #3d3d3d;
}

.sd-report-section .sd-placeholder small {
    margin-top: 4px;
    font-size: 0.75rem;
    color: #737373;
}

.sd-report-section .sd-placeholder .sd-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f2f2f2;
}

@media (max-width: 900px) {
    .sd-report-section .sd-spread-grid {
        grid-template-columns: 1fr;
    }

    .sd-report-section .sd-spread-grid .sd-placeholder {
        grid-column: 1 / -1 !important;
        aspect-ratio: auto;
        min-height: 140px;
    }
}
