/* =====================================================================
   /css/azubi.css - Azubi.Jobs
   Aufbau: 1 Schrift  2 Grundlagen  3 Header  4 Suchbox  5 Hero
           6 Stellenkarte  7 Startseite  8 Suche  9 Detail  10 Footer
           11 Mobile
   ===================================================================== */

/* 1 Schrift (lokal, keine externen Fonts) ---------------------------- */
@font-face { font-family: Ubuntu; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ubuntu-400.woff2') format('woff2'); }
@font-face { font-family: Ubuntu; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/ubuntu-700.woff2') format('woff2'); }

/* 2 Grundlagen ------------------------------------------------------- */
:root {
    --primary:        #41c8ff;
    --primary-dark:   #00adf4;
    --primary-hover:  #1bbdff;
    --text:           #414042;
    --text-dark:      #333132;
    --text-muted:     #939598;
    --text-light:     #f1f2f2;
    --grey-light:     #f1f2f2;
    --grey-section:   #eeeeee;
    --grey-border:    #bcbec0;
    --grey-line:      #e5e5e5;
    --dark:           #333132;
    --dark-line:      #4d4d4f;
    --error:          #ed8080;
    --success:        #86dd80;
    --linkedin:       #004569;
    --header-h:       70px;
    --container:      1300px;
    --radius:         3px;
    --font:           Ubuntu, Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    padding-top: var(--header-h);
    font: 400 16px/1.4 var(--font);
    color: var(--text);
    background: #fff;
    min-width: 320px;
    overflow-y: scroll;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; word-wrap: break-word; }
h1 { font-size: 2em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.4em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--text-dark); text-decoration: none; }
a:hover { color: #000; text-decoration: underline; }
a.muted, .muted { color: var(--text-muted); }
hr { border: 0; border-top: 1px solid var(--grey-line); margin: 20px 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 10px; }
.bold { font-weight: 700; }
[hidden] { display: none !important; }

/* Icons (SVG-Sprite im Header) */
.ico { width: 1em; height: 1em; vertical-align: -.125em; fill: currentColor; display: inline-block; flex: 0 0 auto; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    border: 0; border-radius: var(--radius); cursor: pointer; font: inherit;
    padding: calc(2px + .5rem) calc(2px + .625rem); font-size: .875rem; line-height: 1.25;
    text-decoration: none; user-select: none;
}
.btn:hover { text-decoration: none; }
.btn--l { padding: calc(.6875rem + 1px) calc(.8125rem + 1px); font-size: 1rem; }
.btn--primary, a.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #ececec; }
.btn--white, a.btn--white { background: var(--grey-light); color: var(--text); }
.btn--white:hover { background: #e5e5e5; color: #000; }
.btn--success, a.btn--success { background: var(--success); color: var(--text); }
.btn--success:hover { background: #74d06d; color: #000; }
.btn--linkedin, a.btn--linkedin { background: var(--linkedin); color: #fff; }
.btn--linkedin:hover { background: #002c42; color: #fff; }
.btn__box { background: rgba(0,0,0,.08); margin: calc(-2px - .5rem) calc(-2px - .625rem) calc(-2px - .5rem) 0; padding: calc(2px + .5rem) calc(2px + .625rem); border-radius: 0 var(--radius) var(--radius) 0; }
.btn__box--before { margin: calc(-2px - .5rem) 0 calc(-2px - .5rem) calc(-2px - .625rem); border-radius: var(--radius) 0 0 var(--radius); }

/* Eingabefeld */
.input {
    display: block; width: 100%; font: inherit; color: var(--text);
    padding: .6875rem .8125rem; border: 1px solid var(--grey-border); border-radius: var(--radius);
    background: #fff; transition: box-shadow .3s; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #6d6e71; opacity: 1; }
.input:focus { outline: 0; color: var(--text-dark); box-shadow: 0 0 5px rgba(0,0,0,.5); }
.input:focus::placeholder { color: transparent; }

/* 3 Header ----------------------------------------------------------- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 7000;
    background: var(--dark); box-shadow: 0 0 6px #414042; color: #fff;
}
.header__inner { max-width: var(--container); margin: 0 auto; padding: 10px; display: flex; align-items: center; justify-content: space-between; }
.header__logo { display: block; flex: 0 0 auto; width: 380px; height: 50px; background: url('/img/logo-light.svg') no-repeat left top / auto 100%; text-indent: -9999px; overflow: hidden; }
.nav { flex: 1; margin-left: 40px; }
.nav__liste { display: flex; align-items: center; justify-content: space-around; }
.nav__liste > li { position: relative; }
.nav__liste > li > a { display: block; padding: 0 15px; line-height: 50px; font-weight: 700; color: var(--text-light); text-align: center; }
.nav__liste > li > a:hover { color: #fff; text-decoration: none; }
.nav__liste > li.active > a { color: var(--primary); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; color: var(--primary); font-size: 1.4rem; padding: 0 6px; line-height: 1; }
/* Dropdown Azubi.Jobs */
.nav__menu { display: none; position: absolute; top: 100%; right: 0; min-width: 190px; background: var(--dark); border: 1px solid var(--dark-line); z-index: 10; }
.nav__menu a { display: block; padding: 9px 15px; color: var(--text-light); font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__menu a:hover { background: var(--dark-line); color: #fff; text-decoration: none; }
.nav__drop:hover > .nav__menu, .nav__drop:focus-within > .nav__menu { display: block; }

/* 4 Suchbox ---------------------------------------------------------- */
.search { background: #fff; border-bottom: 1px solid var(--grey-line); }
.search__card { max-width: var(--container); margin: 0 auto; background: #fff; padding: 20px 30px; }
.search--overlap { background: transparent; border: 0; position: relative; z-index: 2; }
.search--overlap .search__card { margin-top: -20px; border-radius: 5px 5px 0 0; border: 1px solid var(--grey-line); border-bottom: 0; }
.search__form { display: grid; grid-template-columns: auto 1fr auto 1fr 200px; gap: 20px; align-items: center; }
.search__label { font-weight: 700; }
.search__hint { text-align: center; padding-top: 20px; font-size: 1rem; }
/* Autocomplete Ort */
.ac { position: relative; }
.ac__liste { position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 50; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--grey-border); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.ac__liste li { display: flex; gap: 10px; padding: 9px 13px; cursor: pointer; }
.ac__liste li b { min-width: 52px; }
.ac__liste li:hover, .ac__liste li[aria-selected="true"] { background: var(--grey-light); }
.ac__liste .ac-leer { color: var(--text-muted); cursor: default; }

/* 5 Hero ------------------------------------------------------------- */
.hero {
    min-height: 300px; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 20px 10px; border-bottom: 1px solid var(--grey-light);
    background: #a9d5f0 url('/img/header-background2.webp') no-repeat center / cover;
}
.hero__inner { max-width: var(--container); }
.hero__titel { font-size: 46px; line-height: 1.1; color: var(--text); margin-bottom: 20px; }
.hero__sub { font-size: 20px; font-weight: 700; }
.hero__zitat { font-size: 16px; font-style: italic; margin-top: 15px; max-width: 900px; margin-left: auto; margin-right: auto; }

/* 6 Stellenkarte ----------------------------------------------------- */
.jobs { display: grid; gap: 35px; }
.job {
    background: #fff; padding: 25px; border-left: 8px solid var(--farbe, var(--primary));
    display: grid; grid-template-columns: 1fr 230px; gap: 0 40px;
}
.job__main { min-width: 0; }
.job__titel { font-size: 1.4em; margin-bottom: 5px; }
.job__titel a { color: var(--primary); }
.job__titel a:hover { color: var(--primary-dark); }
.job__ort { font-weight: 700; margin-bottom: 10px; }
.job__ort .ico { color: var(--primary); margin-right: 2px; }
.job__umkreis { color: var(--error); margin-left: 8px; }
.job__firma { margin-bottom: 10px; }
.job__firma .ico { color: var(--text-muted); }
.job__firma a { font-weight: 700; }
.job__fakten {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px 10px;
    background: var(--grey-light); padding: 10px 7.5px 10px 52px; margin: 0 0 0 -45px;
}
.job__fakten li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.job__fakten .ico { color: var(--farbe, var(--primary)); }
.job__fakten span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job__text { color: var(--text-muted); padding: 10px 0 20px; }
.job__mehr { grid-column: 1 / -1; }
.job__mehr .ico { margin-right: 4px; }
.job__logo { display: flex; align-items: flex-start; justify-content: center; }
.job__logo a { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; }
.job__logo img { width: 100%; height: 100%; object-fit: contain; }
.job--leer { grid-template-columns: 1fr; }
.job--leer .btn { margin-top: 5px; }

/* 7 Startseite ------------------------------------------------------- */
.section { padding: 35px 10px; }
.section--dark { background: var(--dark); }
.btn--mt { margin-top: 35px; }

/* 8 Suche ------------------------------------------------------------ */
.result__titel { color: #fff; font-size: 1.2em; margin-bottom: 4px; }
.crumbs { font-size: 12px; line-height: 14px; }
.crumbs a, .crumbs span { position: relative; padding-left: 12px; margin-right: 4px; }
.crumbs a::before, .crumbs span::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -3.5px;
    border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg);
}
.crumbs--white { display: block; margin-bottom: 20px; }
.crumbs--white, .crumbs--white a { color: #fff; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 35px; }
.pager__info { color: var(--text-light); font-size: .875rem; }

/* 9 Detail ----------------------------------------------------------- */
.crumbbar { background: var(--grey-light); border-bottom: 1px solid var(--grey-light); padding: 20px 0; margin-bottom: 20px; }
.crumbbar .crumbs { display: block; }
.crumbbar .crumbs > :first-child { padding-left: 0; }
.crumbbar .crumbs > :first-child::before { display: none; }
.detail__kopf { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-bottom: 20px; }
.detail__titel { margin-bottom: 10px; }
.detail__firma { display: block; font-weight: 700; }
.detail__firma a { color: var(--text-muted); }
.detail__ort .ico { color: var(--primary); }
.share__label { font-size: .875rem; color: var(--text-muted); margin-bottom: 5px; }
.share a { font-size: 1.5rem; margin-right: 20px; }
.share .fb { color: #3b5998; }
.share .x { color: #00aced; }
.share .wa { color: #25d366; }
.detail__body { display: grid; grid-template-columns: 1fr 330px; gap: 40px; padding-bottom: 35px; }
.detail__links { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.detail__logo img { display: block; width: 100%; max-height: 180px; object-fit: contain; }
.detail__logo .btn { margin-top: 10px; width: 100%; white-space: normal; }
.detail__text { min-width: 0; }
.detail__text h2 { font-size: 1rem; margin-bottom: 10px; }
.detail__text .hinweis { font-weight: 700; margin-bottom: 10px; }
.detail__beschreibung { overflow-wrap: anywhere; }
.detail__beschreibung p, .detail__beschreibung ul, .detail__beschreibung ol { margin: 0 0 12px; }
.detail__beschreibung ul { list-style: disc; padding-left: 22px; }
.detail__beschreibung ol { list-style: decimal; padding-left: 22px; }
.detail__text > .btn { margin-top: 30px; }
.fakten li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; margin-bottom: 20px; }
.fakten .ico { width: 1.5em; height: 1.5em; justify-self: center; }
.fakten small { display: block; font-size: .875rem; color: var(--text-muted); }

/* 10 Footer ---------------------------------------------------------- */
.footer { background: var(--dark); color: #fff; padding: 35px 10px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer__nav a { color: #fff; line-height: 2.2; }
.footer hr { border-color: var(--dark-line); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; font-size: .875rem; color: #a7a9ac; }
.footer__bottom a { color: #a7a9ac; margin-left: 12px; }

/* 11 Mobile ---------------------------------------------------------- */
@media (max-width: 1023px) {
    .search__form { grid-template-columns: auto 1fr; }
    .search__form .btn { grid-column: 1 / -1; }
    .job { grid-template-columns: 1fr; }
    .job__logo { order: -1; justify-content: flex-start; margin-bottom: 10px; }
    .job__logo a { max-width: 200px; }
    .job__fakten { grid-template-columns: 1fr 1fr; }
    .detail__body { grid-template-columns: 1fr; }
    .detail__links { grid-template-columns: 1fr; }
    .detail__logo { max-width: 320px; }
}
@media (max-width: 767px) {
    :root { --header-h: 60px; }
    html, body { overflow-x: hidden; }
    .header__inner { padding: 15px 10px; }
    .header__logo { width: 230px; height: 30px; }
    .nav__burger { display: block; }
    .nav { position: fixed; top: var(--header-h); right: -280px; width: 280px; height: calc(100vh - var(--header-h)); margin: 0; background: var(--dark); transition: right .3s; overflow-y: auto; }
    .nav.open { right: 0; }
    .nav__liste { display: block; }
    .nav__liste > li { border-bottom: 1px solid var(--dark-line); }
    .nav__liste > li > a { text-align: left; line-height: 34px; padding: 6px 15px; }
    .nav__menu { position: static; display: block; border: 0; padding-left: 15px; }
    .search__card { padding: 15px; }
    .search__form { grid-template-columns: 1fr; gap: 10px; }
    .hero { min-height: 225px; padding-bottom: 40px; }
    .hero__titel { font-size: 22px; }
    .hero__sub { font-size: 16px; }
    .jobs { gap: 10px; }
    .job { padding: 15px; }
    .job__fakten { grid-template-columns: 1fr; margin-left: -23px; padding-left: 30px; }
    .section { padding: 15px 10px; }
    .detail__kopf { grid-template-columns: 1fr; }
    .pager__info { display: none; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .footer__bottom a { margin: 0 6px; }
}
