:root {
  --blue: #022a65;
  --blue-2: #0a438f;
  --red: #ba0005;
  --orange: #e25015;
  --ink: #101828;
  --muted: #53606f;
  --paper: #fffdf8;
  --paper-2: #f6f3ec;
  --line: rgba(2, 42, 101, .18);
  --shadow: 0 18px 45px rgba(2, 42, 101, .12);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 16px 16px, rgba(2,42,101,.045) 1px, transparent 1.5px) 0 0/32px 32px,
    linear-gradient(180deg, #fff 0%, #fbfaf6 38%, #f5f2ea 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(90deg, rgba(2,42,101,.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(2,42,101,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 65%);
  z-index: -1;
}

a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 999; padding: 10px 14px; background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.skip-link:focus { left: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--blue); min-width: 0; }
.brand-logo { width: 190px; height: auto; max-height: 58px; object-fit: contain; }
.brand-domain { font-size: .9rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 24px; font-weight: 800; font-size: .93rem; }
.main-nav a:not(.btn) { text-decoration: none; color: #161b22; }
.main-nav a:not(.btn):hover { color: var(--red); }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 28px; height: 3px; margin: 5px 0; background: var(--blue); border-radius: 99px; }

.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 9px;
  color: var(--btn-fg);
  background: var(--btn-bg);
  box-shadow: 0 8px 0 rgba(2,42,101,.12);
  font-weight: 900;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  clip-path: polygon(1% 6%, 97% 1%, 100% 92%, 3% 100%);
}
.btn::after { content: "→"; font-weight: 900; }
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 11px 0 rgba(2,42,101,.12); filter: brightness(1.03); }
.btn-primary { --btn-bg: var(--red); }
.btn-secondary { --btn-bg: #fff; --btn-fg: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { color: var(--blue); }
.btn-small { min-height: 40px; padding: 9px 16px; }
.btn-footer { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.75); box-shadow: none; }

