/* ==================== ROOT VARIABLES ==================== */
:root {
    --color-primary: #004D66;
    --color-primary-dark: #003d52;
    --color-primary-light: #1c7f99;
    --color-secondary: #2d3436;
    --color-light: #f5f7fa;
    --color-dark: #1a1a2e;
    --color-grey: #636e72;
    --color-text: #2d3436;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
}

/* ==================== BASE ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: var(--color-secondary); }
b, strong { font-weight: 600; }

.text-10 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.text-9  { font-size: clamp(1.5rem, 3vw, 2rem); }
.text-8  { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
.text-7  { font-size: clamp(1.1rem, 2vw, 1.5rem); }
.text-6  { font-size: clamp(1rem, 1.75vw, 1.25rem); }
.text-5  { font-size: clamp(0.9rem, 1.5vw, 1.1rem); }
.text-4  { font-size: clamp(0.85rem, 1.25vw, 1rem); }
.text-3  { font-size: 0.9rem; }
.text-2  { font-size: 0.8rem; }

.font-weight-light { font-weight: 300; }

.section { position: relative; padding: 70px 0; }
.bg-color-light { background-color: var(--color-light); }
.bg-color-white { background-color: #ffffff; }

/* ==================== HEADER ==================== */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: transparent; transition: var(--transition); padding: 20px 0;
}
header.sticky {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 15px 0;
}
.logo { height: 50px; transition: var(--transition); }
header.sticky .logo { height: 40px; }

.navbar-toggler { border: 1px solid rgba(255,255,255,0.6); padding: 6px 10px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 16 16'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M2 4h12M2 8h12M2 12h12'/%3e%3c/svg%3e");
}
header.sticky .navbar-toggler { border-color: rgba(0,77,102,0.4); }
header.sticky .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 16 16'%3e%3cpath stroke='%23004D66' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M2 4h12M2 8h12M2 12h12'/%3e%3c/svg%3e");
}

/* Swap logo variants based on header background */
.logo-dark { display: none; }
.logo-light { display: block; }
header.sticky .logo-dark { display: block; }
header.sticky .logo-light { display: none; }

.navbar-nav .nav-link {
    font-weight: 500; font-size: 0.8rem; color: #fff; padding: 8px 15px;
    transition: var(--transition); text-transform: uppercase; letter-spacing: 0.3px;
}
header.sticky .navbar-nav .nav-link { color: var(--color-secondary); }
.navbar-nav .nav-link:hover { color: var(--color-primary); }

