/* Terravia – Personalvermittlung Südosteuropa
 * Farben: Grün, Weiß, Dunkel/Schwarz. Keine externen Schriften (DSGVO-freundlich).
 */
:root {
  --black: #050706;
  --dark: #0b110e;
  --dark-2: #111915;
  --dark-3: #18221d;
  --line-dark: #223029;
  --green: #2fbf71;
  --green-bright: #4ade80;
  --green-dark: #1e8f52;
  --green-soft: rgba(47, 191, 113, 0.12);
  --white: #ffffff;
  --light: #f3f6f4;
  --text-light: #e8efea;
  --muted-light: #9fb0a6;
  --text-dark: #0f1712;
  --muted-dark: #52615a;
  --line-light: #dde5e0;
  --radius: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--dark);
  color: var(--text-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: break-word; hyphens: auto; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--black);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 6, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1.3rem; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 38px; height: 38px; display: block; flex: none; }
.logo small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--muted-light); letter-spacing: 0.04em; text-transform: uppercase; margin-top: -3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted-light); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--white); background: var(--dark-3); text-decoration: none; }
.nav a.active { color: var(--green-bright); }
.nav .btn { margin-left: 8px; }
.nav a.btn-green, .nav a.btn-green:hover { color: var(--black); background: var(--green); }
.nav a.btn-green:hover { background: var(--green-bright); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: var(--white);
  border-radius: 8px; padding: 6px 11px; font-size: 1.2rem; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.97rem; font-family: inherit; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-green { background: var(--green); color: var(--black); }
.btn-green:hover { background: var(--green-bright); }
.btn-ghost { background: transparent; color: var(--white); border-color: #34463c; }
.btn-ghost:hover { border-color: var(--green); color: var(--green-bright); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--dark-3); }
.btn-whatsapp { background: #25d366; color: #062b14; }
.btn-whatsapp:hover { background: #3ee07a; }
.btn-small { padding: 8px 15px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(47, 191, 113, 0.18), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(47, 191, 113, 0.08), transparent 60%),
    var(--black);
  padding: 90px 0 100px;
}
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green-bright); background: var(--green-soft); border: 1px solid rgba(47, 191, 113, 0.3);
  padding: 5px 13px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0 0 20px; color: var(--white); }
