/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
    --color-primary: #0f172a;       /* Deep Industrial Navy */
    --color-primary-light: #1e293b; /* Slate Blue */
    --color-accent: #d1b78f;        /* Sterile Cyan / Purity Mint */
    --color-accent-hover: #d1b78f;  
    --color-text-dark: #334155;     /* Professional Gray */
    --color-text-light: #f8fafc;    
    --color-bg-light: #f1f5f9;      
    --color-bg-white: #ffffff;
    --color-border: #e2e8f0;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --max-width: 1200px;
    --transition-smooth: all 0.3s ease;
}

/* --- BASE STYLES & RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 15px; /* Mobile first base size */
    overflow-x: hidden;
}

body {
    font-family: var(--font-stack);
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-bg {
    background-color: var(--color-bg-light);
}

.text-center {
    text-align: center;
    margin-bottom: 3rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
}

.btn:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-bg-white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-bg-white);
    color: var(--color-bg-white);
}

.btn-outline:hover {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--color-accent);
    color: var(--color-text-light);
}

/* Offset page content so it isn't hidden behind the fixed header (80px tall) */
body {
    padding-top: 80px;
}

/* Keep anchored sections clear of the fixed header when jumping to them */
[id] {
    scroll-margin-top: 90px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; /* Constrains logo height cleanly on desktop and mobile */
    width: auto;
    display: block;
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid var(--color-accent);
    color: var(--color-text-light);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    padding: 2rem;
    border-bottom: 2px solid var(--color-accent);
    gap: 1.5rem;
    list-style: none;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #cbd5e1;
    display: block;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-cta {
    display: none;
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-text-light);
    padding: 2.5rem 0;
    overflow: hidden; /* Hard boundary constraint */
    width: 100%;
}

/* Centered vertical stack: logo → heading → video → buttons */
.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
    width: 100%;
}

/* Full-size hero logo that fits the container without dominating it */
.hero-logo {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
}

.hero-inner h1 {
    margin-bottom: 0;
}

.hero-inner .hero-actions {
    justify-content: center;
}

/* Hero video block */
.hero-video {
    width: 100%;
    max-width: 800px;
    cursor: zoom-in;
}

/* --- NAV LOGO SCROLL REVEAL (home page only) --- */
/* On the home page the nav logo stays hidden while the big hero logo is in
   view, then fades in once the user scrolls down. */
.site-header.nav-hero .logo {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.site-header.nav-hero.scrolled .logo {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- VIDEO ENLARGE / LIGHTBOX --- */
.video-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.video-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* When enlarged, lift the video above the backdrop and center it on screen */
.hero-video.enlarged {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 1100px);
    max-width: 1100px;
    z-index: 1600;
    cursor: default;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.hero-content {
    width: 100%;
    max-width: 100%; /* Prevents text elements from expanding beyond viewport */
    overflow-wrap: break-word; /* Crucial: Breaks massive words safely */
    word-wrap: break-word;
    word-break: break-word; 
    hyphens: auto; /* Gracefully breaks German compound words with a hyphen */
}

/* Fluid typography that scales perfectly on ultra-small screens */
.hero h1 {
    font-size: calc(1.5rem + 2vw); /* Dynamically scales down to ~1.7rem on tiny displays */
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--color-text-light);
}

.hero p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 2rem;
    width: 100%;
}

/* Stacked block actions for touch targets */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.hero-actions .btn {
    width: 100%; /* Ensures buttons fill the container safely without overflowing */
    display: block;
    box-sizing: border-box;
}

/* --- PROGRESSIVE ENHANCEMENT FOR DESKTOP --- */
@media (min-width: 1024px) {
    .hero {
        padding: 6rem 0 8rem 0;
    }
    .hero-grid {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 4rem;
    }
    .hero h1 {
        font-size: 3rem; /* Return to original high-impact size on desktop architecture */
    }
    .hero-actions {
        flex-direction: row;
        width: auto;
    }
    .hero-actions .btn {
        width: auto;
        display: inline-block;
    }
}

/* Responsive Video/Iframe Container */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #020617;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.video-wrapper video, .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.video-overlay:hover {
    background: rgba(15, 23, 42, 0.6);
}

