/* MV Portal – Theme-Ergänzungen zum UIkit-Build (uikit-mv.min.css)
   Schriften lokal (keine Google-Fonts-Anfrage) */
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/nunito-sans-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/nunito-sans-latin-ext-300-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 200; font-display: swap; src: url(../fonts/kanit-latin-200-normal.woff2) format('woff2'); }

:root {
  --mv-primary: #a3037b;
  --mv-primary-dark: #8a0368;
  --mv-secondary: #b461db;
  --mv-text: #5f5f63;
  --mv-heading: #222328;
  --mv-muted: #f5f5f5;
  --mv-danger: #e78b8b;
}
html { font-weight: 400; }
strong, b { font-weight: bolder; }

/* ---------- YOOtheme-Builder-Helfer ---------- */
.tm-grid-expand > * { flex-grow: 1; }
.tm-grid-expand > .uk-width-expand { flex-grow: 999; }
@media (min-width: 640px) { .tm-grid-expand > .uk-width-expand\@s { flex-grow: 999; } }
@media (min-width: 960px) { .tm-grid-expand > .uk-width-expand\@m { flex-grow: 999; } }
@media (min-width: 1200px) { .tm-grid-expand > .uk-width-expand\@l { flex-grow: 999; } }
.uk-font-default { font-family: 'Nunito Sans'; font-weight: 400; }
.uk-font-primary, .uk-font-secondary { font-family: inherit; font-weight: 300; }
.tm-position-z-index-high { z-index: 990; }
.uk-text-secondary { color: #fff !important; }
.uk-text-danger { color: var(--mv-danger) !important; }
.uk-text-muted { color: #9c9c9c !important; }
.uk-text-meta { font-weight: 300; line-height: 1.2; }
.uk-label { background: 0 0; color: #710255; border: 2px solid var(--mv-primary); font-weight: 300; text-transform: none; }

/* ---------- Typografie wie bisher ---------- */
h1, .uk-h1, h2, .uk-h2, h3, .uk-h3, h4, .uk-h4, h5, .uk-h5, h6, .uk-h6, .uk-heading-small { font-weight: 300; }
.uk-heading-medium { font-family: 'Kanit'; font-weight: 200; text-transform: uppercase; }
.uk-heading-line > ::before, .uk-heading-line > ::after { border-bottom-width: calc(1px + .06em); }
.uk-heading-divider { border-bottom-width: calc(1px + .05em); }
.uk-text-lead, .uk-accordion-title, .uk-nav-default, .uk-nav-primary, .uk-navbar-dropdown-nav, .uk-form-label { font-weight: 300; }
.uk-link-muted, .uk-link-muted a { color: #9c9c9c; }

/* ---------- Buttons (Schiebe-Effekt wie im Original) ---------- */
.uk-button { font-weight: 300; line-height: 41px; background-origin: border-box; background-size: 200%; background-position-x: 100%;
  transition: .17s ease-in-out; transition-property: color, background-color, background-position, background-size, border-color, box-shadow; }
.uk-button:hover { background-position-x: 0; }
.uk-button-small { line-height: 26px; }
.uk-button-large { line-height: 56px; }
.uk-button-default { background-color: transparent; color: #222328; border: 2px solid #222328; background-image: linear-gradient(90deg, var(--mv-primary) 50%, transparent 50%); }
.uk-button-default:hover { background-color: transparent; color: #fff; border-color: var(--mv-primary); }
.uk-button-default.uk-active, .uk-button-default:active { background-color: var(--mv-primary-dark); color: #fff; border-color: transparent; background-image: none; }
.uk-button-primary { background-color: transparent; color: #fff; border: 2px solid var(--mv-primary); background-image: linear-gradient(90deg, transparent 50%, var(--mv-primary) 50%); }
.uk-button-primary:hover { background-color: transparent; color: var(--mv-primary); border-color: var(--mv-primary); }
.uk-button-primary.uk-active, .uk-button-primary:active { background-color: transparent; color: #710255; border-color: #710255; background-image: none; }
.uk-button-secondary { background-color: transparent; color: #fff; border: 2px solid var(--mv-secondary); background-image: linear-gradient(90deg, transparent 50%, var(--mv-secondary) 50%); }
.uk-button-secondary:hover { background-color: transparent; color: var(--mv-secondary); border-color: var(--mv-secondary); }
.uk-button-danger { background-color: transparent; color: #fff; border: 2px solid var(--mv-danger); background-image: linear-gradient(90deg, transparent 50%, var(--mv-danger) 50%); }
.uk-button-danger:hover { background-color: transparent; color: var(--mv-danger); border-color: var(--mv-danger); }
.uk-button-default:disabled, .uk-button-primary:disabled, .uk-button-secondary:disabled, .uk-button-danger:disabled { background-color: #f5f5f5; color: #9c9c9c; border: 2px solid transparent; background-image: none; }
.uk-light .uk-button-default, .uk-overlay-primary .uk-button-default { background-color: transparent; color: #fff; border-color: #fff; background-image: none; }
.uk-light .uk-button-default:hover, .uk-overlay-primary .uk-button-default:hover { background-color: #fff; color: #2d2d2f; border-color: transparent; }

/* ---------- Header / Navigation ---------- */
.tm-page { position: relative; }
.tm-toolbar { padding-top: 10px; padding-bottom: 10px; font-size: 14px; position: relative; }
.tm-toolbar-default { background: #f5f5f5; }
.tm-toolbar .uk-icon-link { color: #9c9c9c; }
.tm-toolbar .uk-icon-link:hover { color: var(--mv-primary); }
.tm-header { position: relative; }
.uk-navbar-container { border-bottom: 3px solid var(--mv-primary); }
.uk-navbar-container:not(.uk-navbar-transparent) { background: #fff; }
.uk-navbar-nav > li > a { font-weight: 300; position: relative; z-index: 1; text-transform: none; }
.uk-navbar-nav > li > a::before { content: ""; display: block; position: absolute; z-index: -1; bottom: 30px; height: 1px; background-color: transparent; left: 15px; right: calc(102% - 15px);
  transition: .3s ease-in-out; transition-property: background-color, border-color, box-shadow, height, left, right, opacity; }
.uk-navbar-nav > li:hover > a::before, .uk-navbar-nav > li > a[aria-expanded="true"]::before { right: 15px; background-color: var(--mv-primary); height: 2px; }
.uk-navbar-nav > li.uk-active > a { color: var(--mv-primary); }
.uk-navbar-center-left, .uk-navbar-center-right { top: 10px; }
.uk-logo { margin-top: 10px; margin-bottom: 10px; }
.uk-logo img { display: block; height: auto; }
.uk-navbar-dropdown { background-color: var(--mv-primary); }
.uk-navbar-dropdown-nav > li > a, .uk-navbar-dropdown-nav .uk-nav-sub a { color: #fff; }
.uk-navbar-dropdown-nav > li > a:hover, .uk-navbar-dropdown-nav .uk-nav-sub a:hover { color: rgba(255,255,255,.7); }
.uk-navbar-dropdown-nav .uk-nav-sub { padding-left: 15px; }
.uk-navbar-right .uk-icon-link { color: var(--mv-primary); }
.tm-header-mobile .uk-navbar-container { border-bottom: 3px solid var(--mv-primary); }
.tm-header-mobile .uk-logo img { width: 80px; }
.tm-header-mobile .uk-navbar-item, .tm-header-mobile .uk-navbar-toggle { min-height: 80px; }
#tm-mobile .uk-nav-primary > li > a { font-size: 26px; }
#tm-mobile .uk-nav-sub a { font-size: 17px; }
#tm-mobile .uk-nav-sub ul { list-style: none; padding-left: 15px; }
.uk-modal-close-full { background: #fff; }

/* ---------- Komponenten ---------- */
.uk-slidenav { padding: 10px 13px; color: #fff; outline: 0; background-color: var(--mv-primary); border: 1px solid #fff; }
.uk-slidenav:hover { color: rgba(255,255,255,.8); }
.uk-accordion-default > :nth-child(n+2) { margin-top: 30px; padding-top: 30px; border-top: 2px solid #eee; }
.uk-accordion-default .uk-accordion-title { font-weight: 300; }
.uk-card-default { background-color: #f5f5f5; }
.uk-card-primary { color: #222328; }
.uk-tile-primary .el-content, .uk-tile-primary .el-title, .uk-tile-primary .el-link, .uk-tile-primary .uk-heading-small, .uk-tile-primary .uk-h2 { color: #fff !important; }
.uk-tile-primary .btn, .uk-tile-primary .uk-button { border: 2px solid #fff !important; }
.el-marker { background: #7c13ad; color: #fff !important; }
.uk-list-muted > ::before { color: #fff !important; }
#footer .el-content { color: #fff; }
#slider .uk-tile-muted { background-color: rgba(255,255,255,.6); }
#sliderunter .uk-tile-muted { background-color: rgba(255,255,255,.6); color: var(--mv-primary) !important; margin: 20px 20px 20px 0; padding: 10px; }
#sliderunter .uk-tile-muted h1 { color: var(--mv-primary) !important; }
::selection { background: var(--mv-primary); color: #fff; text-shadow: none; }
.uk-icon-button { background: #f3f3f3; color: #9c9c9c; }
.uk-icon-button:hover { background-color: var(--mv-primary); color: #fff; }
.uk-breadcrumb > * > * { font-weight: 300; }
.uk-list-divider > :nth-child(n+2) { border-top: 1px solid #eee; }
.el-image { max-width: 100%; height: auto; }
img.tm-crop { object-fit: cover; }
.uk-slider-items .uk-cover-container > img.el-image { max-width: 100%; height: auto; }
.uk-slidenav > svg { width: 8px; height: 14px; }
.uk-list-muted > ::marker { color: #fff !important; }
iframe { max-width: 100%; }

/* ---------- Karte (Leaflet, erst nach Einwilligung) ---------- */
.tm-map { background: #eef0f2; }
.tm-map .tm-map-consent { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 20px; color: #5f5f63; font-size: 14px; background: #f5f5f5; }
.tm-map .tm-map-consent p { margin: 0 0 12px; max-width: 420px; }
.leaflet-popup-content .el-title { font-size: 17px; margin: 0 0 5px; color: #222328; }
.leaflet-popup-content { font-family: 'Nunito Sans'; font-size: 14px; }

/* ---------- Cookie-Hinweis ---------- */
.tm-cookie-banner { z-index: 1000; box-shadow: 0 -5px 15px rgba(0,0,0,.05); }
.tm-cookie-banner p { margin: 0 0 10px; }
.tm-cookie-banner .js-accept { background: #eee; color: #9c9c9c; border: 2px solid transparent; }
.tm-cookie-banner .js-accept:hover { background: var(--mv-primary); color: #fff; }

/* ---------- Formulare (Nachbau Balbooa-Look) ---------- */
.tm-form { position: relative; margin-top: 35px; }
.tm-form .tm-form-headline { color: var(--mv-primary); font-size: 17px; font-weight: 700; text-transform: uppercase; margin: 10px 0 0; }
.tm-form .uk-form-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: #222328; }
.tm-form.tm-form-small .uk-form-label { font-size: 12px; }
.tm-form .uk-input, .tm-form .uk-textarea, .tm-form .uk-select { background: #efefef; border: 1px solid #efefef; }
.tm-form .uk-input:focus, .tm-form .uk-textarea:focus, .tm-form .uk-select:focus { background: #fff; border-color: #ccc !important; }
.tm-form .uk-textarea { min-height: 120px; resize: vertical; }
.tm-form .tm-req { color: #222328; }
.tm-form .tm-privacy { display: flex; gap: 15px; align-items: flex-start; font-size: 16px; line-height: 1.75; color: #111; }
.tm-form > .uk-grid-small > .uk-grid-margin { margin-top: 22px; }
.tm-form .uk-textarea { min-height: 150px; }
.tm-form.tm-form-small .tm-privacy { font-size: 13px; }
.tm-form.tm-form-small > .uk-grid-small > .uk-grid-margin { margin-top: 15px; }
.tm-form .tm-privacy p { margin: 0; }
.tm-form .tm-privacy input { margin-top: 3px; flex: none; width: 24px; height: 24px; background-color: #efefef; border: 1px solid #e5e5e5; }
.tm-form .tm-privacy input:checked { background-color: var(--mv-primary); border-color: var(--mv-primary); }
.tm-form .tm-submit { border-radius: 0; font-weight: 700; padding: 0 58px; line-height: 54px; font-size: 17px; }
.tm-form.tm-form-small .tm-submit { font-size: 13px; padding: 0 40px; line-height: 34px; }
.tm-form .tm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tm-form .uk-form-danger { border-color: #e78b8b !important; }
.tm-form-error { color: #c0392b; font-size: 13px; margin-top: 4px; }

/* Jobs-Kontakt-Badge (fixiert rechts) */
.contactcontainer { transition: transform .2s; }
.contactcontainer:hover { transform: translateX(-3px); }

/* Mobil: Toolbar ausblenden, Abstände */
@media (max-width: 959px) {
  .uk-navbar-nav > li > a::before { display: none; }
}

/* Tablet quer (960–1199 px): Menü passt neben das mittige Logo (im Original abgeschnitten) */
@media (min-width: 960px) and (max-width: 1199px) {
  .tm-header .uk-navbar-nav > li > a { padding: 0 9px; font-size: 15px; }
  .tm-header .uk-navbar-nav > li > a::before { left: 9px; right: calc(102% - 9px); }
  .tm-header .uk-navbar-nav > li:hover > a::before { right: 9px; }
}
