@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-v31-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

a:link {
  color: blue;
  background-color: transparent;
  text-decoration: none;
}
a:visited {
  color: black;
  background-color: transparent;
  text-decoration: none;
}
a:hover {
  color: red;
  background-color: transparent;
  text-decoration: underline;
}
a:active {
  color: yellow;
  background-color: transparent;
  text-decoration: underline;
}


body {
    font-family: 'Montserrat';
	font-size: clamp(1.5rem, 2vw, 2rem);
	color: #000000;
	text-align: left; /*center; */
	background-color:Snow
}

/* 1. DESKTOP LAYOUT (Default behaviour for large screens) */
.header-inline-wrapper {
    display: grid;
    /* Desktop layout creates two rows: 
       Row 1 holds Utilities (Search + Lang menu)
       Row 2 holds the Massive H1 underneath them */
    grid-template-columns: 1fr minmax(200px, 480px) auto;
    gap: 20px;
    width: 100%;
    padding: 40px;                 
    box-sizing: border-box;
}

/* --- UTILITY POSITIONING CONTROLS --- */

/* REMOVED position: absolute; Elements now sit naturally in the grid */
.lang-corner-menu {
    grid-column: 3;
    grid-row: 1;
    width: 100px;   
    margin: 0;
    align-self: center;
}

/* REMOVED position: absolute; and right: 130px; */
.search-container {
    grid-column: 2;
    grid-row: 1;
    width: 100%;    
    margin: 0; 
    align-self: center;
    position: relative;
}

/* This pushes the massive header title cleanly to the second row below the search */
h1.ultra-massive {
    grid-column: 1 / span 3;
    grid-row: 2;
    
    margin: 20px 0 0 0; /* Gives a healthy top gap below the utilities row */
    font-size: clamp(3.5rem, 12vw, 11rem);
    font-weight: 900;          
    line-height: 0.9;          
    letter-spacing: -0.07em;   
    text-align: left;
}

.lang-select {
    display: flex;
    align-items: center;
    font-family: sans-serif;
    font-size: 1rem;
    color: #000000;
    cursor: pointer;
    outline: none;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 4px 32px 4px 10px; 
    height: 36px;
    box-sizing: border-box;
    text-align: right; 
    direction: ltr;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://w3.org' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.lang-select option {
    background-color: #ffffff;
    color: #000000;
    font-family: sans-serif;
    text-align: right;
}

.lang-en { display: none; }
[data-lang="de"] .lang-en { display: none; }
[data-lang="de"] .lang-de { display: inline; }
[data-lang="en"] .lang-de { display: none; }
[data-lang="en"] .lang-en { display: inline; }

.search-form {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 4px 10px;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    padding: 8px 4px;
    font-family: sans-serif;
    font-size: 1rem;
    color: #000000;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #000000;
    display: flex;
    align-items: center;
}

.result-item mark {
    background-color: rgba(0, 0, 0, 0.1); 
    color: #000000;
    font-weight: bold;
    padding: 0 2px;
}


/* 2. RESPONSIVE MOBILE LAYOUT (Triggers when screen is 768px wide or smaller) */
@media screen and (max-width: 768px) {
    .header-inline-wrapper {
        /* Disables the desktop grid layout, falling back to a flexible layout row stack */
        display: flex;
        flex-direction: column;   /* Stacks everything strictly top-to-bottom */
        align-items: stretch;     
        gap: 16px;                
        padding: 30px 24px;       
    }

    /* On mobile, we force the elements into a specific visual order stack */
    .search-container {
        order: 1;
        max-width: 100%;          /* Search bar stretches nicely to fill phone width */
    }

    .lang-corner-menu {
        order: 2;
        width: 100%;              /* Allows dropdown option bar to be easily tappable */
    }

    h1.ultra-massive {
        order: 3;                 /* Safely locks the header below the menu components */
        font-size: 12vw;          
        margin-top: 15px;
    }
}

/* The dropdown container floating beneath search bar */
.custom-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; /* Matches the exact width of   320px search container */
    max-height: 300px;
    overflow-y: auto; /* Adds a clean scrollbar if there are many skill matches */
    background-color: #ffffff; /* Crisp white against Snow page theme */
    border: 2px solid #000000;  /* Perfectly mirrors search bar border thickness */
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Forces results to sit safely above page layouts */
    display: none; /* Hidden by default until javascript triggers it */
}

