/* AI goes Maritime – /apply */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/poppins-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy-900: #0b0a24;
  --navy-800: #141338;
  --navy-700: #1c1b4a;
  --navy-600: #26255e;
  --green: #34E08C;
  --text: #eef0fb;
  --muted: #b4b8d6;
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.05);
  --error: #ff8f8f;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--navy-900); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-900) linear-gradient(160deg, var(--navy-700) 0%, var(--navy-800) 45%, var(--navy-900) 100%) no-repeat;
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
}
main { flex: 1; position: relative; z-index: 1; padding-bottom: 64px; }
a { color: var(--green); }
a:hover { text-decoration: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.wheel {
  position: fixed;
  right: -160px;
  top: 90px;
  width: 620px;
  height: 620px;
  background: url('wheel.svg') no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* Header / Footer */
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; max-width: 1100px; }
.logo { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.08em; font-size: 15px; }
.logo span { color: var(--green); font-weight: 500; letter-spacing: 0; margin-left: 4px; font-size: 13px; }
.header-nav { display: flex; gap: 18px; }
.header-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.header-nav a:hover { color: var(--green); }
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; max-width: 1100px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--green); }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 28px; }
.eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 600; margin: 0 0 10px; }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
.accent { color: var(--green); }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 32px; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.role { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.roles-title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.role h3 { font-size: 19px; margin: 0 0 4px; color: var(--green); }
.role-meta { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.role p { margin: 0 0 10px; }
.role-link { font-weight: 600; text-decoration: none; color: var(--green); }
a.role-card { display: block; color: var(--text); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease; }
a.role-card:hover, a.role-card:focus-visible { border-color: var(--green); background: rgba(52, 224, 140, 0.06); transform: translateY(-2px); }
a.role-card .role-link { display: inline-block; margin-top: 4px; }
.anchor { display: block; position: relative; top: -20px; visibility: hidden; }

/* Detailseite */
.job { padding-top: 32px; max-width: 1100px; }
.crumbs { margin: 0 0 18px; font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.job-head h1 { font-size: clamp(28px, 4.2vw, 42px); margin-bottom: 8px; }
.role-meta.big { font-size: 16px; margin-bottom: 22px; }
.job-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.btn { text-decoration: none; text-align: center; }
.btn-ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-ghost:hover { background: rgba(52, 224, 140, 0.1); box-shadow: inset 0 0 0 2px var(--green); }
.job-body { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.job-body.has-image { grid-template-columns: minmax(0, 1fr) 360px; }
.job-text > p { margin: 0 0 14px; font-size: 17px; }
.job-text .lead.strong { color: var(--text); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.job-section { margin: 34px 0 0; }
.job-section h2 { color: var(--green); font-size: 20px; margin: 0 0 12px; }
.job-section p { margin: 0 0 12px; }
ul.ticks { list-style: none; margin: 0 0 14px; padding: 0; }
ul.ticks li { position: relative; padding-left: 30px; margin: 0 0 10px; }
ul.ticks li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.apply-box { margin-top: 44px; }
.apply-box h2 { margin: 0 0 16px; font-size: 24px; }
.apply-box h3 { margin: 0 0 6px; font-size: 17px; color: var(--green); }
.apply-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 18px; }
.apply-options p { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.job-image { position: sticky; top: 24px; }
.job-image img { width: 100%; height: auto; display: block; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
@media (max-width: 900px) {
  .job-body.has-image { grid-template-columns: 1fr; }
  .job-image { position: static; max-width: 420px; }
}

/* Card / Form */
.card { background: rgba(10, 9, 34, 0.55); border: 1px solid var(--line); border-radius: 18px; padding: 32px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.form-title { margin: 0 0 4px; font-size: 24px; }
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
fieldset.field { margin-inline: 0; }
.label { display: block; font-weight: 600; margin-bottom: 8px; padding: 0; }
.label.small { font-size: 14px; }
.opt { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 10px; }
.hint.small { font-size: 13px; margin-top: 10px; }
.hint.strong { color: var(--green); font-weight: 500; }
#one-line-q.q { color: var(--green); font-weight: 500; font-size: 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* verhindert Zoom auf iOS */
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
select option { color: #111; }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(52, 224, 140, 0.25); }

input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(52, 224, 140, 0.5);
  border-radius: 10px;
  padding: 12px;
}
input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--green);
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  margin-right: 12px;
  cursor: pointer;
}

.choice-group { display: flex; flex-direction: column; gap: 8px; }
.choice-group.inline { flex-direction: row; flex-wrap: wrap; gap: 8px 12px; }
.choice, .check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.choice { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; align-items: center; }
.choice:has(input:checked) { border-color: var(--green); background: rgba(52, 224, 140, 0.08); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--green); width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; }
.choice input { margin: 0; }
.sub { margin-top: 14px; }
.shortlist-box { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.notice-card { margin-bottom: 20px; }
.notice-card h2 { margin: 0 0 6px; font-size: 20px; color: var(--green); }
.notice-card p { margin: 0; }
.choice[hidden] { display: none; }
.shortlist-box.on { border-color: var(--green); background: rgba(52, 224, 140, 0.08); }

.counter { text-align: right; font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.error { color: var(--error); font-size: 14px; margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.notice { color: var(--green); font-weight: 600; margin: 8px 0 0; }
.alert { background: rgba(255, 120, 120, 0.12); border: 1px solid rgba(255, 143, 143, 0.5); color: #ffd2d2; border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  color: var(--navy-900);
  background: var(--green);
  border: 0;
  border-radius: 999px;
  padding: 14px 34px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(52, 224, 140, 0.25); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.progress { margin: 0 0 20px; }
.progress-bar { height: 10px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width 0.25s ease; }
#progress-text { font-size: 14px; color: var(--muted); margin: 8px 0 0; }

.thanks { text-align: center; padding: 56px 32px; }
.thanks h2 { color: var(--green); font-size: 30px; margin: 0 0 8px; }
.thanks p { font-size: 18px; margin: 0 0 6px; }

/* Datenschutzseite */
.prose { padding-top: 48px; }
.prose h1 { font-size: clamp(28px, 4vw, 38px); }
.prose h2 { color: var(--green); font-size: 19px; margin: 30px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose .meta { color: var(--muted); font-size: 14px; margin-top: 32px; }

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 22px 16px; border-radius: 14px; }
  .hero { padding-top: 36px; }
  .wheel { width: 420px; height: 420px; right: -180px; top: 60px; }
  .header-nav { display: none; }
  .btn { width: 100%; }
  .choice-group.inline .choice { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