.hero h1 em { font-style: normal; color: var(--green-bright); }
.hero p.lead { font-size: 1.15rem; color: var(--muted-light); margin: 0 0 32px; max-width: 580px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-langs { margin-top: 28px; font-size: 0.9rem; color: var(--muted-light); }
.hero-langs a { color: var(--text-light); border-bottom: 1px dashed #3b4d43; margin-left: 6px; }
.hero-langs a:hover { color: var(--green-bright); text-decoration: none; }

.route-card {
  background: linear-gradient(180deg, var(--dark-2), var(--black));
  border: 1px solid var(--line-dark); border-radius: 20px; padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.route-card h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-light); margin: 0 0 8px; font-weight: 600; }
.route-card svg { width: 100%; height: auto; display: block; }
.route-card .legend { display: flex; gap: 16px; font-size: 0.8rem; color: var(--muted-light); margin-top: 8px; flex-wrap: wrap; }
.route-card .legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.route-card .legend .eu::before { background: var(--green-bright); }
.route-card .legend .wb::before { background: transparent; border: 2px solid var(--green-bright); width: 7px; height: 7px; }

.route-path { stroke-dasharray: 5 6; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .route-path { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Trust bar ---------- */
.trust { background: var(--dark-2); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 26px 20px; border-right: 1px solid var(--line-dark); }
.trust-item:last-child { border-right: none; }
.trust-item strong { display: block; color: var(--white); font-size: 1.02rem; }
.trust-item span { color: var(--muted-light); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-black { background: var(--black); }
.section-light { background: var(--light); color: var(--text-dark); }
.section-white { background: var(--white); color: var(--text-dark); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--green); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 14px; }
.section-head p { margin: 0; font-size: 1.07rem; color: var(--muted-light); }
.section-light .section-head p, .section-white .section-head p { color: var(--muted-dark); }
.section-light .kicker, .section-white .kicker { color: var(--green-dark); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* Leistungen (helle Karten) */
.service {
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 28px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.service:hover { border-color: var(--green); box-shadow: 0 12px 30px rgba(15, 23, 18, 0.08); }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--black); color: var(--green-bright); margin-bottom: 18px;
}
.icon svg { width: 22px; height: 22px; }
.service h3 { margin: 0 0 8px; font-size: 1.12rem; }
.service p { margin: 0; color: var(--muted-dark); font-size: 0.97rem; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative; background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 24px 20px;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 1.8rem; font-weight: 800; color: var(--green); margin-bottom: 12px; font-variant-numeric: tabular-nums;
}
.step h3 { margin: 0 0 8px; font-size: 1.02rem; color: var(--white); }
.step p { margin: 0; color: var(--muted-light); font-size: 0.92rem; }

/* Branchen (schwarze Kacheln) */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sector {
  background: var(--black); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 22px;
  transition: border-color 0.15s;
}
.sector:hover { border-color: var(--green); }
.sector .icon { background: var(--dark-3); margin-bottom: 14px; }
.sector h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--white); }
.sector p { margin: 0; color: var(--muted-light); font-size: 0.88rem; }

/* Länder */
.countries { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.country-group { background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 28px; }
.country-group h3 { margin: 0 0 6px; color: var(--white); }
.country-group > p { margin: 0 0 18px; color: var(--muted-light); font-size: 0.95rem; }
.country-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.country-list li {
  display: flex; align-items: center; gap: 10px; background: var(--black); border: 1px solid var(--line-dark);
  padding: 8px 14px 8px 8px; border-radius: 999px; font-size: 0.93rem;
}
.cc {
  font-size: 0.72rem; font-weight: 800; background: var(--green); color: var(--black);
  border-radius: 999px; padding: 3px 7px; letter-spacing: 0.04em;
}
.country-group.wb .cc { background: transparent; color: var(--green-bright); box-shadow: inset 0 0 0 1.5px var(--green-bright); }

/* Über uns */
.about-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; }
.check {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: var(--black);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 900; margin-top: 2px;
}
.about-panel {
  background: var(--black); color: var(--text-light); border-radius: 20px; padding: 36px;
  position: relative; overflow: hidden;
}
.about-panel::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 191, 113, 0.35), transparent 70%);
}
.about-panel blockquote { margin: 0; font-size: 1.25rem; line-height: 1.5; color: var(--white); position: relative; z-index: 1; }
.about-panel .sig { margin-top: 18px; color: var(--green-bright); font-weight: 600; position: relative; z-index: 1; }
.about-panel .facts { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: grid; gap: 10px; position: relative; z-index: 1; }
.about-panel .facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 0.93rem; }
.about-panel .facts span:first-child { color: var(--muted-light); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 650; font-size: 1.05rem; color: var(--white); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--green-bright); font-size: 1.5rem; font-weight: 400; transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted-light); }

