/* style.css - Mobile Optimized */
:root {
    --primary-blue: #0a57c2;
    --dark-blue: #061b47;
    --text-color: #0f172a;
    --text-muted: #475569;
    --bg-gradient-1: #f7fbff;
    --bg-gradient-2: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(10, 87, 194, 0.15);
    --accent: #ffca28;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background: radial-gradient(circle at top left, var(--bg-gradient-1), var(--bg-gradient-2));
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Verhindert seitliches Scrollen */
}

/* --- Header & Navigation --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95); /* Etwas undurchsichtiger für mobile Lesbarkeit */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Wichtig für Mobile */
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 800;
    font-size: 1.2rem;
    gap: 15px;
}

.logo-container img {
    height: 60px; /* Leicht verkleinert für bessere Proportionen */
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    flex-wrap: wrap; /* Erlaubt Umbruch bei kleinen Screens */
    justify-content: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: inline-block;
}

nav ul li a:hover, nav ul li a.active {
    background: #eef4ff;
    color: var(--primary-blue);
}

/* --- Hero Sections --- */
.hero-simple {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #f1f6ff 100%);
}

.hero-simple h1 {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    line-height: 1.1;
    word-wrap: break-word;
}

.hero-simple p.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Video Hero (Startseite) */
.video-hero {
    position: relative;
    height: 75vh;
    min-height: 500px; /* Mindesthöhe für Mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
    filter: brightness(0.65);
}

.hero-content-video {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 30px 20px;
    background: rgba(0, 10, 30, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    max-width: 900px;
    margin: 0 15px;
}

.hero-content-video h1 {
    font-size: 3.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-content-video p {
    font-size: 1.4rem;
    font-weight: 500;
    color: #e0e7ff;
    margin-bottom: 25px;
}

/* NaviBlue Hero Special */
.hero-boat {
    /* Standard Fallback, falls inline style fehlt */
    background-size: cover; 
    background-position: center;
    padding: 120px 20px; 
    color: white; 
    text-align: center;
}

/* --- Content Layouts --- */
.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

/* Feature Row (Zig-Zag) */
.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.feature-text ul {
    margin-left: 20px;
    margin-top: 20px;
}

.feature-text li {
    margin-bottom: 8px;
    color: var(--text-color);
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
}

.feature-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Cards & Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%; /* Gleichmäßige Höhe in Grids */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Table Style */
.tech-table {
    width: 100%;
    border-collapse: collapse;
}
.tech-table th, .tech-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}
.tech-table th { color: var(--text-muted); font-weight: 600; width: 35%; }
.tech-table td { font-weight: 500; }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    transition: background 0.2s;
    text-align: center;
}

.btn:hover { background: #084faa; }

/* Footer */
footer {
    margin-top: auto;
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

footer a { color: var(--primary-blue); text-decoration: none; }

/* --- MOBILE OPTIMIZATION (Responsive Media Queries) --- */
@media(max-width: 900px) {
    /* Header Stack */
    .navbar { 
        flex-direction: column; 
        gap: 15px; 
        padding-bottom: 10px;
    }
    
    .logo-container {
        margin-bottom: 5px;
    }

    /* Grids to Single Column */
    .grid-2 { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    /* Features Stack */
    .feature-row, .feature-row:nth-child(even) { 
        flex-direction: column; 
        gap: 30px; 
        margin-bottom: 60px;
    }

    /* Typography Scaling */
    .hero-content-video h1 { font-size: 2.2rem; }
    .hero-simple h1 { font-size: 2rem; }
    .feature-text h2 { font-size: 1.8rem; }
    
    /* Adjust Container Padding */
    .container { padding: 40px 20px; }
    
    /* Boat Hero specific */
    .hero-boat { padding: 60px 20px !important; }
}

@media(max-width: 600px) {
    /* Smaller Nav on tiny screens */
    nav ul {
        gap: 2px;
    }
    nav ul li a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .logo-container img { height: 50px; }

    /* Fix Tables forcing width */
    .tech-table th, .tech-table td {
        display: block;
        width: 100%;
        padding: 6px 0;
    }
    .tech-table th {
        color: var(--primary-blue);
        padding-top: 15px;
    }
    .tech-table tr:first-child th { padding-top: 0; }
    
    /* Fix "Über Mich" Flexbox Inline Style Override */
    /* Wir zwingen die Flex-Box in eine Spalte */
    main .card[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    main .card[style*="display: flex"] > div {
        min-width: 100% !important;
        margin-bottom: 20px;
    }
}