.play-btn {
    width: 70px;
    height: 70px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent var(--color-primary);
    transform: translateX(3px);
}

.video-overlay span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--color-text-light);
}

/* --- ABOUT US --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-image {
    min-height: 240px;
    background-color: var(--color-bg-light);
    border-radius: 6px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.usp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.usp-card {
    background-color: var(--color-bg-light);
    padding: 1.5rem;
    border-left: 4px solid var(--color-accent);
    border-radius: 0 4px 4px 0;
}

.usp-card h4 {
    margin-bottom: 0.5rem;
}

/* --- SPECIFICATIONS & INDUSTRIES --- */
.industry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.industry-card {
    background-color: var(--color-bg-white);
    padding: 2rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
}

.industry-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.industry-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.table-container {
    background-color: var(--color-bg-white);
    border-radius: 6px;
    border: 1px solid var(--color-border);
    overflow-x: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.table-title {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 500px;
}

th, td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--color-primary);
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

/* --- B2B BLOG --- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.blog-card {
    background-color: var(--color-bg-white);
    border-radius: 4px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    padding: 1.5rem 1.5rem 0 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
}

.blog-body {
    padding: 1rem 1.5rem 2rem 1.5rem;
    flex-grow: 1;
}

.blog-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.blog-body p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.blog-link {
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- CONTACT & FORM --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.info-block {
    margin-bottom: 1.5rem;
}

.info-block span {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #64748b;
}

.info-block p {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0;
}

.contact-form {
    background-color: var(--color-bg-white);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input, 
.form-group textarea {
    font-family: var(--font-stack);
    font-size: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: #f8fafc;
    color: var(--color-primary);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-bg-white);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.checkbox-group input {
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.85rem;
    cursor: pointer;
}

/* --- FOOTER & LEGAL --- */
footer {
    background-color: var(--color-primary);
    color: #94a3b8;
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--color-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1e293b;
}

.footer-legal-text p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links button {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-smooth);
}

.footer-links button:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.8rem;
    text-align: center;
}

/* --- MODAL DIALOGS --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 6px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal h2 {
    margin-bottom: 1.5rem;
}

.modal h3 {
    margin: 1.5rem 0 0.5rem 0;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text-dark);
    cursor: pointer;
    font-weight: 700;
}

/* --- DESKTOP ENHANCEMENTS (Tablet & Desktop layouts) --- */
@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
    }
    .usp-grid, .industry-grid, .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-group-full {
        grid-column: span 2;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    html { font-size: 16px; }
    h2 { font-size: 2.25rem; }
    .section { padding: 6rem 0; }
    .nav-toggle { display: none; }
    
    /* Modern Alignment adjustments for multi-column navigation setup */
    .nav-right-group {
        order: 3;
    }
    
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        padding: 0;
        width: auto;
        background: none;
        border: none;
        gap: 2rem;
        order: 1;
        margin-left: auto;
        margin-right: 2rem;
    }
    .nav-links a { font-size: 0.95rem; }
    
    .nav-cta { 
        display: flex; 
        align-items: center; 
        gap: 0.5rem; 
        font-weight: 700; 
        color: var(--color-accent); 
        order: 2;
        margin-right: 1.5rem;
    }
    .nav-cta a { color: var(--color-text-light); background-color: rgba(6, 182, 212, 0.15); padding: 0.5rem 1rem; border-radius: 4px; border: 1px solid var(--color-accent); }
    .nav-cta a:hover { background-color: var(--color-accent); color: var(--color-primary); }
    
    .hero { padding: 6rem 0 8rem 0; }
    .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.2rem; }
    
    .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .industry-grid { grid-template-columns: repeat(4, 1fr); }
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
    .contact-form { padding: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1.5fr; gap: 4rem; }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
    .modal-content { padding: 2.5rem; }
}

