/* --- Variables & Core Setup --- */
:root {
    --primary: #0f172a;      /* Deep Navy */
    --accent: #e67e22;       /* Baustelle Orange */
    --charcoal: #34495e;     /* Charcoal Gray */
    --bg-light: #f8fafc;     /* Soft Blue-Grey Background */
    --text-main: #334155;    /* Main Body Text */
    --text-light: #64748b;   /* Secondary/Caption Text */
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navbar --- */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-link { display: flex; align-items: center; text-decoration: none; }
.nav-logo { height: 32px; width: auto; transition: transform 0.2s ease; }
.logo-link:hover .nav-logo { transform: scale(1.02); }

/* --- Language Dropdown --- */
.lang-dropdown { position: relative; display: inline-block; }
.lang-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    min-width: 140px;
    z-index: 1000;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.lang-menu.show {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}
.lang-menu a:hover { background: #f8fafc; color: var(--accent); }

/* --- Hero Section --- */
.hero {
    background: var(--white);
    padding: 4rem 0 2rem 0; /* Changed from 6rem to 2rem at the bottom */
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 760px;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    color: var(--text-light);
    margin-bottom: 0;
    max-width: 600px;
}

.hero-actions { margin-top: 2rem; }

.hero-trust {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}
.hero-trust .ch-flag { display: inline-flex; line-height: 0; }




/* --- Strengths Section --- */
.strengths { padding: 2rem 0 6rem 0; }
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}
.strength-item { text-align: center; }

.sw-icon-svg { width: 30px; height: 30px; color: var(--charcoal); }
.sw-icon { font-size: 2rem; }

.strength-item h3 { font-size: 1.25rem; color: var(--charcoal); margin-bottom: 0.75rem; }
.strength-item p { color: var(--text-light); font-size: 0.95rem; }


/* --- Icon Boxes (General) --- */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 8px; /* Slightly rounded corners from image */
    background-color: #f1f5f9; /* The subtle light background color in image */
    border: 1px solid #e2e8f0; /* Optional: light border for structure */
    margin-bottom: 2rem;
}

/* --- The SVG Icon (General) --- */
.sw-icon-svg {
    width: 24px;
    height: 24px;
    display: block;
    color: var(--text-main); /* Default color for other icons */
    stroke-width: 2; /* Thinner stroke from original design */
}

/* --- THE FIX: Swiss Icon Specifics --- */
.icon-red {
    /* Set the box background back to the light color */
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

.icon-red .sw-icon-svg {
    /* ONLY THE SVG IS RED */
    color: #D52B1E; /* Official Swiss Red */
    stroke-width: 3.5; /* Keep it thick for the bold, authentic look */
}

/* The Red Square for the Flag */
.swiss-flag-base {
    width: 28px;
    height: 28px;
    background-color: #D52B1E;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensures no accidental overlap */
}

.sw-icon-svg-white {
    width: 24px;
    height: 24px;
    display: block;
    stroke: white;
    /* Extra thick for the long arms */
    stroke-width: 5.5px;
}

/* Ensure the outer box remains the standard light grey */
.icon-box {
    width: 60px;
    height: 60px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Services Section --- */
.services { background-color: var(--bg-light); padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 4rem; font-size: 2.5rem; color: var(--primary); font-weight: 800; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.service-card:hover { transform: translateY(-5px); }

.service-icon-svg {
    width: 44px;
    height: 44px;
    color: var(--charcoal);
    margin: 0 auto 1.5rem auto;
}

.card-body { margin-bottom: 1.5rem; flex-grow: 1; }
.card-body h3 { margin-bottom: 0.75rem; color: var(--primary); font-size: 1.4rem; }
.card-body p { font-size: 0.95rem; color: var(--text-light); }

.card-link {
    display: inline-block;
    margin-top: 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.card-link:hover { color: var(--charcoal); }

/* Variations */
.service-card.featured { border-color: var(--accent); }
.service-card.dimmed { opacity: 0.75; background: #fcfcfc; border-style: dashed; }
.service-card.feedback-card { background: linear-gradient(145deg, #ffffff, #f1f5f9); border-style: dashed; }

/* --- UI Elements & Height Alignment --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 2rem;
    min-height: 44px; /* Fixed height for all bottom elements */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); background-color: #d35400; }

.btn-small { width: 100%; max-width: 200px; margin: 0 auto; font-size: 0.9rem; }

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px; /* Matches the button height exactly */
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    background: #f1f5f9;
    color: var(--text-light);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #e2e8f0;
}

/* --- Bot Protection --- */
.spam-protected-link {
    margin-top: auto;
}

.rev-email { unicode-bidi: bidi-override; direction: rtl; }
.spam-protected-link .rev-email { display: none; } /* Hide the logic inside the button */

/* Visible text email in Impressum */
.spam-protected.rev-email {
    display: inline-block;
    cursor: pointer;
    direction: rtl;
    unicode-bidi: bidi-override;
}
.spam-protected.rev-email:hover { color: var(--accent); }

/* --- Impressum / legal pages --- */
.legal-text {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow);
    max-width: 640px;
}
.legal-lead { margin-bottom: 2rem; }
.legal-list {
    display: grid;
    grid-template-columns: minmax(110px, 190px) 1fr;
    gap: 1.1rem 2rem;
    margin: 0;
}
.legal-list dt { font-weight: 700; color: var(--primary); }
.legal-list dd { margin: 0; line-height: 1.7; }
.legal-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-text a:hover { color: var(--text-light); }

@media (max-width: 560px) {
    .legal-list { grid-template-columns: 1fr; gap: 0.3rem; }
    .legal-list dt { margin-top: 1.1rem; }
    .legal-list dt:first-of-type { margin-top: 0; }
}

/* --- Footer --- */
footer { background: var(--primary); color: #94a3b8; padding: 2rem 0; font-size: 0.9rem; margin-top: auto; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 1.5rem; }
footer a { color: var(--white); text-decoration: none; opacity: 0.7; }
footer a:hover { opacity: 1; color: var(--accent); }

@media (max-width: 768px) {
    .hero { padding: 5rem 0 3rem 0; }
    .footer-content { flex-direction: column; gap: 1.2rem; text-align: center; }
    .service-card { transform: none !important; }
}
/* Team */

.team-section {
    padding-top: 80px;      /* Adjust this based on your Header height */
    padding-bottom: 60px;
    margin-top: 40px;       /* Extra breathing room from the previous block */
    background-color: #fff; /* Or #f9f9f9 to distinguish the section */
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2.5rem;
}


.team-intro {
    text-align: center;
    color: var(--text-light);
    margin-top: -1.5rem;
    margin-bottom: 1rem;
}

.team-flex {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap; /* Important for mobile */
    margin-top: 2rem;
}

.team-card {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.member-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Circular photos look friendly */
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid #eee;
}

.role {
    display: block;
    color: #666;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- Contact --- */
.contact-card {
    max-width: 640px;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow);
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text-main);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.form-status.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.contact-aside {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Button loading state (contact form) */
.btn.is-loading { opacity: 0.85; cursor: progress; }
.btn-spinner {
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    margin-right: 0.55em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -0.15em;
    animation: btn-spin 0.6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }