/*
Theme Name: Trainlox Custom Theme
Author: Das Layout / Christoffer Flohr
Description: Zero-Bloat Custom Theme für Trainlox - 100% Design Match
Version: 1.0.2
*/

/* ==========================================================================
   Lokale Schriften (Montserrat)
   ========================================================================== */
@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Farben */
    --color-yellow: #ffcc00;
    --color-black: #050505; /* Sehr tiefes Dunkelgrau/Schwarz */
    --color-white: #ffffff;
    --color-gray: #cccccb;
    --color-lightgray: #e5e5e5;
    --color-text-dark: #1a1a1a;

    /* Typografie & Fonts - wieder auf Montserrat aktualisiert */
    --font-main: 'Montserrat', sans-serif;
    
    /* Fluide Schriftgrößen */
    --text-base: clamp(1rem, 0.85vw + 0.8rem, 1.125rem);
    --text-h1: clamp(3rem, 5vw + 2rem, 5.5rem);     
    --text-h2: clamp(2rem, 3vw + 1rem, 3.2rem);   
    --text-h3: clamp(1.25rem, 1.5vw + 1rem, 1.75rem);   
    
    /* Layout */
    --border-radius-box: 40px;
    --border-radius-pill: 50px;
    --transition-fast: 0.3s ease-in-out;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    font-weight: 400; 
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-white);
    background-color: var(--color-black); 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700; 
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--color-white);
}

h1 { font-size: var(--text-h1); letter-spacing: -0.01em; text-transform: uppercase; }
h2 { font-size: var(--text-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--text-h3); }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    padding: 30px 0;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}
.main-navigation a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}
.main-navigation a:hover {
    color: var(--color-yellow);
}
/* Style für den "START" Button (Erstes Element im Menü) */
.main-navigation ul li:first-child a {
    background-color: var(--color-yellow);
    color: var(--color-black);
    padding: 10px 25px;
    border-radius: var(--border-radius-pill);
}
.main-navigation ul li:first-child a:hover {
    background-color: var(--color-white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-family: var(--font-main);
    font-weight: 600; 
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-dark);
    border-color: var(--color-text-dark);
}
.btn-outline:hover {
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-black);
}

/* ==========================================================================
   Layout Sektionen & Boxen (Startseite)
   ========================================================================== */
.hero-section {
    padding: 220px 0 120px 0;
    background: radial-gradient(circle at 50% -20%, #333 0%, var(--color-black) 60%);
}

.hero-title {
    margin-bottom: 30px;
}

.divider-yellow {
    width: 65px; 
    height: 6px; 
    background-color: var(--color-yellow); 
    margin-bottom: 35px;
}

/* Der graue Hintergrund-Verlauf auf der ganzen Seite */
.bg-gradient-gray {
    background: linear-gradient(180deg, var(--color-black) 0%, #d4d4d4 30%, var(--color-white) 100%);
    padding-bottom: 100px;
    position: relative;
}

/* Die große weiße Box */
.box-white {
    background-color: var(--color-white);
    color: var(--color-text-dark);
    border-radius: var(--border-radius-box);
    position: relative;
    overflow: hidden; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

/* Flexbox Layout für Text links und Bild rechts */
.flex-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    position: relative;
    z-index: 2; 
}

.flex-col-text {
    flex: 1 1 50%;
    padding: 70px 60px;
    position: relative;
    z-index: 3;
}

.flex-col-image {
    flex: 1 1 45%;
    position: relative;
    display: flex;
    align-items: flex-end; /* Bild sitzt unten auf */
    justify-content: flex-end;
}

/* Das Hintergrund-Muster (Background.jpg) */
.pattern-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%; 
    height: 100%;
    background-image: url('./assets/Background.jpg');
    background-size: cover;
    background-position: center left;
    opacity: 0.6; 
    z-index: 1;
    /* Weicher Übergang nach links */
    mask-image: linear-gradient(to right, transparent 0%, black 30%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

/* Sabine Bild Styling */
.sabine-image {
    max-width: 90%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    margin-right: 40px;
}

/* Das kleine gelbe X am Bild */
.icon-x {
    position: absolute;
    top: 45%;
    right: 30px; 
    width: 35px;
    height: 35px;
    z-index: 3;
}

/* ==========================================================================
   Mobile Anpassungen
   ========================================================================== */
@media (max-width: 768px) {
    .hero-section { padding: 150px 0 80px 0; }
    .flex-col-text { padding: 40px 30px; }
    .pattern-bg { width: 100%; mask-image: none; -webkit-mask-image: none; opacity: 0.3; }
    .sabine-image { margin: 0 auto; max-width: 80%; }
    .icon-x { right: 10%; top: 30%; }
    .main-navigation { display: none; /* Fürs Erste versteckt auf Mobile */ }
}