/* Style for individual skill entry boxes */
.result-item {
    border-bottom: 1px solid #e0e0e0;
}
.result-item:last-child {
    border-bottom: none;
}
.result-item a {
    display: block;
    padding: 14px;
    text-decoration: none; /* Clears ugly default blue link underlines */
    font-family: sans-serif;
}
.result-item a:hover {
    background-color: #FFFAFA; /* Subtle hover transition into Snow color */
}
.result-item h4 {
    margin: 0 0 4px 0;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 700;
}
.result-item p {
    margin: 0;
    color: #555555;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Formatting for the 'No matching skills found' warning box */
.no-results {
    padding: 16px;
    font-family: sans-serif;
    color: #757575;
    font-size: 0.9rem;
    text-align: center;
}




h2.massive{	
	margin: 0;
    padding: 20px;
	font-size: clamp(2.5rem, 4vw, 13.5rem);
	text-align:left;

}

/* Container-Klasse für das Raster */
.grid-layout {
    display: grid;
    /* Definiert 2 Spalten: Die erste nimmt 3 Teile (3fr), die zweite 2 Teile (2fr) */
    grid-template-columns: 1fr; 
    
    width: 100%;
    box-sizing: border-box;
    gap: 20px; /* Optional: Abstand zwischen den beiden Spalten */
}

/* Optionale Gestaltung der Boxen (nur zur Vorschau) */
.column-main {
    text-align:left;
    padding: 20px;
    
}

.column-sidebar {
    text-align:left;
    padding: 20px;
    
}

/* Desktop Layout: Switches to original 2-column look on larger screens */
@media screen and (min-width: 768px) {
    .grid-layout {
        /* Definiert 2 Spalten: Die erste nimmt 3 Teile (3fr), die zweite 2 Teile (2fr) */
        grid-template-columns: 3fr 2fr; 
    }
}

/* The interactive paragraph container */
.hover-reveal-box {
    position: relative; /* Acts as the anchor lock for the floating card */
    cursor: help; 
    padding-left: 20px;
    margin: 12px 0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

/* Paragraph highlight on hover */
.hover-reveal-box:hover {
    background-color: #ffffff; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* THE FLOATING DROPDOWN CARD (Handles very long text lengths) */
.hover-reveal-box::after {
    content: var(--hover-text); 
    
    /* 1. ABSOLUTE POSITIONING: Floats over layers without moving paragraphs */
    position: absolute;
    top: 100%;       /* Spawns directly below the paragraph box */
    left: 14px;      /* Aligns with internal text padding edge */
    width: calc(100% - 28px); /* Matches the exact width of the text area */
    box-sizing: border-box;
    
    /* 2. Formatting the Floating Box */
    background-color: #ffffff; 
    border: 2px solid #000000; /* High-contrast border matching search box */
    border-radius: 8px;
    padding: 12px 14px;
    
    /* 3. Typography rules for lengthy descriptions */
    font-size: 1.5rem;
    font-weight: 500;
    color: #000000; /* Pure black */
    font-family: sans-serif;
    line-height: 1.4;
    white-space: normal; /* Forces long sentences to wrap nicely onto new lines */
    
    /* 4. Animation & Visibility controls */
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none; 
    z-index: 90; /* Sits cleanly on top of content grid layout */
}

/* Activates the floating dropdown look instantly on mouse hover */
.hover-reveal-box:hover::after {
    opacity: 1;
    transform: translateY(4px); /* Drops down smoothly with a slight gap */
}

.skill-paragraph{
	text-align:left;
	border-style: solid;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;

}

.footer-wrapper {
    position: relative;
    width: 100%;
}


.blended-paragraph {
    width: 100%;
    height: 0; 
    margin: 0;
    padding-top: 119.38% ;/* 119.38%; 177.72%;  Matches 2735x3265 photography scale */
    position: relative; 
    box-sizing: border-box;

    /* The photography asset */
    background-image: var(--bg-image);
    background-size: 100% 100%;
    background-position: top center;
    background-repeat: no-repeat;

    /* THE FIX: Webkit mask physically fades the photo's visibility to 0% at the top */
    -webkit-mask-image: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0) 0%,       /* Top edge is 100% completely invisible */
        rgba(0, 0, 0, 0.1) 15%,    /* Photo is only 10% visible here (heavily diluted pink) */
        rgba(0, 0, 0, 0.5) 45%,    /* Photo is 50% visible here (smooth transition) */
        rgba(0, 0, 0, 1) 85%       /* Photo becomes 100% fully visible near the bottom */
    );
    mask-image: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.1) 15%, 
        rgba(0, 0, 0, 0.5) 45%, 
        rgba(0, 0, 0, 1) 85%
    );
    
}

.footer-wrapper figcaption {
    position: absolute;
    left: 10%;
    top: 10%;
    right: 10%;
    color: #000000;
    font-weight: 500;
}