/* ---------- Formulare ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 14px; }
.contact-info > p { color: var(--muted-light); margin: 0 0 28px; }
.contact-lines { display: grid; gap: 14px; }
.contact-line {
  display: flex; gap: 14px; align-items: center; background: var(--dark-2); border: 1px solid var(--line-dark);
  border-radius: 12px; padding: 14px 16px; color: var(--text-light);
}
.contact-line:hover { border-color: var(--green); text-decoration: none; }
.contact-line .icon { width: 40px; height: 40px; margin: 0; background: var(--dark-3); }
.contact-line small { display: block; color: var(--muted-light); font-size: 0.8rem; }

.form-card { background: var(--white); color: var(--text-dark); border-radius: 20px; padding: 34px; }
.form-card h3 { margin: 0 0 4px; font-size: 1.3rem; }
.form-card .sub { margin: 0 0 22px; color: var(--muted-dark); font-size: 0.93rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-light); border-radius: 10px;
  font: inherit; font-size: 0.97rem; background: var(--light); color: var(--text-dark);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.2); background: var(--white);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d64545; }
.error-msg { display: none; color: #c23030; font-size: 0.8rem; margin-top: 4px; }
.field.invalid .error-msg { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted-dark); }
.consent input { margin-top: 4px; accent-color: var(--green-dark); }
.consent.invalid { color: #c23030; }
.consent a { color: var(--green-dark); }
.form-note { font-size: 0.8rem; color: var(--muted-dark); margin: 12px 0 0; }
.form-status { display: none; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-size: 0.95rem; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f8ee; border: 1px solid #b5e8cb; color: #145c35; }
.form-status.err { background: #fdecec; border: 1px solid #f3c1c1; color: #8f1f1f; }

/* ---------- Bewerberseite ---------- */
.lang-switch { display: flex; gap: 4px; background: var(--dark-3); border: 1px solid var(--line-dark); border-radius: 10px; padding: 3px; }
.lang-switch button {
  background: none; border: none; color: var(--muted-light); font: inherit; font-size: 0.85rem; font-weight: 700;
  padding: 6px 10px; border-radius: 7px; cursor: pointer;
}
.lang-switch button:hover { color: var(--white); }
.lang-switch button[aria-pressed="true"] { background: var(--green); color: var(--black); }
.lang-pick { margin-bottom: 36px; }
.lang-pick p { margin: 0 0 10px; color: var(--muted-light); font-size: 0.9rem; }
.lang-switch-big { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; }
.lang-switch-big button { font-size: 1rem; padding: 11px 18px; }

.worker-hero { padding: 80px 0 70px; }
.worker-hero .container { display: block; max-width: 860px; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit { background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 24px; }
.benefit h3 { margin: 0 0 6px; font-size: 1.05rem; }
.benefit p { margin: 0; color: var(--muted-dark); font-size: 0.95rem; }
.free-badge {
  display: inline-block; background: var(--green); color: var(--black); font-weight: 800;
  border-radius: 8px; padding: 3px 10px; font-size: 0.85rem; margin-bottom: 12px;
}

/* ---------- Rechtliches ---------- */
.prose { max-width: 780px; margin: 0 auto; overflow-wrap: break-word; hyphens: auto; }
.prose h1 { overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); margin: 0 0 20px; }
.prose h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.prose p { color: var(--muted-dark); }
.placeholder-note { background: #fff7e0; border: 1px solid #f0d98a; color: #6b5200; padding: 12px 16px; border-radius: 10px; font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line-dark); padding: 56px 0 26px; font-size: 0.93rem; color: var(--muted-light); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); margin: 0 0 12px; font-size: 0.95rem; }
.site-footer a { display: block; color: var(--muted-light); margin-bottom: 7px; }
.site-footer a:hover { color: var(--green-bright); text-decoration: none; }
.site-footer .logo { margin-bottom: 14px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--black); border-bottom: 1px solid var(--line-dark); padding: 12px 20px 20px;
  }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
  .hero { padding: 60px 0 70px; }
  .hero .container, .grid-2, .contact-wrap, .countries { grid-template-columns: 1fr; }
  .grid-3, .benefits { grid-template-columns: 1fr; }
  .trust .container { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .steps, .sectors, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .form-card, .about-panel { padding: 24px; }
  .trust .container { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--line-dark); }
  .trust-item:last-child { border-bottom: none; }
  .header-langs { display: none; }
}

/* Lange deutsche Wörter (z. B. Arbeitnehmerüberlassung) und sehr schmale Handys */
body { overflow-wrap: break-word; hyphens: auto; }
.grid-2 > *, .grid-3 > *, .countries > *, .contact-wrap > *, .steps > *, .sectors > * { min-width: 0; }
.contact-line span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .logo { font-size: 1.1rem; gap: 8px; }
  .lang-switch button { padding: 6px 7px; }
  .about-panel, .form-card { padding: 20px; }
}
