/* =============================================
   trabusco.com – Styles
   Farbschema: Dunkles Navy + Gold-Akzent
   ============================================= */

:root {
    --primary: #1a2744;
    --primary-light: #243352;
    --accent: #c8a44e;
    --accent-hover: #d9be6e;
    --accent-dark: #a8893a;
    --text: #2d2d2d;
    --text-light: #5a5a5a;
    --text-lighter: #888;
    --bg: #ffffff;
    --bg-alt: #f6f4ef;
    --bg-dark: #0f1a2e;
    --border: rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 2px 16px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; text-align: center; margin-bottom: 12px; color: var(--primary); }
.section-desc { text-align: center; color: var(--text-light); max-width: 600px; margin: 0 auto 56px; font-size: 1.1rem; }

/* Grid */
.grid { display: grid; gap: 32px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Buttons */
.btn { display: inline-block; padding: 14px 36px; border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all var(--transition); border: 2px solid transparent; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,164,78,0.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-full { width: 100%; text-align: center; }

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 76px; }

/* Logo */
.logo { display: flex; align-items: baseline; gap: 10px; }
.logo-main { font-size: 1.7rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo-sub { font-size: 0.7rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }

/* Nav Links */
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-light); transition: color var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width var(--transition); }
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--accent); color: var(--primary) !important; padding: 10px 24px; border-radius: var(--radius); font-weight: 600 !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-hover) !important; color: var(--primary) !important; transform: translateY(-1px); }

/* Mobile Toggle — X icon */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    width: 32px;
    height: 32px;
    z-index: 1001;
}
.nav-toggle span { display: none; }
.nav-toggle::before, .nav-toggle::after {
    content: '';
    position: absolute;
    left: 4px;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle::before { top: 8px; }
.nav-toggle::after { bottom: 8px; }
.nav-toggle.open::before { top: 15px; transform: rotate(45deg); }
.nav-toggle.open::after { bottom: 15px; transform: rotate(-45deg); }

/* Mobile overlay backdrop */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition);
}
.nav-backdrop.show { display: block; opacity: 1; }

/* =============================================
   HERO — with background image
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(145deg, var(--primary) 0%, var(--bg-dark) 60%, #0a1220 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/hero-warehouse.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.18;
    transition: opacity 0.3s;
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200,164,78,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(200,164,78,0.05) 0%, transparent 40%);
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; padding: 140px 0 100px; max-width: 820px; }
.hero-tag { font-size: 0.85rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 800; line-height: 1.1; margin-bottom: 28px; letter-spacing: -0.5px; }
.hero .accent { color: var(--accent); position: relative; }
.hero-sub { font-size: 1.15rem; line-height: 1.9; opacity: 0.8; margin-bottom: 44px; max-width: 560px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* =============================================
   PROOF BAR
   ============================================= */
.proof-bar {
    background: var(--primary);
    padding: 32px 0;
    border-bottom: 3px solid var(--accent);
}
.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    color: #fff;
}
.proof-number { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1.2; }
.proof-label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; margin-top: 4px; }

/* =============================================
   CARDS (Kernkompetenzen)
   ============================================= */
.card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--border);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(200,164,78,0.2); }
.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.card-body {
    padding: 32px 28px 36px;
}
.card-icon {
    width: 60px; height: 60px; background: linear-gradient(135deg, var(--bg-alt), #ede8d8);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px; color: var(--accent-dark);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.75; }

/* =============================================
   SPLIT (Über uns)
   ============================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--primary); margin-bottom: 24px; line-height: 1.3; }
.split p { color: var(--text-light); margin-bottom: 18px; font-size: 1.05rem; }
.split .btn { margin-top: 12px; }
.image-placeholder {
    width: 100%; aspect-ratio: 4/3;
    border-radius: var(--radius-lg); display: block;
    object-fit: cover;
}

/* =============================================
   FEATURES (Vorteile)
   ============================================= */
.feature { text-align: center; padding: 40px 24px; }
.feature-icon { width: 52px; height: 52px; margin: 0 auto 18px; color: var(--accent-dark); }
.feature-icon svg { width: 100%; height: 100%; }
.feature h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.feature p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* =============================================
   CONTACT
   ============================================= */
.section-contact { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-item { margin-bottom: 32px; }
.contact-item h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-dark); margin-bottom: 10px; font-weight: 700; }
.contact-item p { color: var(--text); line-height: 1.8; }
.contact-item a { color: var(--accent-dark); transition: color var(--transition); }
.contact-item a:hover { color: var(--primary); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 16px 18px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 1rem; font-family: inherit;
    background: var(--bg); transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,164,78,0.15); }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.5); padding: 56px 0 36px; }
.footer-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand .logo-main { color: #fff; font-size: 1.4rem; }
.footer-brand .logo-sub { color: var(--accent); }
.footer-links, .footer-legal { display: flex; gap: 24px; }
.footer-links a, .footer-legal a { font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover, .footer-legal a:hover { color: #fff; }
.footer-copy { width: 100%; text-align: center; font-size: 0.78rem; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); }

/* =============================================
   DANKE-Seite
   ============================================= */
.thank-you { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--bg-alt); }
.thank-you h1 { font-size: 2.5rem; color: var(--primary); margin-bottom: 16px; }
.thank-you p { color: var(--text-light); font-size: 1.15rem; margin-bottom: 32px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 48px; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .section { padding: 72px 0; }
}
/* Mobile: horizontal scroll nav, no hamburger */
.nav-toggle, .nav-backdrop { display: none !important; }
.nav-container { flex-wrap: nowrap; }
.nav-links { flex-wrap: nowrap; }

.hero { min-height: 90vh; }
.hero h1 { font-size: 2rem; }
.hero-content { padding: 120px 0 60px; }
.proof-bar { padding: 24px 0; }
.proof-number { font-size: 1.5rem; }
.footer-content { flex-direction: column; text-align: center; }
@media (max-width: 768px) {
    .nav-container { gap: 0; }
    .nav-links {
        gap: 0.8rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-left: auto;
        padding-right: 8px;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a { white-space: nowrap; font-size: 0.82rem; }
    .nav-cta { padding: 6px 14px; font-size: 0.78rem; }
    .lang-switch { margin-left: 0.3rem; }
    .flag-icon { font-size: 1.1rem; }
    .lang-btn { padding: 2px 4px; }
    .logo-main { font-size: 1.3rem; }
    .logo-sub { font-size: 0.55rem; }
    .hero h1 { font-size: 2rem; }
    .hero-content { padding: 120px 0 60px; }
    .proof-number { font-size: 1.5rem; }
    .footer-content { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-sub { font-size: 1rem; }
    .section { padding: 56px 0; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* Language Switcher — Flags */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
}
.lang-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    padding: 2px 4px;
    transition: all var(--transition);
    line-height: 1;
}
.lang-btn:hover {
    border-color: var(--accent);
    transform: scale(1.1);
}
.lang-btn.active {
    border-color: var(--accent);
    background: rgba(200,164,78,0.08);
}
.flag-icon {
    font-size: 1.3rem;
    display: block;
    line-height: 1;
}