.btn-demo {
    background: var(--color-primary); color: #fff; padding: 8px 20px;
    border-radius: 3px; font-weight: 600; font-size: 0.75rem; border: none;
    transition: var(--transition); text-transform: uppercase; letter-spacing: 0.3px;
}
.btn-demo:hover { background: var(--color-primary-dark); color: #fff; }

/* ==================== LANG SWITCHER ==================== */
.lang-switcher {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 4px; padding: 2px; margin: 0 12px;
}
header.sticky .lang-switcher {
    background: rgba(0,77,102,0.06); border-color: rgba(0,77,102,0.18);
}
.lang-btn {
    background: none; border: none; padding: 3px 5px; border-radius: 4px;
    font-size: 1.15rem; line-height: 1; cursor: pointer;
    transition: all 0.2s; opacity: 0.5; filter: grayscale(0.3);
}
.lang-btn:hover:not(.active) { opacity: 0.85; filter: grayscale(0); background: rgba(255,255,255,0.12); }
header.sticky .lang-btn:hover:not(.active) { background: rgba(0,77,102,0.1); }
.lang-btn.active { opacity: 1; filter: grayscale(0); background: rgba(255,255,255,0.2); }
header.sticky .lang-btn.active { background: rgba(0,77,102,0.12); }
.fi { font-size: 1.25rem; display: block; border-radius: 2px; }

/* ==================== HERO ==================== */
.hero-section {
    background: linear-gradient(135deg, #004D66 0%, #003d52 30%, #002d3d 70%, #001f2b 100%);
    position: relative; overflow: hidden; padding: 150px 0 70px;
}
.hero-section::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(28,127,153,0.22) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}
.hero-section > .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block; background: rgba(255,255,255,0.15); color: #fff;
    padding: 6px 16px; border-radius: 30px; font-size: 0.7rem;
    font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 20px; backdrop-filter: blur(10px);
}
.hero-title { color: #fff; font-weight: 600; margin-bottom: 18px; }
.hero-lead { color: rgba(255,255,255,0.85); font-weight: 300; max-width: 780px; }

/* ==================== CONTACT CARD ==================== */
.contact-card {
    background: #fff; border: 1px solid #e6eaee; border-left: 3px solid var(--color-primary);
    border-radius: 6px; padding: 26px 30px; height: 100%;
}
.contact-mail {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600;
    color: var(--color-primary); text-decoration: none; word-break: break-word;
}
.contact-mail:hover { color: var(--color-primary-dark); text-decoration: underline; }
.contact-mail i { font-size: 1rem; opacity: 0.7; }
.contact-subject {
    display: inline-block; margin-top: 12px; padding: 5px 12px;
    background: var(--color-light); border: 1px solid #e0e6ea; border-radius: 3px;
    font-size: 0.82rem; color: var(--color-grey);
}
.contact-subject code { color: var(--color-primary); font-weight: 600; }

/* ==================== LISTE ==================== */
.sec-list { list-style: none; padding: 0; margin: 0; }
.sec-list li {
    position: relative; padding-left: 26px; margin-bottom: 11px;
    font-size: 0.92rem; color: var(--color-text);
}
.sec-list li:last-child { margin-bottom: 0; }
.sec-list li::before {
    content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 6px; top: 0; color: var(--color-primary-light);
    font-size: 0.85rem;
}

/* ==================== TABELLE ==================== */
.sec-table-wrap { overflow-x: auto; border: 1px solid #e6eaee; border-radius: 6px; background: #fff; }
.sec-table { width: 100%; border-collapse: collapse; min-width: 520px; margin: 0; }
.sec-table thead th {
    background: var(--color-primary); color: #fff;
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.8px; padding: 14px 22px; text-align: left; white-space: nowrap;
}
.sec-table thead th:first-child { width: 55%; }
.sec-table tbody td {
    padding: 16px 22px; border-bottom: 1px solid #eef1f4;
    font-size: 0.88rem; vertical-align: top;
}
.sec-table tbody tr:last-child td { border-bottom: none; }
.sec-table tbody tr:hover { background: #f7fafb; }
.sec-table .td-label { font-weight: 500; color: var(--color-secondary); }

/* ==================== NOTE / DISCLOSURE ==================== */
.note-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
}
.note-section h2 { color: #fff; font-weight: 600; }
.note-section p { color: rgba(255,255,255,0.85); font-weight: 300; }
.note-card {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px; padding: 26px; height: 100%;
}
.note-card h4 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.note-card p { font-size: 0.88rem; margin-bottom: 0; }
.note-card i { color: #fff; font-size: 1.4rem; margin-bottom: 12px; display: block; }
.note-card a { color: #fff; text-decoration: underline; }

/* ==================== FUORI AMBITO ==================== */
.scope-box {
    background: #fff; border: 1px solid #e6eaee; border-radius: 6px; padding: 26px 30px;
}
.scope-box .sec-list li::before { content: '\f00d'; color: #b9c4cb; }

/* ==================== FOOTER ==================== */
footer { background: var(--color-dark); color: rgba(255,255,255,0.8); padding: 60px 0 30px; }
.footer-logo { max-width: 180px; margin-bottom: 15px; }
footer p  { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.7; }
footer h5 { color: #fff; margin-bottom: 20px; font-weight: 600; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.footer-links a  { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px; padding-top: 20px; text-align: center;
    font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; visibility: hidden;
    transition: var(--transition); z-index: 999;
}
.scroll-to-top.show { opacity: 1; visibility: visible; }

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.9); border-radius: 12px;
        padding: 12px; margin-top: 10px;
    }
    header.sticky .navbar-collapse { background: rgba(255, 255, 255, 0.98); }
    .navbar-nav .nav-link { color: #fff; }
    header.sticky .navbar-nav .nav-link { color: var(--color-secondary); }
    .lang-switcher { margin: 10px 0 0; align-self: flex-start; }
}

@media (max-width: 767px) {
    .hero-section { padding: 120px 0 50px; }
    .section { padding: 50px 0; }
    .contact-card, .scope-box { padding: 22px; }
}