.section { padding: 44px 0; }
.section-paper { position: relative; overflow: clip; }
.hero { padding: 54px 0 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); align-items: center; gap: 30px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; margin: 0 0 18px; font-weight: 900; letter-spacing: .02em; }
.paper-label { padding: 8px 14px; color: #fff; clip-path: polygon(1% 8%, 98% 0, 100% 88%, 0 100%); }
.blue-label { background: var(--blue); }
.hero-title { margin: 0 0 18px; font-size: clamp(3.35rem, 7.4vw, 7.4rem); line-height: .9; letter-spacing: -0.065em; color: var(--blue); }
.word-chip { display: inline-block; color: #fff; padding: .02em .16em .08em; transform: rotate(-1.5deg); clip-path: polygon(2% 8%, 99% 0, 96% 92%, 0 100%); text-shadow: 0 2px 0 rgba(0,0,0,.08); }
.chip-blue { background: var(--blue); }
.chip-red { background: var(--red); margin-left: .06em; transform: rotate(1.2deg); }
.small-chip { font-size: .55em; letter-spacing: -.035em; vertical-align: middle; margin-right: .08em; }
.tech-word { display: inline-block; color: var(--blue); background: rgba(255,255,255,.75); padding: 0 .06em .04em; border-bottom: 8px solid rgba(2,42,101,.14); clip-path: polygon(0 5%, 100% 1%, 98% 96%, 2% 100%); }
.hero-text { margin: 0 0 24px; max-width: 620px; font-size: 1.18rem; font-weight: 650; color: #1f2937; }
.hero-text strong { color: var(--red); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.mail-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 850; }
.hero-visual { position: relative; min-height: 560px; display: grid; place-items: center; }
.azubi-logo { width: min(100%, 610px); filter: drop-shadow(0 22px 30px rgba(2,42,101,.2)); transform: rotate(.5deg); }
.machine-sketch {
  position: absolute;
  right: 0;
  top: 9%;
  width: 230px;
  height: 210px;
  border: 5px solid rgba(2,42,101,.22);
  border-radius: 18px;
  transform: rotate(-4deg);
  opacity: .55;
}
.machine-sketch::before,
.machine-sketch::after {
  content: ""; position: absolute; border: 5px solid var(--blue); opacity: .32;
}
.machine-sketch::before { width: 80px; height: 80px; right: 20px; top: 28px; border-radius: 50%; }
.machine-sketch::after { width: 130px; height: 56px; left: 28px; bottom: 28px; }
.doodle { position: absolute; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--blue); font-size: 5rem; font-weight: 900; line-height: 1; z-index: 0; }
.doodle-star { top: 4%; left: 4%; transform: rotate(-16deg); }
.doodle-arrow { top: 5%; right: 6%; color: var(--red); transform: rotate(-14deg); }

.paper-card {
  position: relative;
  background: rgba(255,253,248,.94);
  border: 1px solid rgba(2,42,101,.11);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.paper-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), transparent 42%),
    radial-gradient(circle at 18px 18px, rgba(2,42,101,.045) 1px, transparent 1.4px) 0 0/26px 26px;
  mix-blend-mode: multiply;
}
.torn-wide { clip-path: polygon(0 6%, 7% 0, 16% 4%, 26% 1%, 42% 5%, 56% 1%, 69% 5%, 82% 1%, 100% 6%, 99% 94%, 89% 100%, 76% 96%, 63% 100%, 50% 96%, 38% 100%, 24% 96%, 13% 100%, 1% 94%); }
.benefits { padding: 6px 0 30px; }
.benefit-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 24px; }
.benefit-item { display: grid; grid-template-columns: 58px 1fr; gap: 16px; padding: 8px 18px; border-right: 2px dashed rgba(2,42,101,.18); align-items: center; }
.benefit-item:last-child { border-right: 0; }
.icon { width: 58px; height: 58px; }
.benefit-item h2 { margin: 0 0 4px; color: var(--blue); font-size: 1rem; }
.benefit-item p { margin: 0; color: var(--muted); font-size: .92rem; font-weight: 600; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head.compact { display: block; }
.section-head p { margin: 0; max-width: 530px; color: var(--muted); font-weight: 650; }
.section-title {
  display: inline-block;
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -.04em;
  padding: 13px 22px 15px;
  clip-path: polygon(1% 7%, 98% 0, 100% 87%, 0 100%);
  box-shadow: 0 12px 0 rgba(2,42,101,.09);
}
.blue-strip { background: var(--blue); }
.red-strip { background: var(--red); }
.small-title { font-size: clamp(1.45rem, 3vw, 2.15rem); }

.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.job-card { min-height: 170px; display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding: 24px; clip-path: polygon(1% 4%, 97% 0, 100% 94%, 3% 100%); }
.job-card::after {
  content: "★";
  position: absolute;
  right: 18px;
  top: 12px;
  color: var(--red);
  font-size: 22px;
  transform: rotate(12deg);
}
.job-icon { width: 70px; height: 70px; }
.job-card h3 { margin: 0 0 8px; color: var(--blue); line-height: 1.18; font-size: 1.08rem; }
.job-card p { margin: 0; color: #344054; font-weight: 610; font-size: .95rem; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card { padding: 24px; clip-path: polygon(2% 3%, 100% 0, 98% 96%, 0 100%); }
.why-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; color: var(--red); font-size: 2.4rem; font-weight: 950; line-height: 1; margin-bottom: 8px; }
.why-card h3 { margin: 0 0 6px; color: var(--blue); font-size: 1rem; }
.why-card p { margin: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.step { padding: 28px 20px 24px; text-align: center; clip-path: polygon(1% 4%, 100% 0, 98% 95%, 3% 100%); }
.step-number { position: absolute; top: -13px; left: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-weight: 950; border: 4px solid #fff; box-shadow: 0 6px 12px rgba(2,42,101,.2); }
.step-icon { width: 68px; height: 68px; margin: 0 auto 10px; }
.step h3 { margin: 0 0 8px; color: var(--blue); font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }

.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.voice-card { padding: 18px; display: grid; grid-template-columns: 86px 1fr; column-gap: 16px; align-items: start; clip-path: polygon(1% 4%, 100% 0, 98% 95%, 3% 100%); }
.voice-card blockquote { margin: 0; font-weight: 700; color: #1f2937; }
.voice-card p { grid-column: 2; margin: 10px 0 0; color: var(--blue); font-size: .9rem; line-height: 1.35; }
.avatar { width: 84px; height: 84px; border-radius: 16px; border: 5px solid #fff; box-shadow: 0 8px 20px rgba(2,42,101,.14); background-size: cover; background-position: center; }
.avatar-one { background-image: linear-gradient(135deg, #dae8f6, #fff), radial-gradient(circle at 50% 34%, #d6a574 0 15px, transparent 16px); }
.avatar-two { background-image: linear-gradient(135deg, #eaf0f7, #fff); }
.avatar-three { background-image: linear-gradient(135deg, #e6edf5, #fff); }
.note { font-size: .92rem; color: var(--muted); }

.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 900; color: var(--blue); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "⌄"; position: absolute; right: 20px; top: 14px; font-size: 1.5rem; color: var(--blue); transition: transform .16s ease; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--muted); font-weight: 600; }

.form-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.form-copy p { color: var(--muted); font-size: 1.05rem; font-weight: 650; }
.contact-note { padding: 22px; margin-top: 26px; clip-path: polygon(1% 4%, 100% 0, 98% 95%, 3% 100%); }
.contact-note h3 { color: var(--blue); margin: 0 0 10px; }
.contact-note p { margin: 0 0 12px; font-size: .98rem; color: #344054; }
.apply-form { padding: 28px; clip-path: polygon(1% 2%, 99% 0, 100% 98%, 2% 100%); }
.apply-form label { display: grid; gap: 7px; font-weight: 900; color: var(--blue); }
.apply-form input:not([type="checkbox"]), .apply-form select, .apply-form textarea {
  width: 100%;
  border: 2px solid rgba(2,42,101,.18);
  border-radius: 12px;
  background: #fff;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}
.apply-form textarea { resize: vertical; }
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus { outline: 3px solid rgba(226,80,21,.25); border-color: var(--orange); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.apply-form > label, .file-grid, .check-row { margin-top: 16px; }
.file-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.file-box { padding: 16px; border: 2px dashed rgba(2,42,101,.25); border-radius: 14px; background: rgba(255,255,255,.68); }
.file-box small { color: var(--muted); font-weight: 650; }
.check-row { display: grid !important; grid-template-columns: 22px 1fr; gap: 12px !important; color: #344054 !important; font-weight: 650 !important; align-items: start; }
.check-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); }
.form-submit { margin-top: 18px; width: 100%; }
.form-footnote { text-align: center; color: var(--muted); font-weight: 650; }
.hp-field { position: absolute !important; left: -10000px !important; opacity: 0 !important; }
.form-alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; font-weight: 800; }
.form-alert.is-error { background: #fff1f1; color: #9b0005; border: 1px solid #f3b2b4; }
.form-alert.is-success { background: #eefbf3; color: #166534; border: 1px solid #9ee6b5; }

.site-footer { margin-top: 40px; padding: 44px 0 20px; background: var(--blue); color: #fff; clip-path: polygon(0 3%, 10% 0, 24% 2%, 42% 0, 66% 3%, 82% 0, 100% 3%, 100% 100%, 0 100%); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.site-footer h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1; }
.site-footer p { margin: 0 0 18px; color: rgba(255,255,255,.82); font-weight: 650; }
.footer-actions { display: flex; gap: 14px; flex-wrap: wrap; }
address { font-style: normal; line-height: 1.8; color: rgba(255,255,255,.88); }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.24); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem; color: rgba(255,255,255,.75); }

@media (max-width: 1050px) {
  .brand-domain { display: none; }
  .hero-grid, .form-layout, .faq-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: auto; }
  .benefit-strip { grid-template-columns: repeat(2, 1fr); }
  .benefit-item:nth-child(2) { border-right: 0; }
  .benefit-item:nth-child(1), .benefit-item:nth-child(2) { border-bottom: 2px dashed rgba(2,42,101,.18); }
  .job-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .voices-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .container { width: min(100% - 28px, var(--container)); }
  .site-header { position: sticky; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; top: 76px; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 6px; }
  .main-nav .btn { margin-top: 8px; }
  .brand-logo { width: 152px; }
  .header-inner { min-height: 70px; }
  .hero { padding-top: 32px; }
  .hero-title { font-size: clamp(3rem, 18vw, 5rem); }
  .benefit-strip, .job-grid, .why-grid, .steps, .voices-grid, .footer-grid, .file-grid, .form-row { grid-template-columns: 1fr; }
  .benefit-item { border-right: 0; border-bottom: 2px dashed rgba(2,42,101,.18); padding: 14px 6px; }
  .benefit-item:last-child { border-bottom: 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .voice-card { grid-template-columns: 70px 1fr; }
  .avatar { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Fix: Zahlen bei "So bewirbst du dich" vollständig anzeigen */
.application-steps,
.steps-grid,
.process-steps,
.process-grid {
    overflow: visible;
    padding-top: 24px;
}

.application-step,
.step-card,
.process-step {
    position: relative;
    overflow: visible;
    padding-top: 56px;
}

.step-number,
.process-number,
.application-step-number {
    position: absolute;
    top: 16px;
    left: 22px;
    z-index: 10;

    width: 38px;
    height: 38px;
    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #BA0005;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
/* Custom Upload-Felder */
.upload-box {
    border: 2px dashed rgba(2, 42, 101, 0.28);
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.upload-title {
    display: block;
    color: #022a65;
    font-weight: 900;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.custom-file {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.custom-file input[type="file"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: #022a65;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    border: 2px solid #022a65;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.file-button:hover {
    background: #BA0005;
    border-color: #BA0005;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(2, 42, 101, 0.18);
}

.file-name {
    color: #4f4f4f;
    font-weight: 700;
    font-size: 0.95rem;
}

.upload-box small {
    display: block;
    margin-top: 12px;
    color: #4f4f4f;
    font-weight: 700;
}
/* Fix: Upload-Button-Beschriftung sichtbar machen */
.apply-form .custom-file .file-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 180px;
    min-height: 42px;
    padding: 0 18px;

    background: #022a65 !important;
    border: 2px solid #022a65 !important;
    border-radius: 10px;

    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;

    cursor: pointer;
    text-decoration: none !important;
}

.apply-form .custom-file .file-button::before,
.apply-form .custom-file .file-button::after {
    display: none !important;
    content: none !important;
}

.apply-form .custom-file input[type="file"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
}

.apply-form .custom-file .file-name {
    display: block;
    width: 100%;
    margin-top: 10px;

    color: #4f4f4f !important;
    font-size: 0.95rem;
    font-weight: 700;
}
.avatar-img {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-bottom: 18px;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(2, 42, 101, 0.18);
}
/* Schriftgröße Hinweis Cloudflare Turnstile */
.captcha-privacy-note {
    font-size: 0.72rem;
    line-height: 1.4;
    color: #4f4f4f;
    margin-top: 10px;
}