/* --- APPLICATIONS (BRANCHEN TILES) --- */
.app-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.app-card {
    display: block;
    color: inherit;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.app-img-placeholder {
    width: 100%;
    height: 180px;
    background-color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.app-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    background-color: var(--color-bg-white);
}

.app-body {
    padding: 1.5rem;
}

.app-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.app-body p {
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

@media (min-width: 768px) {
    .app-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .app-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- TEAM / STRUKTUR --- */
.team-section {
    margin-bottom: 3rem;
}

.team-grid-de {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.team-grid-tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

@media (min-width: 768px) {
    /* Two portraits side by side once a second photo is added */
    .team-grid-tr:has(> .member-card + .member-card) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 640px;
    }
}

.member-card {
    background: var(--color-bg-light);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    text-align: center;
}

.member-img-placeholder {
    width: 100%;
    height: 250px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #64748b;
}

.member-img-placeholder.bg-cream {
    background-color: #f5f5f0;
}

.member-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Team Ausland uses portrait photos – give them a taller frame and keep the
   face in view instead of cropping through it. */
.team-grid-tr .member-img,
.team-grid-tr .member-img-placeholder {
    height: 420px;
}

.team-grid-tr .member-img {
    object-position: center 20%;
}

.team-text-block {
    margin-top: 1rem;
}

.team-text-block h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.team-text-block h4 {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .team-grid-de { grid-template-columns: 1fr 2fr; }
}

/* --- TRUST BAR --- */
.trust-bar {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 1.5rem 0;
    border-top: 2px solid var(--color-accent);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: center;
}

.trust-item {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
}


/* --- LEGAL PAGES (Legal Notice / Privacy Policy / Impressum / Datenschutz) --- */
.legal-page .container {
    max-width: 820px;
}

.legal-page h1 {
    margin-bottom: 1rem;
}

.legal-page .legal-intro {
    color: var(--color-text-dark);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.legal-page h2 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-page p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-page a {
    color: var(--color-primary-light);
    text-decoration: underline;
    word-break: break-word;
}

.legal-page a:hover {
    color: var(--color-accent);
}

.legal-page .legal-note {
    background-color: var(--color-bg-light);
    border-left: 3px solid var(--color-accent);
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

/* --- SPECIFICATIONS CTA BANNER (home page) --- */
.specs-banner {
    background-color: var(--color-primary);
    padding: 3rem 0;
}

.specs-banner-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.specs-banner-text h2 {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.specs-banner-text h2::after {
    display: none;
}

.specs-banner-text p {
    color: #cbd5e1;
    max-width: 640px;
    margin: 0;
}

.specs-banner-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .specs-banner-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2.5rem;
    }
}

/* --- SPECIFICATIONS PAGE --- */
.specs-page .container {
    max-width: 960px;
}

.specs-header {
    margin-bottom: 2.5rem;
}

.specs-header h1 {
    margin-bottom: 1rem;
}

.specs-intro {
    color: var(--color-text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 760px;
}

.specs-identity {
    margin-bottom: 3rem;
}

.specs-identity th[scope="row"] {
    width: 34%;
    background-color: #f8fafc;
}

.spec-block {
    margin-bottom: 3.5rem;
}

.spec-block > h2 {
    margin-bottom: 0.25rem;
}

.spec-block .table-container {
    margin-top: 1.5rem;
}

.spec-note {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.spec-uses {
    margin-top: 1.5rem;
    background-color: var(--color-bg-light);
    border-left: 3px solid var(--color-accent);
    padding: 1rem 1.25rem;
    font-size: 0.98rem;
    line-height: 1.6;
}

.specs-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .specs-two-col {
        grid-template-columns: 1fr 1fr;
    }
}

.spec-list {
    padding: 1.25rem 1.5rem;
}

.spec-list ul {
    margin: 0;
    padding-left: 1.2rem;
}

.spec-list li {
    margin-bottom: 0.6rem;
    line-height: 1.55;
}

.spec-list li:last-child {
    margin-bottom: 0;
}

.specs-contact-cta {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 1rem;
}

.specs-contact-cta h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.specs-contact-cta p {
    max-width: 640px;
    margin: 1.25rem auto 1.75rem;
    line-height: 1.7;
}

.specs-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-dark {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-dark:hover {
    background-color: var(--color-primary-light);
    color: var(--color-text-light);
}

/* Honeypot spam trap – hidden from users, visible to bots. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
